<div class="file-upload" data-<%= model_name %>-id="<%= model_instance.id %>">
  <%= form_for model_instance, :url    => update_route,
                               :remote => true,
                               :method => "put",
                               :html   => { :class     => "file-upload",
                                            :id        => "#{model_name}-#{attribute_name}",
                                            :multipart => true } do |f| %>

        Current File

        <%= image_tag f.object.reload.send(attribute_name) %>

          Upload New File...
          <%= f.file_field attribute_name.to_sym %>

  <% end %>

<div class="file-upload" data-<%= model_name %>-id="<%= model_instance.id %>">
  <%= form_for model_instance, :url    => update_route,
                               :remote => true,
                               :method => "put",
                               :builder => ErrorMessagesFormBuilder,
                               :html   => { :class     => "file-upload",
                                            :id        => "#{model_name}-#{attribute_name}",
                                            :multipart => true } do |f| %>

      <%= f.error_messages %>

        Current File

        <%= image_tag f.object.reload.send(attribute_name) %>

          Upload New File...
          <%= f.file_field attribute_name.to_sym %>

  <% end %>

Update File Upload Form Partial for Error Messages

Update the partial to utilize and render error messages for an invalid
file format (or any other errors corresponding to the object).


Social Media Navigation

  <%= mail_to "mailto:downeydillon@gmail.com", itemprop:"email" do %>
    <%= image_tag("icons/gmail-64x64.png", width:"64", height:"64", alt:"Gmail link icon", id:"gmail-icon") %>
  <% end %>
  <%= link_to "https://github.com/downeyd27", itemprop:"url" do %>
    <%= image_tag("icons/github-64x64.png", width:"64", height:"64", alt:"Github link icon", class:"github-icon") %>
  <% end %>
  <%= link_to "https://www.linkedin.com/in/dillondowney", itemprop:"url" do %>
    <%= image_tag("icons/linkedin-64x64.png", width:"64", height:"64", alt:"Linkedin link icon", class:"linkedin-icon") %>
  <% end %>

Social Media Navigation

  <%= mail_to "mailto:downeydillon@gmail.com", itemprop:"email" do %>
    <%= image_tag("https://dfg4bcc9lmlk6.cloudfront.net/icons/gmail-64x64.png", width:"64", height:"64", alt:"Gmail link icon", id:"gmail-icon") %>
  <% end %>
  <%= link_to "https://github.com/downeyd27", itemprop:"url" do %>
    <%= image_tag("https://dfg4bcc9lmlk6.cloudfront.net/icons/github-64x64.png", width:"64", height:"64", alt:"Github link icon", class:"github-icon") %>
  <% end %>
  <%= link_to "https://www.linkedin.com/in/dillondowney", itemprop:"url" do %>
    <%= image_tag("https://dfg4bcc9lmlk6.cloudfront.net/icons/linkedin-64x64.png", width:"64", height:"64", alt:"Linkedin link icon", class:"linkedin-icon") %>
  <% end %>

Change href of links to Amazon CloudFront distribution.


New

Published

Archive

Review Requested

          Title

        <% @guides.each do |guide| %>

            <%= link_to guide.title, [:admin, guide] %>

            <%= link_to 'Edit', [:edit, :admin, guide] %>
            <%= link_to 'Preview', '#' %>

        <% end %>

<%= link_to '+ Add New', new_admin_guide_path %>

Add links for guide list tabs

Add links for guide list tabs


<%= javascript_include_tag 'application' %>

<% cache 'footer_social_js' do %>

  <%# Facebook SDK for javascript initialization %>
  <script>
    window.fbAsyncInit = function() {
      FB.init({
        appId      : <%= Rails.application.secrets.facebook_app_ID %>,
        version    : 'v2.0'
      });
    };

    (function(d, s, id){
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) {return;}
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/sdk.js";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
  </script>

  <%= javascript_include_tag '//platform.twitter.com/widgets.js' %>

<% end %>

<%= render 'layouts/noscript_warning' %>

<%= javascript_include_tag 'application' %>

<% cache 'footer_social_js' do %>

  <%# Facebook SDK for javascript asynchronous load and initialization %>
  <script>
    window.fbAsyncInit = function() {
      FB.init({
        appId      : <%= Rails.application.secrets.facebook_app_ID %>,
        version    : 'v2.0'
      });
    };

    (function(d, s, id){
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) {return;}
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/sdk.js";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
  </script>

  <%# Twitter widgets.js asynchronous load and initialization %>
  <script>window.twttr = (function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0],
        t = window.twttr || {};
    if (d.getElementById(id)) return t;
    js = d.createElement(s);
    js.id = id;
    js.src = "https://platform.twitter.com/widgets.js";
    fjs.parentNode.insertBefore(js, fjs);

    t._e = [];
    t.ready = function(f) {
      t._e.push(f);
    };

    return t;
  }(document, "script", "twitter-wjs"));</script>

<% end %>

<%= render 'layouts/noscript_warning' %>

Load twitter javascript (widgets.js) asynchrously, instead of with a plain <script> tag.

This means faster page load (widgets.js loads after the page is already loaded and usable) and, most importantly, it will not block page load for about 20 seconds until timeout in places where twitter is blocked, e.g. China.


<% content_for :title do %>
  Marriage in <%= calculator.country_name_lowercase_prefix %>
<% end %>

<% content_for :body do %>
  <% if calculator.ceremony_country == 'british-indian-ocean-territory' %>
    Access to the British Indian Ocean Territory is restricted, and it’s unlikely that marriage would be allowed there.

    Contact the British Indian Ocean Territory Administration for further details.

      <%= render partial: 'contact_method.govspeak.erb',
                 locals: { calculator: calculator } %>
  <% elsif calculator.ceremony_country == 'british-virgin-islands' %>
    The British Virgin Islands is a British overseas territory.

    Contact the [Civil Registry](http://www.bvi.gov.vg/department/civil-registry-and-passport-office) to find out about getting married there, including what documents you’ll need.

    <%= render partial: 'get_legal_advice.govspeak.erb' %>
  <% else %>
    <%= calculator.country_name_uppercase_prefix %> is a British overseas territory.

    Contact the <%= calculator.ceremony_country_name %> Government to find out about getting married there, including what documents you’ll need.

    <% if calculator.ceremony_country == 'gibraltar' %>
      <%= render partial: 'contact_details_for_gibraltar.govspeak.erb' %>
    <% else %>
      <%= render partial: 'contact_method.govspeak.erb',
                 locals: { calculator: calculator } %>
    <% end %>

    <% if calculator.resident_of_ceremony_country? %>
      <%= render partial: 'get_legal_advice.govspeak.erb' %>
    <% else %>
      <%= render partial: 'get_legal_and_travel_advice.govspeak.erb',
                 locals: { calculator: calculator } %>
    <% end %>
    <% unless calculator.partner_british? %>

      <%= render partial: 'partner_naturalisation_in_uk.govspeak.erb' %>
    <% end %>
  <% end %>
<% end %>

<% content_for :title do %>
  Marriage in <%= calculator.country_name_lowercase_prefix %>
<% end %>

<% content_for :body do %>
  The British Virgin Islands is a British overseas territory.

  Contact the [Civil Registry](http://www.bvi.gov.vg/department/civil-registry-and-passport-office) to find out about getting married there, including what documents you’ll need.

  <%= render partial: 'get_legal_advice.govspeak.erb' %>
<% end %>

Update outcome for British Virgin Islands

I've removed all logic and content not related to ceremonies in the British
Virgin Islands.

The diff is probably best viewed using the `--ignore-all-space` option.


server {
       listen <%= @listen_port %>;
       server_name <%= @server_name %>;
       disable_symlinks off;
       root <%= @roundcube_dir %>;

       index index.php index.html;

       location ~ ^/favicon.ico$ {
                root <%= @roundcube_dir %>/web/skins/default/images;
                log_not_found off;
                access_log off;
                expires max;
       }

       location = /robots.txt {
                allow all;
                log_not_found off;
                access_log off;
       }

       location ~ ^/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
                deny all;
       }
       location ~ ^/(bin|SQL)/ {
                deny all;
       }

       # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
       location ~ /\. {
                deny all;
                access_log off;
                log_not_found off;
       }

       location ~ \.php$ {
                try_files $uri =404;
                include /etc/nginx/fastcgi_params;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_index index.php;
       }
}

server {
       listen <%= @listen_port %>;
       server_name <%= @server_name %>;
       disable_symlinks off;
       root <%= @roundcube_dir %>;

       index index.php index.html;

       location ~ ^/favicon.ico$ {
                root <%= @roundcube_dir %>/web/skins/default/images;
                log_not_found off;
                access_log off;
                expires max;
       }

       location = /robots.txt {
                allow all;
                log_not_found off;
                access_log off;
       }

       location ~ ^/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
                deny all;
       }
       location ~ ^/(bin|SQL)/ {
                deny all;
       }

       # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
       location ~ /\. {
                deny all;
                access_log off;
                log_not_found off;
       }

       location ~ \.php$ {
                try_files $uri =404;
                include /etc/nginx/fastcgi_params;
                fastcgi_pass unix:/var/run/php-fpm-www.sock;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_index index.php;
       }
}

Use fastcgi_pass socket provided by php-fpm cookbook.


      <%= image_tag(asset_path('curtain.png'), class: "curtain" )%>

<%= @dialogue %> - The Story

          <%= link_to "Begin Act One", story_scene_path(@story.share_url, @next_scene), id: 'first-scene-button' %>

      <%= link_to "Next", story_scene_path(@story.share_url, @next_scene), id: 'first-scene-button' %>

<%= javascript_include_tag('show_js/show.js') %>

      <%= image_tag(asset_path('curtain.png'), class: "curtain" )%>

<%= @dialogue %> - The Story

          <%= link_to "Begin Act One", story_scene_path(@story.share_url, @next_scene), id: 'first-scene-button' %>

<%= javascript_include_tag('show_js/show.js') %>

Remove redundant next link from story show start


<%= t('forem.admin.group.index') %>

<%= link_to t('forem.admin.group.new'), forem.new_admin_group_path %>

      <%= t('edit', :scope => 'forem.admin.groups') %>
      <%= t('delete', :scope => 'forem.admin.groups') %>
      <%= t('name', :scope => 'forem.admin.groups') %>

    <% @groups.each do |group| %>

        <%= link_to t('edit'), forem.admin_group_path(group) %>
        <%= link_to t('delete'), forem.admin_group_path(group), :method => :delete %>
        <%= link_to forem_emojify(group.name), forem.admin_group_path(group) %>

    <% end %>

Add index class for groups listing

Add index class for groups listing


<%= image_tag @current_user.avatar.url, class: 'header-profile-image', size: '40x40' %>

    <%= ('Hello, ' + @current_user.first_name).upcase %>

    MY ACCOUNT

<%= link_to 'Address Book', addresses_path %>

<%= link_to 'Manage Account', account_path %>

<%= link_to 'My Profile', profile_path %>

<%= link_to 'Logout', destroy_user_session_path, method: :delete %>

<%= image_tag @current_user.avatar.url, class: 'header-profile-image', size: '40x40' %>

    <%= ('Hello, ' + @current_user.first_name).upcase %>

    MY ACCOUNT

<%= link_to 'Order History', orders_path %>

<%= link_to 'Address Book', addresses_path %>

<%= link_to 'Manage Account', account_path %>

<%= link_to 'My Profile', profile_path %>

<%= link_to 'Logout', destroy_user_session_path, method: :delete %>

Add Order History option to top menu

Add Order History option to top menu


Edit Profile

<%= form_for(resource, as: resource_name, url: user_registration_path(resource_name), html: { method: :put }) do |f| %>
  <%= devise_error_messages! %>

    <%= f.label :first_name %>
    <%= f.text_field :first_name, autofocus: true %>

    <%= f.label :last_name %>
    <%= f.text_field :last_name, autofocus: true %>

    <%= f.label :email %>
    <%= f.email_field :email, autofocus: true %>

    <%= f.label :phone %>
    <%= f.text_field :phone, autofocus: true %>

    <%= f.label :photo %>
    <%= f.file_field :photo %>

