{"type":"FeatureCollection","bbox":[<%= @left %>,<%= @bottom %>,<%= @right %>,<%= @top %>],"features":[
<%- @places.each_with_index do |node, index| -%>{"type":"Feature","geometry":{"coordinates":[<%= node.lon%>,<%= node.lat%>],"type":"Point"},"properties": {
        <%- nodes_to_render = node.tags.reverse_merge!('url' => node_path(node, :locale => I18n.locale),
                                                  'headline' => node.headline,
                                                  'address' => node.address,
                                                  'wheelchair' => node.wheelchair,
                                                  'osm_id' => node.osm_id,
                                                  'type' => node.type,
                                                  'category' => node.category.try(:identifier),
                                                  'icon' => node.icon,
                                                  'marker' => node.marker).reject{|k,v| v.blank?} %>
<%- count = 0 -%><%- nodes_to_render.each do |k,v| -%><%- count += 1 -%>"<%= k %>":"<%= v.to_s %>"<%= (nodes_to_render.size == count ? '' : ',') %><%- end -%>}}<%= (@places.size == index + 1) ? '' : ',' %><%- end -%>]}

{"type":"FeatureCollection","bbox":[<%= @left %>,<%= @bottom %>,<%= @right %>,<%= @top %>],"features":[
<%- @places.each_with_index do |node, index| -%>{"type":"Feature","geometry":{"coordinates":[<%= node.lon%>,<%= node.lat%>],"type":"Point"},"properties": {
        <%- nodes_to_render = node.tags.reverse_merge!('url' => node_path(node, :locale => I18n.locale),
                                                  'headline' => node.headline,
                                                  'address' => node.address,
                                                  'wheelchair' => node.wheelchair,
                                                  'osm_id' => node.osm_id,
                                                  'type' => node.type,
                                                  'category' => node.category.try(:identifier),
                                                  'icon' => image_path(node.icon),
                                                  'marker' => image_path(node.marker)).reject{|k,v| v.blank?} %>
<%- count = 0 -%><%- nodes_to_render.each do |k,v| -%><%- count += 1 -%>"<%= k %>":"<%= v.to_s %>"<%= (nodes_to_render.size == count ? '' : ',') %><%- end -%>}}<%= (@places.size == index + 1) ? '' : ',' %><%- end -%>]}

Use cachable image_path for marker images.


Search Resources

      <form class="main-search" id='shares_search_form' action='/shares/search' method='post'>

            <input type="text" class="form-control input-xlg" name="search" placeholder="Search for...">

            <button type="submit" class="btn btn-primary btn-xlg">Search</button>

      </form>

Create partial for search bar in index and results page'


<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 %>

<tr data-link="<%= course_slug_path(course.slug) %>" class="<%= user ? date_highlight_class(course) : '' %>" role="link" tabindex="0">
  <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 %>

Add tabindex to course rows

Add tabindex to course rows

This will further improve accessibility by letting the rows take focus when navigating by keyboard.


Log in

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

      <%= f.label :email %>
      <%= f.email_field :email, class: 'form-control' %>

      <%= f.label :password %>
      <%= f.password_field :password, autocomplete: 'off', class: 'form-control' %>

      <%= f.label :remember_me, class: "checkbox inline" do %>
        <%= f.check_box :remember_me %>
        Remember me
      <% end %>

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

    <%= link_to "Sign up now!", signup_path %>

    <%= link_to "Sign in with GitHub", "/auth/github", class: "btn btn-social btn-github" %>

Log in

    <%= link_to "Log in with GitHub", "/auth/github", class: "btn btn-default btn-primary btn-block" %>

- OR -

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

      <%= f.label :email %>
      <%= f.email_field :email, class: 'form-control' %>

      <%= f.label :password %>
      <%= f.password_field :password, autocomplete: 'off', class: 'form-control' %>

      <%= f.label :remember_me, class: "checkbox inline" do %>
        <%= f.check_box :remember_me %>
        Remember me
      <% end %>

      <%= f.hidden_field :provider, :value => "local" %>
      <%= f.submit "Log in using custom account", class: "btn btn-primary" %>
    <% end %>

    <%= link_to "No custom account? Sign up now!", signup_path %>

Make GitHub log in more prominent (list first)

Signed-off-by: David A. Wheeler <9ae72d22d8b894b865a7a496af4fab6320e6abb2@dwheeler.com>


<%= header "Alpha Taxons", breadcrumbs: ["Taxons"] do %>
  <%= link_to 'Add a taxon', new_taxon_path, class: 'btn btn-lg btn-default' %>
<% end %>

  Title
  Slug

<% @taxons.each do |taxon| %>

    <%= taxon['title'] %>
    <%= taxon['base_path'] %>
    <%= link_to 'View tagged', taxon_path(taxon['content_id']) %>
    <%= link_to 'Edit taxon', edit_taxon_path(taxon['content_id']) %>

<% end %>

<%= header "Alpha Taxons", breadcrumbs: ["Taxons"] do %>
  <%= link_to 'Add a taxon', new_taxon_path, class: 'btn btn-lg btn-default' %>
<% end %>

  Title
  Slug

<% @taxons.each do |taxon| %>

    <%= taxon['title'] %>
    <%= link_to taxon['base_path'], "#{Plek.new.find('www') + '/api/content' + taxon['base_path']}" %>
    <%= link_to 'View tagged', taxon_path(taxon['content_id']) %>
    <%= link_to 'Edit taxon', edit_taxon_path(taxon['content_id']) %>

<% end %>

Add a working hyperlink to the taxon index


<link rel="stylesheet" type="text/css" href="/style.css">
<link rel="stylesheet" type="text/css" href="/default.css">

  <% @content.each_with_index do |line, lineno| %>
  <% sha1 = abbrev(@blame[lineno][:final_commit_id]) %>
  <% orig_path = @blame[lineno][:orig_path] %>

    <%= lineno %>

      <a href="/blame/<%= sha1 %>-prev/<%= orig_path %>">
        <%= sha1 %>^

      <a href="/blame/<%= sha1 %>/<%= orig_path %>">
        <%= sha1 %>

    <%= line %>

  <% end %>

<link rel="stylesheet" type="text/css" href="/style.css">
<link rel="stylesheet" type="text/css" href="/default.css">

  <% @content.each_with_index do |line, lineno| %>
  <% sha1 = abbrev(@blame[lineno][:final_commit_id]) %>
  <% orig_path = @blame[lineno][:orig_path] %>

    <%= lineno + 1 %>

      <a href="/blame/<%= sha1 %>-prev/<%= orig_path %>">
        <%= sha1 %>^

      <a href="/blame/<%= sha1 %>/<%= orig_path %>">
        <%= sha1 %>

    <%= line %>

  <% end %>

Fix line numeration: should start with 1


Latest Posts:

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

		<%= row['Content'] %>

		Added at: <%= row['Creation_date'] %>

<% end %>

Latest Posts:

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

		<%= row['Content'] %>

		Added at: <%= row['Creation_date'] %>

		<a href="/post/<%=row['Id']%>">Comments

<% end %>

Add post link at 'comments' word

Add post link at 'comments' word


[jenkins]
user=<%= @jenkins_user %>
password=<%= @jenkins_api_token %>
url=<%= @jenkins_url %>

[job_builder]
ignore_cache=True

[jenkins]
user=<%= @jenkins_api_user %>
password=<%= @jenkins_api_token %>
url=<%= @jenkins_url %>

[job_builder]
ignore_cache=True

Update Jenkins Job Builder template

Update Jenkins Job Builder template

The template used the incorrect variable that was being set in a
different class. It should use the variable that gets passed into the
Govuk_jenkins::Job_builder class.


<% content_for :page_title do %>
  <%= "#{this_blog.blog_name} - #{t('.sign_in', :default => "Sign in")}" %>
<% end %>

<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
  <fieldset>

      <%= f.label :login %>

      <%= f.text_field :login, class: 'form-control', autofocus: true %>

      <%= f.label :password %>

      <%= f.password_field :password, class: 'form-control', autocomplete: 'off' %>

      <%= f.check_box :remember_me %> <%= f.label :remember_me %>

      <%= f.submit t('.sign_in'), class: 'btn btn-lg btn-success btn-block' %>

  </fieldset>
<% end %>

<% content_for :account_links do %>
  <%= render "devise/shared/links" %>
<% end %>

<% content_for :page_title do %>
  <%= "#{this_blog.blog_name} - #{t('.sign_in', :default => "Sign in")}" %>
<% end %>

<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
  <fieldset>

      <%= f.label :login %>

      <%= f.text_field :login, class: 'form-control', autofocus: true %>

      <%= f.label :password %>

      <%= f.password_field :password, class: 'form-control', autocomplete: 'off' %>

      <%= f.label :remember_me do%>
        <%= f.check_box :remember_me %>
        <%= User.human_attribute_name(:remember_me) %>
      <% end %>

      <%= f.submit t('.sign_in'), class: 'btn btn-lg btn-success btn-block' %>

  </fieldset>
<% end %>

<% content_for :account_links do %>
  <%= render "devise/shared/links" %>
<% end %>

Fix layout for log in form

Fix layout for log in form


<% if local_assigns[:applied_filters] %>

    <% local_assigns[:applied_filters].each do |applied_filter| %>

        <% applied_filter.each do |filter| %>

<%= filter[:preposition] %>

<%= filter[:text] %>

              <button type="button"
                class="facet-tag__remove"
                aria-label="Remove filter <%= filter[:text] %>"
                data-module="remove-filter-link"
                data-track-label="<%= filter[:data_track_label] %>"
                data-facet="<%= filter[:data_facet] %>"
                data-value="<%= filter[:data_value] %>"
                data-name="<%= filter[:data_name] %>">✕</button>

        <% end %>

    <% end %>

<% end %>

<% if local_assigns[:screen_reader_filter_description] %>

    <%= result_set_presenter.displayed_total %>
    <%= local_assigns[:screen_reader_filter_description] %>

<% end %>

<% if local_assigns[:screen_reader_filter_description] %>

    <%= result_set_presenter.displayed_total %>
    <%= local_assigns[:screen_reader_filter_description] %>

<% end %>

<% if local_assigns[:applied_filters] %>

    <% local_assigns[:applied_filters].each do |applied_filter| %>

        <% applied_filter.each do |filter| %>

<%= filter[:preposition] %>

<%= filter[:text] %>

              <button type="button"
                class="facet-tag__remove"
                aria-label="Remove filter <%= filter[:text] %>"
                data-module="remove-filter-link"
                data-track-label="<%= filter[:data_track_label] %>"
                data-facet="<%= filter[:data_facet] %>"
                data-value="<%= filter[:data_value] %>"
                data-name="<%= filter[:data_name] %>">✕</button>

        <% end %>

    <% end %>

<% end %>

Change order of results and filter info

Change order of results and filter info

Screen readers will now read out the number of
results, followed by the filters applied. This is
more sensible. https://trello.com/c/okfLseFa/
895-hidden-text-for-screen-readers-is-in-the-wrong-place


<!DOCTYPE html>

    <title>HousingDataServer</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all' %>
    <%= javascript_include_tag 'application' %>

<%= link_to "Home", root_path %>

    <%= yield %>

<!DOCTYPE html>

    <title>HousingDataServer</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all' %>
    <%= javascript_include_tag 'application' %>

<%= notice %>

<%= alert %>

HOME

<%= yield %>

Add blank navbar to rails app

Add blank navbar to rails app


<!DOCTYPE html>
<html>
  <head>
    <title>Twist</title>
    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "application" %>
    <%= csrf_meta_tags %>
  </head>
  <body>
    <%= flash[:notice] %>
    <%= flash[:alert] %>

    <menu><%= link_to "Sign in", new_user_session_path %></menu>

    <%= yield %>

  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title>Twist</title>
    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "application" %>
    <%= csrf_meta_tags %>
  </head>
  <body>
    <%= flash[:notice] %>
    <%= flash[:alert] %>

    <menu>
      <% if user_signed_in? %>
        <%= link_to "Sign out", user_session_path, :method => :delete %>
      <% else %>
        <%= link_to "Sign in", new_user_session_path %>
      <% end %>
    </menu>

    <%= yield %>

  </body>
