GOV.UK

Help

Feedback

    <%- unless local_assigns[:no_search] -%>

      <form id="search" class="site-search" action="/search" method="get" role="search">

          Search

        <input type="search" name="q" id="site-search-text" />
        <input type="submit" value="Search" class="button" />
      </form>

    <%- end -%>

GOV.UK uses cookies to make the site simpler. Find out more about cookies

Correct URL to cookies page

Correct URL to cookies page


<%= form_tag main_app.catalog_index_path, :method => :get, :class => "search-form" do %>
  <fieldset>
    <legend class="accessible-hidden">Search <%=t('curation_concerns.product_name')%></legend>
    <%= label_tag :catalog_search, t('curation_concerns.search.form.q.label'), :class => "accessible-hidden" %>
    <%= render_hash_as_hidden_fields(params_for_search().except(:q, :search_field, :qt, :page, :utf8)) %>
    <%= text_field_tag(:q, params[:q], :class => "q search-query", :id => "catalog_search",
                       :placeholder => t('curation_concerns.search.form.q.placeholder'), :size => "30", :tabindex => "1", :type => "search") %>
                      <button type="submit" class="search-submit btn btn-primary" id="keyword-search-submit" tabindex="2">
      Search
    </button>
  </fieldset>
<% end %>

<%= form_tag main_app.catalog_index_path, method: :get, class: "search-form" do %>
  <fieldset>
    <legend class="accessible-hidden">Search <%= t('curation_concerns.product_name') %></legend>
    <%= label_tag :catalog_search, t('curation_concerns.search.form.q.label'), class: "accessible-hidden" %>
    <%= render_hash_as_hidden_fields(params_for_search.except(:q, :search_field, :qt, :page, :utf8)) %>
    <%= text_field_tag(:q, params[:q], class: "q search-query", id: "catalog_search",
                       placeholder: t('curation_concerns.search.form.q.placeholder'), tabindex: "1", type: "search") %>
                      <button type="submit" class="search-submit btn btn-primary" id="keyword-search-submit" tabindex="2">
      Search
    </button>
  </fieldset>
<% end %>

Refactor search partial to remove hash rockets


***
Chef-Client - <%= node.name %>
Hostname: <%= node['cloud'] ? node['cloud']['public_hostname'] : node['fqdn'] %>
<% if ! Chef::Config[:solo] -%>
Chef Server: <%= Chef::Config[:chef_server_url] %>
<% end -%>

Roles:
<% node['roles'].each do |role| -%>
  <%= role %>
<% end -%>
<% if node['tags'] && !node['tags'].empty? -%>

Tags:
<% node['tags'].each do |tag| -%>
  <%= tag %>
<% end -%>
<% end -%>
***

***
Chef-Client - <%= node.name %>
Hostname: <%= node['cloud'] ? node['cloud']['public_hostname'] : node['fqdn'] %>
<% if ! Chef::Config[:solo] -%>
Chef Server: <%= Chef::Config[:chef_server_url] %>
<% end -%>
<% if node.chef_environment != '_default' -%>
Environment: <%= node.chef_environment %>
<% end -%>
Last Run: <%= ::Time.now %>

Roles:
<% node['roles'].each do |role| -%>
  <%= role %>
<% end -%>
<% if node['tags'] && !node['tags'].empty? -%>

Tags:
<% node['tags'].each do |tag| -%>
  <%= tag %>
<% end -%>
<% end -%>
***

Add chef env and run timestamp.

Add chef env and run timestamp.


<%= form_for(@lead) do |f| %>
  <% if @lead.errors.any? %>

<%= pluralize(@lead.errors.count, "error") %> prohibited this lead from being saved:

      <% @lead.errors.full_messages.each do |message| %>

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.label :email %>

    <%= f.text_field :email %>

    <%= f.label :mobile_phone %>

    <%= f.text_field :mobile_phone %>

    <%= f.label :position_id %>

    <%= f.text_field :position_id %>

    <%= f.label :tool_id %>

    <%= f.text_field :tool_id %>

    <%= f.label :team_size %>

    <%= f.text_field :team_size %>

    <%= f.submit %>

<% end %>

<%= form_for(@lead) do |f| %>
  <% if @lead.errors.any? %>

<%= pluralize(@lead.errors.count, "error") %> prohibited this lead from being saved:

      <% @lead.errors.full_messages.each do |message| %>

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.label :email %>

    <%= f.text_field :email %>

    <%= f.label :mobile_phone %>

    <%= f.text_field :mobile_phone %>

    <%= f.label :position_id %>

    <%= f.select :position_id, Position.all.collect { |p| [p.name, p.id] },
          include_blank: true %>

    <%= f.label :tool_id %>

    <%= f.select :tool_id, Tool.all.collect { |t| [t.name, t.id] },
          include_blank: true %>

    <%= f.label :team_size %>

    <%= f.text_field :team_size %>

    <%= f.submit %>

<% end %>

Change Position and Tool into a select tag


<% stylesheet 'stars' %>

<% if @stars.any? %>
  <%= render :partial => 'featured_star',
             :locals => {:star => @stars.first, :size => :small} %>

Recent Stars

    <%= render :partial => 'star', :collection => @stars[1..-1] %>

Last Week's Superstars

    <%= render :partial => "superstars",
               :locals => {:users => @last_weeks_superstars} %>

This Week's Contenders

    <%= render :partial => "superstars",
               :locals => {:users => @current_superstars} %>