<% end %>

Cancel my account

Unhappy? <%= button_to "Cancel my account", user_registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %>

<%= link_to "Back", :back %>

Edit Profile

<%= form_for(resource, as: resource_name, url: user_registration_path(resource_name), html: { method: :put }) do |f| %>
  <%= devise_error_messages! %>

    <%= f.label :first_name %>
    <%= f.text_field :first_name, autofocus: true %>

    <%= f.label :last_name %>
    <%= f.text_field :last_name, autofocus: true %>

    <%= f.label :email %>
    <%= f.email_field :email, autofocus: true %>

    <%= f.label :phone %>
    <%= f.text_field :phone, autofocus: true %>

    <%= f.label :photo %>
    <%= f.file_field :photo %>

    <%= f.submit "Update" %>

<% end %>

Cancel my account

Unhappy? <%= button_to "Cancel my account", user_registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %>

<%= link_to "Back", :back %>

Add back the update button

Add back the update button


<%= render :partial => "/shared/submenu" if (show_submenu ||= true) and RefinerySetting.find_or_set(:show_submenu_on_content_pages, true) %>

<%= page_title %>

    <%= (body_content_left = yield :body_content_left).blank? ? @page[:body] : body_content_left %>

    <%= (body_content_right = yield :body_content_right).blank? ? @page[:side_body] : body_content_right %>

<% unless @page.live? %>

    This page is NOT live for public viewing.

<% end %>

Add new content page partial which pages can render for easier overriding of the global markup.


  <%= simple_form_for(@project, url: admin_project_path(@project.id), html: { class: 'form-vertical col-md-6' }) do |form| %>

      Admin / <%= @project.platform_name %> / <%= link_to @project, project_path(@project.to_param) %>
      <% if @project.github_repository.present? %>
        <%= link_to fa_icon('github'), @project.github_repository.url, target: :blank %>
      <% end %>

      Rank: <%= @project.rank %>

      Subscribers: <%= @project.subscriptions.count %>

    <%= form.input :repository_url %>
    <%= form.input :licenses, include_blank: true, selected: @project.licenses, label: 'License', collection: Project.popular_licenses(:facet_limit => 60).map{|l| format_license(l.term) } %>
    <%= form.input :status, include_blank: true, collection: Project::STATUSES %>

    <%= form.submit class: 'btn btn-primary' %>
  <% end %>

  <%= simple_form_for(@project, url: admin_project_path(@project.id), html: { class: 'form-vertical col-md-6' }) do |form| %>

      Admin / <%= @project.platform_name %> / <%= link_to @project, project_path(@project.to_param) %>
      <% if @project.github_repository.present? %>
        <%= link_to fa_icon('github'), @project.github_repository.url, target: :blank %>
      <% end %>

    <% if @project.description.present? %>

      description: <%= @project.description %>

    <% end %>
    <% if @project.github_repository.present? && @project.github_repository.description != @project.description %>

      github description: <%= @project.github_repository.description %>

    <% end %>

      Rank: <%= @project.rank %>

      Subscribers: <%= @project.subscriptions.count %>

    <%= form.input :repository_url %>
    <%= form.input :licenses, include_blank: true, selected: @project.licenses, label: 'License', collection: Project.popular_licenses(:facet_limit => 60).map{|l| format_license(l.term) } %>
    <%= form.input :status, include_blank: true, collection: Project::STATUSES %>

    <%= form.submit class: 'btn btn-primary' %>
  <% end %>

Add description to admin project form

Add description to admin project form


Sign in

  <%= bootstrap_form_for resource, as: resource_name, url: session_path(resource_name) do |f| %>
    <%= devise_error_messages! %>

    <%- if devise_mapping.registerable? %>
      <%#= link_to 'Sign up', new_registration_path(resource_name), class: 'right' %>
    <% end -%>
    <%= f.email_field :email, :autofocus => true, autocorrect: 'off', autocapitalize: 'off', class: 'form-control', autocomplete: 'off' %>

    <%- if devise_mapping.recoverable? %>
      <%#= link_to "Forgot password?", new_password_path(resource_name), class: 'right' %>
    <% end -%>
    <%= f.password_field :password, autocomplete: 'off' %>

    <% if devise_mapping.rememberable? -%>
      <%= f.check_box :remember_me %>
    <% end -%>

    <%= f.submit 'Sign in', :class => 'btn btn-primary' %>
  <% end %>

  <%= render "devise/shared/links" %>

Sign in

  <%= bootstrap_form_for resource, as: resource_name, url: session_path(resource_name) do |f| %>
    <%= devise_error_messages! %>

    <%- if devise_mapping.registerable? %>
      <%#= link_to 'Sign up', new_registration_path(resource_name), class: 'right' %>
    <% end -%>
    <%= f.email_field :email, :autofocus => true, autocorrect: 'off', autocapitalize: 'off', class: 'form-control' %>

    <%- if devise_mapping.recoverable? %>
      <%#= link_to "Forgot password?", new_password_path(resource_name), class: 'right' %>
    <% end -%>
    <%= f.password_field :password %>

    <% if devise_mapping.rememberable? -%>
      <%= f.check_box :remember_me %>
    <% end -%>

    <%= f.submit 'Sign in', :class => 'btn btn-primary' %>
  <% end %>

  <%= render "devise/shared/links" %>

Revert "disables autocomplete on sign in form"

This reverts commit 21e7ccc87fcc541cfa6a0eb97ebd3dfe94c2409a.


<!DOCTYPE html>

  <title>Waitr</title>
  <%= csrf_meta_tags %>
  <%= action_cable_meta_tag %>
  <link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
    <%= stylesheet_link_tag    'application', media: 'all'%>
  <%= javascript_include_tag 'application' %>

  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

Waitr

    <% if logged_in?%>

<%= link_to 'Logout', logout_path%>

    <% end %>

  <%= yield %>

<!DOCTYPE html>

  <title>Waitr</title>
  <%= csrf_meta_tags %>
  <%= action_cable_meta_tag %>
  <link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
    <%= stylesheet_link_tag    'application', media: 'all'%>
  <%= javascript_include_tag 'application' %>

  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

Waitr

    <% if logged_in? && current_party == nil%>

<%= link_to 'Logout', logout_path%>

    <% end %>

  <%= yield %>

Fix logout button logic so it only appears on restaurant pages


<% if spree_current_user %>

<%= Spree.t(:logged_in_as) %>: <%= spree_current_user.email %>

<%= link_to Spree.t(:account), spree.edit_user_path(spree_current_user) %>

<%= link_to Spree.t(:logout), spree.logout_path %>

    <% if spree.respond_to? :root_path %>

        <%= link_to Spree.t(:back_to_store), spree.root_path, :target => '_blank' %>

    <% end %>

<% end %>

Use font-awesome icons in admin/_login_nav


<!DOCTYPE html>
<html>
<head>
  <title>LwsBlacklight</title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>LucidWorks :: lws_blacklight</title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

Clean up page title default

Clean up page title default


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

  <%= favicon_link_tag "favicon.ico" %>
  <%= stylesheet_link_tag :application, media: "all" %>
  <%= csrf_meta_tags %>
</head>
<body>
  <div class="container">
    <%= render "navbar" -%>
    <%= render "flashes" -%>
    <%= yield %>
    <%= render "javascript" %>
  </div>
</body>
</html>

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

  <%= favicon_link_tag "favicon.ico" %>
  <%= stylesheet_link_tag :application, media: "all" %>
  <%= csrf_meta_tags %>
</head>
<body>
  <div class="container-fluid">
    <%= render "navbar" -%>
    <%= render "flashes" -%>
    <%= yield %>
    <%= render "javascript" %>
  </div>
</body>
</html>

Extend container full width of browser window


<!DOCTYPE html>

  <title>GenieACS<%= content_for?(:title) ? ' - ' + yield(:title) : yield('') %></title>
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
  <%= favicon_link_tag 'favicon.png', type: 'image/png' %>

    <% if logged_in? %>
      <%= current_user %> | <%= link_to 'Log out', log_out_path %>
    <% else %>
      <%= link_to 'Log in', log_in_path %>
    <% end %>

  <%= image_tag('logo.png', class: 'logo') %>
  <%= render 'layouts/menu' %>

<%- flash.each do |k, v| %>
  <div class="flash <%= k %>"><%= v %>

<% end %>

<%= yield %>

<!DOCTYPE html>

  <title><%= content_for?(:title) ? yield(:title) +' - ' : yield('') %>GenieACS</title>
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
  <%= favicon_link_tag 'favicon.png', type: 'image/png' %>

    <% if logged_in? %>
      <%= current_user %> | <%= link_to 'Log out', log_out_path %>
    <% else %>
      <%= link_to 'Log in', log_in_path %>
    <% end %>

  <%= image_tag('logo.png', class: 'logo') %>
  <%= render 'layouts/menu' %>

<%- flash.each do |k, v| %>
  <div class="flash <%= k %>"><%= v %>

<% end %>

<%= yield %>

Move GenieACS to the end of the title instead of the begining


<!DOCTYPE html>

  <title>Ads</title>
  <%= stylesheet_link_tag    "application", media: "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>

     ADS

<%= link_to 'Campaigns', admin_campaigns_path %>

<%= link_to 'Banners', admin_banners_path %>

  <%= yield %>

<!DOCTYPE html>

  <title>Ads</title>
  <%= stylesheet_link_tag    'ads', media: 'all' %>
  <%= javascript_include_tag 'test' %>
  <%= csrf_meta_tags %>

       ADS

<%= link_to t('topbar.admin'), main_app.admin_root_path %>

<%= link_to t('activerecord.models.ads/campaign.few'), admin_campaigns_path %>

<%= link_to t('activerecord.models.ads/banner.few'), admin_banners_path %>

    <%= yield %>

Add link to admin main app

Add link to admin main app


<% if user_signed_in? %>
  <% if current_budget %>

      <%= link_to(t("layouts.header.delegation"),
          new_budget_recommendation_path(budget_id: current_budget.slug),
                                         accesskey: "d") %>

  <% end %>

    <%= layout_menu_link_to t("layouts.header.my_activity_link"),
                              user_path(current_user),
                              controller_name == 'users',
                              rel: "nofollow",
                              title: t("shared.go_to_page") +
                                     t("layouts.header.my_activity_link") %>

    <%= layout_menu_link_to t("layouts.header.my_account_link"),
                              account_path,
                              controller_name == 'account',
                              rel: "nofollow",
                              title: t("shared.go_to_page") +
                                     t("layouts.header.my_account_link") %>

    <%= link_to t("devise_views.menu.login_items.logout"),
                destroy_user_session_path, rel: "nofollow", method: :delete %>

<% else %>

    <%= link_to t("devise_views.menu.login_items.login"),
                new_user_session_path, rel: "nofollow" %>

    <%= link_to t("devise_views.menu.login_items.signup"),
                new_user_registration_path, rel: "nofollow", class: "button" %>

<% end %>

<% if user_signed_in? %>

    <%= layout_menu_link_to t("layouts.header.my_activity_link"),
                              user_path(current_user),
                              controller_name == 'users',
                              rel: "nofollow",
                              title: t("shared.go_to_page") +
                                     t("layouts.header.my_activity_link") %>

    <%= layout_menu_link_to t("layouts.header.my_account_link"),
                              account_path,
                              controller_name == 'account',
                              rel: "nofollow",
                              title: t("shared.go_to_page") +
                                     t("layouts.header.my_account_link") %>

    <%= link_to t("devise_views.menu.login_items.logout"),
                destroy_user_session_path, rel: "nofollow", method: :delete %>

<% else %>

    <%= link_to t("devise_views.menu.login_items.login"),
                new_user_session_path, rel: "nofollow" %>

    <%= link_to t("devise_views.menu.login_items.signup"),
                new_user_registration_path, rel: "nofollow", class: "button" %>

<% end %>

Remove unrelated budget recommendation's link