</html>

Add 'sign in' and 'sign out' links to menu


<!DOCTYPE html>

    	<meta charset="UTF-8">
        <title><%=full_title yield :title %></title>
	      <%= stylesheet_link_tag "style", media: "screen" %>
        <%= favicon_link_tag "favicon.png", type: 'image/png', rel: 'icon' %>

	      <%= auto_discovery_link_tag :atom, "/feed.atom" %>
	      <%= auto_discovery_link_tag :rss, "/feed.rss" %>

        <%= csrf_meta_tags %>

            	<%= render 'layouts/header' %>
            	<% flash.each do |key, value| %>
            		<div class="alert alert-<%= key %>"><%=value %>

            	<% end %>

            		<%= yield %>

            	<%= debug(params) if Rails.env.development? %>

Add language attribute to base template

Add language attribute to base template

Is "de", because most of my content is in german (even if
the menu and all labels are not).


No template for interactive request

<%= h @exception.message %>

    NOTE!

    Unless told otherwise, Rails expects an action to render a template with the same name,

    contained in a folder named after its controller.

    If this controller is an API responding with 204 (No Content),

    which does not require a template,
    then this error will occur when trying to access it via browser,

    since we expect an HTML template
    to be rendered for such requests. If that's the case, carry on.

Use the same tag as other views to display the error message

Since other views use the `h2` tag, should also use `h2` on
`missing_exact_template.html.erb`.

https://github.com/rails/rails/blob/76acaf6eb9ef3635e4c6f2ca9dba34edb50f541d/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb#L5
https://github.com/rails/rails/blob/76acaf6eb9ef3635e4c6f2ca9dba34edb50f541d/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb#L11
https://github.com/rails/rails/blob/76acaf6eb9ef3635e4c6f2ca9dba34edb50f541d/actionpack/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb#L5


<input type="hidden" id="room-session" value="<%= @room_session %>">

    <button>Instructions</button>
    <button>Dashboard</button>

  <form id="chat-form">
    <input type="text" id="user-name"></input>

    <input type="text" id="msg-input" placeholder="Message"></input>
    <input type="submit" id="send" value="send"></input>
  </form>

<input type="hidden" id="room-session" value="<%= @room_session %>">

    <button id="instructions">Instructions</button>

    <button id="dashboard">Dashboard</button>

  <form id="chat-form">
    <input type="text" id="user-name"></input>

    <input type="text" id="msg-input" placeholder="Message"></input>
    <input type="submit" id="send" value="send"></input>
  </form>

Add game instructions modal dialog with placeholder text.


<% if current_user.admin? %>

         <%= render 'shared/user_info' %>

         <form class="form-search pull-right">
            <input type="text" name="filter" value="" id="filter" class="input-large search-query" />
            Filter
         </form>

      <%= render 'shared/admin_info' %>

<% else %>

         <%= render 'shared/user_info' %>

         <%= render 'shared/add_course_form' %>

   <% if @fall_course_feed_items.empty? and @winter_course_feed_items.empty? and @summer_course_feed_items.empty? %>

 No Classes Registered Yet

   <% else %>

         <%= render 'shared/course_feed' %>

   <% end %>
<% end %>

<% if current_user.admin? %>

         <%= render 'shared/user_info' %>

         <form class="form-search pull-right">
            <input type="text" name="filter" value="" id="filter" class="input-large search-query" />
            Filter
         </form>

      <%= render 'shared/admin_info' %>

<% else %>

      Once you have been matched for the courses you have registered for you will be notified by email with further instructions.

         <%= render 'shared/user_info' %>

         <%= render 'shared/add_course_form' %>

   <% if @fall_course_feed_items.empty? and @winter_course_feed_items.empty? and @summer_course_feed_items.empty? %>

 No Classes Registered Yet

   <% else %>

         <%= render 'shared/course_feed' %>

   <% end %>
<% end %>

Add info message for users

Add info message for users


<listView>
  <owner class="hudson" reference="../../.."/>
  <name><%= @new_resource.view_name %></name>
  <filterExecutors>false</filterExecutors>
  <filterQueue>false</filterQueue>
  <properties class="hudson.model.View$PropertyList"/>
  <jobNames>
    <comparator class="hudson.util.CaseInsensitiveComparator"/>
    <%- @new_resource.jobs.each do |job| -%>
    <string><%= job %></string>
    <%- end -%>
  </jobNames>
  <jobFilters/>
  <columns>
    <hudson.views.StatusColumn/>
    <hudson.views.WeatherColumn/>
    <hudson.views.JobColumn/>
    <hudson.views.LastSuccessColumn/>
    <hudson.views.LastFailureColumn/>
    <hudson.views.LastDurationColumn/>
    <hudson.views.BuildButtonColumn/>
    <hudson.plugins.CronViewColumn plugin="cron_column@1.003"/>
  </columns>
  <recurse>false</recurse>
</listView>

<listView>
  <owner class="hudson" reference="../../.."/>
  <name><%= @new_resource.view_name %></name>
  <filterExecutors>false</filterExecutors>
  <filterQueue>false</filterQueue>
  <properties class="hudson.model.View$PropertyList"/>
  <jobNames>
    <comparator class="hudson.util.CaseInsensitiveComparator"/>
    <%- @new_resource.jobs.sort.each do |job| # No really, if they aren't sorted this won't load -%>
    <string><%= job %></string>
    <%- end -%>
  </jobNames>
  <jobFilters/>
  <columns>
    <hudson.views.StatusColumn/>
    <hudson.views.WeatherColumn/>
    <hudson.views.JobColumn/>
    <hudson.views.LastSuccessColumn/>
    <hudson.views.LastFailureColumn/>
    <hudson.views.LastDurationColumn/>
    <hudson.views.BuildButtonColumn/>
    <hudson.plugins.CronViewColumn plugin="cron_column@1.003"/>
  </columns>
  <recurse>false</recurse>
</listView>

Fix views to sort things because Jenkins REQUIRES SORTING.

I don't use the phrase often but I think "I shit you not" applies here.


require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
  rdoc.title = <%= @name.dump %>
end
task :doc => :rdoc

require 'rdoc/task'
RDoc::Task.new do |rdoc|
  rdoc.title = <%= @name.dump %>
end
task :doc => :rdoc

Use the newer RDoc::Task class.

Use the newer RDoc::Task class.


pwcheck_method: <%= @pwcheck_method %>
mech_list: <%- @mech_list.each do |mech| -%><%= mech %> <% end -%>

Add a line break to the end of the auth file


<% content_for :head do %>

<% end %>

<% set_meta_tags(canonical:   root_url,
                 alternate:   alternate_home_map,
                 title:       t('.title'),
                 description: t('.description').strip) %>

<%= heading_tag t('layouts.base.title'), class: 'visually-hidden' %>

<%= render 'shared/trust_banner', items: t('.trust_banner_list') %>

    <%= heading_tag(level: heading_level ||= 2, class: 'l-home-directory__title') do %>
      <%= t('.directory_heading') %>
    <% end %>
    <%= render 'shared/directory', items: category_navigation %>

<%= render 'shared/tool_promos', items: t('.tools') %>

<%= render 'shared/article_promos', items: t('.promoted') %>

Add Google site links script in the home page


---
# Template for Articles (Blog Posts)
---

<%= item[:title] %>

    Posted on <%= pretty_time(item[:created_at]) %>
    by <%= item[:author]%>

    <%= yield %>

  Back to Blog

Please enable JavaScript to view the comments powered by Disqus.

---
# Template for Articles (Blog Posts)
---

<%= item[:title] %>

    Posted on <%= pretty_time(item[:created_at]) %>
    by <%= item[:author]%>

    <%= yield %>

  « Back to Blog

Please enable JavaScript to view the comments powered by Disqus.

Add double arrow to 'Back to Blog' link

Add double arrow to 'Back to Blog' link


<% text_for :title do %>
  Will you be going to any red list countries within 10 days before you return to England?
<% end %>

<% govspeak_for :body do %>
  <%= render "govuk_publishing_components/components/details", {
    title: "Why we're asking this question:"
  } do %>
    Different rules apply if you've been in a red list country within 10 days of returning to England.
  <% end %>

  These are the red list countries you said you're going to:

 <% calculator.red_list_country_titles.each do |country| %>
   - <%= country %>
 <% end %>
<% end %>

<% options(
  "yes": "Yes",
  "no": "No",
) %>

<% text_for :title do %>
  Will you be going to a red list country in the 10 days before you return to England?
<% end %>

<% govspeak_for :body do %>
  <%= render "govuk_publishing_components/components/details", {
    title: "Why we’re asking this question:"
  } do %>
    You've told us you’re going to a country on the travel red list.
    Different rules apply if you’ve been in a red list country in the 10 days before you return to England.
  <% end %>

  These are the red list countries you said you're going to:

 <% calculator.red_list_country_titles.each do |country| %>
   - <%= country %>
 <% end %>
<% end %>

<% options(
  "yes": "Yes, I’m going to a red list country in the 10 days before I return to England",
  "no": "No, I’m not going to a red list country in the 10 days before I return to England",
) %>

Update content in red list question

Update content in red list question


<%= title "Tools" %>

Someone thought these were useful, at some point. I take no responsibility for whether they actually are or not.

Invalidated Feedback

Feedback via API

User Data

Blacklist

    <% if current_user.try(:has_role?, :admin) %>

Posts with Admin Reports

<%= link_to "Ignored Users", admin_ignored_users_path %>

API Keys

<%= link_to "User Permissions", admin_permissions_path %>

    <% end %>
    <% if current_user.has_role?(:developer) %>

<%= link_to "Production log", url_for(:controller => :developer, :action => :production_log), :class => "text-danger" %>

    <% end %>

<%= title "Tools" %>

Someone thought these were useful, at some point. We take no responsibility for whether they actually are or not.

Invalidated Feedback

Feedback via API

User Data

    <% if current_user.try(:has_role?, :admin) %>

Posts with Admin Reports

<%= link_to "Ignored Users", admin_ignored_users_path %>

API Keys

<%= link_to "User Permissions", admin_permissions_path %>

    <% end %>
    <% if current_user.has_role?(:developer) %>

<%= link_to "Production log", url_for(:controller => :developer, :action => :production_log), :class => "text-danger" %>

    <% end %>

Remove blacklist link from /admin

Remove blacklist link from /admin


<%= link_to "REGISTER", new_user_path%>

This is where all of the available items will be visible.  If you'd like to create a new item, <%= link_to "click here", new_item_path %>.

<% @items.each do |item| %>

<%= link_to item.name, item_path(item) %>

  <img src="<%= item.image %>" height="100" width="100">

<% end %>

Create clickable link that takes user to create new user form


All Items

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

		<%= label_tag :search %>
		<%= text_field_tag :search, params[:search], placeholder: "Search For Names" %>
		<%= submit_tag "Search", class: "submit" %>

<% end %>

			Number
			Title
			Yes
			No
			Skip
			Result

			<% @items.each do |item| %>

					<%= link_to item.number, item_path(item) %>
					<%= link_to item.title, item_path(item) %>
					<%= item.count_yes %>
					<%= item.count_no %>
					<%= item.count_skip %>
					<td class="<%= item.result.to_s %>"><%= item.result.to_s.capitalize %>

			<% end %>

<%= paginate @items %>

All Items

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

		<%= label_tag :search %>
		<%= text_field_tag :search, params[:search], placeholder: "Search for names or ward number" %>
		<%= submit_tag "Search", class: "submit" %>