<% else %>

    No one has any stars :(

    <%= create_a_star_button %>

<% end %>

<% stylesheet 'stars' %>

<% if @stars.any? %>

Recent Stars

    <%= render :partial => 'star', :collection => @stars %>

Last Week's Superstars

    <%= render :partial => "superstars",
               :locals => {:users => @last_weeks_superstars} %>

This Week's Contenders

    <%= render :partial => "superstars",
               :locals => {:users => @current_superstars} %>

<% else %>

    No one has any stars :(

    <%= create_a_star_button %>

<% end %>

Remove the featured section in favor of displaying all stars in a feed


<%= form_for(@user) do |f| %>
  <% if @user.errors.any? %>

<%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:

      <% @user.errors.full_messages.each do |message| %>

<%= message %>

      <% end %>

  <% end %>

  <%= f.text_field :name, placeholder: "Name", readonly: true %>

  <%= f.text_field :email, placeholder: "Email", readonly: true %>

  <%= render 'partner' %>

    <%= f.submit %>

<% end %>

<%= form_for(@user) do |f| %>
  <% if @user.errors.any? %>

<%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:

      <% @user.errors.full_messages.each do |message| %>

<%= message %>

      <% end %>

  <% end %>

  <%= f.text_field :name, placeholder: "Name", readonly: true %>

  <%= f.text_field :email, placeholder: "Email", readonly: true %>

  <%= render 'partner' %>

    <%= f.submit "Analyze Emails"%>

<% end %>

Change wording for submit button to analyzing emails


      About

      Guides

      API

      Community

      Blog

      Builds

      <form>
        <input type="text" id="st-search-input" class="st-search-input" placeholder="Search the guides"/>
      </form>

          Fork Us!

Remove github link from header

Remove github link from header


All Clubs

      <% in_columns(@clubs).each do |clubs| %>

            <%= render clubs %>

      <% end %>

Add Club

    <%= form_for(@club, class: 'ui form') do |f| %>

        <%= f.label :name, 'Club Name' %>
        <%= f.text_field :name, placeholder: 'Awesome Co. Club' %>

        <%= f.label :city %>
        <%= f.text_field :city, placeholder: 'Sydney' %>

        <%= f.label :state, 'State / Province / County' %>
        <%= f.text_field :state, placeholder: 'NY' %>

        <%= f.label :country, 'Country' %>
        <%= render 'partials/country_selector' %>

      <button class="ui button" type="submit">Submit</button>
    <% end %>

<%= javascript_include_tag 'clubs', 'data-turbolinks-track' => true %>

All Clubs

      <% in_columns(@clubs).each do |clubs| %>

            <%= render clubs %>

      <% end %>

Add Club

    <%= form_for(@club, html: {class: 'ui form'}) do |f| %>

        <%= f.label :name, 'Club Name' %>
        <%= f.text_field :name, placeholder: 'Awesome Co. Club' %>

        <%= f.label :city %>
        <%= f.text_field :city, placeholder: 'Sydney' %>

        <%= f.label :state, 'State / Province / County' %>
        <%= f.text_field :state, placeholder: 'NY' %>

        <%= f.label :country, 'Country' %>
        <%= render 'partials/country_selector' %>

      <button class="ui button" type="submit">Submit</button>
    <% end %>

<%= javascript_include_tag 'clubs', 'data-turbolinks-track' => true %>

Fix missing classes on new club form

Fix missing classes on new club form


<%= @event.name %>

<%= @event.date.strftime("%m/%d/%y")%>

<%= @event.time.strftime("%l:%M %p") %>

<%= @event.location %>

Attendees

<% @event.attending_users.each do |user| %>

<%= user.email%>

<% end %>

<% if @event.attending_users.include?(User.find(session[:user_id])) %>

You are bringing a <%= @event_wine.wine.name %>. <%= @event_wine.wine.description %>

  <%= button_to "Edit Event", edit_event_path(@event), :method => :get, :class =>"button [radius round]" %>
<% end %>

<%= button_to "Start Tasting!", "/events/#{@event.id}/quiz", :method => :get, :class =>"button [radius round]", :id => "taste" %>
<%= link_to "See Results", "/events/#{@event.id}/my_results", :method => :get, :class =>"button [radius round]" %>

<%= @event.name %>

<%= @event.date.strftime("%m/%d/%y")%>

<%= @event.time.strftime("%l:%M %p") %>

<%= @event.location %>

Attendees

<% @event.attending_users.each do |user| %>

<%= user.email%>

<% end %>

<% if @event.attending_users.include?(User.find(session[:user_id])) %>

You are bringing a <%= @event_wine.wine.name %>. <%= @event_wine.wine.description %>

  <%= button_to "Edit Event", edit_event_path(@event), :method => :get, :class =>"button [radius round]" %>
<% end %>

<% if Time.now > @event.time %>
	<%= button_to "Start Tasting!", "/events/#{@event.id}/quiz", :method => :get, :class =>"button [radius round]", :id => "taste" %>
	<%= link_to "See Results", "/events/#{@event.id}/my_results", :method => :get, :class =>"button [radius round]" %>
<% end %>

Update event view so Start Tasting and See Results buttons are not visible before the event


<img src="<%= avatar_url(user) %>" alt="user avatar" height="32" width="32" />

      <% user_posts = user.posts.group(:post_type_id).count(:post_type_id) %>
      <%= link_to  user_path(user), class: "is-not-underlined" do %>
                               <%= user.username %>
                               <% if user.is_admin &&  SiteSetting['AdminBadgeCharacter'] %>
                                 <%= SiteSetting['AdminBadgeCharacter'] %>
                               <% elsif user.is_mod && SiteSetting['ModBadgeCharacter'] %>
                                 <%= SiteSetting['ModBadgeCharacter'] %>
                               <% end %>
                             <% end %>
      <%= user.reputation %>
      <%= user_posts[Question.post_type_id] || 0 %>Q, <%= user_posts[Answer.post_type_id] || 0 %>A

<img src="<%= avatar_url(user) %>" alt="user avatar" height="32" width="32" />

      <% user_posts = user.posts.group(:post_type_id).count(:post_type_id) %>
      <%= link_to  user_path(user), class: "is-not-underlined" do %>
                               <%= user.username %>
                               <% if user.is_admin &&  SiteSetting['AdminBadgeCharacter'] %>
                                 <%= SiteSetting['AdminBadgeCharacter'] %>
                               <% elsif user.is_moderator && SiteSetting['ModBadgeCharacter'] %>
                                 <%= SiteSetting['ModBadgeCharacter'] %>
                               <% end %>
                             <% end %>
      <%= user.reputation %>
      <%= user_posts[Question.post_type_id] || 0 %>Q, <%= user_posts[Answer.post_type_id] || 0 %>A

Change is_mod to is_moderator on advice by ArtOfCode


<%= link_to resource.title, resource_path(resource) %> - <%= link_to resource.language_name, language_path(resource.language) %>

<%= link_to resource.title, resource_path(resource) %>

    <% resource.languages.each do |language| %>

<%= link_to language.name, language_path(language) %>

    <% end %>

Add languages list to resource display partial.


html {
  background: url(<%= ENV['WEATHER_JPG_URL'] %>) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.cam-pre-loader {
  display: none;
}

body,html {
	height: 100%;
	margin: 0 auto;
	font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
	color: #ffffff;
	font-size: 1.25vw;
}

a {
	text-decoration: none;
	color: #00aed1;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, p {
  margin: 0em;
}

h1 {
	font-size: 4.0vw;
}

h2 {
	font-size: 3.0vw;
}

h3 {
	font-size: 2.0vw;
}

p {
  margin-top: 4px;
}

.text {
  position: fixed;
  bottom: 5px;
  left: 20px;
  padding: 0 0 5px 0;
}

.weather {
  position: fixed;
  bottom: 5px;
  right: 15px;
  padding: 5px 5px 5px 5px;
}

.cam-pre-loader {
  display: none;
}

body,html {
  height: 100%;
  margin: 0 auto;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  color: #ffffff;
  font-size: 1.25vw;
  background: url(<%= ENV['WEATHER_JPG_URL'] %>) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

a {
  text-decoration: none;
  color: #00aed1;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, p {
  margin: 0em;
}

h1 {
  font-size: 4.0vw;
}

h2 {
  font-size: 3.0vw;
}

h3 {
  font-size: 2.0vw;
}

p {
  margin-top: 4px;
}

.text {
  position: fixed;
  bottom: 5px;
  left: 20px;
  padding: 0 0 5px 0;
}

.weather {
  position: fixed;
  bottom: 5px;
  right: 15px;
  padding: 5px 5px 5px 5px;
}

Clean up CSS, move background image to proper CSS tag.


<% content_for :title do %>
  Results

<% end %>

<% content_for :body do %>
  To top up your pension by <%= format_money(weekly_amount) %> per week, you’ll need to make a lump sum payment of either:

  <% amounts_vs_ages.each do |amount_and_age| %>
    - <%= number_to_currency(amount_and_age[:amount], precision: 0) %> when you're <%= amount_and_age[:age] %>
  <% end %>

  Make sure you’ll get the full [basic State Pension](/state-pension-statement) before making Class 3A contributions.

  You should get [financial advice](/plan-retirement-income/get-financial-advice) when planning your retirement income.

  The contribution amount is an estimate.

  To register your interest in the scheme and to get updates, email <statepension.topup@dwp.gsi.gov.uk>.
<% end %>

<% content_for :title do %>
  Results

<% end %>

<% content_for :body do %>
  To top up your pension by <%= format_money(weekly_amount) %> per week, you’ll need to make a lump sum payment of either:

  <% amounts_vs_ages.each do |amount_and_age| %>
    - <%= number_to_currency(amount_and_age[:amount], precision: 0) %> when you're <%= amount_and_age[:age] %>
  <% end %>

  Make sure you’ll get the full [basic State Pension](/state-pension-statement) before making Class 3A contributions.

  You should get [financial advice](/plan-retirement-income/get-financial-advice) when planning your retirement income.

  The contribution amount is an estimate.

  ##Apply

  You can [apply online](https://www.tax.service.gov.uk/forms/form/State-Pension-Top-Up-Request/new). You need:

  - proof of your identity, eg your P60 or the last 4 digits of your bank account
  - your National Insurance number (if you know it)

  You can also apply over the phone.

  $C
  **State Pension top up**\\
  Telephone: 0345 600 4270\\
  Textphone: 0300 200 3519\\
  Monday to Friday, 8am to 8pm\\
  Saturday, 8am to 4pm\\
  [Find out about call charges](/call-charges)
  $C
<% end %>

Add instructions for how to apply for State Pension Top-up

The State Pension Top-up scheme is launched today (12 Oct).

Users will be able to apply from this date, where previously they were only able
to register interest.


You've completed <%= @completed.length %> out of <%= @questions.length %> questions.

<div class="determinate" style="width: <%= (@completed.length / (@questions.length.to_f)) * 100 %>%">

<% @questions.each do |question| %>

<a href="/questions/<%= question.id %>"><%= question.text %> <% if @completed.include?(question.id) %><% end %>

<% end %>

Add progress bar from materialize

Add progress bar from materialize


  Home |
  Config |
  News |
  View task runs |
   Export all data (JSON)

Change the style of the footer

Change the style of the footer


You've completed <%= @completed.length %> out of <%= @questions.length %> questions.

<div class="determinate" style="width: <%= (@completed.length / (@questions.length.to_f)) * 100 %>%">

<% @questions.each do |question| %>

<a href="/questions/<%= question.id %>"><%= question.text %> <% if @completed.include?(question.id) %><% end %>

<% end %>

You've completed <%= @completed ? @completed.length : 0 %> out of <%= @questions.length %> questions.

<div class="determinate" <% if @completed %>style="width: <%= (@completed.length / (@questions.length.to_f)) * 100 %>%"<% end %>>

<% @questions.each do |question| %>

<a href="/questions/<%= question.id %>"><%= question.text %> <% if @completed and @completed.include?(question.id) %><% end %>

<% end %>

Fix display for people who don't have a session yet


<%= environment %> CF: Loggregator Message reliability from Metron to Doppler below threshold

Question: avg(last_1h):100 * (rate(sum:datadog.nozzle.DopplerServer.dropsondeListener.receivedMessageCount{deployment:<%= metron_agent_deployment %>}) + rate(sum:datadog.nozzle.DopplerServer.tlsListener.receivedMessageCount{deployment:<%= metron_agent_deployment %>}) )/ ( rate(sum:datadog.nozzle.MetronAgent.DopplerForwarder.sentMessages{deployment:<%= metron_agent_deployment %>}) + rate(sum:datadog.nozzle.MetronAgent.DopplerForwarder.sentMessages{deployment:<%= metron_agent_diego_deployment %>}) ) < 90

## Description:
 <%= monitoringAndMetrics_pagerduty %>

## Escalation Path:
  LAMBDA Team.

## Possible Causes:
## Potential Solutions:

##Feedback:
 Have feedback for this alert? [File an issue](https://github.com/pivotal-cf/datadog-config/issues/new)

Question: avg(last_1h):100 * (rate(sum:datadog.nozzle.DopplerServer.dropsondeListener.receivedMessageCount{deployment:<%= metron_agent_deployment %>}) + rate(sum:datadog.nozzle.DopplerServer.tlsListener.receivedMessageCount{deployment:<%= metron_agent_deployment %>}) + rate(sum:datadog.nozzle.DopplerServer.tcpListener.receivedMessageCount{deployment:<%= metron_agent_deployment %>})) / ( rate(sum:datadog.nozzle.MetronAgent.DopplerForwarder.sentMessages{deployment:<%= metron_agent_deployment %>}) + rate(sum:datadog.nozzle.MetronAgent.DopplerForwarder.sentMessages{deployment:<%= metron_agent_diego_deployment %>})) < 90

Update doppler message reliability alert

Signed-off-by: Jason Keene <6860b6804203c35846513c1877d6effca68277e9@pivotal.io>


<%# coding: UTF-8 -%>

Platform Login

        <% if @message %>

<%= escape_html @message[:message] %>

        <% end %>
        <%= erb(:_login_form, :layout => false) %>

  <a href="//<%= @domain %>/">Sign up

  <a href="//<%= @domain %>/users/password/new">Forgot your password?

  <a href="//<%= @domain %>/users/confirmation/new">Didn't receive confirmation instructions?

Extend the gray so it looks consistent

Extend the gray so it looks consistent


  <%=
    instagram_block_patterns = [
      /<blockquote (.*)<\/blockquote>(\s+)

Add one more Instagram regex pattern

Add one more Instagram regex pattern


<%= form_tag('/best', :method=>'post') do %>
  <%= hidden_field_tag "best_answer_id", "#{answer.id}" %>
  <%= submit_tag "Mark this as the best answer" %>
<% end %>

Add styling tags for best answer btn

Add styling tags for best answer btn


<%= render template: "layouts/other" %>

Update Information For <%=@user.first_name%>

  <%= form_for @user, html: {class: "edit-developer-form", role: "form"} do |f| %>

          <%= f.label :first_name, "First Name" %>
            <%= f.text_field :first_name, class: "form-control" %>
          <%= f.label :last_name, "Last Name" %>
            <%= f.text_field :last_name, class: "form-control" %>
        <%= f.label :email %>
            <%= f.text_area :email, class: "form-control" %>
          <%= f.label :public_profile_url %>
            <%= f.text_area :public_profile_url, class: "form-control" %>
          <%= f.label :bootcamp %>
            <%= f.text_area :bootcamp, class: "form-control" %>

<%= f.submit "Update", class: "update-developer-profile" %>

        <%= link_to "Change your password", edit_user_registration_path %>

    <% end %>

</code>

<%= render template: "layouts/other" %>

Update Information For <%=@user.first_name%>

  <%= form_for @user, html: {class: "edit-developer-form", role: "form"} do |f| %>

          <%= f.label :first_name, "First Name" %>
            <%= f.text_field :first_name, class: "form-control" %>
          <%= f.label :last_name, "Last Name" %>
            <%= f.text_field :last_name, class: "form-control" %>
        <%= f.label :email %>
            <%= f.text_field :email, class: "form-control" %>
          <%= f.label :public_profile_url %>
            <%= f.text_field :public_profile_url, class: "form-control" %>
          <%= f.label :bootcamp %>
            <%= f.text_field :bootcamp, class: "form-control" %>

<%= f.submit "Update", class: "update-developer-profile" %>

        <%= link_to "Change your password", edit_user_registration_path %>

    <% end %>

</code>

Change text_area to field in updating a dev account info


<!DOCTYPE HTML>

  <meta http-equiv="content-type" content="text/html; charset=utf-8" />

  <title>Any good?</title>

Any good?

Check if a movie is any good!

  <form action="/api/movies" id="search_movie">
    Name:
    <input id="movie_name_input" type="text" name="movie_name_input">
    Year:
    <input id="movie_year_input" type="text" name="movie_year_input">
    <input type="submit" value="Search">
  </form>

<!DOCTYPE HTML>

  <meta http-equiv="content-type" content="text/html; charset=utf-8" />

  <title>Any good? - Check if a movie is any good!</title>

Any good?

Check if a movie is any good!

      <form action="/api/movies" id="search_movie">
        Name:
        <input id="movie_name_input" type="text" name="movie_name_input">
        Year:
        <input id="movie_year_input" type="text" name="movie_year_input">
        <input type="submit" value="Search">
      </form>

      Built by Thorsten Ball as a fun project!
      Fork this project on GitHub.com

Add some basic HTML tags

Add some basic HTML tags


Reset Statistics

<form action="<%= root_path %>reset-statistics" method="post">
  <input class="btn btn-danger pull-right" type="submit" name="reset_statistics" value="Reset Sidekiq Statistics" />
</form>

Reset Statistics

<form action="<%= root_path %>reset-statistics" method="post">
  <input class="btn btn-danger pull-left" type="submit" name="reset_statistics" value="Reset Sidekiq Statistics" />
</form>

Move reset statistics button to the left, to the left.


<!DOCTYPE html>

  <title><%= yield :title %></title>
  <%= stylesheet_link_tag    "application", media: "all" %>
  <%= stylesheet_link_tag "application" %>

  <%= csrf_meta_tags %>

    <main id="content" role="main" class="<%= yield :page_class %>">
      <%= yield %>

    <%= render_mustache_templates if Rails.env.development? %>

<!DOCTYPE html>

  <title><%= yield :title %></title>
  <%= javascript_include_tag "application" %>
  <%= stylesheet_link_tag "application" %>

  <%= csrf_meta_tags %>

    <main id="content" role="main" class="<%= yield :page_class %>">
      <%= yield %>

    <%= render_mustache_templates if Rails.env.development? %>

Add JavaScript accidentally removed in 71b93b2c


<!DOCTYPE html>

  <title>Ayesha Agha</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>

    <%= link_to root_path, class: "logo" do %>

AYESHA AGHA

    <% end %>

My site is better than Samuel S. Powers'

      <%if current_user %>

Hey Sexy

My Profile

<%= link_to "Signout", destroy_user_session_path, method: :delete %>

      <%else%>

Login

      <% end %>

    <% if notice || alert %>

<%= notice %>

<%= alert %>

    <% end %>

  <%= yield %>

<!DOCTYPE html>

  <title>Ayesha Agha</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>

    <%= link_to root_path, class: "logo" do %>

AYESHA AGHA

    <% end %>

My site is better than Samuel S. Powers'

      <%if current_user %>

Hey Sexy

<%= link_to "Signout", destroy_user_session_path, method: :delete, class: "btn btn-primary" %>

      <%else%>

Login

      <% end %>

    <% if notice || alert %>

<%= notice %>

<%= alert %>

    <% end %>

  <%= yield %>

Add logout button for admin signout.

Add logout button for admin signout.


<!DOCTYPE html>

    <title>ResourceRepositoryApp</title>
    <%= csrf_meta_tags %>
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/journal/bootstrap.min.css" rel="stylesheet" integrity="sha384-1L94saFXWAvEw88RkpRz8r28eQMvt7kG9ux3DdCqya/P3CfLNtgqzMnyaUa49Pl2" crossorigin="anonymous">
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= stylesheet_link_tag    'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

        DBC Resource Repository

      <% if current_user %>
        (<%= current_user.email %> - <%= current_user.role %>) <%= link_to "logout", logout_path %>

        <%= link_to "Create new resource", new_resource_path, :class => "btn btn-primary" %>
      <% end %>

    <%= yield %>

<!DOCTYPE html>

    <title>ResourceRepositoryApp</title>
    <%= csrf_meta_tags %>
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/journal/bootstrap.min.css" rel="stylesheet" integrity="sha384-1L94saFXWAvEw88RkpRz8r28eQMvt7kG9ux3DdCqya/P3CfLNtgqzMnyaUa49Pl2" crossorigin="anonymous">
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= stylesheet_link_tag    'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

        <%= link_to "DBC Resource Repository", resources_path %>

      <% if current_user %>
        (<%= current_user.email %> - <%= current_user.role %>) <%= link_to "logout", logout_path %>

        <% if current_user.role == 'teacher' %>
          <%= link_to "Create new resource", new_resource_path, :class => "btn btn-primary" %>
        <% end %>
      <% end %>

    <%= yield %>

Fix merge conflict teacher only

Fix merge conflict teacher only


<%= link_to beer_path(beer) do %>
  <p>
    <%= beer.name %>
  </p>
<% end %>

<%= link_to beer_path(beer) do %>
  <p>
    <%= beer.name -%> <%= "(by you)" if beer.user_id == current_user.id %>
  </p>
<% end %>

Add message by beers of ones by current user


<%= form_tag(new_game_path, :method => "get") do %>
<%= select_tag "selectImage", options_for_select(@games.map  { |game| [{ data: { 'img-src': game.url } }, game.title , [ 'id' => game.id, 'name' =>  game.title, 'cover' => game.url ] ] }), multiple: true, class: 'image-picker show-labels show-html'%>
<% end %>

Add a basic game index page

Add a basic game index page


Grummle

<%= render 'shared/flash' %>

        <%= t :notes %>
        <%= link_to t(:newnote), new_note_path, class: 'btn btn-success' %>

    <% current_user.notes.each do |note| %>
    <%= link_to note.title, note, class: 'list-group-item' %>
    <% end %>

Grummle

<%= render 'shared/flash' %>

        <%= t :notes %>
        <%= link_to t(:newnote), new_note_path, class: 'btn btn-success' %>

    <% current_user.notes.order(updated_at: :desc).each do |note| %>
    <%= link_to note.title, note, class: 'list-group-item' %>
    <% end %>

Order notes descending by last update

Order notes descending by last update


This site tracks new posts made to the Frontier Forums from the following known Frontier employees: <%= @authors.collect { |a| a.name || "ID:#{a.forum_id}" }.join(", ") %>.

<% if @posts.empty? %>

    <%= @quip %>
    The Frontier team are working on the game rather than posting to the forums since you last checked.

  <%= button_to 'VIEW OLD POSTS', clear_session_posts_path, method: :post, class: 'btn btn-primary' %>

<% end %>

  <% @posts.each do |p| %>
    <%= raw p.body %>
  <% end %>

This site tracks new posts made by Frontier employees.

<% if @posts.empty? %>

    <%= @quip %>
    The Frontier team are working on the game rather than posting to the forums since you last checked.

  <%= button_to 'VIEW OLD POSTS', clear_session_posts_path, method: :post, class: 'btn btn-primary' %>

<% end %>

  <% @posts.each do |p| %>
    <%= raw p.body %>
  <% end %>

Remove names of tracked Authors as it seems bugged, with them coming up as 'Message'


  <%= form_tag projects_results_path, :method => :get do %>

    <%= text_field_tag :search, params[:search] %>

  <%= submit_tag "Search Near", :name => nil %>

<% end %>

  <%= form_tag projects_results_path, :method => :get do %>

    <%= label_tag(:search, "Zip Code:") %>
    <%= text_field_tag :search, params[:search] %>

    <%= label_tag(:distance, "Distance:") %>
    <%= text_field_tag :distance, params[:distance] %>

  <%= submit_tag "Search Near", :name => nil %>

<% end %>

Add distance field to form

Add distance field to form


---
<%
# cluster_ips may contain nil values due to lack of flexibility in spiff
cluster_ips = p('cf_mysql.mysql.cluster_ips').compact
%>

LogFileLocation: /var/vcap/sys/log/mysql/mariadb_ctrl.combined.log
PidFile: /var/vcap/sys/run/mariadb_ctl/mariadb_ctl.pid
Db:
  DaemonPath: /var/vcap/packages/mariadb_ctrl/bin/mysql_daemon.sh
  UpgradePath: /var/vcap/packages/mariadb/bin/mysql_upgrade
  User: <%= p('cf_mysql.mysql.admin_username')%>
  Password: <%= p('cf_mysql.mysql.admin_password')%>
  PreseededDatabases:
  <% p("cf_mysql.mysql.seeded_databases").each do |seed| %>
  - DBName: <%= seed["name"] %>
    User: <%= seed["username"]%>
    Password: <%= seed["password"] %>
  <% end %>
Upgrader:
  PackageVersionFile: /var/vcap/packages/mariadb/VERSION
  LastUpgradedVersionFile: /var/vcap/store/mysql/mysql_upgrade_info
Manager:
  StateFileLocation: /var/vcap/store/mysql/state.txt
  ClusterIps:
  <% cluster_ips.each do |ip| %>
  - <%= ip %>
  <% end %>
  MyIP: <%= spec.networks.send(p('network_name')).ip %>
  DatabaseStartupTimeout: <%= (p('cf_mysql.mysql.database_startup_timeout') * 0.8).round %>

---
<%
# cluster_ips may contain nil values due to lack of flexibility in spiff
cluster_ips = p('cf_mysql.mysql.cluster_ips').compact
%>

LogFileLocation: /var/vcap/sys/log/mysql/mariadb_ctrl.combined.log
PidFile: /var/vcap/sys/run/mariadb_ctl/mariadb_ctl.pid
Db:
  DaemonPath: /var/vcap/packages/mariadb_ctrl/bin/mysql_daemon.sh
  UpgradePath: /var/vcap/packages/mariadb/bin/mysql_upgrade
  User: <%= p('cf_mysql.mysql.admin_username')%>
  Password: <%= p('cf_mysql.mysql.admin_password')%>
  PreseededDatabases:
  <% p("cf_mysql.mysql.seeded_databases").each do |seed| %>
  - DBName: <%= seed["name"] %>
    User: <%= seed["username"]%>
    Password: <%= seed["password"] %>
  <% end %>
  ROUser: roadmin
Upgrader:
  PackageVersionFile: /var/vcap/packages/mariadb/VERSION
  LastUpgradedVersionFile: /var/vcap/store/mysql/mysql_upgrade_info
Manager:
  StateFileLocation: /var/vcap/store/mysql/state.txt
  ClusterIps:
  <% cluster_ips.each do |ip| %>
  - <%= ip %>
  <% end %>
  MyIP: <%= spec.networks.send(p('network_name')).ip %>
  DatabaseStartupTimeout: <%= (p('cf_mysql.mysql.database_startup_timeout') * 0.8).round %>

Add default read-only user name

Add default read-only user name

[#110369648]


<% govspeak_for :body do %>
  You can export bereavement benefits to <%= calculator.country_name %> although you won't get any annual increases after you've moved there.

  Claim [Bereavement Allowance](/bereavement-allowance#how-to-claim), [Bereavement Payment](/bereavement-payment#how-to-claim)
   or [Widowed Parent's Allowance](/widowed-parents-allowance#how-to-claim)
  as appropriate before leaving the UK.

  Once you have claimed bereavement benefits, [contact the International Pension Centre](/international-pension-centre) to find out if you can export them.
<% end %>

<% govspeak_for :body do %>
  You may be able to export bereavement benefits to <%= calculator.country_name %> although you won't get any annual increases after you've moved there.

  Claim [Bereavement Support Payment](/bereavement-support-payment/how-to-claim) or [Widowed Parent’s Allowance](/widowed-parents-allowance#how-to-claim) before you leave the UK.

Once you have claimed bereavement benefits, [contact the International Pension Centre](/international-pension-centre) to find out if you can export them.

<% end %>

Update to /going_abroad other countries

Update to /going_abroad other countries


# Scheduler Runner unit file
# Managed by puppet class profile::swh::deploy::scheduler
# Changes will be overwritten

[Unit]
Description=Software Heritage scheduler runner
Requires=network.target rabbitmq-server.service
After=network.target rabbitmq-server.service

[Service]
User=<%= @user %>
Group=<%= @group %>
Type=simple
Environment=SWH_LOG_TARGET=journal
ExecStart=/usr/bin/swh-scheduler --config-file <%= @config_file %> --log-level <%= @runner_log_level %> runner --period 10
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

# Scheduler Runner unit file
# Managed by puppet class profile::swh::deploy::scheduler
# Changes will be overwritten

[Unit]
Description=Software Heritage scheduler runner
Requires=network.target rabbitmq-server.service
After=network.target rabbitmq-server.service

[Service]
User=<%= @user %>
Group=<%= @group %>
Type=simple
Environment=SWH_LOG_TARGET=journal
ExecStart=/usr/bin/swh --log-level <%= @runner_log_level %> scheduler --config-file <%= @config_file %> runner --period 10
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Switch to latest cli call

scheduler-runner: Switch to latest cli call


<%= form_for(@city) do |f| %>
  <% if @city.errors.any? %>

<%= pluralize(@city.errors.count, "error") %> prohibited this city from being saved:

      <% @city.errors.full_messages.each do |message| %>

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.label :lattitude %>

    <%= f.text_field :lattitude %>

    <%= f.label :longitude %>

    <%= f.text_field :longitude %>

    <%= f.submit %>

<% end %>

<%= form_for(@city) do |f| %>
  <% if @city.errors.any? %>

<%= pluralize(@city.errors.count, "error") %> prohibited this city from being saved:

      <% @city.errors.full_messages.each do |message| %>

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.submit %>

<% end %>

Edit city view to not display latitude and longitude


<%= form_for(:user, html: { class: "small-6 small-centered columns" } ) do |f| %>
    First name: <%= f.text_field :first_name %>

    Last name: <%= f.text_field :last_name %>

    Email: <%= f.email_field :email %>

    Password: <%= f.password_field :password %>

    Password Confirmation: <%= f.password_field :password_confirmation %>

    <%= f.submit "Sign Up" %>
<% end %>

<%= form_for(:user, html: { class: "small-6 small-centered columns" } ) do |f| %>
    First name: <%= f.text_field :first_name %>

    Last name: <%= f.text_field :last_name %>

    Email: <%= f.email_field :email %>

    Password: <%= f.password_field :password %>

    Password Confirmation: <%= f.password_field :password_confirmation %>

    Client: <%= f.radio_button 'user_type', 'Client' %>&nbsp&nbsp Fitness Professional <%= f.radio_button 'user_type', 'Fitness_Professional' %>

    <%= f.submit "Sign Up" %>
<% end %>

Add radio buttons to new user registration page for user type


<% view = DashboardHelper::IndexView.new(current_user) %>

Hi, <%= view.username %>

  <% if view.no_schemes %>

You have no schemes. :(

      Why not <%= link_to 'make one', new_scheme_path %>?
  <% end %>

<% view = DashboardHelper::IndexView.new(current_user) %>

Hi, <%= view.username %>!

  <% if view.no_schemes %>

You have no schemes. :(

      Why not <%= link_to 'make one', new_scheme_path %>?
  <% end %>

Add an exclamation point to dashboard

Add an exclamation point to dashboard


    <%= f.datetime_select method, {
      use_two_digit_numbers: true,
      date_seperator: false,
      ampm: true,
      include_blank: "",
    } %>

  <%= f.text_field method, options.reverse_merge({
    :value => f.object.send(method).try(:strftime, "%Y-%m-%d %I:%M %p"),
    :'data-recovery-value' => Time.current.strftime("%Y-%m-%d %I:%M %p"),
    name: "", # KLUDGE: don't duplicate field names
    id: "", # KLUDGE: don't duplicate field IDs
  }) %>

    <%= f.datetime_select method, {
      use_two_digit_numbers: true,
      date_seperator: false,
      ampm: true,
      include_blank: "",
      start_year: 1970,
    } %>

  <%= f.text_field method, options.reverse_merge({
    :value => f.object.send(method).try(:strftime, "%Y-%m-%d %I:%M %p"),
    :'data-recovery-value' => Time.current.strftime("%Y-%m-%d %I:%M %p"),
    name: "", # KLUDGE: don't duplicate field names
    id: "", # KLUDGE: don't duplicate field IDs
  }) %>

Set an earlier start_year for timestamp_field

Fixes #35


<%= t('stats.sources.title') %>(<%= sources.count %>)

        <% sources.each do |source| %>

            <%= source[:title] %>
            <%= t('stats.sources.updated') %>: <%= source[:date_updated] %>
            <%= source[:resp_party] %>

        <% end %>

<%= t('stats.sources.title') %> (<%= sources.count %>)

        <% sources.each do |source| %>

            <%= source[:title] %>
            <%= t('stats.sources.updated') %>: <%= source[:date_updated] %>
            <%= source[:resp_party] %>

        <% end %>

Add space after title before total

Add space after title before total


<sidebar>

Your Trips

	<% @trips.each do |trip| %>

<%= link_to trip.name, fetch_expenses_path(:trip_id => trip), :remote => true %>

	<% end %>

Your WishLists

	<% @wishlists.each do |wishlist| %>

<%= link_to wishlist.name, fetch_wishlist_items_path(:wishlist_id => wishlist), :remote => true %>

	<% end %>
</sidebar>

<sidebar>

Your Trips

	<% @trips.each do |trip| %>

<%= link_to trip.name, fetch_expenses_path(:trip_id => trip), :remote => true %>

	<% end %>
  <%= link_to "Add a Trip", new_trip_path %>

Your WishLists

	<% @wishlists.each do |wishlist| %>

<%= link_to wishlist.name, fetch_wishlist_items_path(:wishlist_id => wishlist), :remote => true %>

	<% end %>
  <%= link_to "Add a Wishlist", new_wishlist_path %>
</sidebar>

Add links leading to new routes

Add links leading to new routes


# Generated by Chef, do not hand-edit

<% node[:postgresql][:client_auth].each do |client| -%>
<%= client[:type] %> <%= client[:database] %> <%= client[:user] %> <%= client[:address] %> <%= client[:auth_method] %>
<% end -%>

local all postgres              ident
local all all                   ident
host  all all      127.0.0.1/32 md5
host  all all      ::1/128      md5

# Generated by Chef, do not hand-edit

<% node[:postgresql][:client_auth].each do |client| -%>
<%= client[:type] %> <%= client[:database] %> <%= client[:user] %> <%= client[:address] %> <%= client[:auth_method] %>
<% end -%>

# Allow postgres user on the local system to connect to any database
# using Unix-domain sockets as the postgres user name that ident reports
# for the connection
local all postgres              ident

# Allow any user on local system to connect to any database using
# Unix-domain sockets as the same user name that ident reports for the
# connection
local all all                   ident

# Allow all loopback connections to connect
host  all all      127.0.0.1/32 trust
host  all all      ::1/128      trust

# Reject all other connections
host  all all      0.0.0.0/0    reject

Update security settings for database connections


<%= form_for(@product) do |f| %>
  <% if @product.errors.any? %>

<%= pluralize(@product.errors.count, "error") %> prohibited this product from being saved:

      <% @product.errors.full_messages.each do |message| %>

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :title %>

    <%= f.text_field :title %>

    <%= f.label :description %>

    <%= f.text_area :description %>

    <%= f.label :image_url %>

    <%= f.text_field :image_url %>

    <%= f.label :price %>

    <%= f.text_field :price %>

    <%= f.submit %>

<% end %>

<%= form_for(@product) do |f| %>
  <% if @product.errors.any? %>

<%= pluralize(@product.errors.count, "error") %> prohibited this product from being saved:

      <% @product.errors.full_messages.each do |message| %>

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :title %>

    <%= f.text_field :title %>

    <%= f.label :description %>

    <%= f.text_area :description, rows: 6 %>

    <%= f.label :image_url %>

    <%= f.text_field :image_url %>

    <%= f.label :price %>

    <%= f.text_field :price %>

    <%= f.submit %>

<% end %>

Change number of rows in description text area


<%= notice %>

<%= render "shared/course_proposal_show", :obj => @proposal %>

<% if user_signed_in? %>

<%= link_to "I want to teach a course for this!", new_course_path %>

<% end %>

<% if user_signed_in? && !@proposal.user_has_voted?(current_user) %>

I want to <a href="<%= proposal_vote_path(@proposal) %>">vote for this proposal!

<% end %>

<%= link_to 'Back', proposals_path %>

<%= notice %>

<%= render "shared/course_proposal_show", :obj => @proposal %>

<% if user_signed_in? %>

<%= link_to "I want to teach a course for this!", new_course_path(@proposal) %>

<% end %>

<% if user_signed_in? && !@proposal.user_has_voted?(current_user) %>

I want to <a href="<%= proposal_vote_path(@proposal) %>">vote for this proposal!

<% end %>

<% if @proposal.courses.count > 0 %>

Courses

<% @proposal.courses.each do |c| %>

<%= link_to c.name, course_path(c) %>

<% end %>

<% end %>

<%= link_to 'Back', proposals_path %>

Fix new course path and add course list for proposal.


I am the about page. This is content. Youre reading it. High five!

This is a demo app which uses a stack of Rails 4, jQuery, Bootstrap, PostgreSQL, Puma, and Heroku. Once a day,
      the application checks when each state's regular unleaded gas price was last updated, and scrapes
      the aaa.com website for
      updated information. This application's states are then updated, and you have the incredible pleasure of reading
      each state's regular unleaded gasoline per gallon price right here in your very own web browser.

      Site by Todd Morningstar |
      https://github.com/stratigos

I am a sidebar element

I am another sidebar element

I am the about page. This is content. Youre reading it. High five!

This is a demo app which uses a stack of Rails 4, jQuery, Bootstrap, PostgreSQL, Puma, and Heroku. Two API endpoints are
      utilized to return gas price information to the user.  Once a day,
      the application checks when each state's regular unleaded gas price was last updated, and scrapes
      the aaa.com website for
      updated information. This application's states are then updated, and you have the incredible pleasure of reading
      each state's regular unleaded gasoline per gallon price right here in your very own web browser.

      Site by Todd Morningstar |
      https://github.com/stratigos

I am a sidebar element

I am another sidebar element

Add note about API endpoints to /about;

Add note about API endpoints to /about;


<% if type == :notice %>
  <%= alert_box context: :success, dismissible: true do %>
    <%= message %>
  <% end %>
<% else %>
  <%= alert_box context: :danger, dismissible: true do %>
    <%= message %>
  <% end %>
<% end %>

<% if type == :success %>
  <%= alert_box context: :success, dismissible: true do %>
    <%= message %>
  <% end %>
<% elsif type == :error %>
  <%= alert_box context: :danger, dismissible: true do %>
    <%= message %>
  <% end %>
<% elsif type == :warning %>
    <%= alert_box context: :warning, dismissible: true do %>
      <%= message %>
    <% end %>
<% else %>
  <%= alert_box context: :info, dismissible: true do %>
    <%= message %>
  <% end %>
<% end %>

Fix flash message alert boxes

Fix flash message alert boxes


<div class="odi-member <%= @size %>">
  <%= stylesheet_link_tag "badge.css" %>
  <%= link_to image_tag("#{@size || "standard"}-badge.png"), member_url(@member) %>

Open Data Institute Partner

Active since <%= @member.created_at.to_date %>

London, UK

<div class="odi-member <%= @size %>">
  <%= stylesheet_link_tag "badge.css" %>
  <%= link_to image_tag("badge/#{@member.product_name}/#{@size || "standard"}-badge.png", alt: "Open Data Institute #{@member.product_name.titleize}"), member_url(@member) %>

Open Data Institute Partner

Active since <%= @member.created_at.to_date %>

London, UK

Add membership level to badge

Add membership level to badge


  <%= sortable_th "name", nil, :style => "width:10em" %>
  <%= sortable_th "type", nil, :style => "width:2em" %>
  <%= sortable_th "count", nil, :style => "width:2em" %>
  <%= sortable_th "packages_list", nil, :style => "min-width:9em" %>

<% for upgrade in @upgrades %>

    <%= link_to upgrade.server.name, upgrade.server %>
    <%= upgrade.strategy %>
    <%= upgrade.packages_list.count %>
    <%= upgrade.packages_list.map{|p| p[:name]}.join(" ") %>

<% end %>

  <%= sortable_th "servers.name", t(:name), :style => "width:10em" %>
  <%= t(:type) %>
  <%= t(:count) %>
  <%= t(:packages_list) %>

<% for upgrade in @upgrades %>

    <%= link_to upgrade.server.name, upgrade.server %>
    <%= upgrade.strategy %>
    <%= upgrade.packages_list.count %>
    <%= upgrade.packages_list.map{|p| p[:name]}.join(" ") %>

<% end %>

Remove useless sortable header in upgrades/index


<% content_for :js do %>
    <%= headjs_include_tag "plugins/jquery.min", "front/login" %>
  <% end %>

  <% content_for :head do %>
    <%= stylesheet_link_tag('reset.css','front/sessions') %>
  <% end %>

Welcome to CartoDB

Enter your account information to start mapping

    <%= form_tag create_session_path do %>

Please login

      <%= label_tag :email, 'e-mail' %>
      <%= text_field_tag :email, '', :class => (flash[:alert] ? 'error' : nil) %>

        <%= label_tag :password, 'password' %>
        <%= password_field_tag :password, '', :class => (flash[:alert] ? 'error' : nil) %>

      <%= link_to "Did you forget your password?", forget_password_url, :class => "forget" if forget_password_url.present? %>
      <%= submit_tag 'Log in', :class => "login" %>
      <% if flash[:alert] || @login_error %>

<%= flash[:alert] || @login_error %>

      <% end %>
    <% end %>

CartoDB is a product from Vizzuality

<% content_for :js do %>
    <%= headjs_include_tag "plugins/jquery.min", "front/login" %>
  <% end %>

  <% content_for :head do %>
    <%= stylesheet_link_tag('reset.css','front/sessions') %>
  <% end %>

Welcome to CartoDB

Enter your account information to start mapping

    <%= form_tag create_session_path do %>

Please login

      <%= label_tag :email, 'e-mail' %>
      <%= text_field_tag :email, '', :class => (flash[:alert] || @login_error ? 'error' : nil) %>

        <%= label_tag :password, 'password' %>
        <%= password_field_tag :password, '', :class => (flash[:alert] || @login_error ? 'error' : nil) %>

      <%= link_to "Did you forget your password?", forget_password_url, :class => "forget" if forget_password_url.present? %>
      <%= submit_tag 'Log in', :class => "login" %>
      <% if flash[:alert] || @login_error %>

<%= flash[:alert] || @login_error %>

      <% end %>
    <% end %>

CartoDB is a product from Vizzuality

Check @login_error in login form

Check @login_error in login form


Login

<%= form_tag sessions_path do %>
  <%= label_tag :username %>
  <%= text_field_tag :username %>

  <%= label_tag :password %>
  <%= password_field_tag :password %>

  <%= submit_tag 'Log in' %>
<% end %>

Add sessions view to display login form

Add sessions view to display login form


<%= raw(@course.homepage) %>

<% unless current_user.nil? || !current_user.admin? %>
<%= link_to "Show assignments", course_assignments_path(@course), :class => "command" %>
<% end %>

Add assignment link for admins on course page.


WELCOME TO LIVE ACTION!

<% @places.each do |place| %>

<%= place.name %>

<%= place.description %>

Address: <%= place.address %>

Capacity: <%= place.capacity %>

<% end %>

WELCOME TO LIVE ACTION!

<% @places.each do |place| %>

<%= link_to place.name, place_path(place) %>

<%= place.description %>

Address: <%= place.address %>

Capacity: <%= place.capacity %>

<% end %>

Make place names links to place show page


<%= @article.title %>

  <%= Pygments.highlight.markdown(@article.content, lexer: language) %>

<%= pluralize(@article.comments.count, 'comment') %>

<%= render @article.comments %>
<%= render 'comments/form' %>

<%= @article.title %>

  <%= markdown(@article.content) %>

<%= pluralize(@article.comments.count, 'comment') %>

<%= render @article.comments %>
<%= render 'comments/form' %>

Remove old gem method from show view-fix


Pick a Sport for your Game!

    <% @sports.each do |row| %>

        <% row.each do |sport| %>

              <a href = "/locations/<%= current_user.location.id %>/sports/<%= sport.id %>/games/new">

                  <%= image_tag sport.image_path %>

<%= render partial: "sport", locals: {sport: sport} %>

        <% end %>

    <% end %>

Make a new game from user profile

Make a new game from user profile


<%= form_for [@parent, Response.new] do |f| %>

    <%= f.hidden_field :parent_id, :value => @parent.id %>
    Make a comment:
 <%= f.text_area :content, size: "60x6" %>

    <%= f.submit 'comment' %>

<% end %>

<%= form_for [@parent, Response.new] do |f| %>

    <%= f.hidden_field :parent_id, :value => @parent.id %>

Make a comment:

<%= f.text_area :content %>

<%= f.submit 'comment' %>

<% end %>

Add tags for styling on making a new response


<%= @question.title %>

At approximately: <%= @question.created_at %>

<%= @question.author.username %> asked:

        <% %>

And they said: <%= @question.body %>

  <% if @errors %>

      Your answer could not be saved:

        <% @errors.each do |error| %>

<%= error %>

        <% end %>

  <% end %>

  <form method="post" action="/questions/<%= @question.id %>/answer">
    Your Answer:
    <input id="answer" name="answer" type="text" >

    <input type="submit" value="Submit" class="button">
  </form>

Answers:

  <% answers_of_question = @question.answers %>
  <% answers_of_question. each do |answer| %>

<%= answer.body %>

at <%= answer.created_at %> by

User: <%= answer.author.username %>

<% end %>

<%= @question.title %>

At approximately: <%= @question.created_at %>

<%= @question.author.username %> asked:

        <% %>

And they said: <%= @question.body %>

  <% if @errors %>

      Your answer could not be saved:

        <% @errors.each do |error| %>

<%= error %>

        <% end %>

  <% end %>

<% if logged_in? %>
  <form method="post" action="/questions/<%= @question.id %>/answer">
    Your Answer:
    <input id="answer" name="answer" type="text" >

    <input type="submit" value="Submit" class="button">
  </form>
<% end %>

Answers:

  <% answers_of_question = @question.answers %>
  <% answers_of_question. each do |answer| %>

<%= answer.body %>

at <%= answer.created_at %> by

User: <%= answer.author.username %>

<% end %>

Add functionality preventing unregistered users from submitting answers


Register New User

  <%= render 'form', item: @user %>

Already have a profile?  <%= link_to 'Login here!', login_path%>

Create new div.individual-form within div.form-container


#!/bin/tcsh -x
# This bootstrap is for FreeBSD 10.x which has most of the same principals of
# Linux, but we have had to make some variations to account for tcsh weirdness
# vs the general behavior we expect from bash on Linux distributions

# Known Issues:
# * tcsh makes capturing all the output to syslog difficult
# * We can't rely on Bash, since it's not available in FreeBSD by default.
# * Digital Ocean has no support for FreeBSD user data yet
# * AWS FreeBSD images take a long time to launch - 10mins+
#

env ASSUME_ALWAYS_YES=YES pkg bootstrap
env ASSUME_ALWAYS_YES=YES pkg upgrade --yes
env ASSUME_ALWAYS_YES=YES pkg install --yes ruby devel/ruby-gems puppet gnupg

/usr/local/bin/gem install pupistry
mkdir /usr/local/etc/pupistry
cat > /usr/local/etc/pupistry/settings.yaml << EOF
general:
  app_cache: ~/.pupistry/cache
  s3_bucket: <%= s3_bucket %>
  s3_prefix: <%= s3_prefix %>
  gpg_disable: <%= gpg_disable %>
  gpg_signing_key: <%= gpg_signing_key %>
agent:
  puppetcode: <%= puppetcode %>
  access_key_id: <%= access_key_id %>
  secret_access_key: <%= secret_access_key %>
  region: <%= region %>
  proxy_uri: <%= proxy_uri %>
EOF
pupistry apply --verbose

#!/bin/tcsh -x
# This bootstrap is for FreeBSD 10.x which has most of the same principals of
# Linux, but we have had to make some variations to account for tcsh weirdness
# vs the general behavior we expect from bash on Linux distributions

# Known Issues:
# * tcsh makes capturing all the output to syslog difficult
# * We can't rely on Bash, since it's not available in FreeBSD by default.
# * Digital Ocean has no support for FreeBSD user data yet
# * AWS FreeBSD images take a long time to launch - 10mins+
# * Override some config to use /usr/local for everything
#

env ASSUME_ALWAYS_YES=YES pkg bootstrap
env ASSUME_ALWAYS_YES=YES pkg upgrade --yes
env ASSUME_ALWAYS_YES=YES pkg install --yes ruby devel/ruby-gems puppet gnupg

/usr/local/bin/gem install pupistry
mkdir /usr/local/etc/pupistry
cat > /usr/local/etc/pupistry/settings.yaml << EOF
general:
  app_cache: ~/.pupistry/cache
  s3_bucket: <%= s3_bucket %>
  s3_prefix: <%= s3_prefix %>
  gpg_disable: <%= gpg_disable %>
  gpg_signing_key: <%= gpg_signing_key %>
agent:
  puppetcode: /usr/local/etc/puppetlabs/code/environments
  access_key_id: <%= access_key_id %>
  secret_access_key: <%= secret_access_key %>
  region: <%= region %>
  proxy_uri: <%= proxy_uri %>
EOF
pupistry apply --verbose

Fix code path for FreeBSD

Fix code path for FreeBSD


#!/bin/bash
#
# god       Startup script for god (http://god.rubyforge.org)
#
# chkconfig: - 85 15
# description: God is an easy to configure, easy to extend monitoring \
#              framework written in Ruby.
#

CONF_DIR=/etc/god
GOD_BIN=god
RUBY_BIN="chruby-exec <%= @ruby_version %> --"
RETVAL=0

# Go no further if config directory is missing.
[ -d "$CONF_DIR" ] || exit 0

case "$1" in
    start)
      # Create pid directory
      $RUBY_BIN $GOD_BIN -c $CONF_DIR/master.conf
      RETVAL=$?
  ;;
    stop)
      $RUBY_BIN $GOD_BIN terminate
      RETVAL=$?
  ;;
    restart)
      $RUBY_BIN $GOD_BIN terminate
      $RUBY_BIN $GOD_BIN -c $CONF_DIR/master.conf
      RETVAL=$?
  ;;
    status)
      $RUBY_BIN $GOD_BIN status
      RETVAL=$?
  ;;
    *)
      echo "Usage: god {start|stop|restart|status}"
      exit 1
  ;;
esac

exit $RETVAL

#!/bin/bash
### BEGIN INIT INFO
# Provides:          god
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Process monitoring with God
# Description:       God is an easy to configure, easy to extend monitoring framework written in Ruby.
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

CONF_DIR=/etc/god
GOD_BIN=god
RUBY_BIN="chruby-exec <%= @ruby_version %> --"
RETVAL=0

# Go no further if config directory is missing.
[ -d "$CONF_DIR" ] || exit 0

case "$1" in
    start)
      # Create pid directory
      $RUBY_BIN $GOD_BIN -c $CONF_DIR/master.conf
      RETVAL=$?
  ;;
    stop)
      $RUBY_BIN $GOD_BIN terminate
      RETVAL=$?
  ;;
    restart)
      $RUBY_BIN $GOD_BIN terminate
      $RUBY_BIN $GOD_BIN -c $CONF_DIR/master.conf
      RETVAL=$?
  ;;
    status)
      $RUBY_BIN $GOD_BIN status
      RETVAL=$?
  ;;
    *)
      echo "Usage: god {start|stop|restart|status}"
      exit 1
  ;;
esac

exit $RETVAL

Fix god's init script so that the service gets started at boot

See https://wiki.debian.org/LSBInitScripts


---
layout: default
title: Categories
---

Not just Macs

There are currently <%= @site.categories.count %> categories on the site.

<% @site.categories.keys.sort.each do |slug| %>

    <a href="/categories/<%= slug %>/" title="All the <%= @site.categories[slug].name %> interviews."><%= @site.categories[slug].name %>

    <%= @site.categories[slug].posts.count %> interview<% if @site.categories[slug].posts.count != 1 %>s<% end %>.

<% end %>

---
layout: default
title: Categories
---

Not just Macs

There are currently <%= @site.categories.count %> categories on the site.

<% @site.categories.keys.map { |key| key[0] }.uniq.sort.each do |letter| %>

<%= letter.upcase %>

    <% @site.categories.keys.select { |key| key[0] == letter }.sort.each do |slug| %>

        <a href="/categories/<%= slug %>/" title="All the <%= @site.categories[slug].name %> interviews."><%= @site.categories[slug].name %>

        <%= @site.categories[slug].posts.count %> interview<% if @site.categories[slug].posts.count != 1 %>s<% end %>.

    <% end %>

<% end %>

Break categories out by letter

Break categories out by letter


<% if @order.line_items.present? %>
  $("#advanced_cart").html("<%= escape_javascript(render('advanced_cart')) %>");
<% else %>
  window.location.reload(true);
<% end %>

Refresh page if cart is empty

Refresh page if cart is empty


Browse users tattoos

      <% @users.each do |user| %>

<%= user.user_name %>

            <% user.tattoos.each do |tat| %>

<a href=<%= tat.image %>>
                <img data-caption=<%= tat.name %>
                src=<%= tat.image(:thumb) %>
                class="th radius">

            <% end %>

      <% end %>

Add block grid of varying sizes for better layout.


<% @title = "client-side-validations test" %>

<%= test_base %>
<%= script_tag 'validateElement' %>
<%= test :validators, :form_builders, :callbacks %>

<%= @title %>

  jQuery version:
  <%= jquery_link '1.4.3' %> •
  <%= jquery_link '1.4.4' %> •
  <%= jquery_link '1.5' %> •
  <%= jquery_link 'edge' if File.exist?(settings.root + '/public/vendor/jquery.js') %>

<% @title = "client-side-validations test" %>

<%= test_base %>
<%= script_tag 'validateElement' %>
<%= test :validators, :form_builders, :callbacks %>

<%= @title %>

  jQuery version:
  <% %w{1.4.1 1.4.2 1.4.3 1.4.4 1.5 1.5.1}.each do |version| %>
    <%= jquery_link version %> •
  <% end %>
  <%= jquery_link 'edge' if File.exist?(settings.root + '/public/vendor/jquery.js') %>

Test against more versions of jQuery

Test against more versions of jQuery


Log In

	 <%= form_for(:session, url: sessions_path) do |f| %>

      <%= f.label :username %>
      <%= f.email_field :username, class: '' %>

      <%= f.label :password %>
      <%= f.password_field :password, class: '' %>

      <%= f.submit "Log in", class: "btn btn-primary" %>
    <% end %>

Log In

	 <%= form_for(:session, url: sessions_path) do |f| %>

      <%= f.label :username %>
      <%= f.text_field :username, class: '' %>

      <%= f.label :password %>
      <%= f.password_field :password, class: '' %>

      <%= f.submit "Log in", class: "btn btn-primary" %>
    <% end %>

Change email field to text field

Change email field to text field


Login

    <%= form_tag("/login", method: 'post', id: 'login-form') do %>

          Username
          <%= text_field_tag(:username) %>

          Password
          <%= password_field_tag(:password) %>

            <%= submit_tag('Login') %>

    <% end %>
    <%= link_to 'Show', @user %> |
    <%= link_to 'Back', users_path %>

Login

    <%= form_tag("/login", method: 'post', id: 'login-form') do %>

          Username
          <%= text_field_tag(:username, '', class: 'form-control') %>

          Password
          <%= password_field_tag(:password, '', class: 'form-control') %>

            <%= submit_tag('Login', class: 'btn btn-success') %>

    <% end %>
    <%= link_to 'Back', root_path %>

Use nice form styles on the login form

Use nice form styles on the login form


<?xml version="1.0" encoding="UTF-8"?>
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
      <loc><%= root_url %></loc>
      <lastmod><%= @articles.first.updated_at.strftime("%Y-%m-%d") %></lastmod>
      <changefreq>monthly</changefreq>
      <priority>1</priority>
    </url>

    <% @articles.each do |article| %>
      <url>
        <loc><%= article_url(article.slug) %></loc>
        <lastmod><%= article.updated_at.strftime("%Y-%m-%d") %></lastmod>
        <changefreq>monthly</changefreq>
        <priority>1</priority>
      </url>
     <% end %>
  </urlset>

<?xml version="1.0" encoding="UTF-8"?>
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
      <loc><%= root_url %></loc>
      <lastmod><%= @articles.first.created_at.strftime("%Y-%m-%d") %></lastmod>
      <changefreq>monthly</changefreq>
      <priority>1</priority>
    </url>

    <% @articles.each do |article| %>
      <url>
        <loc><%= article_url(article.slug) %></loc>
        <lastmod><%= article.created_at.strftime("%Y-%m-%d") %></lastmod>
        <changefreq>monthly</changefreq>
        <priority>1</priority>
      </url>
     <% end %>
  </urlset>

Use created_at instead of update_at.

fix: Use created_at instead of update_at.


<fieldset>
  <%= form.label :organisation_ids, 'Organisations' %>
  <%= form.select :organisation_ids, options_from_collection_for_select(Organisation.all, 'id', 'name', document.organisation_ids), {}, multiple: true, class: 'chzn-select', data: { placeholder: "Choose organisations..." } %>
</fieldset>

<fieldset>
  <%= form.label :organisation_ids, 'Producing Organisations' %>
  <%= form.select :organisation_ids, options_from_collection_for_select(Organisation.all, 'id', 'name', document.organisation_ids), {}, multiple: true, class: 'chzn-select', data: { placeholder: "Choose organisations which produced this document..." } %>
</fieldset>

Clarify the meaning of this field in the form.


server {
  server_name deploy.*;
  listen 80;
  return 301 https://$host/;
}

server {
  listen 443 ssl;
  server_name deploy.*;

  ssl_certificate     /etc/nginx/ssl/jenkins.crt;
  ssl_certificate_key /etc/nginx/ssl/jenkins.key;

  location / {
    proxy_pass http://localhost:8080;

    location /api/json {
      proxy_pass http://localhost:8080;

      add_header "Access-Control-Allow-Origin" "*";
      add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS";
      add_header "Access-Control-Allow-Headers" "origin, authorization, cookie, accept";
      add_header "Access-Control-Allow-Credentials" "true";
      add_header "Strict-Transport-Security" "max-age=31536000";
    }

  }
}

server {
  server_name deploy.*;
  listen 80;
  return 301 https://$host/;
}

server {
  listen 443 ssl;
  server_name deploy.*;

  ssl_certificate     /etc/nginx/ssl/jenkins.crt;
  ssl_certificate_key /etc/nginx/ssl/jenkins.key;

  location / {
    proxy_pass http://localhost:8080;

    add_header "Strict-Transport-Security" "max-age=31536000";

    location /api/json {
      proxy_pass http://localhost:8080;

      add_header "Access-Control-Allow-Origin" "*";
      add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS";
      add_header "Access-Control-Allow-Headers" "origin, authorization, cookie, accept";
      add_header "Access-Control-Allow-Credentials" "true";
    }

  }
}

Move HSTS header for deploy Jenkins

Move HSTS header for deploy Jenkins

This HSTS header is being set in the /api/json location block,
which is great for API users but not for real human beings.


Repositories Pick a repository to upload files to

<% repositories.each do |repo| %>

<a href="/<%= repo.owner.login %>/<%= repo.name %>"><%= repo.name %>

<% end %>

Repositories Pick a repository to upload files to

<% repositories.each do |repo| %>

<a href="/<%= repo.owner.login %>/<%= repo.name %>"><%= repo.owner.login %>/<%= repo.name %>

<% end %>

Include repo owner in repository list

Include repo owner in repository list

Fixes #4


<fieldset id="calculator_fields" data-hook class="no-border-bottom">
  <legend align="center"><%= Spree.t(:calculator) %></legend>

      <%= f.label(:calculator_type, Spree.t(:calculator), :for => 'calc_type') %>
      <%= f.select(:calculator_type, @calculators.map { |c| [c.description, c.name] }, {}, {:id => 'calc_type', :class => 'select2 fullwidth'}) %>

    <% if !@object.new_record? %>

          <%= f.fields_for :calculator do |calculator_form| %>
            <%= preference_fields(@object.calculator, calculator_form) %>
          <% end %>

        <% if @object.calculator.respond_to?(:preferences) %>
          <%= Spree.t(:calculator_settings_warning) %>
        <% end %>

    <% end %>

</fieldset>

Add partial needed in payment and shipping methods


Welcome to Pizza Shop!

	<% @products.each do |p| %>

		<%= p.title %>

			<img src="<%= p.path_to_image %>" />

			<%= p.description %>

			Price: <%= p.price %> rub

			Size: <%= p.size %> cm

	<% end %>

<button class="btn btn-primary" onclick="something()">Click me!</button>

Welcome to Pizza Shop!

	<% @products.each do |p| %>

		<%= p.title %>

			<img src="<%= p.path_to_image %>" />

			<%= p.description %>

			Price: <%= p.price %> rub

			Size: <%= p.size %> cm

				<button class="btn btn-sm btn-success">Add to cart</button>

	<% end %>

<button class="btn btn-primary" onclick="something()">Click me!</button>

Add button to each product

Add button to each product


Ruby on Rails Guides (<%= @edge ? @version[0, 7] : @version %>)

<% if @edge %>

  These are Edge Guides, based on the current <a href="https://github.com/rails/rails/tree/<%= @version %>">master branch.

  If you are looking for the ones for the stable version, please check
  http://guides.rubyonrails.org instead.

<% else %>

  These are the new guides for Rails 4.0 based on <a href="https://github.com/rails/rails/tree/<%= @version %>"><%= @version %>.
  These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together.

<% end %>

  The guides for Rails 3.2.x are available at http://guides.rubyonrails.org/v3.2.13/.

  The guides for Rails 2.3.x are available at http://guides.rubyonrails.org/v2.3.11/.

Ruby on Rails Guides (<%= @edge ? @version[0, 7] : @version %>)

<% if @edge %>

  These are Edge Guides, based on the current <a href="https://github.com/rails/rails/tree/<%= @version %>">master branch.

  If you are looking for the ones for the stable version, please check
  http://guides.rubyonrails.org instead.

<% else %>

  These are the new guides for Rails 4.0 based on <a href="https://github.com/rails/rails/tree/<%= @version %>"><%= @version %>.
  These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together.

<% end %>

  The guides for Rails 3.2.x are available at http://guides.rubyonrails.org/v3.2.14/.

  The guides for Rails 2.3.x are available at http://guides.rubyonrails.org/v2.3.11/.

Update Rails 3.2.x guide link

Update Rails 3.2.x guide link [ci skip]


<%= @project.title %>

<%= @project.description %>

Created by <%= link_to @project.user.username, user_path(@project.user) %>

Word Goal: <%= @project.word_goal %>

Current Words: <%= @project.words %>

Time Spent: <%= @project.hours %>

<%= link_to "View updates for this project", project_progress_updates_path(@project) %>

Add link to updates index from projects show


    <% @tattoos.each do |tat| %>

<a class="th" href=<%= tat.image.url %>> <img src=<%= tat.image.url(:small) %>>

<%= tat.why %>

Artist <%= tat.artist_id %>

Shop: <%= tat.shop_id %>

Date Received: <%= tat.when %>

Favorite it!

  <% end %>

    <% @tattoos.each do |tat| %>

<a class="th radius" href=<%= tat.image.url %>> <img src=<%= tat.image.url(:small) %>>

<%= tat.why %>

Artist <%= tat.artist_id %>

Shop: <%= tat.shop_id %>

Date Received: <%= tat.when %>

Favorite it!

  <% end %>

Add rounded buttons and radiused thumbs to tat details.


Markup Editor v<%= app_version %>

Markup:

markdown

textile

rdoc

Refresh:

300ms

600ms

1000ms

<textarea id="content"><%= @content %></textarea>

Markup Editor v<%= app_version %>

Markup

markdown

textile

rdoc

Refresh

300ms

600ms

1000ms

<textarea id="content"><%= @content %></textarea>

Update header text for switches

Update header text for switches


<!DOCTYPE html>

  <link rel="stylesheet" href="/css/normalize.css">

	<link rel="stylesheet" href="/css/skeleton.css">
  <link rel="stylesheet" href="/css/application.css">

  <title>Weeker</title>

<% if session[:user_id] %>

Welcome: <%= current_user.email %> |

<form method="post" action="/sessions/<%= current_user.id %>" class="logout">
  <input type="hidden" name="_method" value="DELETE">
  <input type="submit" value="logout" class="delete_button"></form>

  <% else %>

Login

  <% end %>

Weeker

    <%= yield %>

<!DOCTYPE html>

  <link rel="stylesheet" href="/css/normalize.css">

	<link rel="stylesheet" href="/css/skeleton.css">
  <link rel="stylesheet" href="/css/application.css">

  <title>Weeker</title>

<% if session[:user_id] %>

Welcome, <%= current_user.first_name %> |

<form method="post" action="/sessions/<%= current_user.id %>" class="logout">
  <input type="hidden" name="_method" value="DELETE">
  <input type="submit" value="logout" class="delete_button"></form>

  <% else %>

Login

  <% end %>

Weeker

    <%= yield %>

Change user greeting from email to first name


<!DOCTYPE html>

  <link rel="stylesheet" href="/css/normalize.css">

  <link rel="stylesheet" href="/css/application.css">

  <title></title>

    Login

  <%= yield %>

<!DOCTYPE html>

  <link rel="stylesheet" href="/css/normalize.css">

  <link rel="stylesheet" href="/css/application.css">

  <title></title>

    <% if current_user %>
    <a href="/user/<%= current_user.id%>/"><%= current_user.name %> | Logout
    <% else %>
    Login

    <% end %>

  <%= yield %>

Check to see user is logged in or not

Check to see user is logged in or not


<% content_for :title do %>
  One billion time calculator
<% end %>

<%= form_tag(main_index_path, method: "post") do %>
  <%= label_tag(:id, "Billion second starting point") %>
  <%= date_field_tag(:id, '', required: true ) %>
  <%= submit_tag("Find out!") %>
<% end %>

Index page needs a title and a home link


<% provide(:title, @user.name) %>

<%= @user.name %>

Add a sidebar to the user show view

Add a sidebar to the user show view


stub-zone:
  name: "<%= @name %>"
<% if @address -%>
<% Array(@address).each do |addr| -%>
<% if is_domain_name(addr) -%>
  stub-host: <%= addr %>
<% else -%>
  stub-addr: <%= addr %>
<% end -%>
<% end -%>
<% end -%>

stub-zone:
  name: "<%= @name %>"
<% if @address -%>
<% Array(@address).each do |addr| -%>
<% if scope.function_is_domain_name([addr]) -%>
  stub-host: <%= addr %>
<% else -%>
  stub-addr: <%= addr %>
<% end -%>
<% end -%>
<% end -%>

Call the scope function in ERB

Call the scope function in ERB

Without this change, the function does not parse correctly.


//IMPORTANT: please use only double quotes to delimit strings
(function(){
      lib_url = "<%= FactlinkUI::Application.config.static_url %>" + "lib";
      window.FactlinkConfig = {
        modus: "default",
        api: "<%= FactlinkUI::Application.config.api_url %>",
        lib: lib_url,
          getFacts: true
      };

      //load the library
      var script = document.createElement("script");
      var head = document.getElementsByTagName("head")[0];
      script.type = "text/javascript";
      script.async = false;
      script.src = lib_url + "/src/js/load_library.js?" + (new Date()).getTime();
      head.insertBefore(script,head.firstChild);
})();

//IMPORTANT: please use only double quotes to delimit strings
(function(){
  var xhr=new XMLHttpRequest();
  xhr.open("get","<%= abs_url '/site/count/' %>" + "?url="+escape(window.location),true);
  xhr.onload=function(){
    var resp=JSON.parse(this.responseText);
    if(resp.blacklisted!==true){
      lib_url = "<%= FactlinkUI::Application.config.static_url %>" + "lib";
      window.FactlinkConfig = {
        modus: "default",
        api: "<%= FactlinkUI::Application.config.api_url %>",
        lib: lib_url,
          getFacts: true
      };

      //load the library
      var script = document.createElement("script");
      var head = document.getElementsByTagName("head")[0];
      script.type = "text/javascript";
      script.async = false;
      script.src = lib_url + "/src/js/load_library.js?" + (new Date()).getTime();
      head.insertBefore(script,head.firstChild);
    } else {
      error();
    }
  };
  xhr.onerror=function(){
    error();
  };
  xhr.send(null);
  function error(){
    alert("The Factlink bookmarklet does not work on this page.");
  }
})();

Revert "removed blacklistcheck from bookmarklet"

This reverts commit f48692a5a62f7a1e09b4e1386d7fff6b7cc11107.


<!doctype html>

    <meta charset="UTF-8">
    <title>Obversa</title>
    <link rel="stylesheet" href="/styles/obversa.css" %>

Obversa

    <%= yield %>

<!doctype html>

    <meta charset="utf-8">
    <title>Obversa</title>
    <link rel="stylesheet" href="/styles/obversa.css">

Obversa

    <%= yield %>

Fix error in stylesheet declaration

Fix error in stylesheet declaration


<%= render layout: "koi/shared/inline_lightbox", locals: { title: "#{resource.new_record? ? "Add" : "Edit"} Setting", no_hide: true } do -%>

  <%= simple_form_for resource, remote: true, html: { multipart: true, class: 'form-vertical' } do |f| %>

      <input type="hidden" name="prefix" value="<%= params[:prefix] %>">

        <%= render "form_fields", { f: f, object: resource } %>

      <%= content_tag :button, "Save", type: "submit", name: "commit", value: "Save" , class: "button__confirm" %>
      <%= link_to "Delete", resource, data: { confirm: "Are you sure?" }, method: :delete, remote: true, class: "button__cancel" if current_admin.god? unless resource.new_record? %>

  <% end %>

<%- end -%>

<%= render layout: "koi/shared/inline_lightbox", locals: { title: "#{resource.new_record? ? "Add" : "Edit"} Setting", no_hide: true } do -%>

  <%= simple_form_for resource, authenticity_token: true, remote: true, html: { multipart: true, class: 'form-vertical' } do |f| %>

      <input type="hidden" name="prefix" value="<%= params[:prefix] %>">

        <%= render "form_fields", { f: f, object: resource } %>

      <%= content_tag :button, "Save", type: "submit", name: "commit", value: "Save" , class: "button__confirm" %>
      <%= link_to "Delete", resource, data: { confirm: "Are you sure?" }, method: :delete, remote: true, class: "button__cancel" if current_admin.god? unless resource.new_record? %>

  <% end %>

<%- end -%>

Fix CSRF Authentication error when adding image to the setting


<% if request.fullpath.match(/^\/admin\/users/) %>
  <% content_for :sub_menu do %>
    <ul id="sub_nav" class="inline-menu">
      <%= tab :users %>
      <%= tab :gift_cards, :match_path => '/users/gift_cards' %>
    </ul>
  <% end %>
<% end %>

<% if request.fullpath.match(/^\/admin\/users/) %>
  <% content_for :sub_menu do %>
    <ul id="sub_nav" class="inline-menu">
      <%= tab :users %>
      <% if can?(:display, Spree::VirtualGiftCard) %>
        <%= tab :gift_cards, :match_path => '/users/gift_cards' %>
      <% end %>
    </ul>
  <% end %>
<% end %>

Hide gift cards action if a user cannot display them.


<%
content_for :title do 'New Object' end
%>

New preset

<%= render 'form' %>

<%= link_to 'Back', presets_path %>

<%
content_for :title do 'New Object' end
%>

New object

<%= render 'form' %>

<%= link_to 'Back', objects_path %>

Fix what looks to be a copy/paste error

Fix what looks to be a copy/paste error


  <% controller.redirect_to '/members/sign_in' unless member_signed_in?  %>

Posts

  <%= link_to 'New Post', new_post_path %>

  <% @posts.each do |post| %>

<%= link_to post.title, post %>

Post by <%= post.member.firstname %> <%= post.member.lastname %>

<%= post.content %>

       <% post.comments.each do |comment|  %>

Comment By: <%= comment.member.username %>

<%= comment.content %>

         <% if current_member.id == comment.member.id %>
           <%= link_to "Delete Comment", [comment.post, comment], method: :delete %> |
           <%= link_to "Edit Comment", edit_post_comment_path(comment.post, comment) %>
         <% end %>
       <% end %>

       <%= form_for([post, post.comments.build]) do |f| %>
         <%= f.text_area :content %>
         <%= f.submit %>
       <% end %>

  <% end %>

  <% controller.redirect_to '/members/sign_in' unless member_signed_in?  %>

Posts

  <%= link_to 'New Post', new_post_path %>

  <% @posts.each do |post| %>

<%= link_to post.title, post %>

Post by <%= post.member.firstname %> <%= post.member.lastname %>

<%= post.content %>

  <% end %>

Remove comments from index page

Remove comments from index page


require 'rubygems'
require 'merb-core'

Merb::Config.setup(:merb_root   => File.expand_path(File.dirname(__FILE__)),
                   :environment => ENV['RACK_ENV'], :init_file => File.dirname(__FILE__) / "config/init.rb")
Merb.environment = "production" #Merb::Config[:environment]
Merb.root = Merb::Config[:merb_root]
Merb::BootLoader.run

# Uncomment if your app is mounted at a suburi
#if prefix = ::Merb::Config[:path_prefix]
#  use Merb::Rack::PathPrefix, prefix
#end

Chef::Config.from_file(File.join("/etc", "chef", "server.rb"))

run Merb::Rack::Application.new

require 'rubygems'
require 'merb-core'
require 'chef'

Chef::Config.from_file(File.join("/etc", "chef", "server.rb"))

Merb::Config.setup(:merb_root   => File.expand_path(File.dirname(__FILE__)),
                   :environment => ENV['RACK_ENV'], :init_file => File.dirname(__FILE__) / "config/init.rb")
Merb.environment = "production" #Merb::Config[:environment]
Merb.root = Merb::Config[:merb_root]
Merb::BootLoader.run

# Uncomment if your app is mounted at a suburi
#if prefix = ::Merb::Config[:path_prefix]
#  use Merb::Rack::PathPrefix, prefix
#end

run Merb::Rack::Application.new

Load server.rb prior to attempting anything that may rely on these settings.


<% if @data or @hosts -%>
<Plugin snmp>
<% @data.sort_by {|k,v| k}.each do |key,val| -%>
  <Data "<%=key %>">
    Type "<%= val['Type'] %>"
    Table <%= val['Table'] %>
    Instance "<%= val['Instance'] %>"
<% if val['InstancePrefix'] -%>
    InstancePrefix "<%= val['InstancePrefix'] %>"
<% end -%>
    Values <% Array(val['Values']).sort.each do |x| -%>"<%= x %>" <% end %>
<% if val['Scale'] -%>
    Scale <%= val['Scale'] %>
<% end -%>
<% if val['Shitf'] -%>
    Shitf <%= val['Shitf'] %>
<% end -%>
  </Data>
<% end -%>
<% @hosts.sort_by {|k,v| k}.each do |key,val| -%>
  <Host "<%=key %>">
    Address "<%= val['Address'] %>"
    Version <%= val['Version'] %>
    Community "<%= val['Community'] %>"
    Collect <% Array(val['Collect']).sort.each do |x| -%>"<%= x -%>" <% end %>
    Interval <%= val['Interval'] %>
  </Host>
<% end -%>
</Plugin>
<% end -%>

<% if @data or @hosts -%>
<Plugin snmp>
<% @data.sort_by {|k,v| k}.each do |key,val| -%>
  <Data "<%=key %>">
    Type "<%= val['Type'] %>"
    Table <%= val['Table'] %>
    Instance "<%= val['Instance'] %>"
<% if val['InstancePrefix'] -%>
    InstancePrefix "<%= val['InstancePrefix'] %>"
<% end -%>
    Values <% Array(val['Values']).each do |x| -%>"<%= x %>" <% end %>
<% if val['Scale'] -%>
    Scale <%= val['Scale'] %>
<% end -%>
<% if val['Shitf'] -%>
    Shitf <%= val['Shitf'] %>
<% end -%>
  </Data>
<% end -%>
<% @hosts.sort_by {|k,v| k}.each do |key,val| -%>
  <Host "<%=key %>">
    Address "<%= val['Address'] %>"
    Version <%= val['Version'] %>
    Community "<%= val['Community'] %>"
    Collect <% Array(val['Collect']).sort.each do |x| -%>"<%= x -%>" <% end %>
    Interval <%= val['Interval'] %>
  </Host>
<% end -%>
</Plugin>
<% end -%>

Remove sorting of Values option in data block on snmp plugin


<% @page_title = "Article #{@article.title}" %>

<%= tabnav :article_categories %>

<%= @article.title %>

<%= @article.body %>

(last update: <%=h @article.updated_at.to_formatted_s(:short) %>

<% @page_title = "Article #{@article.title}" %>

<%= tabnav :article_categories %>

<%= @article.title.html_safe %>

<%= @article.body.html_safe %>

(last update: <%=h @article.updated_at.to_formatted_s(:short) %>

Make article content HTML safe

Make article content HTML safe


# vim:ft=nginx

server {
  listen 30666;
  server_name *.dev;

  if ($host ~* \.*([^.]+)\.dev$) {
    set $app_name $1;
  }

  if ($host ~* \.*([^.]+\.dev)$) {
    set $root_host $1;
  }

  root <%= APPS_DIR %>/$app_name/public;

  try_files /system/maintenance.html $uri/index.html $uri.html $uri @app;

  # charset koi8-r;

  # access_log  logs/$appname.access.log  main;

  location @app {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_pass http://unix:<%= SOCKETS_DIR %>/$root_host.sock;
    error_page 502 = @spawner;
  }

  error_page 404 /404.html;

  location @spawner {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_pass http://unix:<%= SERVER_SOCKET_PATH %>;
  }
}

# vim:ft=nginx

server {
  listen 30666;
  server_name *.dev;

  if ($host ~* \.*([^.]+)\.dev$) {
    set $app_name $1;
  }

  root <%= APPS_DIR %>/$app_name/public;

  try_files /system/maintenance.html $uri/index.html $uri.html $uri @app;

  # charset koi8-r;

  # access_log  logs/$appname.access.log  main;

  location @app {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_pass http://unix:<%= SOCKETS_DIR %>/$host.sock;
    error_page 502 = @spawner;
  }

  location @spawner {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_pass http://unix:<%= SERVER_SOCKET_PATH %>;
  }

  error_page 404 /404.html;
}

Use proper socket path in proxy_pass

Use proper socket path in proxy_pass


Description

<%= @group.description %>

Leader(s)

  <% @group.users.leaders.each do |user| %>
      <% if user.photo %>
        <%= image_tag(user.photo(:thumb)) %>
      <% end %>
    	<%= link_to user.decorate.full_name, user %>

<%= user.phone %>

  <% end %>

Fix styling for leaders on group show page


        © <%= blog_author %> 2014-<%= Time.now.utc.strftime("%Y") %> | Site Status & Uptime

        <a href="https://twitter.com/<%= twitter_handle %>" class="twitter-follow-button" data-show-count="false">Follow @<%= twitter_handle %>

        <div class="fb-like" data-href="<%= URI.join(site_root_uri, current_page.url) %>" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false">

        <g:plusone></g:plusone>

        © <%= blog_author %> 2014-<%= Time.now.utc.strftime("%Y") %> | Site Status & Uptime |

        <a href="https://twitter.com/<%= twitter_handle %>" class="twitter-follow-button" data-show-count="false">Follow @<%= twitter_handle %>

        <div class="fb-like" data-href="<%= URI.join(site_root_uri, current_page.url) %>" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false">

        <g:plusone></g:plusone>

Add GitHub badge to footer

Add GitHub badge to footer

Add a link to the GitHub repo to the site footer.


# DO NOT EDIT - This file is being maintained by Chef

global:
  scrape_interval: 15s
  evaluation_interval: 15s

alerting:
  alertmanagers:
    - path_prefix: /alertmanager
      static_configs:
        - targets:
            - localhost:9093

rule_files:
  - /etc/prometheus/*_rules.yml

scrape_configs:
  - job_name: prometheus
    scrape_interval: 5s
    scrape_timeout: 5s
    metrics_path: /prometheus/metrics
    static_configs:
      - targets:
          - localhost:9090
  - job_name: alertmanager
    metrics_path: /alertmanager/metrics
    static_configs:
      - targets:
          - localhost:9093
<% @jobs.sort.each do |name, targets| -%>
  - job_name: <%= name %>
    static_configs:
<% targets.each do |target| -%>
      - targets:
          - "<%= target[:address] %>"
        labels:
          instance: <%= target[:instance] %>
<% end -%>
    metric_relabel_configs:
<% targets.each do |target| -%>
<% target[:metric_relabel].each do |relabel| -%>
      - source_labels: [instance,<%= relabel[:source_labels] %>]
        regex: "<%= target[:instance] %>;<%= relabel[:regex] %>"
        action: <%= relabel[:action] %>
<% end -%>
<% end -%>
<% end -%>

# remote_write:
#   - url: "http://localhost:9201/write"

# DO NOT EDIT - This file is being maintained by Chef

global:
  scrape_interval: 15s
  evaluation_interval: 15s

alerting:
  alertmanagers:
    - path_prefix: /alertmanager
      static_configs:
        - targets:
            - localhost:9093

rule_files:
  - /etc/prometheus/*_rules.yml

scrape_configs:
  - job_name: prometheus
    scrape_interval: 5s
    scrape_timeout: 5s
    metrics_path: /prometheus/metrics
    static_configs:
      - targets:
          - localhost:9090
  - job_name: alertmanager
    metrics_path: /alertmanager/metrics
    static_configs:
      - targets:
          - localhost:9093
<% @jobs.sort.each do |name, targets| -%>
  - job_name: <%= name %>
    static_configs:
<% targets.each do |target| -%>
      - targets:
          - "<%= target[:address] %>"
        labels:
          instance: <%= target[:instance] %>
<% end -%>
    metric_relabel_configs:
<% targets.each do |target| -%>
<% target[:metric_relabel].each do |relabel| -%>
      - source_labels: [instance,<%= relabel[:source_labels] %>]
        regex: "<%= target[:instance] %>;<%= relabel[:regex] %>"
        action: <%= relabel[:action] %>
<% end -%>
<% end -%>
<% end -%>

remote_write:
  - url: "http://localhost:9201/write"

Enable remote write to promscale

Enable remote write to promscale


<%= render partial: "./layouts/partials/hero-home", locals: {
    button: t('home.hero.button'),
    hero_stat_percentage: @pa_coverage_percentage,
    hero_stat_text: t('home.hero.stat-text')
  }
%>

<%= render "partials/search/protected-areas", locals: { config: @config_search_areas } %>

<%= @pas_title %>

  <%= render partial: "partials/cards/circles", locals: { cards: @pas_levels } %>

  <%= render partial: "partials/cards/squares", locals: { cards: pas_categories } %>

  <%= render partial: "partials/maps/main" %>

<%= render "partials/carousels/themes" %>

<%= render "partials/ctas/api" %>

  <%= render "partials/cards/resources" %>

  <%= render "partials/cards/articles" %>

<%= render "partials/ctas/live-report" %>

<%= render partial: "./layouts/partials/hero-home", locals: {
    button: t('home.hero.button'),
    hero_stat_percentage: @pa_coverage_percentage,
    hero_stat_text: t('home.hero.stat-text')
  }
%>

<%= render partial: "partials/search/protected-areas", locals: { config: @config_search_areas } %>

<%= @pas_title %>

  <%= render partial: "partials/cards/circles", locals: { cards: @pas_levels } %>

  <%= render partial: "partials/cards/squares", locals: { cards: pas_categories } %>

  <%= render partial: "partials/maps/main" %>

<%= render "partials/carousels/themes" %>

<%= render "partials/ctas/api" %>

  <%= render "partials/cards/resources" %>

  <%= render "partials/cards/articles" %>

<%= render "partials/ctas/live-report" %>

Make sure partial is called correctly so locales get passed to partial


<% if @link.user == current_user %>

    <%= link_to 'Edit', edit_link_path(@link), class: 'btn btn-primary' %>
    <%= link_to 'Delete', link_path(@link), method: 'delete', data: { confirm: 'Are you sure you want to destroy this link? This cannot be undone.' }, class: 'btn btn-danger' %>

<% end %>

  <%= link_to @link.display_name, @link.url %>

  Submitted by <%= link_to @link.user.name, @link.user %>

  <%= @link.summary %>

  <%= link_to 'All Links', links_path, class: 'btn btn-primary' %>
  <% if @link.user == current_user %>
    <%= link_to 'Edit', edit_link_path(@link), class: 'btn' %>
    <%= link_to 'Delete', link_path(@link), method: 'delete', data: { confirm: 'Are you sure you want to destroy this link? This cannot be undone.' }, class: 'btn btn-danger' %>
  <% end %>

  <%= link_to @link.display_name, @link.url %>

  Submitted by <%= link_to @link.user.name, @link.user %>

  <%= @link.summary %>

Add button to go back to all links

Add button to go back to all links


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <title><%= page_title %></title>

  <%= stylesheet_link_tag 'admin/reset', :media => 'screen' %>
  <%= stylesheet_link_tag 'admin/screen', :media => 'screen' %>
  <%= yield :stylesheet -%>

  <%= javascript_include_tag 'admin/application' %>
  <%= yield :javascript -%>

        <%= header %>

        <%= login_info %>

        <%= display_flash_message %>
        <%= yield %>

        <%= yield :sidebar %>

      <%= typus_block :location => 'shared', :partial => 'footer' %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <title><%= page_title %></title>

  <%= stylesheet_link_tag 'admin/reset', :media => 'screen' %>
  <%= stylesheet_link_tag 'admin/screen', :media => 'screen' %>
  <%= yield :stylesheets -%>

  <%= javascript_include_tag 'admin/application' %>
  <%= yield :javascripts -%>

        <%= header %>

        <%= login_info %>

        <%= display_flash_message %>
        <%= yield %>

        <%= yield :sidebar %>

      <%= typus_block :location => 'shared', :partial => 'footer' %>

Use plural on head blocks.

Use plural on head blocks.


<!DOCTYPE html>

    <title>Dobro</title>

Dobro

Sections

          <% Dobro.resources.each do |resource| %>

<%= resource.to_s.titleize %>

          <% end %>

<%= plural_class.titleize %>

<%= link_to "New #{singular_class}", [:new, singular_reference.to_sym] %>

          <% records.each do |record| %>

<%= link_to record.identifier, record %>

          <% end %>

          <%= yield %>

Dobro

<!DOCTYPE html>

    <title>Dobro</title>
    <%= stylesheet_link_tag :dobro %>
    <%= csrf_meta_tag %>

Dobro

Sections

          <% Dobro.resources.each do |resource| %>

<%= resource.to_s.titleize %>

          <% end %>

<%= plural_class.titleize %>

<%= link_to "New #{singular_class}", [:new, singular_reference.to_sym] %>

          <% records.each do |record| %>

<%= link_to record.identifier, record %>

          <% end %>

          <%= yield %>

Dobro

Make sure CSRF and stylesheet are part of the layout.


    <% items.each do |item| %>

          <%= link_to item['url'] do %>
            <%= image_tag(item['image'], alt: '') %>
            <%= item['text'] %>
          <% end %>

<%= item['content'] %>

    <% end %>

Add promo partial to repo

Add promo partial to repo


New article

<%= form_for :article do |f| %>

		<%= f.label :title %>

		<%= f.text_field :title %>

		<%= f.label :text %>

		<%= f.text_area :text %>

		<%= f.submit %>

<% end %>

New article

<%= form_for :article, url: '/articles' do |f| %>

		<%= f.label :title %>

		<%= f.text_field :title %>

		<%= f.label :text %>

		<%= f.text_area :text %>

		<%= f.submit %>

<% end %>

Add url to POST articles

Add url to POST articles


<tr data-link="<%= course_slug_path(course.slug) %>" class="<%= user ? date_highlight_class(course) : '' %>" role="link">
  <td class="<%= user ? 'u' : '' %>title title">
    <%= course.title %>

    <%= course.recent_edit_count %>

      <%= number_to_human course.word_count %>

    (<%= t("metrics.per_user", number: number_to_human(course.average_word_count)) %>)

    <%= number_to_human course.view_sum %>

      <%= course.user_count %>

    <% unless Features.disable_training? %>
      <%= t("users.training_complete_count", count: course.trained_count) %>
    <% end %>

<tr data-link="<%= course_slug_path(course.slug) %>" class="<%= user ? date_highlight_class(course) : '' %>" role="link">
  <td class="<%= user ? 'u' : '' %>title title">
    <%= course.title %>

    <%= course.recent_edit_count %>

      <%= number_to_human course.word_count %>

      <%= course.word_count %>

    (<%= t("metrics.per_user", number: number_to_human(course.average_word_count)) %>)

      <%= course.average_word_count %>

      <%= number_to_human course.view_sum %>

      <%= course.view_sum %>

      <%= course.user_count %>

    <% unless Features.disable_training? %>
      <%= t("users.training_complete_count", count: course.trained_count) %>
    <% end %>

Fix sorting in course rows

Fix sorting in course rows

We need the non-number_to_human versions for correct sorting.


<% events_columns = @events.in_groups(4, false) %>
<%= link_to new_event_instance_path do %>
  <button class="button-add">Add an event</button>
<% end %>

    <% events_columns[0].each do |event| %>

<%= link_to event.name, event %>

    <% end %>

    <% events_columns[1].each do |event| %>

<%= link_to event.name, event %>

    <% end %>

    <% events_columns[2].each do |event| %>

<%= link_to event.name, event %>

    <% end %>

    <% events_columns[3].each do |event| %>

<%= link_to event.name, event %>

    <% end %>

Fix HTML error with displaying columns on Events index page


<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title><%= content_for?(:title) ? yield(:title) : "Wine" %></title>

    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "vendor/modernizr" %>
    <%= csrf_meta_tags %>
    <link href='http://fonts.googleapis.com/css?family=Noto+Sans|Ubuntu' rel='stylesheet' type='text/css'>
  <%= favicon_link_tag 'favicon.ico' %>
  </head>
  <body>

    <%= render "layouts/topbar" %>

    <%= yield %>

    <%= javascript_include_tag "application" %>
  </body>
</html>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title><%= content_for?(:title) ? yield(:title) : "Wine" %></title>

    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "vendor/modernizr" %>
    <%= csrf_meta_tags %>
    <link href='http://fonts.googleapis.com/css?family=Noto+Sans|Ubuntu' rel='stylesheet' type='text/css'>
  <%= favicon_link_tag 'favicon.ico' %>
  </head>
  <body>

    <%= render "layouts/topbar" %>

    <div class="quiz-container">
      <%= yield %>
    </div>

    <%= javascript_include_tag "application" %>
  </body>
</html>

Add container to quiz so that header isn't cramped


<%= semantic_form_for @resource, :url => edition_path(@resource), :as => :edition, :html => { :id => 'edition-form' } do |f| %>
  <%= f.inputs do %>
    <%= render :partial => 'shared/title_etc', :locals => {:f => f} %>
    <%= render :partial => 'shared/video', :locals => {:f => f} %>

    <%= f.inputs "Caption file" do %>
      <% if @edition.caption_file %>

Current caption file

<%= link_to @edition.caption_file.name, @edition.caption_file.file_url %>

<%= label_tag do %>Remove caption file? <%= check_box_tag "edition[remove_caption_file]", "1" %><% end %>

Replace caption file

      <% end %>

<%= f.input :caption_file, :as => :file, :label => "Upload a new caption file" %>

    <% end %>

    <%= f.input :body, :as => :text, :input_html => { :class => 'col-md-7', :disabled => @resource.locked_for_edits? } %>
  <% end %>
<% end %>

<%= semantic_form_for @resource, :url => edition_path(@resource), :as => :edition, :html => { :id => 'edition-form' } do |f| %>
  <%= f.inputs do %>
    <%= render :partial => 'shared/title_etc', :locals => {:f => f} %>
    <%= render :partial => 'shared/video', :locals => {:f => f} %>

    <%= f.inputs "Caption file" do %>
      <% if @edition.caption_file %>

Current caption file

<%= link_to @edition.caption_file.name, @edition.caption_file.file_url %>

<%= label_tag do %>Remove caption file? <%= check_box_tag "edition[remove_caption_file]", "1" %><% end %>

Replace caption file

      <% end %>

<%= f.input :caption_file, :as => :file, :label => "Upload a new caption file" %>

    <% end %>

        <%= f.input :body, :as => :text, :input_html => { :disabled => @resource.locked_for_edits? } %>

  <% end %>
<% end %>

Change bootstrap grid classes for video form


# Integrations

{:notoc}

<%= tiles "integrations" %>

If you're looking for [Source Control integrations](/docs/integrations/source-control) for Pipelines, they are over in the [Pipelines](/docs/integrations/source-control) nav.

Add nav trail for Pipelines source control integrations


[Credentials]
aws_access_key_id = <%= node['boto']['aws_access_key_id'] %>
aws_secret_access_key = <%= node['boto']['aws_secret_access_key'] %>

[Boto]
debug = <%= node['boto']['debug'] %>
num_retries = <%= node['boto']['num_retries'] %>

ec2_region_name = <%= node['boto']['ec2']['region']['name'] %>
ec2_region_endpoint = <%= node['boto']['ec2']['region']['endpoint'] %>

#proxy = myproxy.com
#proxy_port = 8080
#proxy_user = foo
#proxy_pass = bar

Add trailing line break to template.

Add trailing line break to template.


name: universe
channels: !!python/tuple
- defaults
dependencies:
- conda-forge::hdf5=1.8.17=9
- conda-forge::jasper=1.900.1=3
- conda-forge::jpeg=9b=0
- conda-forge::libpng=1.6.28=0
- conda-forge::libtiff=4.0.6=7
- conda-forge::opencv=3.1.0=np111py35_1
- libgcc=5.2.0=0
- libgfortran=3.0.0=1
- mkl=2017.0.1=0
- numpy=1.11.3=py35_0
- openssl=1.0.2j=0
- pip=9.0.1=py35_1
- python=3.5.2=0
- readline=6.2=2
- scipy=0.18.1=np111py35_1
- setuptools=27.2.0=py35_0
- six=1.10.0=py35_0
- sqlite=3.13.0=0
- tk=8.5.18=0
- wheel=0.29.0=py35_0
- xz=5.2.2=1
- zlib=1.2.8=3
prefix: /home/vagrant/anaconda3/envs/universe

name: universe
channels: !!python/tuple
- defaults
dependencies:
- conda-forge::hdf5=1.8.17=9
- conda-forge::jasper=1.900.1=3
- conda-forge::jpeg=9b=0
- conda-forge::libpng=1.6.28=0
- conda-forge::libtiff=4.0.6=7
- conda-forge::opencv=3.1.0=np111py35_1
- libgcc=5.2.0=0
- libgfortran=3.0.0=1
- mkl=2017.0.1=0
- numpy=1.11.3=py35_0
- openssl=1.0.2j=0
- pip=9.0.1=py35_1
- python=3.5.2=0
- readline=6.2=2
- scipy=0.18.1=np111py35_1
- setuptools=27.2.0=py35_0
- six=1.10.0=py35_0
- sqlite=3.13.0=0
- tk=8.5.18=0
- wheel=0.29.0=py35_0
- xz=5.2.2=1
- zlib=1.2.8=3
prefix: <%= node['universe']['conda_prefix'] %>

Use attributes to refer to conda prefix

Use attributes to refer to conda prefix