During the backport for “Read Notifications”[1] this link was added,
which belongs to a different backport “Budget Recommendations” which is
not quite ready to bring to upstream, yet :relieved:

[1] https://github.com/AyuntamientoMadrid/consul/pull/1304


<% user = User.find @request.session['user_id'] %>
<%= raw user.inspect if user %>

<% user = User.find user_id if user_id = @request.session['user_id'] %>
<%= user ? "%s (%s) <%s>" % [user.name, user.username, user.email] : 'None' %>

Make it work if there is no user logged in, and make the format less revealing.


<% @taxons = @taxon && @taxon.parent ? @taxon.parent.children : Spree::Taxon.roots %>
<%= form_tag spree.products_path, :method => :get, class: "navbar-form" do %>

  <% cache(cache_key_for_taxons) do %>
    <%= select_tag :taxon,
          options_for_select([[Spree.t(:all_departments), '']] +
                                @taxons.map {|t| [t.name, t.id]},
                                @taxon ? @taxon.id : params[:taxon]), 'aria-label' => 'Taxon', class: "form-control" %>
  <% end %>

  <%= search_field_tag :keywords, params[:keywords], :placeholder => Spree.t(:search), class: "form-control" %>

<%= submit_tag Spree.t(:search), :name => nil, class: "btn btn-success" %>
<% end %>

<% @taxons = @taxon && @taxon.parent ? @taxon.parent.children : Spree::Taxon.roots %>
<%= form_tag spree.products_path, :method => :get, class: "navbar-form" do %>

  <% cache([I18n.locale, cache_key_for_taxons]) do %>
    <%= select_tag :taxon,
          options_for_select([[Spree.t(:all_departments), '']] +
                                @taxons.map {|t| [t.name, t.id]},
                                @taxon ? @taxon.id : params[:taxon]), 'aria-label' => 'Taxon', class: "form-control" %>
  <% end %>

  <%= search_field_tag :keywords, params[:keywords], :placeholder => Spree.t(:search), class: "form-control" %>

<%= submit_tag Spree.t(:search), :name => nil, class: "btn btn-success" %>
<% end %>

Add locale to cache method in search helper


# Generated by Chef for <%= node['fqdn'] %>
#
# Local modifications will be overwritten!

Chef::Config.from_file("/etc/chef/client.rb")

# The whitelist comes from node['push_jobs']['whitelist']
whitelist(<%= @whitelist.inspect %>)

# We're under runit, so don't output timestamp
Mixlib::Log::Formatter.show_time = false

# Generated by Chef for <%= node['fqdn'] %>
#
# Local modifications will be overwritten!

Chef::Config.from_file("/etc/chef/client.rb")

# The whitelist comes from node['push_jobs']['whitelist']
whitelist(<%= @whitelist.to_hash.inspect %>)

# We're under runit, so don't output timestamp
Mixlib::Log::Formatter.show_time = false

Make whitelist handling more robust

Make whitelist handling more robust

In testing we saw situations where the whitelist could be rendered as
the Ruby class for the attribute, which (obviously) doesn't work.

h/t @jtimberman


Help build a database of Yale theater history in New Haven.

  Start Marking orStart Transcribing

Add in default template page

Add in default template page


<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title><%= this_blog.blog_name %> – <%= controller.controller_name %></title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="imagetoolbar" content="no" />
  <%= javascript_include_tag 'publify_admin', async: Rails.env.production? %>
  <%= stylesheet_link_tag 'publify_admin' %>
  <style type="text/css">
    #carousel-content .slide { width: <%= this_blog.image_thumb_size %>; }
    @font-face {
      font-family: 'Open Sans';
      font-style: normal;
      font-weight: 400;
      src: local('Open Sans'), local('OpenSans'), url(<%= File.join(this_blog.base_url, 'stylesheets', 'fonts', 'open-sans.woff') %>) format('woff');
    }
    @font-face {
      font-family: 'Open Sans';
      font-style: normal;
      font-weight: 700;
      src: local('Open Sans Bold'), local('OpenSans-Bold'), url(<%= File.join(this_blog.base_url, 'stylesheets', 'fonts', 'open-sans-bold.woff') %>) format('woff');
    }
  </style>
</head>
<body>
  <div id='main'>
    <%= yield %>
  </div>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title><%= this_blog.blog_name %> – <%= controller.controller_name %></title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="imagetoolbar" content="no" />
  <%= javascript_include_tag 'publify_admin', async: Rails.env.production? %>
  <%= stylesheet_link_tag 'publify_admin' %>
  <%= csrf_meta_tags %>
</head>
<body>
  <div id='main'>
    <%= yield %>
  </div>
</body>
</html>

Clean up Admin editor layout

Clean up Admin editor layout


    <meta charset=utf-8" />
    <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">

    <title><%= app_name %></title>

<%= app_name %>

    <img src="http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl=<%= base_url %>/index.html" alt="" />

Version: <%= app_version %>

      <a href="itms-services://?action=download-manifest&url=<%= base_url %>/manifest.plist">Install

    <meta charset=utf-8" />
    <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">

    <title><%= app_name %></title>

<%= app_name %>

      <img src="http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl=<%= base_url %>/index.html" alt="" />

Version: <%= app_version %>

        <a class="button" href="itms-services://?action=download-manifest&url=<%= base_url %>/manifest.plist">Install

Add style to HTML template.

Add style to HTML template.


<% result.each do |k,v| %>
<div class="citation" id="<%= k %>">
  <%= v %>
</div>
<% end %>

<% result.each do |k,v| %>
<div class="citation" id="<%= k %>">

    <%= v %>

<% end %>

Change list html for front end

Change list html for front end


Port                            22
Protocol                        2
HostKey                         /etc/ssh/ssh_host_rsa_key
HostKey                         /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation          yes

SyslogFacility                  AUTH
LogLevel                        VERBOSE

LoginGraceTime                  120
StrictModes                     yes

RSAAuthentication               yes
PubkeyAuthentication            yes

IgnoreRhosts                    yes
HostbasedAuthentication         no
PermitEmptyPasswords            no
KerberosAuthentication          no
GSSAPIAuthentication            no

PermitRootLogin                 no
PasswordAuthentication          no
ChallengeResponseAuthentication no

<%- if @allow_x11_forwarding -%>
X11Forwarding                   yes
X11DisplayOffset                10
<%- else -%>
X11Forwarding                   no
<%- end -%>

<%- if @allow_users_enable -%>
AllowUsers <%= @allow_users.join(' ') %>
<%- end -%>

PrintMotd                       no
PrintLastLog                    yes
TCPKeepAlive                    no
ClientAliveInterval             30
ClientAliveCountMax             20

AcceptEnv                       LANG LC_*

Subsystem     sftp              /usr/lib/openssh/sftp-server

UsePAM                          yes

Port                            22
Protocol                        2
HostKey                         /etc/ssh/ssh_host_rsa_key
HostKey                         /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation          yes

Ciphers -arcfour,arcfour128,arcfour256

SyslogFacility                  AUTH
LogLevel                        VERBOSE

LoginGraceTime                  120
StrictModes                     yes

RSAAuthentication               yes
PubkeyAuthentication            yes

IgnoreRhosts                    yes
HostbasedAuthentication         no
PermitEmptyPasswords            no
KerberosAuthentication          no
GSSAPIAuthentication            no

PermitRootLogin                 no
PasswordAuthentication          no
ChallengeResponseAuthentication no

<%- if @allow_x11_forwarding -%>
X11Forwarding                   yes
X11DisplayOffset                10
<%- else -%>
X11Forwarding                   no
<%- end -%>

<%- if @allow_users_enable -%>
AllowUsers <%= @allow_users.join(' ') %>
<%- end -%>

PrintMotd                       no
PrintLastLog                    yes
TCPKeepAlive                    no
ClientAliveInterval             30
ClientAliveCountMax             20

AcceptEnv                       LANG LC_*

Subsystem     sftp              /usr/lib/openssh/sftp-server

UsePAM                          yes

Disable the use of insecure arcfour SSH ciphers

- This was a recommendation from our pentest.
- From sshd_config(5):
    If the specified value begins with a `+' character,
    then the specified ciphers will be appended to the default set
    instead of replacing them.  If the specified value begins with a
    `-' character, then the specified ciphers (including wildcards)
    will be removed from the default set instead of replacing them.


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

<VirtualHost *:80>
	ServerName chef.openstreetmap.org
	ServerAlias chef.osm.org
	ServerAdmin webmaster@openstreetmap.org

	CustomLog /var/log/apache2/chef.openstreetmap.org-access.log combined
	ErrorLog /var/log/apache2/chef.openstreetmap.org-error.log

	Redirect permanent / https://chef.openstreetmap.org/
</VirtualHost>

<VirtualHost *:443>
	ServerName chef.openstreetmap.org
	ServerAdmin webmaster@openstreetmap.org

	SSLEngine on
	SSLProtocol all -SSLv2
	SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
	SSLCertificateFile /etc/ssl/certs/openstreetmap.pem
	SSLCertificateKeyFile /etc/ssl/private/openstreetmap.key

	CustomLog /var/log/apache2/chef.openstreetmap.org-access.log combined
	ErrorLog /var/log/apache2/chef.openstreetmap.org-error.log

	SSLProxyEngine on

	ProxyPass / https://<%= node[:fqdn] %>:4443/
</VirtualHost>

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

<VirtualHost *:80>
	ServerName chef.openstreetmap.org
	ServerAlias chef.osm.org
	ServerAdmin webmaster@openstreetmap.org

	CustomLog /var/log/apache2/chef.openstreetmap.org-access.log combined
	ErrorLog /var/log/apache2/chef.openstreetmap.org-error.log

	Redirect permanent / https://chef.openstreetmap.org/
</VirtualHost>

<VirtualHost *:443>
	ServerName chef.openstreetmap.org
	ServerAdmin webmaster@openstreetmap.org

	CustomLog /var/log/apache2/chef.openstreetmap.org-access.log combined
	ErrorLog /var/log/apache2/chef.openstreetmap.org-error.log

	SSLEngine on
	SSLProxyEngine on

	ProxyPass / https://<%= node[:fqdn] %>:4443/
</VirtualHost>

Remove site specific SSL config

Remove site specific SSL config


Documentation

Use this Web service documentation to access and use energy data via application programming interfaces (APIs) in these renewable energy categories. You'll need a key to use these APIs. <%= link_to("Sign up for an API key", signup_path) %>.

  <% @collections.each do |collection| %>

<%= link_to(collection.title, collection.url_path)  %>

    <%= simple_format(collection.summary) %>
  <% end %>

General Information

<%= link_to("API Key Usage", doc_api_key_path) %> - How to use your API key after signing up.

<%= link_to("Web Service Rate Limits", doc_api_key_path) %> - Daily and hourly rate limits on accessing NREL's Web services.

<%= link_to("General Web Service Errors", doc_api_key_path) %> - General error codes that can be returned by any NREL Web service.

Documentation

Use this Web service documentation to access and use energy data via application programming interfaces (APIs) in these renewable energy categories. You'll need a key to use these APIs. <%= link_to("Sign up for an API key", signup_path) %>.

  <% @collections.each do |collection| %>

<%= link_to(collection.title, collection.url_path)  %>

    <%= simple_format(collection.summary) %>
  <% end %>

General Information

<%= link_to("API Key Usage", doc_api_key_path) %> - How to use your API key after signing up.

<%= link_to("Web Service Rate Limits", doc_rate_limits_path) %> - Daily and hourly rate limits on accessing NREL's Web services.

<%= link_to("General Web Service Errors", doc_errors_path) %> - General error codes that can be returned by any NREL Web service.

Fix general information page links.