<% end %>

			Number
			Title
			Yes
			No
			Skip
			Result

			<% @items.each do |item| %>

					<%= link_to item.number, item_path(item) %>
					<%= link_to item.title, item_path(item) %>
					<%= item.count_yes %>
					<%= item.count_no %>
					<%= item.count_skip %>
					<td class="<%= item.result.to_s %>"><%= item.result.to_s.capitalize %>

			<% end %>

<%= paginate @items %>

Add To Placeholder Search About Searching By Ward


<% form_for @user do |f| %>

    <%= f.label :name %>
    <%= f.text_field :name %>

    <%= f.label :email %>
    <%= f.text_field :email %>

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

    <%= f.label :password_confirmation %>
    <%= f.password_field :password_confirmation %>

  <%- unless @user.new_record? -%>

      <%= f.label :active %>
      <%= f.check_box :active %>

  <%- end -%>

    <%= f.submit %>

<% end %>

<% form_for @user do |f| %>

    <%= f.label :name %>
    <%= f.text_field :name %>

    <%= f.label :email %>
    <%= f.text_field :email %>

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

    <%= f.label :password_confirmation %>
    <%= f.password_field :password_confirmation %>

    <%= f.label :facebook_uid %>
    <%= f.text_field :facebook_uid %>

  <%- unless @user.new_record? -%>

      <%= f.label :active %>
      <%= f.check_box :active %>

  <%- end -%>

    <%= f.submit %>

<% end %>

Allow setting/updating of facebook uid in user form


New <%= controller.controller_name.titleize %>

<%= render "form" %>

<%= render "new_navigation" %>

New <%= resource.class.titleize %>

<%= render "form" %>

<%= render "new_navigation" %>

Use singlular title from resource instead of plural from controller


<%= @log_file %> {
    daily
    missingok
}

<%= @log_file %> {
    daily
    missingok
    # Heka cannot be told to close its log file and re-open it so we need to
    # use the copytruncate option
    copytruncate
}

Use copytruncate option for Heka log rotation

Since Heka cannot be told to close its log file and re-open it, we have
to use the copytruncate option of logrotate.

Change-Id: I8ad22f76e3c4e78a3a7a976c5a9f8fc7bc2d6dd4


#!/usr/bin/env ruby
require 'captain_hoog'

# Adjust the path below.
plugins_path = File.expand_path(File.join(File.dirname(__FILE__),
                                                   "..",
                                                   "..",
                                                   "plugins"))

# Adjust settings
CaptainHoog::PreGit.configure do |config|
  config.plugins_dir =  "<%= config[:plugins_dir] %>"
  config.project_dir = "<%= config[:project_dir] %>"
  #config.headline_on_success = "All is fine."
  #config.headline_on_failure = "Oops. Something went wrong"
end

CaptainHoog::PreGit.run

Add run call to hook template

[CaptainHoog] Add run call to hook template


<% content_for :head do %>

<% end %>

<%= t('add_new') %>

  <%= form_tag update_files_assignment_path(id: @assignment.id),
               { multipart: true, id: 'file_form' } do %>
      <%= file_field_tag :new_files, name: 'new_files[]', multiple: true %>

        <%= submit_tag t(:submit) %>
        <%= button_tag t(:close), onclick: 'modal_addnew.close(); return false;' %>

  <% end %>

Fix repo address to not include subdir

starter-code: Fix repo address to not include subdir


    Calendar Events

      <%= render 'shared/loader' %>

Add border to calendar events for greater distinction from background


<!DOCTYPE html>

	<title>Cart</title>

Your cart

			Name
			Price
			Qty

		<% total_price = 0 %>
		<% total_qty = 0 %>
		<% @items.each do |item| %>

			<%= item[0].title %>
			<%= item[0].price %>
			<%= item[1] %>

		<% total_price += item[0].price * item[1].to_i %>
		<% total_qty += item[1].to_i %>
		<% end %>

			<%= total_price %>
			<%= total_qty %>

<form action="" method="POST" role="form">

		Name:
		<input type="text" name="order[name]" class="form-control" placeholder="Your name">

		Phone:
		<input type="text" name="order[phone]" class="form-control" placeholder="+79112223344">

		Addess:
		<input type="text" name="order[address]" class="form-control" placeholder="Delivery address">

</form>

Add fields for client's information

Add fields for client's information


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

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

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

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :latitude %>

    <%= f.text_field :latitude %>

    <%= f.label :longitude %>

    <%= f.text_field :longitude %>

    <%= f.label :user_id %>

    <%= f.number_field :user_id %>

    <%= f.label :timestamp %>

    <%= f.datetime_select :timestamp %>

    <%= f.label :message %>

    <%= f.text_area :message %>

    <%= f.submit %>

<% end %>

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

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

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

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :latitude %>

    <%= f.text_field :latitude %>

    <%= f.label :longitude %>

    <%= f.text_field :longitude %>

    <%= f.label :timestamp %>

    <%= f.datetime_select :timestamp %>

    <%= f.label :message %>

    <%= f.text_area :message %>

    <%= f.submit %>

<% end %>

Remove user_id field from crumb form

Remove user_id field from crumb form


<%= render 'shared/github_banner' %>

    <%= render 'shared/messages' %>
			<%= form_tag(session_url) do %>

    			OpenID:
    			<%= text_field_tag "openid_identifier" %>

					<%= submit_tag 'Sign in', :disable_with => "Signing in" %>

			<% end %>

Add page for login (new sessions)

Add page for login (new sessions)


<head>
  <title>Open Addresses UK - Alpha <%= (@metadata ? ": #{@metadata['title']}" : nil) %></title>
  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= stylesheet_link_tag 'https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.css', media: 'all', 'data-turbolinks-track' => true %>
  <%= stylesheet_link_tag '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css' %>
  <%= favicon_link_tag '/favicon.ico' %>
  <%= csrf_meta_tags %>
  <%= alternate_auto_discovery_link_tags %>
</head>

<head>
  <title>Open Addresses UK - Alpha <%= (@metadata ? ": #{@metadata['title']}" : nil) %></title>
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= stylesheet_link_tag 'https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.css', media: 'all', 'data-turbolinks-track' => true %>
  <%= stylesheet_link_tag '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css' %>
  <%= favicon_link_tag '/favicon.ico' %>
  <%= csrf_meta_tags %>
  <%= alternate_auto_discovery_link_tags %>
</head>

Add viewport width and scale meta tag

Add viewport width and scale meta tag


<!DOCTYPE html>

  <title>StockAid</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>

<%= notice %>

<%= alert %>

  <%= yield %>

Add a container, row and col for the sites pages to live in


<% @page_title = "Login" %>
<% @show_tabs = false %>

  <% form_for @person_session, :url => person_session_path do |f| %>
    <%= f.error_messages :header_message => nil, :message => nil %>

      <%= f.labelled_text_field :login %>
      <%= f.label :password %>
      <%= f.password_field :password %>

      <%= link_to "Forgot your password?", new_password_reset_path, { :class => "obvious forgot", :id => "forgot" } %>
      <%= submit_tag "Login", :id => "login_button" %>

  <% end -%>

<%= focus("person_session_login") if @person_session.login.blank? %>
<%= focus("person_session_password") unless @person_session.login.blank? %>

<% @page_title = "Login" %>
<% @show_tabs = false %>

    <% form_for @person_session, :url => person_session_path do |f| %>
      <%= f.error_messages :header_message => nil, :message => nil %>

        <%= f.labelled_text_field :login %>
        <%= f.label :password %>
        <%= f.password_field :password %>

        <%= submit_tag "Login", :id => "login_button" %>

    <% end -%>

      Don't Have a Login Yet?
      <%= link_to "Create a login",
            new_login_people_path(:return_to => session[:return_to]),
            { :class => "obvious", :id => "new_login" } %>

      Forgot Your Password?
      <%= link_to "Request a reminder", new_password_reset_path, { :class => "obvious forgot", :id => "forgot" } %>

    <% if @person_session.errors.any? %>

      You'll need to allow cookies to login

    <% end -%>

<%= focus("person_session_login") if @person_session.login.blank? %>
<%= focus("person_session_password") unless @person_session.login.blank? %>

Restructure login page and add account creation


<% add_atom_feed_to_head %>
<% content_for(:title) { "Blog - #{tagname}" } %>

      Blog / <%= tagname %>

    <% data.tags.each do |tag| %>
      <a class="blog-tags__tag<%= " blog-tags__tag--active" if tagname == tag %>"
        href="<%= tag_path(tag, :blog) %>"><%= tag %>
    <% end %>

<%= partial 'blog_grid', locals: { articles: articles } %>

---
pageable: true
per_page: 30
blog: 'blog'
---
<% add_atom_feed_to_head %>
<% content_for(:title) { "Blog - #{tagname}" } %>

      Blog / <%= tagname %>

    <% data.tags.each do |tag| %>
      <a class="blog-tags__tag<%= " blog-tags__tag--active" if tagname == tag %>"
        href="<%= tag_path(tag, :blog) %>"><%= tag %>
    <% end %>

<%= partial 'blog_grid', locals: { articles: page_articles } %>

<%= partial 'blog_pagination' %>

Add pagination to blog tag pages too

Add pagination to blog tag pages too


$('.cs-main-area .list-group').append("<%= escape_javascript render partial: 'package_list', locals: { packages: @packages, page: params[:page] } %>");

var newPagination;
<% if @packages.count > WillPaginate.per_page * ( params[:page] || '1' ).to_i %>
  newPagination = "<%= escape_javascript will_paginate @packages, class: 'pagination cs-full-width cs-no-margin cs-center' %>";
<% else %>
  newPagination = "
";
  newPagination += "<%= escape_javascript link_to 'View all Packages', root_path(sort: params[:sort]) %>";
  newPagination += "
";
<% end %>

$('.pagination').replaceWith(newPagination);

$('.cs-main-area .list-group').append("<%= escape_javascript render partial: 'package_list', locals: { packages: @packages, page: params[:page] } %>");

var newPagination;
<% if @packages.count > WillPaginate.per_page * ( params[:page] || '1' ).to_i %>
  newPagination = "<%= escape_javascript will_paginate @packages, class: 'pagination cs-full-width cs-no-margin cs-center' %>";
<% else %>
  newPagination = "
";
  <% if params[:search].present? %>
    newPagination += "<%= escape_javascript link_to 'View all Packages', root_path(sort: params[:sort]) %>";
  <% else %>
    newPagination += "Scroll to Top";
  <% end %>
  newPagination += "
";
<% end %>

$('.pagination').replaceWith(newPagination);

$("a[href='#top']").click(function() {
  $("html, body").animate({ scrollTop: 0 }, "slow");
  return false;
});

Add "Scroll to Top" button to bottom of unsearched


        Analytics

      <%= line_chart Visit.group(:search_keyword).count, title: "Search Keyword", ytitle: "Count" %>

      <%= line_chart Visit.group(:referring_domain).count, title: "Referring Domain", ytitle: "Count" %>

      <%= line_chart Visit.group(:country).count, title: "Country", ytitle: "Count" %>

      <%= line_chart Visit.group_by_day(:started_at).count, title: "Started At", ytitle: "Count" %>

    <%= render 'layouts/made_with_love_panel' %>

<%= render 'layouts/default_side_bar' %>

        Analytics

      <%= line_chart Visit.group(:search_keyword).count, title: "Search Keyword", ytitle: "Count" %>

      <%= line_chart Visit.group(:referring_domain).count.delete_if { |k, v| k.nil? }, title: "Referring Domain", ytitle: "Count" %>

      <%= line_chart Visit.group(:country).count, title: "Country", ytitle: "Count" %>

      <%= line_chart Visit.group_by_day(:started_at).count, title: "Started At", ytitle: "Count" %>

    <%= render 'layouts/made_with_love_panel' %>

<%= render 'layouts/default_side_bar' %>

Hide blank referring domains on analytics page