Fix general information page links.


      Projects
      <% if partner?(@product) %>
        <a href="<%= new_product_project_path(@product) %>">
      <% end %>

    <% if (feature_flag=true) # partner?(@product) %>
      <% projects.sort_by{|m| -m.multiplier }.first(3).each do |m| %>
        <li class="<%= 'active' if params[:project].to_i == m.number %>">
          <a href="<%= product_project_path(@product, m) %>">
            <% if m.urgency %>
              <span class="pull-right label label-<%= m.urgency.slug %>"><%= m.urgency.label %>
            <% end %>
            <%= m.title %> <%= m.tasks.count %>

      <% end %>
      <% if projects.size > 3 %>

          <a href="<%= product_projects_path(@product) %>">+ <%= projects.size - 3 %> more...

      <% end %>
    <% else %>

        Become a partner to see the larger projects that <%= @product.name %> is working on

    <% end %>

      Projects
      <% if partner?(@product) %>
        <a href="<%= new_product_project_path(@product) %>">
      <% end %>

    <% if (feature_flag=true) # partner?(@product) %>
      <% projects.sort_by{|m| -m.multiplier }.first(3).each do |m| %>
        <li class="<%= 'active' if params[:project].to_i == m.number %>">
          <a href="<%= product_project_path(@product, m) %>">
            <% if m.urgency %>
              <span class="pull-right label label-<%= m.urgency.slug %>"><%= m.urgency.label %>
            <% end %>
            <%= m.tasks.count %>
            <%= m.title %>

      <% end %>
      <% if projects.size > 3 %>

          <a href="<%= product_projects_path(@product) %>">+ <%= projects.size - 3 %> more...

      <% end %>
    <% else %>

        Become a partner to see the larger projects that <%= @product.name %> is working on

    <% end %>

Clean up spacing on bounty counts next to projects


      <% locals.each do |locale| %>

          <%= link_to t("locales.#{locale}"), { locale: locale },
                      id:    "#{locale}Link",
                      lang:  locale %>

      <% end %>

        <a href="<%= t('footer.about_us_link') %>"><%= t('footer.about_us') %>

        <a href="<%= t('footer.contact_us_link') %>"><%= t('footer.contact_us') %>

        <a href="<%= t('footer.jobs_link') %>"><%= t('footer.jobs') %>

        <a href="<%= t('footer.terms_and_conditions_link') %>"><%= t('footer.terms_and_conditions') %>

        <a href="<%= t('footer.accessibility_link') %>"><%= t('footer.accessibility') %>

        <a href="<%= t('footer.privacy_statement_link') %>"><%= t('footer.privacy_statement') %>

        <a href="<%= t('footer.cookie_policy_link') %>"><%= t('footer.cookie_policy') %>

        <a href="<%= t('footer.site_map_link') %>"><%= t('footer.site_map') %>

        <a href="<%= t('footer.media_centre_link') %>"><%= t('footer.media_centre') %>

        <a href="<%= t('footer.our_debt_work_link') %>"><%= t('footer.our_debt_work') %>

        <a href="<%= t('footer.partners_link') %>"><%= t('footer.partners') %>

      <% locals.each do |locale| %>

          <%= link_to t("locales.#{locale}"), {locale: locale},
                      id: "#{locale}Link",
                      lang: locale %>

      <% end %>

Add footer links to HTML.

Add footer links to HTML.


[user]
	name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
	email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[core]
	excludesfile = ~/.gitignore
	editor = vim
  eol = lf
  autocrlf = false
  compression = 9
  loosecompression = 1
[color]
	diff = auto
	status = auto
	branch = auto
[apply]
	whitespace = nowarn
[alias]
	ff = pull --ff-only
  ff-merge = merge --ff-only
	recommit = commit --amend
  workdir-or-cwd = !echo $PWD
  workdir = rev-parse --show-toplevel
  prune = fetch --all --prune
  in-develop = log master..develop --pretty='format:%s' --no-merges
  deploy=push origin HEAD:develop
[push]
	default = upstream
[rebase]
  autosquash = true
<% if File.exist?('/usr/bin/bcompare') %>
[merge]
  tool = bc3
<% end %>

[user]
	name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
	email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[core]
	excludesfile = ~/.gitignore
	editor = vim
  eol = lf
  autocrlf = false
  compression = 9
  loosecompression = 1
[color]
	diff = auto
	status = auto
	branch = auto
[apply]
	whitespace = nowarn
[alias]
	ff = pull --ff-only
  ff-merge = merge --ff-only
	recommit = commit --amend
  workdir-or-cwd = !echo $PWD
  workdir = rev-parse --show-toplevel
  prune = fetch --all --prune
  in-develop = log master..develop --pretty='format:%s' --no-merges
  deploy = push origin HEAD:develop
  log-branch = log --no-merges --first-parent
[push]
	default = upstream
[rebase]
  autosquash = true
<% if File.exist?('/usr/bin/bcompare') %>
[merge]
  tool = bc3
<% end %>

Add a new alias for git

Add a new alias for git


<% url = url_for(:action => "st_catalog_form_field_changed",
                 :id     => "#{@edit[:rec_id] || "new"}")
%>

  <%= render :partial => "layouts/flash_msg" %>
  <%# show form if Catalog bundle is being added or if it's an edit of existing catalog item, else force user to select type %>

Basic Info

      Name

          <%= text_field_tag("name",
                             @edit[:new][:name].to_s,
                             :maxlength         => 40,
                             "data-miq_observe" => {:interval => '.5',
                                                    :url      => url}.to_json)
          %>

    <%= javascript_tag("$j('#name').focus()") %>

      Description

          <%= text_field_tag("description",
                             @edit[:new][:description],
                             :maxlength         => 60,
                             "data-miq_observe" => {:interval => '.5',
                                                    :url      => url}.to_json)
          %>

Assign Buttons

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

<% url = url_for(:action => "st_catalog_form_field_changed",
                 :id     => "#{@edit[:rec_id] || "new"}")
%>

  <%= render :partial => "layouts/flash_msg" %>
  <%# show form if Catalog bundle is being added or if it's an edit of existing catalog item, else force user to select type %>

Basic Info

      Name

          <%= text_field_tag("name",
                             @edit[:new][:name].to_s,
                             :maxlength         => 40,
                             "data-miq_observe" => {:interval => '.5',
                                                    :url      => url}.to_json)
          %>

    <%= javascript_tag("$j('#name').focus()") %>

      Description

          <%= text_field_tag("description",
                             @edit[:new][:description],
                             :maxlength         => 60,
                             "data-miq_observe" => {:interval => '.5',
                                                    :url      => url}.to_json)
          %>

Assign Items

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

Update label to 'Add Items' when editing a Catalog

https://bugzilla.redhat.com/show_bug.cgi?id=1142364


<% content_for :title, "Help with bills and energy efficiency in your home | GOV.UK Beta (Test)" %>

Help with bills and energy efficiency in your home

      Department
of Energy &
Climate Change

Find out more

Winter payments and help with fuel bills

Energy saving measures for your home or business

Finding the best supplier or tariffing measures for your home or business

Need help with fuel bills or the cost of insulation?

Whatever your financial position, help is available to make your home warm and cosy this winter.

Some schemes are aimed at people on benefits or on low incomes but help is still available if you are in work and own your own home.

Add the energy help campaign page

Add the energy help campaign page

This is just the content for the pages. Images and extra content are
still to be provided.


  <%= paginate @slack_users %>

        Avatar
        Slack ID
        Real Name
        Email

        <% @slack_users.each do |slack_user| %>

            <img src="<%= slack_user.profile['image_24'] %>">
            <%= slack_user.name %>
            <%= slack_user.profile['real_name'] %>
            <%= slack_user.profile['email'] %>

        <% end %>

  <% @slack_users.each do |slack_user| %>

      <p style="color: #<%= slack_user.color %>;"><%= slack_user.name %>

<%= JSON.pretty_generate(slack_user.as_json) %>

  <% end %>

	<%= paginate @slack_users %>

				Avatar
				Slack ID
				Real Name
				Email

				<% @slack_users.each do |slack_user| %>

						<img src="<%= slack_user.profile['image_24'] %>">
						<a href="#<%= slack_user.name %>"><%= slack_user.name %>
						<%= slack_user.profile['real_name'] %>
						<%= slack_user.profile['email'] %>

				<% end %>

	<%= paginate @slack_users %>

	<% @slack_users.each do |slack_user| %>
		<div id="<%= slack_user.name %>" class="panel panel-default">

				<h3 class="panel-title" style="color: #<%= slack_user.color %>;"><%= slack_user.name %>

<%= JSON.pretty_generate(slack_user.as_json) %>

	<% end %>

Add pagination below user list, format json blocks as panels, and link each user to their panel from user list


<%= notice %>

Listing Histories

      Idea
      Time
      Basket
      User

    <% @histories.each do |history| %>

        <%= history.idea.topic %>
        <%= history.time %>
        <%= history.basket.name %>
        <%= history.user.name %>
        <%= link_to 'Show', history %>
        <%= link_to 'Edit', edit_history_path(history) %>
        <%= link_to 'Destroy', history, method: :delete, data: { confirm: 'Are you sure?' } %>

    <% end %>

<%= link_to 'New History', new_history_path %>

<%= notice %>

Listing Histories

      Time
      Basket
      User

    <% @histories.each do |history| %>

        <%= history.time %>
        <%= history.basket_id %>
        <%= history.user_id %>
        <%= link_to 'Show', history %>
        <%= link_to 'Edit', edit_history_path(history) %>
        <%= link_to 'Destroy', history, method: :delete, data: { confirm: 'Are you sure?' } %>

    <% end %>

<%= link_to 'New History', new_history_path %>

Make histories view more informative

Make histories view more informative


<%= link_to "Home",   root_path %>

<%= link_to "Help",   help_path %>

<%= link_to "Log in", '#' %>

<%= link_to "Home",   root_path %>

<%= link_to "Help",   help_path %>

<%= link_to "Admin", '#' %>

Change wording from login to admin

Change wording from login to admin


description "Zookeeper"

limit nofile 32768 32768

start on runlevel [2345]
stop on [!12345]

respawn
respawn limit 2 5

umask 007

kill timeout 300

setuid <%= node['zookeeper']['user'] %>
setgid <%= node['zookeeper']['group'] %>

exec <%= node['zookeeper']['install_dir'] %>/zookeeper-<%= node['zookeeper']['version'] %>/bin/zkServer.sh start-foreground

post-start script
  PID=`status zookeeper | egrep -oi '([0-9]+)$' | head -n1`
  echo $PID > /var/run/zk/zookeeper.pid
end script

post-stop script
  rm -f /var/run/zk/zookeeper.pid
end script

description "Zookeeper"

limit nofile 32768 32768

start on runlevel [2345]
stop on [!12345]

respawn
respawn limit 2 5

umask 007

kill timeout 300

setuid <%= node['zookeeper']['user'] %>
setgid <%= node['zookeeper']['group'] %>

exec <%= node['zookeeper']['install_dir'] %>/zookeeper-<%= node['zookeeper']['version'] %>/bin/zkServer.sh start-foreground

post-start script
  PID=`status zookeeper | egrep -oi '([0-9]+)$' | head -n1`
  echo $PID > /opt/zookeeper/zookeeper.pid
end script

post-stop script
  rm -f /opt/zookeeper/zookeeper.pid
end script

Write pid file to a directory that doesn't get deleted


<% provide(:head_title, raw(t("projects.show.head_title", project: @project.name))) %>
<%= render partial: "shared/sidebar" %>
<%= render partial: "shared/secondary_navigation" %>

TODO

<% provide(:head_title, raw(t("projects.show.head_title", project: @project.name))) %>
<%= render partial: "shared/sidebar" %>
<%= render partial: "shared/secondary_navigation" %>

<!-- TODO -->

Add TODO to project overview page

Add TODO to project overview page


	<video>
		<source src="" type="video/mp4">
	</video>

Login

<%= form_for :session, url: login_path do |f| %>
	<%= f.label :email %>
	<%= f.email_field :email, class: 'tbd' %>

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

	<%= f.submit "Login", class: 'tbd' %>
<% end %>

New user? <%= link_to "Sign up now!", new_user_path %>

Add video to welcome page

Add video to welcome page


<fieldset>

    <legend>Content</legend>

    <%= f.input :text, label: false, as: :ckeditor, input_html: {toolbar: 'Full'} %>

</fieldset>
<fieldset>

    <legend>SEO</legend>

      The excerpt and keywords will be included as <meta> description and keywords tags, useful for search engines.

    <%= f.input :excerpt, as: :text, label: 'Excerpt/Description', input_html: {rows: 3}, hint: "Describe in a short paragraph what this page is about." %>
    <%= f.input :keyword_list, label: 'Keywords', hint: "Comma-separated list of keywords, e.g. spiderman, superman, comics, superhero.", input_html: {class: 'js-token-input'} %>

</fieldset>
<fieldset>

    <legend>Featured Image</legend>

    <%= choose_image_tag(f.object, target: 'revision_content_image', input: f.hidden_field(:image_id)) %>

</fieldset>

<fieldset>

    <legend>Content</legend>

    <%= f.input :text, label: false, as: :ckeditor, input_html: {toolbar: 'Full'} %>

</fieldset>
<fieldset>

    <legend>SEO</legend>

      The excerpt and keywords will be included as <meta> description and keywords tags, useful for search engines.

    <%= f.input :excerpt, as: :text, label: 'Excerpt/Description', input_html: {rows: 3}, hint: "Describe in a short paragraph what this page is about." %>
    <%= f.input :keyword_list, label: 'Keywords', hint: "Comma-separated list of keywords, e.g. spiderman, superman, comics, superhero.", input_html: {class: 'js-token-input'} %>

</fieldset>
<fieldset>

    <legend>Featured Image</legend>

    <%= choose_image_tag(@content, target: 'revision_content_image', input: f.hidden_field(:image_id)) %>

</fieldset>

Use @content instead of f.object

Use @content instead of f.object


<% if devise_error_messages! %>

        <%= devise_error_messages! %>

<% end %>

Sign up

    <%= form_for(resource, as: resource_name, url: registration_path(resource_name), :html => {class: "ui big form"})  do |f| %>

      <%= f.label :email %>
      <%= f.email_field :email, autofocus: true %>

      <%= f.label :password %>
      <%= f.password_field :password, autocomplete: "off" %>

      <%= f.label :password_confirmation %>
      <%= f.password_field :password_confirmation, autocomplete: "off" %>

      <%= f.label :picture %>
      <%= f.file_field :picture %>
      <%= f.hidden_field :picture_cache %>

      <%= f.submit "Sign up", class: "fluid ui big blue button"%>

    <% end %>

    <%# render "devise/shared/links" %>

<% if resource.errors.full_messages.count > 0 %>

        <% resource.errors.full_messages.each do |error| %>
          <%= error %>
        <% end %>

<% end %>

Sign up

    <%= form_for(resource, as: resource_name, url: registration_path(resource_name), :html => {class: "ui big form"})  do |f| %>

      <%= f.label :email %>
      <%= f.email_field :email, autofocus: true %>

      <%= f.label :password %>
      <%= f.password_field :password, autocomplete: "off" %>

      <%= f.label :password_confirmation %>
      <%= f.password_field :password_confirmation, autocomplete: "off" %>

      <%= f.label :picture %>
      <%= f.file_field :picture %>
      <%= f.hidden_field :picture_cache %>

      <%= f.submit "Sign up", class: "fluid ui big blue button"%>

    <% end %>

Fix empty error container on registration page.


<%- @section = "downloads" %>
<%- @subsection = "" %>

Download for Linux and Unix

It is easiest to install Git on Linux using the preferred package manager of your Linux distribution.

Debian/Ubuntu

  $ apt-get install git

Fedora

  $ yum install git (up to Fedora 21)

  $ dnf install git (Fedora 22 and later)

Gentoo

  $ emerge --ask --verbose dev-vcs/git

Arch Linux

  $ pacman -S git

openSUSE

  $ zypper install git

FreeBSD

  $ cd /usr/ports/devel/git
$ make install

Solaris 11 Express

  $ pkg install developer/versioning/git

OpenBSD

  $ pkg_add git

Slitaz

  $ tazpkg get-install git

Add install instructions for Slitaz

Add install instructions for Slitaz


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

      </button>

        <% if @current_user.nil? %>

            <%= link_to I18n.t('login.login'), login_users_path %>

        <% else %>

            <%= link_to @current_user.login, '#' %>

        <% end %>

            <%= t('change_locale') %>

            <% I18n.available_locales.each do |locale| %>

                <%= link_to locale, locale_path(locale: locale), data: { method: :put } %>

            <% end %>

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

      </button>

        <% if @current_user.nil? %>

            <%= link_to I18n.t('login.login'), login_users_path %>

            <%= link_to I18n.t('users.signup'), new_user_path %>

        <% else %>

            <%= link_to @current_user.login, '#' %>

        <% end %>

            <%= t('change_locale') %>

            <% I18n.available_locales.each do |locale| %>

                <%= link_to locale, locale_path(locale: locale), data: { method: :put } %>

            <% end %>

Bring back signup button in navigation bar


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

<% @exports.sort.each do |directory,clients| -%>
<%= directory -%> -sync,subtree_check<% clients.sort.each do |address,options| -%> <%= address -%>(<%= options -%>)<% end %>
<% end -%>
/store/planet -sync,subtree_check 146.179.159.168(rw) 146.179.159.170(rw) 128.40.168.104(ro) 128.40.168.103(ro) 128.40.168.100(ro)

Remove unused export of planet files to UCL hosts