Server Info

        Go Server Version:
        <%= version %>

        JVM version:
        <%= jvm_version %>

        OS Information:
        <%= os_information %>

        Usable space in artifacts repository:
        <%= available_space %>

        Database schema version:
        <%= schema_version %>

Go Team

Past and present members

These people are, or have been, part of tde Go team (in alphabetical order).

<%= go_team_members %>

Go contributors

These people have contributed code, ideas, time or energy (in alphabetical order).

<%= go_contributors %>

Server Info

        Go Server Version:
        <%= version %>

        JVM version:
        <%= jvm_version %>

        OS Information:
        <%= os_information %>

        Usable space in artifacts repository:
        <%= available_space %>

        Database schema version:
        <%= schema_version %>

Go Team

Past and present members

These people are, or have been, part of the Go team (in alphabetical order).

<%= go_team_members %>

Go contributors

These people have contributed code, ideas, time or energy (in alphabetical order).

<%= go_contributors %>

Fix typo in the about page template

Fix typo in the about page template


    <a href='<%= TentStatus.settings[:url] || "/" %>'>

  <% if TentStatus.settings[:search_enabled] %>

  <% end %>

  <% if TentStatus.settings[:admin_url] %>

      <a href='<%= TentStatus.settings[:admin_url] %>' title='Admin'>

  <% end %>

    <a href='<%= TentStatus.settings[:url] || "/" %>'>

  <% if TentStatus.settings[:search_enabled] %>

      <a href='<%= TentStatus.settings[:path_prefix].to_s %>/search' title='Search'>

  <% end %>

  <% if TentStatus.settings[:admin_url] %>

      <a href='<%= TentStatus.settings[:admin_url] %>' title='Admin'>

  <% end %>

Fix search URL when path prefix

Fix search URL when path prefix


<% @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 1.6}.each do |version| %>
    <%= jquery_link version %> •
  <% end %>
  <%= 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 1.6 1.6.4}.each do |version| %>
    <%= jquery_link version %> •
  <% end %>
  <%= jquery_link 'edge' if File.exist?(settings.root + '/public/vendor/jquery.js') %>

Include jQuery 1.6.4 in test suite

Include jQuery 1.6.4 in test suite


<div class="emergency-banner emergency-banner--<%= campaign_class %> dont-print" role="banner" data-nosnippet>

<%= heading %>

        <% if short_description %>

<%= short_description %>

        <% end %>
        <% if link %>
          <a href="<%= link %>" class="emergency-banner__link govuk-link"><%= link_text %>
        <% end %>

Use a wider div to wrap banner text

Use a wider div to wrap banner text

Currently, `govuk-grid-column-two-thirds` knocks the 'II' onto a second
line for the Queens death emergency banner. Using three thirds keeps all
the text on a single line.


<fieldset id="html_version_fields">
  <legend>HTML version</legend>

  These fields are optional: if you don't require an HTML version, please leave them blank.

  <%= form.fields_for :html_version do |html_version_fields| %>
    <%= html_version_fields.text_field :title, label_text: "HTML version title", required: false %>
    <%= html_version_fields.text_area :body, label_text: "HTML version text", class: "previewable", required: false %>
    <%= html_version_fields.check_box :manually_numbered, label_text: 'Manually number headings' %>
    <div class="js-manual-numbering-help<%= ' js-hidden' unless html_version_fields.object.manually_numbered? %>">

## 1. First heading
### 1.1 First sub-heading
### 1.2 Second sub-heading
### Unnumbered sub-heading

Manually number your headings as appropriate using the above numbering scheme.

  <% end %>
</fieldset>

<fieldset id="html_version_fields">
  <legend>HTML version</legend>

  These fields are optional: if you don't require an HTML version, please leave them blank.

  <%= form.fields_for :html_version do |html_version_fields| %>
    <%= html_version_fields.text_field :title, label_text: "HTML version title", required: false %>
    <%= html_version_fields.text_area :body, label_text: "HTML version text", class: "previewable", required: false %>
    <%= html_version_fields.check_box :manually_numbered, label_text: 'No automatic numbering on headings' %>
    <div class="js-manual-numbering-help<%= ' js-hidden' unless html_version_fields.object.manually_numbered? %>">

## 1. First heading
### 1.1 First sub-heading
### 1.2 Second sub-heading
### Unnumbered sub-heading

Manually number your headings as appropriate using the above numbering scheme.

  <% end %>
</fieldset>

Rename "manually number headings" checkbox

https://www.pivotaltracker.com/story/show/58800766


---
# DO NOT EDIT - This file is being maintained by Chef
rest: false
vars:
  remove_secret: true
pid: "/run/oxidized/oxidized.pid"
crash:
  directory: /var/lib/oxidized/crashes
input:
  default: ssh
output:
  default: git
  git:
    single_repo: true
    user: oxidized
    email: oxidized@openstreetmap.org
    repo: "/var/lib/oxidized/configs.git"
hooks:
  push_to_remote:
    type: githubrepo
    events: [post_store]
    remote_repo: git@github.com:openstreetmap/oxidized-configs.git
    privatekey: /opt/oxidized/.ssh/id_ed25519
source:
  default: csv
  csv:
    file: "/etc/oxidized/routers.db"
    delimiter: !ruby/regexp /:/
    map:
      name: 0
      model: 1
      input: 2
      username: 3
      password: 4
model_map:
  juniper: junos
  apc: apc_aos
  ciscocmb: ciscosmb

---
# DO NOT EDIT - This file is being maintained by Chef
rest: false
timeout: 60
vars:
  remove_secret: true
pid: "/run/oxidized/oxidized.pid"
crash:
  directory: /var/lib/oxidized/crashes
input:
  default: ssh
output:
  default: git
  git:
    single_repo: true
    user: oxidized
    email: oxidized@openstreetmap.org
    repo: "/var/lib/oxidized/configs.git"
hooks:
  push_to_remote:
    type: githubrepo
    events: [post_store]
    remote_repo: git@github.com:openstreetmap/oxidized-configs.git
    privatekey: /opt/oxidized/.ssh/id_ed25519
source:
  default: csv
  csv:
    file: "/etc/oxidized/routers.db"
    delimiter: !ruby/regexp /:/
    map:
      name: 0
      model: 1
      input: 2
      username: 3
      password: 4
model_map:
  juniper: junos
  apc: apc_aos
  ciscocmb: ciscosmb

oxidized: Increase timeout to avoid triggering on slow device


check process <%= @worker_name %>
  with pidfile /var/run/engineyard/dj/<%= @app_name %>/dj_<%= @worker_name %>.pid
  start program = "/usr/bin/bundle exec /engineyard/bin/dj <%= @app_name %> start <%= @framework_env %> <%= @worker_name %>" with timeout 60 seconds
  stop program = "/usr/bin/bundle exec /engineyard/bin/dj <%= @app_name %> stop <%= @framework_env %> <%= @worker_name %>" with timeout 60 seconds
  if totalmem is greater than 300 MB then restart # eating up memory?
  group dj_<%= @app_name %>

check process <%= @worker_name %>
  with pidfile /var/run/engineyard/dj/<%= @app_name %>/dj_<%= @worker_name %>.pid
  start program = "/engineyard/bin/dj <%= @app_name %> start <%= @framework_env %> <%= @worker_name %>" with timeout 60 seconds
  stop program = "/engineyard/bin/dj <%= @app_name %> stop <%= @framework_env %> <%= @worker_name %>" with timeout 60 seconds
  if totalmem is greater than 300 MB then restart # eating up memory?
  group dj_<%= @app_name %>

Revert back to the original monit config for DJ.


##If you're coming to volunteer for a charity