$(document).ready(function() {
    var client = algoliasearch("<%= ENV['ALGOLIASEARCH_APPLICATION_ID'] %>", "<%= ENV['ALGOLIASEARCH_API_KEY'] %>");
    var image = '{{#featured_image_url}}{{/featured_image_url}}';
    var template = Hogan.compile(''+image+'
{{{_highlightResult.name.value}}}
{{{_highlightResult.description.value}}}');
    $('input.search-field').typeahead(null, {
      source: client.initIndex('Newsletter_<%= Rails.env %>').ttAdapter(),
      displayKey: 'name',
      templates: {
        suggestion: function(hit) {
          return template.render(hit);
        }
      }
    });
  });

$(document).ready(function() {
    var client = algoliasearch("<%= ENV['ALGOLIASEARCH_APPLICATION_ID'] %>", "<%= ENV['ALGOLIASEARCH_API_KEY'] %>");
    var image = '{{#featured_image_url}}
{{/featured_image_url}}';
    var template = Hogan.compile('
{{#featured_image_url}}
'+image+'

{{{_highlightResult.name.value}}}
{{{_highlightResult.description.value}}}
{{/featured_image_url}}{{^featured_image_url}}
{{{_highlightResult.name.value}}}
{{{_highlightResult.description.value}}}{{/featured_image_url}}
');
    $('input.search-field').typeahead(null, {
      source: client.initIndex('Newsletter_<%= Rails.env %>').ttAdapter(),
      displayKey: 'name',
      templates: {
        suggestion: function(hit) {
          return template.render(hit);
        }
      }
    });
  });

Save the discussion meeting pauce

Save the discussion meeting pauce


<%= @article.title %>

	<%= @article.text %>

<%= form_for([@article, @article.comments.build]) do |f| %>

		<%= f.label :author %>

		<%= f.text_area :author %>

		<%= f.label :body %>

		<%= f.text_area :body %>

 <%= f.submit %>

<% end %>

<%= @article.title %>

	<%= @article.text %>

Comments

<% @article.comments.each do |comment| %>

	<%= comment.author %> said:

	<%= comment.body %>

<% end %>

<%= form_for([@article, @article.comments.build]) do |f| %>

		<%= f.label :author %>

		<%= f.text_area :author %>

		<%= f.label :body %>

		<%= f.text_area :body %>

 <%= f.submit %>

<% end %>

Add show comments on article page

Add show comments on article page


<!DOCTYPE html>

      <meta http-equiv="content-type" content="text/html;charset=UTF-8" >
      <title><%= site_name %> admin<%= @title ? ":" : "" %> <%=@title%></title>

      <%= javascript_include_tag '/javascripts/jquery.js', '/admin/javascripts/jquery-ui.min.js', '/admin/javascripts/bootstrap-collapse', '/admin/javascripts/bootstrap-tab', '/admin/javascripts/admin' %>
      <%= stylesheet_link_tag 'admin-theme/jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%>
      <%= stylesheet_link_tag "/admin/stylesheets/admin", :title => "Main", :rel => "stylesheet" %>

        <%= render :partial => 'admin_general/admin_navbar' %>
        <% if flash[:error] %>

                <%= flash[:error] %>

        <% end %>

        <% if flash[:notice] %>

                <%= flash[:notice] %>

        <% end %>

        <%= yield  %>

<!DOCTYPE html>

      <meta http-equiv="content-type" content="text/html;charset=UTF-8" >
      <title><%= site_name %> admin<%= @title ? ":" : "" %> <%=@title%></title>

      <%= javascript_include_tag '/javascripts/jquery.js', '/admin/javascripts/jquery-ui.min.js', '/admin/javascripts/bootstrap-collapse', '/admin/javascripts/bootstrap-tab', '/admin/javascripts/admin', '/javascripts/jquery_ujs' %>
      <%= stylesheet_link_tag 'admin-theme/jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%>
      <%= stylesheet_link_tag "/admin/stylesheets/admin", :title => "Main", :rel => "stylesheet" %>

        <%= render :partial => 'admin_general/admin_navbar' %>
        <% if flash[:error] %>

                <%= flash[:error] %>

        <% end %>

        <% if flash[:notice] %>

                <%= flash[:notice] %>

        <% end %>

        <%= yield  %>

Include unobtrusive js in the admin layout

We use the :confirm option of the submit_tag helper. Fixes #1042.


Update <%= link_to h(@project.title), project_path(@project) -%>

<%= error_messages_for :project -%>
<% form_for(@project, :method => "put") do |f| -%>
  <%= render :partial => "form", :locals => {:form => f} -%>
  <%= f.submit "Update" -%>
<% end -%>

<% content_for :submenu do -%>

<%= link_to "Edit project", edit_project_path(@project) -%>)

<% end -%>

<% content_for :sidebar do -%>

    <% if @project.can_be_deleted_by?(current_user) -%>

<%= link_to "Delete project", confirm_delete_project_path(@project) -%>

    <% end -%>

<% end -%>

Update <%= link_to h(@project.title), project_path(@project) -%>

<%= error_messages_for :project -%>
<% form_for(@project, :method => "put") do |f| -%>
  <%= render :partial => "form", :locals => {:form => f} -%>
  <%= f.submit "Update" -%>
<% end -%>

<% content_for :submenu do -%>

<%= link_to "Edit project", edit_project_path(@project) -%>

<% end -%>

<% content_for :sidebar do -%>

    <% if @project.can_be_deleted_by?(current_user) -%>

<%= link_to "Delete project", confirm_delete_project_path(@project) -%>

    <% end -%>

<% end -%>

Remove ending parenthesis after "Edit project"

The entry in the "Project Overview" tab bar has an unnecessary trailing
parenthesis.


 SOME SHIT YOU'VE SEARCHED FOR:

    <% @searched_stories.each do |story|%>

<%= story.title %>

    <% end %>

  <% @stories.each do |story| %>

<%= link_to story.title, story_path(story) %>

  <% end %>

Remove search results div from stories index page


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

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

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

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

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

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

Modify visible-results wrapper and move around whitespace divs


			<% @policies.each do |policy| %>
				<%= action_thumbnail_tag({:class => 'span3', :icon => "fa fa-book", :title => policy.name, :path => policy_path(policy)}) do %>

<%= policy.description %>

Current? <%= format_as_boolean(policy.current) %>

				<% end %>
			<% end %>

			<% @policies.each do |policy| %>
				<%= action_thumbnail_tag({:class => 'span3', :icon => "fa fa-book", :title => policy.name, :path => policy_path(policy)}) do %>

<%= policy.description %>

					<% if policy.current %>

Current

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

Fix formatting on policy thumbnail

Fix formatting on policy thumbnail


/* DO NOT EDIT: File is auto-generated */
package <%= to_package(dao.jpa.qualified_dao_test_name) %>;

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public abstract class <%= dao.jpa.dao_test_name %>
  extends <%= dao.data_module.repository.jpa.qualified_base_entity_test_name %>
{
<% dao.queries.select{|q|!q.jpa.standard_query?}.each do |query| -%>
  public abstract void <%= Domgen::Naming.camelize(query.name) %>()
    throws Exception;

<% end -%>
  protected final <%= dao.jpa.qualified_dao_service_name %> service()
  {
    return s( <%= dao.jpa.qualified_dao_service_name %>.class );
  }

  protected final <%= dao.jpa.qualified_dao_name %> ejb()
  {
    return toObject( <%= dao.jpa.qualified_dao_name %>.class, service() );
  }
}

/* DO NOT EDIT: File is auto-generated */
package <%= to_package(dao.jpa.qualified_dao_test_name) %>;

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public abstract class <%= dao.jpa.dao_test_name %>
  extends <%= dao.data_module.repository.ejb? ? dao.data_module.repository.ejb.qualified_base_service_test_name : dao.data_module.repository.jpa.qualified_base_entity_test_name %>
{
<% dao.queries.select{|q|!q.jpa.standard_query?}.each do |query| -%>
  public abstract void <%= Domgen::Naming.camelize(query.name) %>()
    throws Exception;

<% end -%>
  protected final <%= dao.jpa.qualified_dao_service_name %> service()
  {
    return s( <%= dao.jpa.qualified_dao_service_name %>.class );
  }

  protected final <%= dao.jpa.qualified_dao_name %> ejb()
  {
    return toObject( <%= dao.jpa.qualified_dao_name %>.class, service() );
  }
}

Update the DAO tests so that they extend the service test layer if it is generated. This is required in some scenarios when EntityListeners are injected with resources, often from the service layer. This is the scenario for the imit facet. the


<%= @page_name %>

Home

<%= link_to @controller, @controller_path %>

<%= @page_name %>

<%= @page_name %>

Home

                    <% unless @controller == "Static Pages" %>

<%= link_to @controller, @controller_path %>

                    <% end %>

<%= @page_name %>

Fix bug displaying Static Pages controller on About page


<% klass = f.object.class %>
<%- klass.admin_attributes(:form).each do |attr| -%>
  <% if attr == :value %>
    <% f.object.derive_data_source(true) %>
    <%= render "field_#{klass.crud.find(:fields, attr, :type)}", f: f, attr: attr, object: f.object, label: :value %>
  <% else %>
    <%=
      assoc    = klass.reflect_on_association(attr)
      partial  = 'form_field'
      partial += '_nested' if assoc && !assoc.belongs_to? && assoc.is_nested?
      render partial, :f => f, :attr => attr
    %>
  <% end %>
<%- end -%>

<% klass = f.object.class %>
<%- klass.admin_attributes(:form).each do |attr| -%>
  <% f.object.init_tags(true);
  <% if attr == :value %>
    <% f.object.derive_data_source(true) %>
    <%= render "field_#{klass.crud.find(:fields, attr, :type)}", f: f, attr: attr, object: f.object, label: :value %>
  <% else %>
    <%=
      assoc    = klass.reflect_on_association(attr)
      partial  = 'form_field'
      partial += '_nested' if assoc && !assoc.belongs_to? && assoc.is_nested?
      render partial, :f => f, :attr => attr
    %>
  <% end %>
<%- end -%>

Initialize tags to ensure a resources has acts-as-taggable-on enabled for it's associated tag settings


<%= render partial: "common/fco_dashboard", locals: {
    transaction_title: 'Pay to get documents legalised by post',
    explanatory_copy: "Service to pay the Foreign & Commonwealth Office (FCO) to get a UK public document 'legalised' - this means a signature, seal or stamp made by a UK public official on the document is confirmed as genuine by the UK government. Figures on this page include only applications processed on GOV.UK."
} %>

<%= render partial: "common/fco_dashboard", locals: {
    transaction_title: 'Pay to get documents legalised by post',
    explanatory_copy: "Figures for applications processed on GOV.UK for the service to pay the Foreign & Commonwealth Office (FCO) to get a UK public document 'legalised' - this means a signature, seal or stamp made by a UK public official on the document is confirmed as genuine by the UK government."
} %>

Update description on pay legalisation post


<% content_for :header do %>

<%= page_i18n :index, model_name: h(@milestones) %>

  <% if can? :create, Milestone %>

      <%= new_link Milestone, [:new, @project, :milestone] %>

  <% end %>
<% end %>

  <colgroup>
    <col width="20%">
    <col width="20%">
    <col width="20%">
    <col>
  </colgroup>

    <%=h Milestone, :title %>
    <%=h Milestone, :published_at %>
    <%= page_i18n :actions %>

    <% @milestones.each do |milestone| %>

        <%= link_to milestone.title, [@project, milestone] %>
        <%=l milestone.published_at, format: :long %>

          <%= edit_link [:edit, @project, milestone, ok_url: request.fullpath ] if can? :update, milestone %>
          <%= destroy_link [@project, milestone, ok_url: request.fullpath ] if can? :destroy, milestone %>

    <% end %>

  <%= paginate @milestones %>

<% content_for :header do %>

<%= page_i18n :index, model_name: h(@milestones) %>

  <% if can? :create, Milestone %>

      <%= new_link Milestone, [:new, @project, :milestone] %>

  <% end %>
<% end %>

  <colgroup>
    <col width="20%">
    <col width="20%">
    <col width="20%">
    <col>
  </colgroup>

    <%=h Milestone, :title %>
    <%=h Milestone, :published_at %>
    <%= page_i18n :actions %>

    <% @milestones.each do |milestone| %>

        <%= link_to milestone.title, [@project, milestone] %>
        <%=l milestone.published_at, format: :long if milestone.published_at? %>

          <%= edit_link [:edit, @project, milestone, ok_url: request.fullpath ] if can? :update, milestone %>
          <%= destroy_link [@project, milestone, ok_url: request.fullpath ] if can? :destroy, milestone %>

    <% end %>

  <%= paginate @milestones %>

Fix cannot display when published_at = nil


Editing <%= singular_name %>

<%% form_for(@<%= singular_name %>) do |f| %>
  <%%= f.error_messages %>

<% for attribute in attributes -%>

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

    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>

<% end -%>

    <%% f.fields_for :people do |person_form| %>
<% for attribute in child_attributes -%>

        <%= child_model_name.humanize %> <%%= <%= child_form_name %>.label :<%= attribute.name %> %>

        <%%= <%= child_form_name %>.<%= attribute.field_type %> :<%= attribute.name %> %>

<% end -%>
      <%% unless <%= child_form_name %>.object.new_record? %>
        <%%= <%= child_form_name %>.check_box '_delete' %>
        <%%= <%= child_form_name %>.label '_delete', 'Remove' %>
      <%% end %>
    <%% end %>

    <%%= f.submit 'Update' %>

<%% end %>

<%%= link_to 'Show', @<%= singular_name %> %> |
<%%= link_to 'Back', <%= plural_name %>_path %>

Editing <%= singular_name %>

<%% form_for(@<%= singular_name %>) do |f| %>
  <%%= f.error_messages %>

<% for attribute in attributes -%>

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

    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>

<% end -%>

  <%% f.fields_for :<%= child_plural_name %> do |<%= child_form_name %>| %>
<% for attribute in child_attributes -%>

        <%= child_model_name.humanize %> <%%= <%= child_form_name %>.label :<%= attribute.name %> %>

        <%%= <%= child_form_name %>.<%= attribute.field_type %> :<%= attribute.name %> %>

<% end -%>
      <%% unless <%= child_form_name %>.object.new_record? %>
        <%%= <%= child_form_name %>.check_box '_delete' %>
        <%%= <%= child_form_name %>.label '_delete', 'Remove' %>
      <%% end %>
    <%% end %>

    <%%= f.submit 'Update' %>

<%% end %>

<%%= link_to 'Show', @<%= singular_name %> %> |
<%%= link_to 'Back', <%= plural_name %>_path %>

Remove hard coded :people and person_form


sudo systemctl daemon-reload
docker exec -it <%= @cluster_owner %>.cache.gateway tail -f /var/log/squid/access.log
<% if @lifecycle_stage == "production" -%>
journalctl -xe
journalctl -l
systemctl list-unit-files
systemctl cat puppet.service
docker exec -it puppet.service puppet agent -t
sudo docker rm -f puppet.service
etcdctl cluster-health
etcdctl member list
docker exec -it <%= @cluster_owner %>.ceph_mon.service ceph health detail
fleetctl list-machines
fleetctl list-units
fleetctl list-unit-files
<%- else -%>
sudo sh -c "source /mnt/etc/environment; /home/core/cluster.coreos.install/install.sh puppet"
(cd /home/core/cluster.coreos.install/; sudo git pull)
journalctl -f -u coreos-bootstrap.service
sudo systemctl restart coreos-bootstrap.service && journalctl -f -u coreos-bootstrap.service
docker exec -it puppet-bootstrap.service puppet agent -t
sudo docker rm -f puppet-bootstrap.service
sudo /home/core/cluster.coreos.install/install.sh puppet
<% end %>

sudo systemctl daemon-reload
docker exec -it <%= @cluster_owner %>.cache.gateway tail -f /var/log/squid/access.log
<% if @lifecycle_stage == "production" -%>
journalctl -xe
journalctl -l
systemctl list-unit-files
systemctl cat puppet.service
docker exec -it puppet.service puppet agent -t
sudo docker rm -f puppet.service
etcdctl cluster-health
etcdctl member list
docker exec -it <%= @cluster_owner %>.ceph_mon.service ceph health detail
fleetctl list-machines
fleetctl list-units
fleetctl list-unit-files
kubectl get pods --all-namespaces --show-all=true -o=wide
<%- else -%>
sudo sh -c "source /mnt/etc/environment; /home/core/cluster.coreos.install/install.sh puppet"
(cd /home/core/cluster.coreos.install/; sudo git pull)
journalctl -f -u coreos-bootstrap.service
sudo systemctl restart coreos-bootstrap.service && journalctl -f -u coreos-bootstrap.service
docker exec -it puppet-bootstrap.service puppet agent -t
sudo docker rm -f puppet-bootstrap.service
sudo /home/core/cluster.coreos.install/install.sh puppet
<% end %>

Add the long form of "kubectl get pods" to history


<!DOCTYPE html>

	<title>Gravatar API</title>
	<meta name="viewport" content="width=device-width,initial-scale=1">

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

Wait a second... Where am I?

Hello young one. I understand you are confused. Try this on for size:

	http://gravatar.jessegrant.net/jessegrantherrick@gmail.com/200

I'm still confused.

If you're still wondering what this is and how to use it, check out this blog post.

Add the blog post link.

Add the blog post link.


    <% if answer.is_best_answer?(answer.question) %>

<%= render "answers/best_answer_identifier" %>

    <% end %>
    <% if logged_in? %>
      <% if answer.vote_on_this?(current_user.id)  %>

<%= render "votes/vote_form", :object => answer, :vote => @vote %>

      <% end %>
      <% if answer.best_answerable?(answer.question, current_user.id) %>
        <%= render "answers/best_answer_form", :answer => answer %>

      <% end %>
    <% end %>

<%= answer.content %>

<%= time_ago_in_words(answer.updated_at) %>

<%= link_to answer.answerer.username, user_path(answer.answerer) %>

    <%= render :partial => "responses/response", :collection => answer.responses %>

<%= link_to "comment", new_answer_response_path(answer) %>

Change tag names for fixed styling

Change tag names for fixed styling


<%= t('home.show.contact.title') %>

<%= t('home.show.contact.introduction') %>

Ask ma…

<a class="contact__number" href="<%= t('home.show.contact.number') %>"><%= t('home.show.contact.number') %>

<%= t('home.show.contact.opening_hours_heading') %>

<%= t('home.show.contact.opening_hours_html') %>

<%= t('home.show.contact.call_charges_html') %>

Add new contact partial for the homepage


<%= javascript_include_tag 'event_tracking' unless AlaveteliConfiguration::ga_code.empty? || (@user && @user.super?) %>
<%= javascript_include_tag 'personal_message_toggler' %>

<%= javascript_include_tag 'event_tracking' unless AlaveteliConfiguration::ga_code.empty? || (@user && @user.is_admin?) %>
<%= javascript_include_tag 'personal_message_toggler' %>

Use new way of figuring out if user is super user


    <% num_parts_to_reject = %w(show edit).include?(action_name) ? 2 : 1 %>
    <% path_parts = request.path.split('/').reject(&:blank?) %>
    <% path_parts.each_with_index do |path_part, index| %>
      <% path_part_name = path_part == 'admin' ? 'dashboard' : path_part %>
      <% if index >= num_parts_to_reject || num_parts_to_reject == path_parts.length %>

          <%= path_part_name.titleize %>

      <% else %>

          <%= link_to path_part_name.titleize, path_parts[0..index].join('/').prepend('/') %>

      <% end %>
    <% end %>

    <% num_parts_to_reject = %w(show edit new).include?(action_name) ? 2 : 1 %>
    <% path_parts = request.path.split('/').reject(&:blank?) %>
    <% path_parts.each_with_index do |path_part, index| %>
      <% path_part_name = path_part == 'admin' ? 'dashboard' : path_part %>
      <% if index >= num_parts_to_reject || num_parts_to_reject == path_parts.length %>

          <%= path_part_name.titleize %>

      <% else %>

          <%= link_to path_part_name.titleize, path_parts[0..index].join('/').prepend('/') %>

      <% end %>
    <% end %>

Fix breadcrumbs link trail on new action


  Your Right to Know

Every citizen has the right to access information held by public bodies. By law, they have to respond. <a href="<%= help_about_url %>">Find out more about Freedom of Information.

<%= _("Your right to know") %>

  Every citizen has the right to access information held by public bodies.
  By law, they have to respond.
  <a href="<%= help_about_url %>">Find out more about Freedom of Information.

Update frontpage_intro_sentence to be closer to core


<%= image_tag @avatar_url %> <%= @name %>

<% unless @src_sets.empty? %>
    <%= render :partial => 'src_sets/src_sets' %>
<% end %>

<%= render :partial => 'src_images/src_images' %>

<% unless @gend_images.empty? %>
    <%= render :partial => 'gend_images/gend_images' %>
<% end %>

Remove gravatar and header from top of my images.


(function() {
  "use strict";

  var consentCookie = window.GOVUK.getConsentCookie();

  // Disable analytics by default
  // This will be reversed below, if the consent cookie says usage cookies are allowed
  window['ga-disable-UA-26179049-1'] = true;

  if (!consentCookie || consentCookie["usage"]) {
    window['ga-disable-UA-26179049-1'] = false;

    // Load Google Analytics libraries
    GOVUK.StaticAnalytics.load();

    // Use document.domain in dev, preview and staging so that tracking works
    // Otherwise explicitly set the domain as www.gov.uk (and not gov.uk).
    var cookieDomain = (document.domain == 'www.gov.uk') ? '.www.gov.uk' : document.domain;

    var universalId = '<%= Rails.application.config.ga_universal_id %>';

    // Configure profiles, setup custom vars, track initial pageview
    var analytics = new GOVUK.StaticAnalytics({
      universalId: universalId,
      cookieDomain: cookieDomain,
      allowLinker: true,
      // This is served by Fastly in production, and returns an empty 200 response
      govukTrackerUrl: '<%= asset_path "/static/a" %>'
    });

    // Make interface public for virtual pageviews and events
    GOVUK.analytics = analytics;
  }
})();

(function() {
  "use strict";

  var consentCookie = window.GOVUK.getConsentCookie();

  var dummyAnalytics = {
    addLinkedTrackerDomain: function(){},
    setDimension: function(){},
    setOptionsForNextPageView: function(){},
    trackEvent: function(){},
    trackPageview: function(){},
    trackShare: function(){},
  };

  // Disable analytics by default
  // This will be reversed below, if the consent cookie says usage cookies are allowed
  window['ga-disable-UA-26179049-1'] = true;

  if (!consentCookie || consentCookie["usage"]) {
    window['ga-disable-UA-26179049-1'] = false;

    // Load Google Analytics libraries
    GOVUK.StaticAnalytics.load();

    // Use document.domain in dev, preview and staging so that tracking works
    // Otherwise explicitly set the domain as www.gov.uk (and not gov.uk).
    var cookieDomain = (document.domain == 'www.gov.uk') ? '.www.gov.uk' : document.domain;

    var universalId = '<%= Rails.application.config.ga_universal_id %>';

    // Configure profiles, setup custom vars, track initial pageview
    var analytics = new GOVUK.StaticAnalytics({
      universalId: universalId,
      cookieDomain: cookieDomain,
      allowLinker: true,
      // This is served by Fastly in production, and returns an empty 200 response
      govukTrackerUrl: '<%= asset_path "/static/a" %>'
    });

    // Make interface public for virtual pageviews and events
    GOVUK.analytics = analytics;
  } else {
    GOVUK.analytics = dummyAnalytics
  }
})();

Add a dummy GOVUK.analytics when no cookie consent

Previously we were not setting GOVUK.analytics
when the user had denied tracking cookie consent.

This is causing other apps to break as they call methods on this
directly, it always existed before.

This commit sets it to a dummy object (kinda like null object pattern)
with empty functions.


<%= simple_form_for [forem, :admin, @forum] do |f| %>
  <%= f.association :category, :include_blank => false %>
  <%= f.input :title %>
  <%= f.input :description, :as => :text %>

Moderator Groups

  <%= f.association :moderators, :as => :check_boxes %>
  <%= f.submit %>
<% end %>

<%= simple_form_for [forem, :admin, @forum] do |f| %>
  <%= f.association :category, :include_blank => false %>
  <%= f.input :title %>
  <%= f.input :description, :as => :text %>

Private for

  <%= f.association :allowed_viewers, :as => :check_boxes %>

Moderator Groups

  <%= f.association :moderators, :as => :check_boxes %>
  <%= f.submit %>
<% end %>

Add 'private for' option in forum creation view


Results

  <%= @incidents.total_count %>

  <% if params[:incident_type] %>

    <%= params[:incident_type] %>

  <% end %>

  incident reports

  <% if params[:by_detailed_report] %>
    with attatched Incident Detail Reports
  <% end %>

  <% if @location_name %>
    from <%= @location_name %>
  <% end %>

  between

    <%= @start_date.strftime("%e %b %Y") %>

  and

    <%=@end_date.strftime("%e %b %Y") %>.

  <%= link_to "Permalink", params, class: 'incident-index-permalink', title: 'url to share or bookmark these results' %>

        <%=  page_entries_info @incidents %>

      <%= paginate @incidents %>

Results

  <%= @incidents.total_count %>

  <% if params[:incident_type] %>

    <%= params[:incident_type] %>

  <% end %>

  incident reports

  <% if params[:by_detailed_report] %>
    with attatched Incident Detail Reports
  <% end %>

  <% if @location_name %>
    from <%= @location_name %>
  <% end %>

  between

    <%= @start_date.strftime("%e %b %Y") %>

  and

    <%=@end_date.strftime("%e %b %Y") %>.

  <%= link_to "Permalink", params, class: 'incident-index-permalink', title: 'url to share or bookmark these results' %>

        <%=  page_entries_info @incidents, :entry_name => 'Incident Reports' %>

      <%= paginate @incidents %>

Use Incident Reports over Incidents

Use Incident Reports over Incidents


<%= render partial: 'management/extended_header', locals: {type: 'widget'} %>
<%= include_gon %>

<%= render partial: 'management/tabs'%>

<%= javascript_pack_tag 'application' %>
<%= react_component('WidgetsListContainer', {
  widgets: @widgets
} ) %>

<%= render partial: 'management/extended_header', locals: {type: 'widget'} %>
<%= include_gon %>

<%= render partial: 'management/tabs'%>

<%= javascript_pack_tag 'application' %>
<%= react_component('WidgetsContainer', {
  widgets: @widgets
} ) %>

Load the correct React component for the widgets listing


<% if !resource.is_a?(Column) && (
	can?(:destroy, resource) || can?(:edit, resource) || (
      resource.respond_to?(:state_events) && resource.state_events.select{|event| can? event, resource }.any?
    )
) %>

  <%= t('general.actions') %>

  <% if can? :destroy, resource %>

      <%= link_to(
        t('general.destroy'), polymorphic_or_resource_path(resource), id: "#{resource.class.name.tableize.singularize}_#{resource.id}", method: :delete,
        data: { confirm: t('general.questions.are_you_sure') },
        onclick: "delete_link('#{resource.class.name.tableize.singularize}_#{resource.id}'); return false;"
      )
      %>

  <% end %>
  <% if can? :edit, resource %>

<%= link_to t('general.edit'), eval("edit_#{type.singularize}_path(resource)") %>

  <% end %>
  <% if resource.respond_to? :state_events %>

  <% end %>
  <%= render 'shared/resource/event_elements', resource: resource, type: type %>

<% end %>

<% if !resource.is_a?(Column) && (
	can?(:destroy, resource) || can?(:edit, resource) || (
      resource.respond_to?(:state_events) && resource.state_events.select{|event| can? event, resource }.any?
    )
) %>

  <%= t('general.actions') %>

  <% if can? :destroy, resource %>

      <%= link_to(
        t('general.destroy'), polymorphic_or_resource_path(resource), id: "#{resource.class.name.tableize.singularize}_#{resource.id}", method: :delete,
        data: { confirm: t('general.questions.are_you_sure') },
        onclick: "delete_link('#{resource.class.name.tableize.singularize}_#{resource.id}'); return false;"
      )
      %>

  <% end %>
  <% if can? :edit, resource %>

<%= link_to t('general.edit'), eval("edit_#{type.gsub('/', '_').singularize}_path(resource)") %>

  <% end %>
  <% if resource.respond_to? :state_events %>

  <% end %>
  <%= render 'shared/resource/event_elements', resource: resource, type: type %>

<% end %>

Make edit link work with namespaced models.


# Editor Droppings #
####################
<%= @ignore_idea ? "# " : ""%>.idea # Java projects check in the .idea directory

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes

# Tag files produced by exuberant ctags #
#########################################
TAGS
!TAGS/
tags
!tags/

Add tags files to default gitignore

Add tags files to default gitignore


    <li class="<%= 'selected' if params[:controller] == 'request' and ['new', 'select_authority'].include?(params[:action]) %>">
      <%= link_to _("Make a request"), select_authority_path, :id => 'make-request-link' %>

    <li class="<%= 'selected' if params[:controller] == 'request' and !['new', 'select_authority'].include?(params[:action]) %>">
      <%= link_to _("Browse requests"), request_list_successful_path %>

    <li class="<%= 'selected' if params[:controller] == 'public_body' %>">
      <%= link_to _("View authorities"), list_public_bodies_default_path %>

    <% unless AlaveteliConfiguration::blog_feed.empty? %>
      <li class="<%= 'selected' if params[:controller] == 'general' and params[:action] == 'blog' %>"><%= link_to _("Read blog"), blog_path %>

    <% end %>

    <li class="<%= 'selected' if params[:controller] == 'help' %>">
      <%= link_to _("Help"), help_about_path %>

      <form id="navigation_search_form" class="navigation_search_form" method="get" action="<%= search_redirect_path %>" role="search">

          <%= _("Search") %>

        <%= text_field_tag 'query', params[:query], { :class => "navigation_search_button", :id => "navigation_search_button", :type => "search", :placeholder => _("Search"), :title => _("type your search term here") } %>
        <button type="submit">

            <%= _("Submit Search") %>

        </button>
      </form>

Add template from core for override.

Add template from core for override.

From alaveteli commit 07d14ae06487c05455c685ff42690124a54a1a38


//= depend_on 'client.ar.yml'
//= require locales/i18n
<%= JsLocaleHelper.output_locale(:ar) %>

I18n.pluralizationRules['ar'] = function (n) {
  if (n == 0) return "zero";
  if (n == 1) return "one";
  if (n == 2) return "two";
  if (n%100 >= 3 && n%100 <= 10) return "few";
  if (n%100 >= 11) return "many";
  return "other";
};

//= depend_on 'client.ar.yml'
//= require locales/i18n
<%= JsLocaleHelper.output_locale(:ar) %>

I18n.pluralizationRules['ar'] = function (n) {
  if (n == 0) return "zero";
  if (n == 1) return "one";
  if (n == 2) return "two";
  if (n%100 >= 3 && n%100 <= 10) return "few";
  if (n%100 >= 11 && n%100 <= 99) return "many";
  return "other";
};

Fix Arabic Pluralization Rules for Client


MetaCorp

A GoatGroup Company

				<%= form_tag "forgot_password", :class=> "signup-wrapper" do %>

Forgot Password

Fill out the form below to reset your email.

					    		<%= label_tag "Email Address" %>
					    		<%= text_field_tag :email, params[:email], {:class => "input input-block-level"} %>

							<%= submit_tag "Send Forgot Password Email", {:class => "btn btn-warning btn-small"} %>

					<% end %>

MetaCorp

A GoatGroup Company

				<%= form_tag "forgot_password", :class=> "signup-wrapper" do %>

Forgot Password

Fill out the form below to reset your password.

					    		<%= label_tag "Email Address" %>
					    		<%= text_field_tag :email, params[:email], {:class => "input input-block-level"} %>

							<%= submit_tag "Send Forgot Password Email", {:class => "btn btn-warning btn-small"} %>

					<% end %>

Fix typo, should be password

Fix typo, should be password


<%= @program.name %>

Required Courses

  <% @course_names.each do |course| %>

<%= course %>, <%= @course_count[course] %>

  <% end %>

    <a href="<%= @rpi_url %>">View in RPI Catalog

<%= @program.name %>

Required Courses

  <% @course_names.each do |course| %>

<%= course %>
    <% if @course_count[course] > 1 %>
      x<%= @course_count[course] %>
    <% end %>

  <% end %>

    <a href="<%= @rpi_url %>">View in RPI Catalog

Hide course count for singleton courses

Hide course count for singleton courses


Editing '<%= @startup.name %>' Startup

    <%= render 'form' %>

    <%= link_to 'Delete', @startup, :method => :delete, :confirm => "Are you sure you want to delete #{@startup.name}?" %>

    <%= content_tag(:h1, "Editing '#{@startup.name}' Startup") %>

    <%= render 'form' %>

    <%= link_to 'Delete', @startup, :method => :delete, :confirm => "Are you sure you want to delete #{@startup.name}?" %>

Update h1 header to use content_tag

Update h1 header to use content_tag


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

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

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

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

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

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

Add placeholder section between header and school info to take up space for now, change div name for school info section"


<%= javascript_pack_tag 'application' %>

<%= react_component('public/SearchResults', {
  site: @site_page.site,
  search: @search_string,
  page: @page_number,
  totalPages: @total_pages,
  results: @search_results
}) %>

<script type="text/javascript">
  window.route = 'SearchResults';
</script>

<%= javascript_pack_tag 'application' %>

<%= react_component('public/SearchResults', {
  site: @site_page.site,
  image: @alternative_image,
  search: @search_string,
  page: @page_number,
  totalPages: @total_pages,
  results: @search_results
}) %>

<script type="text/javascript">
  window.route = 'SearchResults';
</script>

Fix a bug where the search page wouldn't have any cover image


<%= div_for document, :class => 'content_size' do %>

  <div class="document_show">
    <%= link_to "", document, :class => icon75_class_for(document), :alt => document.title %>
  </div>

<% end %>

<%= div_for document, :class => 'content_size' do %>

    <iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fvishub.global.dit.upm.es<%=u download_document_path(document)%>&embedded=true" width="600" height="480" style="border: none;">

<% end %>

Add google docs embedded view

Add google docs embedded view


<%= cache_in_private([:site_index, :active_teams], :expires_in => 15.minutes) do %>
  <%= pull_box("Active teams", :class => "pull-box-510") do %>

      <% @active_groups.each do |group| %>

          <%= image_tag(group.avatar.url(:thumb), :alt => "Avatar", :width => "16") %>
          <%= link_to h(group.title), group %>

      <% end %>

  <% end %>
<% end %>

<%= cache_in_private([:site_index, :active_teams], :expires_in => 15.minutes) do %>
  <%= pull_box("Active teams") do %>

      <% @active_groups.each do |group| %>

            <%= image_tag(group.avatar.url(:thumb), :alt => "Avatar", :width => "16") %>

            <%= link_to h(group.title), group %>

      <% end %>

  <% end %>
<% end %>

Update markup in Active teams box

Update markup in Active teams box


<%= render "/admin/poll/polls/poll_header" %>

  <%= render "/admin/poll/polls/subnav" %>
  <%= render "search_booths" %>

<%= t("admin.poll_booth_assignments.index.booths_title") %>

  <% if @booth_assignments.empty? %>

      <%= t("admin.poll_booth_assignments.index.no_booths") %>

  <% else %>

        <%= t("admin.poll_booth_assignments.index.table_name") %>
        <%= t("admin.poll_booth_assignments.index.table_location") %>

        <% @booth_assignments.each do |booth_assignment| %>
          <tr id="<%= dom_id(booth_assignment) %>" class="booth">

                <%= link_to booth_assignment.booth.name, admin_poll_booth_assignment_path(@poll, booth_assignment) %>

              <%= booth_assignment.booth.location %>

        <% end %>

    <%= paginate @booth_assignments %>
  <% end %>

<%= render "/admin/poll/polls/poll_header" %>

  <%= render "/admin/poll/polls/subnav" %>
  <%= render "search_booths" %>

<%= t("admin.poll_booth_assignments.index.booths_title") %>

  <%= link_to t("admin.booth_assignments.manage_assignments"),
              manage_admin_poll_booth_assignments_path(@poll),
              class: "button hollow float-right" %>

  <% if @booth_assignments.empty? %>

      <%= t("admin.poll_booth_assignments.index.no_booths") %>

  <% else %>

        <%= t("admin.poll_booth_assignments.index.table_name") %>
        <%= t("admin.poll_booth_assignments.index.table_location") %>

        <% @booth_assignments.each do |booth_assignment| %>
          <tr id="<%= dom_id(booth_assignment) %>" class="booth">

                <%= link_to booth_assignment.booth.name, admin_poll_booth_assignment_path(@poll, booth_assignment) %>

              <%= booth_assignment.booth.location %>

        <% end %>

    <%= paginate @booth_assignments %>
  <% end %>

Add link to booth assignment management at poll booth assigments list


<% if object.present? && object.asset.present? %>
  <% max_img_size = object.max_image_size %>

  <% if object.url.present? %>
    <%= link_to object.url do %>
      <%= image_tag object.asset.image.url(max_img_size, max_img_size, quality: 65), alt: '', class: 'img-fluid' %>
    <% end %>

  <% else %>
    <%= image_tag object.asset.image.url(max_img_size, max_img_size, quality: 65), alt: '', class: 'img-fluid' %>
  <% end %>

  <% if object.caption.present? %>
    <% if Udongo.config.flexible_content.picture_caption_editor? %>

        <%= object.caption.html_safe %>

    <% else %>

        <%= object.caption %>

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

<% if object.present? && object.asset.present? %>
  <% max_img_size = object.max_image_size %>

  <% if object.url.present? %>
    <%= link_to object.url do %>
      <% if object.disallow_resize? %>
        <%= image_tag object.asset.image.url, alt: '', class: 'img-fluid' %>
      <% else %>
        <%= image_tag object.asset.image.url(max_img_size, max_img_size, quality: 65), alt: '', class: 'img-fluid' %>
      <% end %>
    <% end %>

  <% else %>
    <% if object.disallow_resize? %>
      <%= image_tag object.asset.image.url, alt: '', class: 'img-fluid' %>
    <% else %>
      <%= image_tag object.asset.image.url(max_img_size, max_img_size, quality: 65), alt: '', class: 'img-fluid' %>
    <% end %>
  <% end %>

  <% if object.caption.present? %>
    <% if Udongo.config.flexible_content.picture_caption_editor? %>

        <%= object.caption.html_safe %>

    <% else %>

        <%= object.caption %>

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

Adjust the default content picture partial to take the 'disallow-resize' setting into account.


  <%= form_tag(newsletter_subscription_path, class: 'newsletter', remote: true) do %>
    <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>
    <fieldset>
      <legend class="newsletter-signup__heading"><%= t('newsletter_subscriptions.title') %></legend>

        <% t('newsletter_subscriptions.benefits').each do |benefit| %>

<%= benefit %>

        <% end %>

        <%= label_tag('subscription[email]', 'Email address', class: 'newsletter-signup__form-label') %>
        <%= text_field_tag('subscription[email]', nil, class: 'js-newsletter-input newsletter-signup__input', placeholder: 'example@example.com') %>
        <%= button_tag('Sign up', type: 'submit', class: 'button button--inline-input newsletter-signup__button') %>

    </fieldset>
  <% end %>

<%= form_tag(newsletter_subscription_path, class: 'newsletter-signup', remote: true) do %>
  <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>

<%= t('newsletter_subscriptions.title') %>

    <% t('newsletter_subscriptions.benefits').each do |benefit| %>

<%= benefit %>

    <% end %>

  <fieldset class="newsletter-signup__form js-newsletter-form">
    <legend class="visually-hidden">Sign up to our newsletter</legend>

      <%= label_tag('subscription[email]', 'Email address', class: 'newsletter-signup__form-label') %>
      <%= text_field_tag('subscription[email]', nil, class: 'js-newsletter-input newsletter-signup__input', placeholder: 'example@example.com') %>
      <%= button_tag('Sign up', type: 'submit', class: 'button button--inline-input newsletter-signup__button') %>

  </fieldset>
<% end %>

Restructure the newsletter signup HTML

Restructure the newsletter signup HTML


Taxons

<%= f.input :taxons,
    collection: linkables.taxons,
    placeholder: "Choose one...",
    input_html: { multiple: true, class: :select2 } %>

  This taxonomy is currently being developed by the Finding Things team.

Taxons

<%= f.input :taxons,
    collection: linkables.taxons,
    placeholder: "Choose one...",
    input_html: { multiple: true, class: :select2 } %>

  This taxonomy is currently being developed.

Remove note about the Finding Things team

As this team doesn't currently exist.


Related information

        Tax you pay on your pension

        Ways to take your pension money

Add calculator related links partial

Add calculator related links partial


Is something wrong with this page?

Help us improve GOV.UK by telling us:

  <form accept-charset="UTF-8" action="/feedback" method="post">

<input name="utf8" type="hidden" value="✓">

    <input id="url" name="url" type="hidden" value="<%= request_url %>">

      What you were doing
      <input id="what_doing" name="what_doing" type="text" />

      What is wrong with this page
      <input id="what_happened" name="what_happened" type="text" />

<input name="commit" type="submit" value="Send" class="button" />

If you have more extensive feedback, please visit the support page.

  </form>

Is something wrong with this page?

Help us improve GOV.UK by telling us:

  <form accept-charset="UTF-8" action="/feedback" method="post">

<input name="utf8" type="hidden" value="✓">

    <input id="url" name="url" type="hidden" value="<%= request_url %>">

      What you were doing
      <input id="what_doing" name="what_doing" type="text" />

      What is wrong with this page
      <input id="what_wrong" name="what_wrong" type="text" />

<input name="commit" type="submit" value="Send" class="button" />

If you have more extensive feedback, please visit the support page.

  </form>

Update form fields to have better names

Update form fields to have better names


  Plant show

  <%= @plant.name %>

Latest Waterings

  <% @plant.latest_watering(5).each do |watering| %>

      <%= watering.date %>
      <%= watering.amount %>

  <% end %>

<%= link_to 'New watering', new_plant_watering_path(@plant) %>

Clean up plant page with name a header

Clean up plant page with name a header