You may be eligible for a [Temporary Worker - Charity Worker visa (T5)](https://www.gov.uk/temporary-worker-charity-worker-visa).

###Eligibility

The eligibility criteria include having a job offer.

###How long you can stay

You can stay up to 1 year. If you want to stay longer you must switch to another type of visa.

##If you're coming to volunteer for a charity

You may be eligible for a [Temporary Work - Charity Worker visa](https://www.gov.uk/temporary-worker-charity-worker-visa).

###Eligibility

The eligibility criteria include having a job offer.

###How long you can stay

You can stay up to 1 year. If you want to stay longer you must switch to another type of visa.

Rename Temporary Worker - Charity Worker visa (T5)

=> Temporary Worker - Charity Worker visa


class CreateEffectiveAssets < ActiveRecord::Migration
  def self.up
    create_table <%= @assets_table_name %> do |t|
      t.string  :title
      t.text    :extra

      t.integer :user_id

      t.string  :content_type
      t.string  :upload_file
      t.string  :data
      t.boolean :processed, :default => false
      t.string  :aws_acl, :default => 'public-read'

      t.integer :data_size
      t.integer :height
      t.integer :width
      t.text    :versions_info

      t.timestamps
    end

    add_index <%= @assets_table_name %>, :content_type
    add_index <%= @assets_table_name %>, :user_id

    create_table <%= @attachments_table_name %> do |t|
      t.integer :asset_id
      t.string  :attachable_type
      t.integer :attachable_id
      t.integer :position
      t.string  :box
    end

    add_index <%= @attachments_table_name %>, :asset_id
    add_index <%= @attachments_table_name %>, [:attachable_type, :attachable_id]
    add_index <%= @attachments_table_name %>, :attachable_id
  end

  def self.down
    drop_table <%= @assets_table_name %>
    drop_table <%= @attachments_table_name %>
  end
end

class CreateEffectiveAssets < ActiveRecord::Migration
  def self.up
    create_table <%= @assets_table_name %> do |t|
      t.string  :title
      t.text    :extra

      t.integer :user_id

      t.string  :content_type
      t.text    :upload_file
      t.string  :data
      t.boolean :processed, :default => false
      t.string  :aws_acl, :default => 'public-read'

      t.integer :data_size
      t.integer :height
      t.integer :width
      t.text    :versions_info

      t.timestamps
    end

    add_index <%= @assets_table_name %>, :content_type
    add_index <%= @assets_table_name %>, :user_id

    create_table <%= @attachments_table_name %> do |t|
      t.integer :asset_id
      t.string  :attachable_type
      t.integer :attachable_id
      t.integer :position
      t.string  :box
    end

    add_index <%= @attachments_table_name %>, :asset_id
    add_index <%= @attachments_table_name %>, [:attachable_type, :attachable_id]
    add_index <%= @attachments_table_name %>, :attachable_id
  end

  def self.down
    drop_table <%= @assets_table_name %>
    drop_table <%= @attachments_table_name %>
  end
end

Change upload_file to be a text instead of string


<% if response.success? or note.present? %>
# <%= request.method %> <%= request.path.first(45) %>
<% if note.present? %>
**Notes:** <%= note %>
<% end %>
<% if request.params.except(:controller, :action, :format, :id).keys.length > 0 %>
### Request

```
<%=
  JSON.pretty_generate(request.params.except(:controller, :action, :format, :id, :user_id, :device_id))
%>
```
<% end %>
### Response

```
<%=
  begin
      JSON.pretty_generate(JSON.parse(response.body)).first(500)
  rescue => e
    "Empty Response"
  end
%>
```
<% end %>

<% if (response.success? || note.present?) %>
# <%= response.success? ? "" : "(NOT OK)" %> <%= request.method %> <%= request.path.first(45) %>
<% if note.present? %>
**Notes:** <%= note %>
<% end %>
<% if request.params.except(:controller, :action, :format, :id).keys.length > 0 %>

### Request

```
<%=
  JSON.pretty_generate(request.params.except(:controller, :action, :format, :id, :user_id, :device_id))
%>
```
<% end %>
### Response

```
<%=
  begin
      JSON.pretty_generate(JSON.parse(response.body)).first(500)
  rescue => e
    "Empty Response"
  end
%>
```
<% end %>

Add (NOT OK) notes to doc generator

Add (NOT OK) notes to doc generator


<% content_for :body do %>
  $!You must register the birth according to the regulations in <%= registration_country_name_lowercase_prefix %>.$!

  You can’t register your child’s birth with the UK authorities abroad. This is because unmarried fathers can’t pass on British nationality to a child born before 1 July 2006.

  You may still be able to apply for [British citizenship](https://www.gov.uk/browse/citizenship/citizenship) for the child.

  You may also be able to register the birth if you’ve married the other parent since the child was born.
  Contact the Overseas Registration Unit for advice at <birthregistrationenquiries@fco.gov.uk>.
<% end %>

<% content_for :body do %>
  $!You must register the birth according to the regulations in <%= registration_country_name_lowercase_prefix %>.$!

  You can’t usually register your child’s birth with the Foreign and Commonwealth Office (FCO) Overseas Registration Unit. This is because unmarried fathers can’t pass on British nationality to a child born before 1 July 2006.

  You may still be able to apply for [British citizenship](https://www.gov.uk/browse/citizenship/citizenship) for the child.

  You may however be able to register the birth if either:

  - you’ve married the other parent since the child was born (depending on where the father was considered to be permanently living at the time of the birth)
  - the country where the father was considered to be permanently living at the time of the birth did not distinguish between married and unmarried parents

  Contact the Overseas Registration Unit for advice at <birthregistrationenquiries@fco.gov.uk>.
<% end %>

Update the home office result in register a birth


New child

<% form_tag '/children', :multipart => true do %>

    <% schema = Schema.get_schema %>
    <% Schema.get_schema[:fields].each do |field| %>

          <%= render :partial => field[:type], :object => field %>

    <% end %>

      <%= label_tag "child[photo]", "Photo" %>

      <%= file_field_tag "child[photo]" %>

      <%= submit_tag "Create" %>

<% end %>

<%= link_to 'Back', children_path %>

New child

<% form_tag '/children', :multipart => true do %>

    <%= error_messages_for :child %>

    <% Schema.get_schema[:fields].each do |field| %>

          <%= render :partial => field[:type], :object => field %>

    <% end %>

      <%= label_tag "child[photo]", "Photo" %>

      <%= file_field_tag "child[photo]" %>

      <%= submit_tag "Create" %>

<% end %>

<%= link_to 'Back', children_path %>

Add error message handling to new Child form.


<%= render 'shared/page_title', title: @recipe.name %>

Steps

<%= simple_format(@recipe.description) %>

        Created by

        <%= link_to gravatar_for(@recipe.chef), @recipe.chef %>

        <%= @recipe.chef.name %>

          <%= time_ago_in_words(@recipe.created_at) %> ago

      <%= link_to 'Edit Recipe', edit_recipe_path(@recipe), class: 'btn btn-xs btn-warning' %>
      <%= link_to 'Delete Recipe', recipe_path(@recipe), method: :delete,
                  data: { confirm: 'Are you sure you want to delete this recipe' }, class: 'btn btn-xs btn-danger' %>
      <%= link_to 'Back to Recipe List', recipes_path, class: 'btn btn-xs btn-primary btn-custom' %>

<%= render 'shared/page_title', title: @recipe.name %>

Steps

<%= simple_format(@recipe.description) %>

        Created by

        <%= link_to gravatar_for(@recipe.chef), @recipe.chef %>

        <%= @recipe.chef.name %>

          <%= time_ago_in_words(@recipe.created_at) %> ago

      <% if current_chef == @recipe.chef %>
        <%= link_to 'Edit Recipe', edit_recipe_path(@recipe), class: 'btn btn-xs btn-warning' %>
        <%= link_to 'Delete Recipe', recipe_path(@recipe), method: :delete,
                    data: { confirm: 'Are you sure you want to delete this recipe' }, class: 'btn btn-xs btn-danger' %>
      <% end %>
      <%= link_to 'Back to Recipe List', recipes_path, class: 'btn btn-xs btn-primary btn-custom' %>

Edit and delete recipe options are only given to the recipe owner


Static#index

Find me in app/views/static/index.html.erb

<form class="pure-form">
    <input type="text" class="pure-input-rounded">
    <button type="submit" class="pure-button">Search</button>
</form>

    <button class="button-success pure-button">Success Button</button>
    <button class="button-error pure-button">Error Button</button>
    <button class="button-warning pure-button">Warning Button</button>
    <button class="button-secondary pure-button">Secondary Button</button>

<form class="pure-form">
    <input type="text" class="pure-input-rounded">
    <button type="submit" class="pure-button">Search</button>
</form>

<div>
    <style scoped>

        .button-success,
        .button-error,
        .button-warning,
        .button-secondary {
            color: white;
            border-radius: 4px;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
        }

        .button-success {
            background: rgb(28, 184, 65); /* this is a green */
        }

        .button-error {
            background: rgb(202, 60, 60); /* this is a maroon */
        }

        .button-warning {
            background: rgb(223, 117, 20); /* this is an orange */
        }

        .button-secondary {
            background: rgb(66, 184, 221); /* this is a light blue */
        }

    </style>

    <button class="button-success pure-button">Success Button</button>
    <button class="button-error pure-button">Error Button</button>
    <button class="button-warning pure-button">Warning Button</button>
    <button class="button-secondary pure-button">Secondary Button</button>
</div>

Add static index file with search bar and buttons


<% content_for :page_title, "Edit legacy URL redirects" %>

<% content_for :back_link do %>
  <%= render "govuk_publishing_components/components/back_link", {
    href: admin_edition_path(@edition)
  } %>
<% end %>

    <%= @edition.title %>
    <%= form_tag admin_edition_document_sources_path(@edition), method: :patch do %>
      <%= render "govuk_publishing_components/components/textarea", {
        label: {
          is_page_heading: true,
          heading_size: "xl",
          text: "Edit legacy URL redirects"
        },
        hint: "Enter one URL per line.",
        name: "document_sources",
        id: "document_sources",
        value: @edition.document.document_sources.map(&:url).join("\n"),
        rows: 20
      } %>
      <%= render "govuk_publishing_components/components/button", {
        text: "Save",
        margin_bottom: 8
      } %>
    <% end %>

<% content_for :page_title, "Edit legacy URL redirects" %>

    <%= @edition.title %>
    <%= form_tag admin_edition_document_sources_path(@edition), method: :patch do %>
      <%= render "govuk_publishing_components/components/textarea", {
        label: {
          is_page_heading: true,
          heading_size: "xl",
          text: "Edit legacy URL redirects"
        },
        hint: "Enter one URL per line.",
        name: "document_sources",
        id: "document_sources",
        value: @edition.document.document_sources.map(&:url).join("\n"),
        rows: 20
      } %>

        <%= render "govuk_publishing_components/components/button", {
          text: "Save",
        } %>

        <%= link_to("Cancel", [:admin, @edition], class: "govuk-link") %>

    <% end %>

Replace document sources back button with cancel button

In our like for like approach we're using cancel buttons instead of back buttons in the new design system pages.


    Share this request

Your link to this request is:

<%= site_url %>/r/<%= @rid.rid %>

To embed this request, paste the following into your page:

<script src="<%= site_url %>/r/<%= @rid.rid %>.js"></script>

        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-info">Save changes</button>

Remove 'save changes' button. Nothing to save. Derrr.


Poi: <%= @poi.name %>

  <% @nearby_pois.each do |poi| %>
    <%= content_tag :li, poi.name %>
  <% end %>

Poi: <%= @poi.name %>

  <% @nearby_pois.each do |poi| %>
    <%= content_tag :li do %>
      <%= link_to poi.name, nearby_search_path(id: poi.id) %>
    <% end %>
  <% end %>

Add links to navigate between Pois

Add links to navigate between Pois


      <button type="button"
              class="navbar-toggle collapsed"
              data-toggle="collapse"
              data-target="#navbar-links">
        Toggle navigation

      </button>

      <%= link_to dashboard_path, class: "navbar-brand" do %>
        <%= image_tag "logo.png" %>
      <% end %>

        <% if current_user %>
          <%= link_to "Sign out", destroy_user_session_path, method: :delete %>
        <% else %>
          <%= link_to "Sign in", new_session_path(resource_name) %>
        <% end %>

      <button type="button"
              class="navbar-toggle collapsed"
              data-toggle="collapse"
              data-target="#navbar-links">
        Toggle navigation

      </button>

      <%= link_to dashboard_path, class: "navbar-brand" do %>
        <%= image_tag "logo.png" %>
      <% end %>

        <% if user_signed_in? %>
          <%= link_to "Sign out", destroy_user_session_path, method: :delete %>
        <% else %>
          <%= link_to "Sign in", new_session_path(resource_name) %>
        <% end %>

Use user_signed_in? to reveal those intentions


<!DOCTYPE html>

  <%= javascript_include_tag :defaults %>
  <%= csrf_meta_tag %>

    <% if signed_in? -%>
      <%= link_to t('.sign_out'), sign_out_path, :method => :delete %>
    <% else -%>
      <%= link_to t('.sign_in'), sign_in_path %>
    <% end -%>

    <% flash.each do |key, value| -%>
      <div id='flash_<%= key %>'><%=h value %>

    <% end %>

  <%= yield %>

<!DOCTYPE html>

  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tag %>

    <% if signed_in? -%>
      <%= link_to t('.sign_out'), sign_out_path, :method => :delete %>
    <% else -%>
      <%= link_to t('.sign_in'), sign_in_path %>
    <% end -%>

    <% flash.each do |key, value| -%>
      <div id='flash_<%= key %>'><%=h value %>

    <% end %>

  <%= yield %>

Change JavaScript tag to Rails default

Change JavaScript tag to Rails default

https://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt#L6


<!DOCTYPE html>

  <title>LiarsDiceServer</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>

  <% if notice %>
<%= notice %>
<% end %>
  <% if notice %>
<%= alert %>
<% end %>

<%= yield %>
<%= yield :javascripts %>

<!DOCTYPE html>

  <title>LiarsDiceServer</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>

  <% if notice %>
<%= notice %>
<% end %>
  <% if alert %>
<%= alert %>
<% end %>

<%= yield %>
<%= yield :javascripts %>

Use the correct conditional when deciding whether or not to show the alert flash.


<!DOCTYPE html>

  <title>Protest45</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>

<%= notice %>

<%= alert %>

<%= yield %>

<!DOCTYPE html>

  <title>Protest45</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>

	<% if current_user %>

Sign Out

	<% else %>

Register

Sign In

	<% end %>

<%= notice %>

<%= alert %>

<%= yield %>

Add conditional navigation links to app layout


<%=  trip.driver.username %>

Trip leave: <%=  trip.leaving_at %>

Trip arriving: <%=  trip.arriving_at %>

<%= button_to 'Book' %>

<%=  trip.driver.username %>

Trip leave: <%=  trip.leaving_at %>

Trip arriving: <%=  trip.arriving_at %>

Price per cubic foot <% trip.rate %>

<%= button_to 'Book' %>

Add rate to matched trips partials

Add rate to matched trips partials


<%= question.title%>

<%= question.content%>

<%= link_to "comment", new_question_response_path(@question) %>

Move link_to create a comment onto the question show page


<nav class="breadcrumbs" role="navigation" aria-label="<%= t('breadcrumbs.aria_label') %>">

<%= link_to(t('layouts.home'), root_path) %>

    <% categories.each do |category| %>

        >

        <%= link_to category.path, itemprop: "url" do %>
          <%= category.title %>
        <% end %>

    <% end %>

<nav class="breadcrumbs" role="navigation" aria-label="<%= t('breadcrumbs.aria_label') %>">

      <%= link_to root_path, itemprop: "url" do %>
      <%= t('layouts.home') %>
      <% end %>

    <% categories.each do |category| %>

        >

        <%= link_to category.path, itemprop: "url" do %>
          <%= category.title %>
        <% end %>

    <% end %>

Add micro data to home li item

Add micro data to home li item


<fieldset id="task_dependencies">
  <legend><%=_ "Dependencies"%></legend>

  <%=_ 'Depends on'%>
  <% if perms['edit'].empty? %>
    <input name="dependencies[]" size="12" type="text" id="dependencies_input" title="<%=_("Search by task number or title")%>" class="tooltip" >

  <% else %>
    <input name="dependencies[]" size="12" type="text" disabled="disabled">
  <% end %>

    <%= render :partial => "dependency", :collection => @task.dependencies.accessed_by(current_user), :locals => { :perms => perms } %>

  <% if @task.dependants.any? %>

      <%=_ "Depended on by"%>
      <% @task.dependants.accessed_by(current_user).each do |d| %>
        <%= link_to_task(d) %>

      <% end %>

  <% end %>
</fieldset>

<fieldset id="task_dependencies">
  <legend><%=_ "Dependencies"%></legend>

  <%=_ 'Depends on'%>
  <% if perms['edit'].empty? %>
    <input name="dependencies[]" size="12" type="text" id="dependencies_input" title="<%=_("Search by task number or title")%>" class="tooltip" >

  <% else %>
    <input name="dependencies[]" size="12" type="text" disabled="disabled">
  <% end %>

    <%= render :partial => "tasks/dependency", :collection => @task.dependencies.accessed_by(current_user), :locals => { :perms => perms } %>

  <% if @task.dependants.any? %>

      <%=_ "Depended on by"%>
      <% @task.dependants.accessed_by(current_user).each do |d| %>
        <%= link_to_task(d) %>

      <% end %>

  <% end %>
</fieldset>

Use full partial name in tasks view, this view is use by templates controller.


# encoding: utf-8

# InSpec test for recipe <%= cookbook_name %>::<%= recipe_name %>

# The InSpec reference, with examples and extensive documentation, can be
# found at http://inspec.io/docs/reference/resources/

unless os.windows?
  # This is an example test, replace with your own test.
  describe user('root'), :skip do
    it { should exist }
  end
end

# This is an example test, replace it with your own test.
describe port(80), :skip do
  it { should_not be_listening }
end

Remove encoding line in generated tests

Remove encoding line in generated tests

Signed-off-by: Jerry Aldrich <a91ad57971d7c99b11248006963b5e1a3230cc0a@gmail.com>


<%= form_for ptcet, html: ajax_form_hash("#post_type_content_element_types_container_#{dom_id(ptcet.post_type)}", insert_method: 'append', sub_class: "AddALineForm", container: "#new_post_type_content_element_type_#{dom_id(ptcet.post_type)}") do |f| %>
  <%= render partial: 'form_fields', locals: { f: f, ptcet: ptcet } %>
  <%= f.submit "Content element" %>
  <%= link_to('Cancel', '#', :class => 'button',
    data: { emptier: true, target: "#new_post_type_content_element_type_#{dom_id(ptcet.post_type)}" } ) %>
<% end %>

<%= form_for ptcet, html: ajax_form_hash("#post_type_content_element_types_container_#{dom_id(ptcet.post_type)}", insert_method: 'append', sub_class: "AddALineForm", container: "#new_post_type_content_element_type_#{dom_id(ptcet.post_type)}") do |f| %>
  <%= render partial: 'form_fields', locals: { f: f, ptcet: ptcet } %>
  <%= f.submit "Create" %>
  <%= link_to('Cancel', '#', :class => 'button',
    data: { emptier: true, target: "#new_post_type_content_element_type_#{dom_id(ptcet.post_type)}" } ) %>
<% end %>

Fix submit label in post type form

Fix submit label in post type form


daemonize no
pidfile <%=@dir%>/lb-redis.pid

port <%= @port %>
bind <%= @bind %> <%= @listen == @bind ? "" : @listen %>

tcp-keepalive <%= @keepalive %>
timeout <%= @timeout %>
loglevel <%= @loglevel %>
logfile ""

databases <%= @databases %>

<% @save_frequency.each do |dur, freq| %>
save <%=dur%> <%=freq%>
<% end %>

rdbcompression yes
dbfilename dump.rdb
dir <%= File.join(@dir, "data") %>

<% if not @maxmemory.nil? %>
maxmemory <%= @maxmemory %>
maxmemory-policy <%= @maxmemory_policy %>
maxmemory-samples 3
<% end %>

appendonly <%= @appendonly %>
appendfsync <%= @appendfsync %>

no-appendfsync-on-rewrite no
activerehashing <%=@activerehashing%>

auto-aof-rewrite-percentage <%=@aof_rewrite_percent%>
auto-aof-rewrite-min-size <%=@aof_rewrite_min_size%>

daemonize no
pidfile <%=@dir%>/lb-redis.pid

port <%= @port %>
<% if (@listen != "0.0.0.0") && (@listen != "::") %>
bind <%= @bind %> <%= @listen == @bind ? "" : @listen %>
<% end %>

tcp-keepalive <%= @keepalive %>
timeout <%= @timeout %>
loglevel <%= @loglevel %>
logfile ""

databases <%= @databases %>

<% @save_frequency.each do |dur, freq| %>
save <%=dur%> <%=freq%>
<% end %>

rdbcompression yes
dbfilename dump.rdb
dir <%= File.join(@dir, "data") %>

<% if not @maxmemory.nil? %>
maxmemory <%= @maxmemory %>
maxmemory-policy <%= @maxmemory_policy %>
maxmemory-samples 3
<% end %>

appendonly <%= @appendonly %>
appendfsync <%= @appendfsync %>

no-appendfsync-on-rewrite no
activerehashing <%=@activerehashing%>

auto-aof-rewrite-percentage <%=@aof_rewrite_percent%>
auto-aof-rewrite-min-size <%=@aof_rewrite_min_size%>

Fix redis to listen to all networks in HA mode.

We use 0.0.0.0 as the default bind address in HA mode. Redis doesn't understand that properly, and instead wants the bind clause to be dropped entirely.


---
title: Trusted System Certificates
---

<%= modified_date %>

The Cloud Foundry Administrator can deploy a set of trusted system certificates to be made available in Linux-based application instances running on the Diego backend. Such instances include buildpack-based apps using the cflinuxfs2 stack and Docker-image-based apps. If the administrator has configured these certificates, they will be available inside the instance containers as files with extension `.crt` in the read-only `/etc/cf-system-certificates` directory. For cflinuxfs2-based apps, these certificates will also be installed directly in the `/etc/ssl/certs` directory, and so will be available automatically to libraries such as `openssl` that respect that trust store. If the administrator has configured these certs, the location of the certs is also provided in the environment variable CF_SYSTEM_CERTS on the instance container.

Update trusted system certs doc

Update trusted system certs doc

with information about the new environment variable CF_SYSTEM_CERTS.

[#151430242]


<% content_for(:back_url, services_path) %>
<% content_for(:header_title, @request.service.name) %>
<%= render 'form' %>

<% content_for(:back_url, services_path) %>
<% content_for(:header_title, service_name(@request.service)) %>
<%= render 'form' %>

Change title to have service_name in form page.


<% title 'Updates' %>
<% activate_nav! :platform_updates %>

<%= render 'shared/navbar' %>

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

                  <%= app_icon(post.product, size: 24) %>

<%= post.product.name %>

              <%= render post %>

            <% end %>

Recent Posts

                <% @posts.limit(10).each do |post| %>
                  <a class="list-group-item small" href="<%= product_post_path(post.product, post) %>">
                    <%= post.title %>

                <% end %>

        <%= paginate @page, theme: 'twitter-bootstrap-3' %>

<%= render 'shared/footer' %>

<% title 'Updates' %>
<% activate_nav! :platform_updates %>

<%= render 'shared/navbar' %>

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

                <a href="<%= product_path(post.product) %>">

                    <%= app_icon(post.product, size: 24) %>

<%= post.product.name %>

              <%= render post %>

            <% end %>

Recent Posts

                <% @posts.limit(10).each do |post| %>
                  <a class="list-group-item small" href="<%= product_post_path(post.product, post) %>">
                    <%= post.title %>

                <% end %>

        <%= paginate @page, theme: 'twitter-bootstrap-3' %>

<%= render 'shared/footer' %>

Make the update product titles clickable


server {
  server_name <%= @full_domain %>;

  listen localhost:80;

  proxy_connect_timeout 1s;
  proxy_read_timeout 15s;

  access_log /var/log/nginx/<%= @full_domain %>-access.log timed_combined;
  access_log /var/log/nginx/<%= @full_domain %>-json.event.access.log json_event;
  error_log /var/log/nginx/<%= @full_domain %>-error.log;

  location / {
    try_files $uri/index.html $uri.html $uri @app;
  }

  location /publisher {
    proxy_pass http://localhost:3079;
  }

  location /signon {
    proxy_pass http://localhost:3080;
  }

  location /whitehall {
    proxy_pass http://localhost:3081;
  }

  location /transition {
    proxy_pass http://localhost:3086;
  }

  location /email-alert-api {
    proxy_pass http://localhost:3089;
  }

  location /rummager {
    proxy_pass http://localhost:3091;
  }

  location /publishing-api {
    proxy_pass http://localhost:3114;
  }

  root /data/vhost/<%= @full_domain %>/current/public;

}

server {
  server_name <%= @full_domain %>;

  listen localhost:80;

  proxy_connect_timeout 1s;
  proxy_read_timeout 15s;

  access_log /var/log/nginx/<%= @full_domain %>-access.log timed_combined;
  access_log /var/log/nginx/<%= @full_domain %>-json.event.access.log json_event;
  error_log /var/log/nginx/<%= @full_domain %>-error.log;

  location / {
    try_files $uri/index.html $uri.html $uri @app;
  }

  location /publisher {
    proxy_pass http://localhost:3079;
  }

  location /signon {
    proxy_pass http://localhost:3080;
  }

  location /whitehall {
    proxy_pass http://localhost:3081;
  }

  location /transition {
    proxy_pass http://localhost:3086;
  }

  location /email-alert-api {
    proxy_pass http://localhost:3089;
  }

  location /rummager {
    proxy_pass http://localhost:3091;
  }

  location /publishing-api {
    proxy_pass http://localhost:3114;
  }

  location /email-campaign-api {
    proxy_pass http://localhost:3117;
  }

  root /data/vhost/<%= @full_domain %>/current/public;

}

Add path for email-campaign-api sidekiq-monitoring under its vhost


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

TZ=UTC

MAILTO=brett@bretth.com

* * * * * planet /usr/local/bin/osmosis -q --replicate-apidb authFile=/etc/replication/auth.conf validateSchemaVersion=false --write-replication workingDirectory=/store/planet/replication/minute
2 * * * * planet /usr/local/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/hour
5 * * * * planet /usr/local/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/day

MAILTO=zerebubuth@gmail.com

* * * * * planet /usr/local/bin/replicate-changesets /etc/replication/changesets.conf

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

TZ=UTC

MAILTO=brett@bretth.com

* * * * * planet /usr/local/bin/osmosis -q --replicate-apidb authFile=/etc/replication/auth.conf validateSchemaVersion=false --write-replication workingDirectory=/store/planet/replication/minute
2 * * * * planet /home/bretth/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/hour
5 * * * * planet /home/bretth/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/day

MAILTO=zerebubuth@gmail.com

* * * * * planet /usr/local/bin/replicate-changesets /etc/replication/changesets.conf

Use Brett's osmosis build for the hourly/daily replication for now


<% role_type = role.type %>
<%= form_for [:admin, role.becomes(Role)], as: :role do |form| %>
  <%= form.errors %>

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

  <fieldset>
    <%= form.text_area :responsibilities, class: "previewable" %>
  </fieldset>

  <%= form.save_or_cancel cancel: admin_roles_path %>
<% end %>

<% role_type = role.type %>
<%= form_for [:admin, role.becomes(Role)], as: :role do |form| %>
  <%= form.errors %>

  <fieldset>
    <%= form.text_field :name %>
    <%= form.label :type %>
    <%= form.select :type, grouped_options_for_select(role_type_options, role_type_option_value_for(role, role_type)) %>
    <%= form.label :organisation_ids, 'Organisations' %>
    <%= form.select :organisation_ids, options_from_collection_for_select(Organisation.all, 'id', 'name', role.organisation_ids), {}, multiple: true, class: 'chzn-select', data: { placeholder: "Choose organisations..." } %>
    <%= form.label :worldwide_office_ids, 'Worldwide offices' %>
    <%= form.select :worldwide_office_ids, options_from_collection_for_select(WorldwideOffice.all, 'id', 'name', role.worldwide_office_ids), {}, multiple: true, class: 'chzn-select', data: { placeholder: "Choose worldwide offices..." } %>
  </fieldset>

  <fieldset>
    <%= form.text_area :responsibilities, class: "previewable" %>
  </fieldset>

  <%= form.save_or_cancel cancel: admin_roles_path %>
<% end %>

Update roles form to associate worldwide offices


<% text_for :title do %>
  UK benefits if you’re going or living abroad
<% end %>

<% text_for :meta_description do %>
  Find out what benefits you might be able to receive while you’re abroad and how to export them from the UK or claim them while abroad
<% end %>

<% govspeak_for :body do %>
  Find out which UK benefits you might be able to get while you're abroad and how to claim them if you're eligible.

  The UK has social security agreements with some countries that:

  - allow you to claim some benefits while you're there
  - mean that your National Insurance contributions can count towards your eligibility for that country's benefits

  It's easier to organise benefits before you leave.

  ^The rules for claiming benefits will be different if you move to an [EEA country](/eea-eu) or Switzerland from 1 January 2021. Read [guidance on how your benefits may be affected](/guidance/benefits-and-pensions-for-uk-nationals-in-the-eea-or-switzerland) for more information.

<% end %>

<% text_for :title do %>
  UK benefits if you’re going or living abroad
<% end %>

<% text_for :meta_description do %>
  Find out what benefits you might be able to receive while you’re abroad and how to export them from the UK or claim them while abroad
<% end %>

<% govspeak_for :body do %>
  Find out which UK benefits you might be able to get while you're abroad and how to claim them if you're eligible.

  The UK has social security agreements with some countries that:

  - allow you to claim some benefits while you're there
  - mean that your National Insurance contributions can count towards your eligibility for that country's benefits

  It's easier to organise benefits before you leave.
<% end %>

Remove callout on start page for UK Benefits Abroad

This will no longer be applicable after 31 Dec 2020.


<%= render partial: 'editor_tab_size' %>
<%= render partial: 'traffic_lights_scroller' %>
<%= render partial: 'run_tests' %>

<%= form_tag( action: 'run_tsets', id: @id ) do %>
  <%= render partial: 'image_name' %>
  <%= render partial: 'index' %>
  <%= render partial: 'max_seconds' %>

    <%= render partial: 'avatar_image' %>

      <%= render partial: 'test_button' %>
      <%= render partial: 'predict_revert' %>

    <%= render partial: 'file_create_rename_delete' %>
    <%= render partial: 'filenames' %>
    <%= render partial: 'download' %>

    <%= render partial: 'traffic_lights' %>
    <%= render partial: 'tabs' %>
    <%= render partial: 'repl' %>
    <%= render partial: 'files' %>

<% end %>

  <%= render partial: 'traffic_lights_counts' %>
  <%= render partial: 'predict_counts' %>
  <%= render partial: 'shared/sponsorship' %>

<%= render partial: 'editor_tab_size' %>
<%= render partial: 'traffic_lights_scroller' %>
<%= render partial: 'run_tests' %>

<%= form_tag( action: 'run_tests', id: @id ) do %>
  <%= render partial: 'image_name' %>
  <%= render partial: 'index' %>
  <%= render partial: 'max_seconds' %>

    <%= render partial: 'avatar_image' %>

      <%= render partial: 'test_button' %>
      <%= render partial: 'predict_revert' %>

    <%= render partial: 'file_create_rename_delete' %>
    <%= render partial: 'filenames' %>
    <%= render partial: 'download' %>

    <%= render partial: 'traffic_lights' %>
    <%= render partial: 'tabs' %>
    <%= render partial: 'repl' %>
    <%= render partial: 'files' %>

<% end %>

  <%= render partial: 'traffic_lights_counts' %>
  <%= render partial: 'predict_counts' %>
  <%= render partial: 'shared/sponsorship' %>

Fix view-test template error causing 500 error


<% title "Welcome to Cartoque!" %>

<div id="welcome-container">

<%= welcome_box do %>
  <%= render 'stats_general' %>
<% end %>

<%= welcome_box do %>
  <%= render 'stats_databases' %>
<% end %>

<%= welcome_box do %>
  <%= render 'stats_storage' %>
<% end %>

<%= welcome_box do %>
  <%= render 'stats_maintenance' %>
<% end %>

<%= welcome_box "" %>

</div><!-- #welcome-container -->

<% title "Welcome to Cartoque!" %>

<div id="welcome-container">

<%= welcome_box do %>
  <%= render 'stats_general' %>
<% end %>

<%= welcome_box do %>
  <%= render 'stats_databases' %>
<% end %>

<%= welcome_box do %>
  <%= render 'stats_storage' %>
<% end %>

<%= welcome_box do %>
  <%= render 'stats_maintenance' %>
<% end %>

<%= welcome_box "" %>

<%= welcome_box do %>
  <%= render 'comp_vmware' %>
<% end %>

<%= welcome_box do %>
  <%= render 'comp_nagios' %>
<% end %>

</div><!-- #welcome-container -->

Revert "Disable comparison boxes on welcome page, they're not ready for the moment"

This reverts commit 150c6be0d9644e99a378e63a5989b9c80943d3a1.


require 'csv'

module FioLogParser
  def parse_log(log_file, results_file = 'fio_results.csv')
    CSV.open(results_file, 'wb') do |csv|
      CSV.foreach(log_file) do |row|
        csv << [row[0], row[1].strip]
      end
    end
  end
end

require 'csv'

class FioLogParser
  def self.parse_log(log_file, results_file = 'fio_results.csv')
    CSV.open(results_file, 'wb') do |csv|
      CSV.foreach(log_file) do |row|
        csv << [row[0], row[1].strip]
      end
    end
  end
end

Use class instead of module for FioLogParser


<% page_title @worldwide_organisation.name %>

<%= @worldwide_organisation.name %>

    <%= link_to "View on website", url_for(@worldwide_organisation) %>

      <%= tab_navigation_for(@worldwide_organisation) %>

      <%= link_to "Add worldwide office", new_admin_worldwide_organisation_worldwide_office_path(@worldwide_organisation), class: "btn new_resource"%>

      <% if @worldwide_organisation.offices.any? %>

              Title
              Access and opening times
              Actions

            <%= render @worldwide_organisation.offices, worldwide_organisation: @worldwide_organisation %>

      <% else %>

No offices

      <% end %>

<% page_title @worldwide_organisation.name %>

<%= content_tag_for(:div, @worldwide_organisation) do %>

<%= @worldwide_organisation.name %>

      <%= link_to "View on website", url_for(@worldwide_organisation) %>

      <%= tab_navigation_for(@worldwide_organisation) %>

      <% if @worldwide_organisation.offices.any? %>

              Title
              Access and opening times
              Actions

            <%= render @worldwide_organisation.offices, worldwide_organisation: @worldwide_organisation %>

      <% else %>

No offices

      <% end %>

        <%= link_to "Add", new_admin_worldwide_organisation_worldwide_office_path(@worldwide_organisation), class: "btn btn-large btn-primary"%>

<% end %>

Add enclosing object id tag for worldwide orgs


<% rights_statements = Hyrax.config.rights_statement_service_class.new %>
<%= f.input :rights_statement,
    collection: rights_statements.select_active_options,
    include_blank: true,
    input_html: { class: 'form-control' } %>

<% rights_statements = Hyrax.config.rights_statement_service_class.new %>
<%= f.input :rights_statement,
    collection: rights_statements.select_active_options,
    include_blank: true,
    item_helper: rights_statements.method(:include_current_value),
    input_html: { class: 'form-control' } %>

Support inactive values in the rights statement field

This allows soft removal of rights statements from the vocabulary without
breaking forms for existing objects.


<%= content_tag :th, **@rest do %>
  <%= content_tag :div, class: 'flex gap-2 items-center' do %>
    <% if @id %>
      <% if sort_arrow %>
        <%= link_to href, class: 'cursor-pointer whitespace-nowrap flex gap-1 items-center items-end relative' do %>
          <div class="text-teal-400 font-light absolute -left-4">
            <%= sort_arrow %>
          </div>
          <%= @title %>
        <% end %>
      <% else %>
        <%= link_to @title, href, class: 'cursor-pointer'  %>
      <% end %>
    <% else %>
      <%= @title %>
    <% end %>

    <% if tooltip %>
      <%= tooltip %>
    <% end %>
  <% end %>
<% end %>

<%= content_tag :th, **@rest do %>
  <%= content_tag :div, class: (@rest[:align] == 'left' ? 'justify-start' : 'justify-end') + ' flex gap-2 items-center' do %>
    <% if @id %>
      <% if sort_arrow %>
        <%= link_to href, class: 'cursor-pointer whitespace-nowrap flex gap-1 items-center items-end relative' do %>
          <div class="text-teal-400 font-light absolute -left-4">
            <%= sort_arrow %>
          </div>
          <%= @title %>
        <% end %>
      <% else %>
        <%= link_to @title, href, class: 'cursor-pointer'  %>
      <% end %>
    <% else %>
      <%= @title %>
    <% end %>

    <% if tooltip %>
      <%= tooltip %>
    <% end %>
  <% end %>
<% end %>

Add conditional for flex alignment based on table heading alignment

Closes: #1141


<%= t("features.list.n4.title") %>

<%= t("features.list.n4.content") %>

<%= t("features.list.n5.title") %>

<%= t("features.list.n5.content") %>

<%= t("features.list.n6.title") %>

<%= t("features.list.n6.content") %>

    <%= t("features.list.cta.values") %>

<%= t("features.list.n4.title") %>

<%= t("features.list.n4.content") %>

<%= t("features.list.n5.title") %>

<%= t("features.list.n5.content") %>

<%= t("features.list.n6.title") %>

<%= t("features.list.n6.content") %>

    <a href="<%= t(:path) %>/contract" class="btn btn--primary"><%= t("features.list.cta.values") %>

Fix social contract link in values button in homepage


<!-- TODO breadcrumb -->

<%= simple_form_for(@model, url: backend_navigation_items_path) do |f| %>
  <%= f.input :page_id, collection: ::Page.order(:description).map { |p| [p.description, p.id] }, include_blank: true %>
  <%= render 'backend/form_actions', cancel_url: backend_navigations_path %>
<% end %>

<% breadcrumb.add t('b.add'), new_backend_navigation_item_path(@navigation, @model) %>
<%= render 'backend/breadcrumbs' %>

<%= simple_form_for(@model, url: backend_navigation_items_path) do |f| %>
  <%= f.input :page_id, collection: ::Page.order(:description).map { |p| [p.description, p.id] }, include_blank: true %>
  <%= render 'backend/form_actions', cancel_url: backend_navigations_path %>
<% end %>

Add breadcrumb to navigation item add.

Add breadcrumb to navigation item add.


<%=
    stylesheet_link_tag "bootstrap-theme.min",
                        "site",
                        { type: nil, rel: "prefetch" }
%>
<%=
    stylesheet_link_tag "bootstrap-theme.min",
                        "site"
%>
<script>
    var cb = function() {
      var sheets = [
        "https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"
        ];
      var h = document.getElementsByTagName('head')[0];
      for (var i = 0; i < sheets.length; i++) {
        var l = document.createElement("link");
        l.rel = "stylesheet";
        l.href = sheets[i];
        h.appendChild(l);
      }
    };
    var raf = requestAnimationFrame || mozRequestAnimationFrame ||
              webkitRequestAnimationFrame || msRequestAnimationFrame;
    if (raf) {
        raf(cb);
    } else if (document.addEventListener) {
        document.addEventListener("load", cb);
    } else {
        document.attachEvent("onload", cb);
    }
</script>

<%=
    stylesheet_link_tag "bootstrap-theme.min",
                        "site",
                        { type: nil, rel: "prefetch" }
%>
<%=
    stylesheet_link_tag "bootstrap-theme.min",
                        "site"
%>
<script>
    var cb = function() {
      var sheets = [
        <% if false %>
        "<%= asset_path :css, "bootstrap-theme.min" %>",
        "<%= asset_path :css, "site" %>",
        <% end %>
        "https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"
        ];
      var h = document.getElementsByTagName('head')[0];
      for (var i = 0; i < sheets.length; i++) {
        var l = document.createElement("link");
        l.rel = "stylesheet";
        l.href = sheets[i];
        h.appendChild(l);
      }
    };
    var raf = requestAnimationFrame || mozRequestAnimationFrame ||
              webkitRequestAnimationFrame || msRequestAnimationFrame;
    if (raf) {
        raf(cb);
    } else if (document.addEventListener) {
        document.addEventListener("load", cb);
    } else {
        document.attachEvent("onload", cb);
    }
</script>

Add commented out code to lazily load CSS.


<%

  attachment = attribute.split('_file_name').first

  if !@item.send(attribute).blank?
    message = _("Remove {{attribute}}", :attribute => @item.class.human_attribute_name(attribute).downcase)
    label_text << <<-HTML
 #{link_to message, { :action => 'detach',
                             :id => @item,
                             :attachment => attachment },
                             :confirm => _("Are you sure?")}
    HTML
  end

%>

  <%= form.label attribute, label_text %>
  <%= form.file_field attachment, options %>
  <%= typus_preview(@item, attribute) %>

<%

  attachment = attribute.split('_file_name').first

  if !@item.send(attribute).blank?
    message = _("Remove {{attribute}}", :attribute => @item.class.human_attribute_name(attribute).downcase)
    label_text << <<-HTML
 #{link_to message, { :action => 'detach',
                             :id => @item,
                             :attachment => attachment },
                             :confirm => _("Are you sure?")}
    HTML
  end

%>

  <%= form.label attribute, raw(label_text) %>
  <%= form.file_field attachment, options %>
  <%= typus_preview(@item, attribute) %>

Use raw on the label

Use raw on the label


<% if document.has_thumbnail? %>

    <%= image_tag "#{datastream_path(document.id, 'thumbnail')}?download=1" %>

<% end %>

<%# default partial to display solr document fields in catalog show view -%>

  <% document_show_fields.each do |solr_fname, field| -%>
    <% if should_render_show_field? document, field %>
    <dt class="blacklight-<%= solr_fname.parameterize %>"><%= render_document_show_field_label :field => solr_fname %>

    <dd class="blacklight-<%= solr_fname.parameterize %>"><%= render_document_show_field_value :document => document, :field => solr_fname %>

    <% end -%>
  <% end -%>

<%# end blacklight default -%>

Datastreams

<%= render :partial => 'datastreams', :locals => {:document => document} %>

More Information

    <%= link_to "Preservation Events", preservation_events_path(document.id) %>

    <%= link_to "Audit Trail", audit_trail_index_path(document.id) %>

<% if document.has_thumbnail? %>

    <%= image_tag thumbnail_path(document.id), :alt => "Thumbnail image for #{document.id}"  %>

<% end %>

<%# default partial to display solr document fields in catalog show view -%>

  <% document_show_fields.each do |solr_fname, field| -%>
    <% if should_render_show_field? document, field %>
    <dt class="blacklight-<%= solr_fname.parameterize %>"><%= render_document_show_field_label :field => solr_fname %>

    <dd class="blacklight-<%= solr_fname.parameterize %>"><%= render_document_show_field_value :document => document, :field => solr_fname %>

    <% end -%>
  <% end -%>

<%# end blacklight default -%>

Datastreams

<%= render :partial => 'datastreams', :locals => {:document => document} %>

More Information

    <%= link_to "Preservation Events", preservation_events_path(document.id) %>

    <%= link_to "Audit Trail", audit_trail_index_path(document.id) %>

Use new path for thumnail; added alt tag to thumbnail


    <%= f.input :value, as: :image, label: false, input_html: { field_name: 'setting_value', img_src: @setting.value, path_only: true } %>

    <%= f.input :value, label: 'Image URL', readonly: true %>

Fix image-to-path image setting issue

Fix image-to-path image setting issue


Related content

  <% categories.each do |category| %>

        <%= category.title %>

        <% category.contents.each do |article| %>

            <%= link_to article.title, article.path %>

        <% end %>

<%= link_to 'View all...', category.path %>

  <% end %>

Related content

  <% categories.each do |category| %>

        <%= link_to category.title, category.path %>

        <% category.contents.each do |article| %>

            <%= link_to article.title, article.path %>

        <% end %>

  <% end %>

Revert "Add new HTML to the related links component"

This reverts commit bcf1cd827a90909292f07106447d66d4057393bd.


<form class="" action="search" method="get">
  <input type="text" name="gem" value="" placeholder="i.e. mandrill_mailer">
  <input type="button" name="Search" value="Check">
</form>

<form class="" action="search" method="get">
  <input type="text" name="gem" value="" placeholder="i.e. mandrill_mailer">
  <input type="submit" name="Search" value="Check">
</form>

Make sure to submit form when clicking on the button


<%#
# encoding: utf-8
#--
#   Copyright (C) 2012-2013 Gitorious AS
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU Affero General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU Affero General Public License for more details.
#
#   You should have received a copy of the GNU Affero General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
#++
%>

<%= @title = "All repositories" %>

    <% repositories.each do |repo| %>

<a href="/<%= repo %>/tree/master:"><%= repo %>

    <% end %>

<%#
# encoding: utf-8
#--
#   Copyright (C) 2012-2013 Gitorious AS
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU Affero General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU Affero General Public License for more details.
#
#   You should have received a copy of the GNU Affero General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
#++
%>

<%= @title = "All repositories" %>

      <% repositories.each do |repo| %>

          <a href="/<%= repo %>/tree/master:">

            <%= repo %>

    <% end %>

Use a table in repo listing

Use a table in repo listing


<% questions.each do |q| %>

<%= q.text %><% if q.closed? %>(Voting is closed)<% end %>

Voting Progress: <%= q.taken_votes %> / <%= q.possible_votes %> (<%= '%0.2f' % q.voted_percentage %>%)

    <% q.vote_breakdown do |answer, count| %>

        <%= answer.text %>
        <%= count %>

    <% end %>

<% end %>

<% questions.each do |q| %>

<%= q.text %><% if q.closed? %>(Voting is closed)<% end %>

Voting Progress: <%= q.cast_votes %> / <%= q.possible_votes %> (<%= '%0.2f' % q.percentage_cast %>%)

    <% q.vote_breakdown.each do |answer, count| %>

        <%= answer.text %>
        <%= count %>

    <% end %>

<% end %>

Update template for new logic

Update template for new logic


<!doctype html>

    <meta charset="utf-8" />
    <meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' />
    <title>Blog Title<%= ' - ' + current_article.title unless current_article.nil? %></title>
    <%= feed_tag :atom, "#{blog.options.prefix.to_s}/feed.xml", title: "Atom Feed" %>

      <%= yield %>

Recent Articles

        <% blog.articles[0...10].each do |article| %>

<%= link_to article.title, article %> <%= article.date.strftime('%b %e') %>

        <% end %>

Tags

        <% blog.tags.each do |tag, articles| %>

<%= link_to "#{tag} (#{articles.size})", tag_path(tag) %>

        <% end %>

By Year

        <% blog.articles.group_by {|a| a.date.year }.each do |year, articles| %>

<%= link_to "#{year} (#{articles.size})", blog_year_path(year) %>

        <% end %>

<!doctype html>

Recent Articles

        <% blog.articles[0...10].each do |article| %>

<%= link_to article.title, article %> <%= article.date.strftime('%b %e') %>

        <% end %>

Tags

        <% blog.tags.each do |tag, articles| %>

<%= link_to "#{tag} (#{articles.size})", tag_path(tag) %>

        <% end %>

By Year

        <% blog.articles.group_by {|a| a.date.year }.each do |year, articles| %>

<%= link_to "#{year} (#{articles.size})", blog_year_path(year) %>

        <% end %>

Remove some html stuff (file will be remove later).


<%= "component_#{name}" %>: <%= name %>
<%- unless generics.size.empty? %>
  generic map(
      <%= generic_mappings %>
         )
<%- end %>
<%- unless ports.size.empty? %>
  port map(
      <%= port_mappings %>
       )
<%- end %>
;

<%= "component_#{name}" %>: <%= name %>
<%- unless generics.empty? -%>
  generic map(
      <%= generic_mappings %>
         )
<%- end -%>
<%- unless ports.empty? -%>
  port map(
      <%= port_mappings %>
       )
<%- end -%>
;

Fix component_map template type error

Fix component_map template type error


<!DOCTYPE html>

  <title><%= yield_content :page_title %>- GOV.UK</title>
  <link rel="stylesheet" href="stylesheets/main.css">
  <link rel="stylesheet" href="stylesheets/prototypes.css">

<%= yield_content :page_title %>

    <%= yield %>

Update h1 to fix indentation

Update h1 to fix indentation


<%# TODO: Cache for 5 minutes %>

      <%= render :partial => 'frontpage_intro_sentence'  %>

      <%= render :partial => "frontpage_new_request" %>

      <%= render :partial => "frontpage_search_box" %>

      <%= render :partial => "frontpage_bodies_list" %>
      <%= render :partial => "frontpage_requests_list" %>

    <%= render :partial => "frontpage_supporting" %>

<%# TODO: Cache for 5 minutes %>

      <%= render :partial => 'frontpage_intro_sentence'  %>

      <%= render :partial => "frontpage_new_request" %>

      <%= render :partial => "frontpage_search_box" %>

  <%= render :partial => "frontpage_how_it_works" %>

      <%= render :partial => "frontpage_bodies_list" %>
      <%= render :partial => "frontpage_requests_list" %>

    <%= render :partial => "frontpage_supporting" %>

Add an explanation of how it works "1. 2. 3" - merged in from app


Start your own band!

<%= form_for @group, html: {class: "pure-form pure-form-aligned new-group-form"} do |f|%>

  <%= f.label :name, "Your awesome band name:" %>

  <%= f.text_field :name %>

  <%= f.label :password, "Band Access Key:" %>

  <%= f.password_field :password %>

  <%= f.submit "Start your band", class: 'pure-button pure-button-primary'%>

<%end%>

<% if flash[:group_create_error] %>

<%= flash[:group_create_error] %>

<% end %>
<% if flash[:group_successful_destroy] %>

<%= flash[:group_successful_destroy] %>

<% end %>

Create a group new view.

Create a group new view.


<%= notice %>

  Title:
  <%= @note.title %>

  Contents:
  <%= @note.contents %>

  Last viewed at:
  <%= @note.last_viewed_at %>

<%= link_to 'Edit', edit_note_path(@note) %> |
<%= link_to 'Back', notes_path %>

<%= notice %>

  Title:
  <%= @note.title %>

  Contents:
  <%= @note.contents %>

  Last viewed at:
  <%= @note.last_viewed_at %>

<%= link_to 'New Note', new_note_path %> |
<%= link_to 'Edit', edit_note_path(@note) %> |
<%= link_to 'Back', notes_path %>

Add new link to shortcut

Add new link to shortcut