Further help and advice is available from:

- [Fair Trials International](http://www.fairtrials.net/ "Fair Trials International"){:rel="external"}
- [Prisoners Abroad](http://www.prisonersabroad.org.uk "Prisoners Abroad"){:rel="external"}
- [Reprieve](http://www.reprieve.org.uk/ "Reprieve"){:rel="external"}

Further help and advice is available from:

- [Fair Trials International](http://www.fairtrials.net/ "Fair Trials International"){:rel="external"}
- [Prisoners Abroad](http://www.prisonersabroad.org.uk "Prisoners Abroad"){:rel="external"}
- [Reprieve](https://reprieve.org/ "Reprieve"){:rel="external"}

Update broken link for Reprieve

Update broken link for Reprieve


  <%= render "govuk_publishing_components/components/heading", {
    text: related_topic_section["header"],
    padding: true,
    border_top: 2,
    margin_bottom: 6
  } %>

    <% related_topic_section["links"].each do | link | %>

        <%= link_to(
          link["label"], link["url"], class: 'covid__topic-list-link govuk-link',
          data: {
            track_category: "pageElementInteraction",
            track_action: "RelatedTopics",
            track_label: link["url"],
          }
        ) %>

    <% end %>

Add related links partial for Coronavirus hub pages

In order to help users navigate between related Coronavirus hub pages, we want to add a new UI component to display the appropriate header, link labels and links to all of the other Coronavirus hub pages.

The content for this has been created in the appropriate YAML files within the govuk-coronavirus-content repo.

This change adds a partial to render the related links for a single hub page and enables tracking for link clicks.


<%= link_to generic_share_link(answer), class: "toc--entry #{answer.deleted? ? 'deleted-content' : ''}" do %>
  ... (rest of this HTML goes here) ...
<% end %>

    +<%= answer.upvote_count %>

    −<%= answer.downvote_count %>

    <% sanitised = strip_markdown(answer.body_markdown) %>
    <% max_length = SiteSetting["TableOfContentsExcerptLength"] %>

        <%= sanitised[ 0 ... max_length ] %>
        <% if sanitised.length > max_length %>
            …
        <% end %>

<%= time_ago_in_words(answer.last_edited_at, locale: :en_abbrev) %> ago

<%= link_to generic_share_link(answer), class: "toc--entry #{answer.deleted? ? 'deleted-content' : ''}" do %>

    +<%= answer.upvote_count %>

    −<%= answer.downvote_count %>

    <% sanitised = strip_markdown(answer.body_markdown) %>
    <% max_length = SiteSetting["TableOfContentsExcerptLength"] %>

        <%= sanitised[ 0 ... max_length ] %>
        <% if sanitised.length > max_length %>
            …
        <% end %>

<%= time_ago_in_words(answer.last_edited_at, locale: :en_abbrev) %> ago

<% end %>

Use helper instead of anchor tag

Use helper instead of anchor tag


    <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 _("View requests"), request_list_all_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 %>

Add extra class merged in from application


  © 2015 Core Infrastructure Initiative, a Linux Foundation Collaborative Project. All Rights Reserved.

<%= link_to image_tag('cii-footer.png', {width: 120, height: 30}),'https://www.coreinfrastructure.org/' %>

<%= link_to image_tag('lf-footer.png', {width: 120, height: 30}),'http://www.linuxfoundation.org/' %>

<%= link_to image_tag('fastly-logo.png', {width: 45, height: 17}),'http://www.fastly.com/' %>

  © 2015-2016 Core Infrastructure Initiative, a Linux Foundation Collaborative Project. All Rights Reserved.

<%= link_to image_tag('cii-footer.png', {width: 120, height: 30}),'https://www.coreinfrastructure.org/' %>

<%= link_to image_tag('lf-footer.png', {width: 120, height: 30}),'http://www.linuxfoundation.org/' %>

<%= link_to image_tag('fastly-logo.png', {width: 45, height: 17}),'http://www.fastly.com/' %>

Change displayed copyright statement to cover 2015-2016, not just 2015

  This changes the footer in the display
  (app/views/layouts/_footer.html.erb).

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


      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        Toggle navigation

      </button>
      <%= link_to 'Tienda Rails Girls Cali', root_path, class: "navbar-brand" %>

      <%= form_tag search_products_path, class: 'navbar-form navbar-left pull-right',
                   role: 'search' do %>

          <%= text_field_tag :product_name, @product_name, class: 'form-control',
                             placeholder: 'Buscar productos' %>

        <%= submit_tag 'Buscar', class: 'btn btn-default' %>
      <% end %>

      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        Toggle navigation

      </button>
      <%= link_to 'Tienda Rails Girls Cali', root_path, class: "navbar-brand" %>

      <% if admin_signed_in? %>

            <%= link_to "Cerrar Sesión", destroy_admin_session_path, method: :delete %>

      <% end %>
      <%= form_tag search_products_path, class: 'navbar-form navbar-left pull-right',
                   role: 'search' do %>

          <%= text_field_tag :product_name, @product_name, class: 'form-control',
                             placeholder: 'Buscar productos' %>

        <%= submit_tag 'Buscar', class: 'btn btn-default' %>

      <% end %>

Add close session link in header

Add close session link in header


    Screen Name
    <%= @user.name %>

    Forename
    <%= @user.forename %>

    Surname
    <%= @user.surname %>

    Email
    <%= @user.email %>

    Auth Code
    <%= @user.authentication_code %>

    Bookmarklet
    <a href="<%= render :partial => 'bookmarklet', :locals => {:user => user} %>">Spenglerise (drag to your toolbar)

    RSS Feed
    <%= link_to "Feed", :action => 'feed' %>

Add a link to the users RSS feed from the users account page.


// see https://www.mediawiki.org/wiki/Extension:Flow
$wgFlowAjaxTimeout = 90; // Seconds

$wgFlowEventLogging = true;
$wgFlowServerCompileTemplates = true; // always recompile in dev mode
$wgFlowContentFormat = 'html'; // Parsoid dependency

$wgExtraNamespaces[190] = 'Flow_test';
$wgExtraNamespaces[191] = 'Flow_test_talk';
$wgNamespacesWithSubpages[190] = true;
$wgNamespacesWithSubpages[191] = true;

$wgFlowOccupyPages = array (
	'Talk:Flow QA', // used by Flow extension's browser tests
	'Talk:Sandbox',
);
$wgFlowOccupyNamespaces = array( NS_USER_TALK, 191 );

$wgFlowParsoidURL = 'http://localhost:<%= scope['mediawiki::parsoid::port'] %>';
$wgFlowParsoidPrefix = 'localhost';
$wgFlowParsoidTimeout = 100;

$wgGroupPermissions['autoconfirmed']['flow-edit-post'] = true;
$wgGroupPermissions['sysop']['flow-create-board'] = true;
$wgGroupPermissions['sysop']['flow-suppress'] = true;

$wgDebugLogGroups['Flow'] = '/vagrant/logs/mediawiki-Flow.log';

// see https://www.mediawiki.org/wiki/Extension:Flow
$wgFlowAjaxTimeout = 90; // Seconds

$wgFlowEventLogging = true;
$wgFlowServerCompileTemplates = true; // always recompile in dev mode
$wgFlowContentFormat = 'html'; // Parsoid dependency

define( 'NS_FLOW_TEST', 190 );
define( 'NS_FLOW_TEST_TALK', 191 );

$wgExtraNamespaces[ NS_FLOW_TEST ] = 'Flow_test';
$wgExtraNamespaces[ NS_FLOW_TEST_TALK ] = 'Flow_test_talk';
$wgNamespacesWithSubpages[ NS_FLOW_TEST ] = true;
$wgNamespacesWithSubpages[ NS_FLOW_TEST_TALK ] = true;

$wgNamespaceContentModels[ NS_FLOW_TEST_TALK ] = CONTENT_MODEL_FLOW_BOARD;

$wgFlowEnableOptInBetaFeature = true;

$wgFlowParsoidURL = 'http://localhost:<%= scope['mediawiki::parsoid::port'] %>';
$wgFlowParsoidPrefix = 'localhost';
$wgFlowParsoidTimeout = 100;

$wgGroupPermissions['autoconfirmed']['flow-edit-post'] = true;
$wgGroupPermissions['sysop']['flow-create-board'] = true;
$wgGroupPermissions['sysop']['flow-suppress'] = true;

$wgDebugLogGroups['Flow'] = '/vagrant/logs/mediawiki-Flow.log';

Use wgNamespaceContentModels instead of wgFlowOccupyNamespaces

* Enable Flow on NS_FLOW_TEST_TALK

* Enable Flow on talk page beta feature by default
  instead of enabling on NS_USER_TALK,
  because dogfooding :)

Bug: T109553
Change-Id: I42e2343c5f248371787589c7c62ee117681a8257


<% content_for(:page_title) { "Thank you - e-petitions" } %>

  Thank you

Your signature has now been added to the <%= link_to @petition.title, petition_path(@petition) %> petition.

<%= render 'shared/share_petition', petition: @petition %>

What's next

  <%= render "shared/about_petitions" %>

<% if @signature.constituency %>

      Your constituency is <%= @signature.constituency.name %>

    <% if @signature.constituency.mp %>

        Your local MP is <%= @signature.constituency.mp.name %>
        <%= link_to "Contact your MP", @signature.constituency.mp.url %>

    <% end %>

<% end %>

Register to vote

To vote in local, national and EU elections, you must be registered to vote.

It takes less than 5 minutes.

<%= link_to "Register to vote", "https://www.gov.uk/register-to-vote" %>

<% content_for(:page_title) { "Thank you - e-petitions" } %>

  Thank you

Your signature has now been added to the <%= link_to @petition.title, petition_path(@petition) %> petition.

<%= render 'shared/share_petition', petition: @petition %>

What's next

  <%= render "shared/about_petitions" %>

<% if @signature.constituency %>

Contact your MP

Your constituency is <%= @signature.constituency.name %>

    <% if @signature.constituency.mp %>

Your local MP is <%= @signature.constituency.mp.name %>

<%= link_to "Contact your MP", @signature.constituency.mp.url %>

    <% end %>

<% end %>

Register to vote

To vote in local, national and EU elections, you must be registered to vote.

It takes less than 5 minutes.

<%= link_to "Register to vote", "https://www.gov.uk/register-to-vote" %>

Fix layout for constituency and MP info

Fix layout for constituency and MP info


<% text_for :title do %>
  You’ll usually need a visa to come to the UK
<% end %>

<% govspeak_for :body do %>
  In most cases, you must apply for a [Standard Visitor visa](/standard-visitor-visa).

  ##When you might not need a visa

  You may be able to apply to come to the UK for free instead of paying for a visa if your partner or family member is a British citizen or from another European country.

  ###If your family member is a British citizen

  If you’ve been living with your British partner or family member in another European country, you may be able to apply for a free [‘Surinder Singh’ EEA family permit](/family-permit/surinder-singh). Eligible countries are [countries in the EU](/eu-eea), Switzerland, Norway, Iceland and Liechtenstein.

  ###If your family member is from another European country

  You may be able to apply for a free [family permit](/family-permit) if your partner or family member is from the EU, Switzerland, Norway, Iceland or Liechtenstein.

  Or if they were living in the UK before 31 December 2020, you may be able to apply to the free [EU Settlement Scheme](/settled-status-eu-citizens-families). You get more rights than with a visa or family permit -  you can live, work and study in the UK for as long as you like.
<% end %>

<% text_for :title do %>
  You’ll usually need a visa to come to the UK
<% end %>

<% govspeak_for :body do %>
  In most cases, you must apply for a [Standard Visitor visa](/standard-visitor-visa).

  ##When you might not need a visa

  You may be able to apply to come to the UK for free instead of paying for a visa if your partner or family member is a British citizen or from another European country.

  ###If your family member is a British citizen

  If you’ve been living with your British partner or family member in another European country, you may be able to make a 'Surinder Singh' application for a free [family permit](/family-permit/surinder-singh). Eligible countries are [countries in the EU](/eu-eea), Switzerland, Norway, Iceland and Liechtenstein.

  ###If your family member is from another European country

  You may be able to apply for a free [family permit](https://www.gov.uk/family-permit) if your partner or family member is from the EU, Switzerland, Norway, Iceland or Liechtenstein. They must have been living in the UK before 31 December 2020.
<% end %>

Update tourism visa partner outcome

Update tourism visa partner outcome

As part of the changes after 31 Dec, we need to remove references
to the 'EEA' family permit as users may also be able to apply for
a EU Settlement Scheme family permit.


<div class="<%= record.class_names %>" data-locale="<%= locale %>">
  <%= label_tag "#{ input_base_name }[#{ record.uid }][value][#{ locale }]" do %>
    <%= record.name %>
    <%= attribute_indication_tag required: record.required? %>
  <% end %>
  <%= hidden_field_tag "#{ input_base_name }[#{ record.uid }][custom_field_id]", record.custom_field_id %>
  <%= send(record.field_tag, "#{ input_base_name }[#{ record.uid }][value][#{ locale }]", record.input_content[locale], record.tag_attributes) %>

<div class="<%= record.class_names %>" data-locale="<%= locale %>">
  <%= label_tag "#{ input_base_name }[#{ record.uid }][value][#{ locale }]" do %>
    <%= record.name %>
    <%= attribute_indication_tag required: record.required? %>
  <% end %>
  <%= hidden_field_tag "#{ input_base_name }[#{ record.uid }][custom_field_id]", record.custom_field_id %>
  <%= send(record.field_tag, "#{ input_base_name }[#{ record.uid }][value][#{ locale }]", record.input_content[locale], record.tag_attributes.merge(lang: locale)) %>

Include lang attribute in localized_item custom_field template


<!doctype html>

    <title>Books to read on Goodreads</title>
    <meta charset="utf-8">
    <meta name="generator" content="what2read - https://github.com/agorf/what2read">

        Rank
        Title
        Authors
        Score
        Average Rating
        Ratings
        Link

      <% books.each.with_index(1) do |book, rank| %>

          <%= rank %>
          <%= book.title %>
          <%= book.authors.join(', ') %>
          <%= '%.2f' % book.score if book.score > 0 %>
          <%= '%.2f' % book.average_rating %>
          <%= book.ratings_count %>
          <a href="<%= book.link %>">Goodreads

      <% end %>

Add basic CSS styles to improve appearance


---
layout: getting_started_layout
browser_title: Get started
---

# Get started

<% url = "https://raw.githubusercontent.com/alphagov/govuk-puppet/master/development-vm/README.md" %>
<%= ExternalDoc.fetch(url) %>

---
layout: getting_started_layout
title: Get started
description: Guide for new developers on GOV.UK
---

# Get started

<% url = "https://raw.githubusercontent.com/alphagov/govuk-puppet/master/development-vm/README.md" %>
<%= ExternalDoc.fetch(url) %>

Fix title & add description

Fix title & add description


<%- model_class = ApplicationGroup -%>
<%t '.title', :default => model_class.model_name.human.pluralize.titleize %>

  <%= render 'shared/breadcrumb', crumbs: ['Application Groups'] %>

      Primary Applicant
      No. Applicants
      No. Enrollments
      Submitted Date

  <% @application_groups.each do |ag| %>

        <%= link_to prepend_glyph_to_name(ag.primary_applicant_id), application_group_path(ag) %>
        <%= ag.applicants.size %>
        <%= ag.hbx_enrollments.size %>
        <%= ag.submitted_date %>

  <% end %>

    <%= paginate @application_groups, theme: "twitter-bootstrap", pagination_class: "pagination-plain" %>

<%= "#{number_with_delimiter(@application_groups.count)} / #{number_with_delimiter(ApplicationGroup.count)} " %>(Application Groups selected / total)

<%- model_class = ApplicationGroup -%>
<%t '.title', :default => model_class.model_name.human.pluralize.titleize %>

  <%= render 'shared/breadcrumb', crumbs: ['Application Groups'] %>

      <%= render 'shared/search', url: people_path, q: @q, placeholder: "Name, HBX ID, SSN" %>

<%= render "application_group_list", application_groups: @application_groups %>

    <%= paginate @application_groups, theme: "twitter-bootstrap", pagination_class: "pagination-plain" %>

<%= "#{number_with_delimiter(@application_groups.count)} / #{number_with_delimiter(ApplicationGroup.count)} " %>(Application Groups selected / total)

Add search box. Move applicant list to partial


<%= f.label t("fb_app_plugin.views.myprofile.catalogs.query_label") %>
<%= f.text_field :query, placeholder: t('fb_app_plugin.views.page_tab.query.placeholder') %>

Add labels for catalog settings 4

Add labels for catalog settings 4


zend_extension=<%= module_path %>

xdebug.file_link_format="txmt://open?url=file://%f&line=%1"
xdebug.remote_enable = On
xdebug.remote_autostart = 1

Fix xdebug extension error: s/extension/zend_extension/


# Managed by Chef on <%= node.name %> :heart:
[user]
	name = <%= node['travis_build_environment']['user_comment'] %>
	email = <%= node['travis_build_environment']['user_email'] %>
[protocol]
  version = 2

Set git wire protocol to version 2

Set git wire protocol to version 2


# Buildkite Agent Prioritization

By setting an agent’s priority value you are able to designate which priority it gets for being assigned build jobs to run. Higher priority agents are assigned work first, with the last priority being given to agents with the default value of `null`.

To set an agent’s priority you can set it in the configuration file:

```
priority=9
```

or with the `--priority` command line flag:

```
buildkite-agent start --priority 9
```

or with the `BUILDKITE_PRIORITY` an environment variable:

```
env BUILDKITE_PRIORITY=9 buildkite-agent start
```

# Buildkite Agent Prioritization

By setting an agent’s priority value you are able to designate which priority it gets for being assigned build jobs to run. Higher priority agents are assigned work first, with the last priority being given to agents with the default value of `null`.

To set an agent’s priority you can set it in the configuration file:

```
priority=9
```

or with the `--priority` command line flag:

```
buildkite-agent start --priority 9
```

or with the `BUILDKITE_AGENT_PRIORITY` an environment variable:

```
env BUILDKITE_AGENT_PRIORITY=9 buildkite-agent start
```

Fix env var typo in prioritisation

Fix env var typo in prioritisation

BUILDKITE_PRIORITY should be BUILDKITE_AGENT_PRIORITY


# <%= project_name %>

Very simple website for <%= project_name %>.

## Getting started

    bundle install
    cp config/s3.yml-tmpl config/s3.yml
    rackup

## Deploying

To deploy (if you dare) configure the required s3 crendentials in `config/s3.yml`, then use capistrano.

    cap [dev|www] deploy

http://dev.<%= project_name %>.com.s3-website-us-east-1.amazonaws.com
http://www.<%= project_name %>.com.s3-website-us-east-1.amazonaws.com

# <%= project_name %>

Very simple website for <%= project_name %>.

## Getting started

    bundle install
    cp config/s3.yml-tmpl config/s3.yml
    rackup

## Deploying

To deploy (if you dare) configure the required s3 crendentials in `config/s3.yml`, then use capistrano.

    cap [development|production] deploy

http://dev.<%= project_name %>.com.s3-website-us-east-1.amazonaws.com
http://www.<%= project_name %>.com.s3-website-us-east-1.amazonaws.com

Fix stages name in README

Fix stages name in README


Give this to your students

  <%= render partial: "shared/invitations/clipboard_form", locals: local_assigns %>

<%= t('views.shared.give_this_to_students') %>

  <%= render partial: "shared/invitations/clipboard_form", locals: local_assigns %>

Add i18n strings for invitations/desktop partial


# DO NOT EDIT - Managed by Puppet
#
# Bacula Console Configuration
#   for <%= scope.lookupvar('::fqdn') %>
#    to <%= director_server_real -%>:director (<%= director_server_real -%>)

Director {
  Name = "<%= director_server_real -%>:monitor:director"
  Address = <%= director_server_real %>
  Password = "<%= director_password -%>"
}

# DO NOT EDIT - Managed by Puppet
#
# Bacula Console Configuration
#   for <%= scope.lookupvar('::fqdn') %>
#    to <%= director_server_real -%>:director (<%= director_server_real -%>)

Director {
  Name = "<%= director_server_real -%>:director"
  Address = <%= director_server_real %>
  Password = "<%= director_password -%>"
}

Fix bconsole director name (this is _NOT_ Console)


<%= link_to "« " + @post.prev.title, @post.prev if @post.prev %>

<%= link_to @post.next.title + " »", @post.next if @post.next %>

Fix blog post nav block alignment when one or the other is empty


$('#articles').html('<%= escape_javascript render(:partial => "articles/article", :object => @articles) %>')
$('.pagination.remote').html('<%= escape_javascript will_paginate(@articles, :inner_window => 1, :outer_window => 0, :class => "pagination remote") %>')
$(".image_icon").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});
$('#articles li').draggable({ revert: true, containment: "#page_container" });

$('#articles').html('<%= escape_javascript render(:partial => "articles/article", :collection => @articles) %>')
$('.pagination.remote').html('<%= escape_javascript will_paginate(@articles, :inner_window => 1, :outer_window => 0, :class => "pagination remote") %>')
$(".image_icon").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
});
$('#articles li').draggable({ revert: true, containment: "#page_container" });

Fix list edit page article pagination.

Fix list edit page article pagination.


Use https for google fonts

Use https for google fonts


<form method="POST" action="/newhire">

Set up tasks for a new hire

When you click "Submit," all of the tasks described in the task map will automatically be set up in Redmine.

Note: Lots of emails will be sent. Please be sure you
    want to do this.

      First name
      <input type="text" name="newhire-name-first"/>

      Last name
      <input type="text" name="newhire-name-last"/>

      Employee class
      <%= select_any_taskmap("newhire-klass") %>

      <input type="submit" value="Submit"/>

</form>

<form method="POST" action="/newhire">

Set up tasks for a new hire

When you click "Submit," all of the tasks described in the task map for the appropriate class of employee will
    automatically be set up in Redmine.

Note: Lots of emails will be sent. Please be sure you
    want to do this.

      First name
      <input type="text" name="newhire-name-first"/>

      Last name
      <input type="text" name="newhire-name-last"/>

      Employee class
      <%= select_any_taskmap("newhire-klass") %>

      <input type="submit" value="Submit"/>

</form>

Update a reference to the new taskmaps page.


bash -c '

echo <%= @config[:chef_node_name] %> > /etc/hostname
hostname -F /etc/hostname

echo "`ip addr | grep eth0 | grep "inet " | cut -d " " -f 6 | cut -d \/ -f 1` `cat /etc/hostname`" >> /etc/hosts

apt-get update
apt-get upgrade -y

mkdir -p /etc/chef

# Setup the validation key.
(
cat <<'EOP'
<%= IO.read(Chef::Config[:validation_key]) %>
EOP
) > /etc/chef/validation.pem

# Setup the client configuration.
(
cat <<'EOP'
log_level        :info
log_location     STDOUT
chef_server_url  "<%= Chef::Config[:chef_server_url] %>"
validation_client_name "<%= Chef::Config[:validation_client_name] %>"
<% unless @config[:chef_node_name] == nil %>
node_name "<%= @config[:chef_node_name] %>"
<% end %>
EOP
) > /etc/chef/client.rb

(
cat <<'EOP'
<%= { "run_list" => @run_list }.to_json %>
EOP
) > /etc/chef/first-boot.json

curl -L https://www.opscode.com/chef/install.sh | sudo bash

/usr/bin/chef-client -j /etc/chef/first-boot.json

'

bash -c '

echo <%= @config[:chef_node_name] %> > /etc/hostname
hostname -F /etc/hostname

echo "`ip addr | grep eth0 | grep "inet " | cut -d " " -f 6 | cut -d \/ -f 1` `cat /etc/hostname`" >> /etc/hosts

apt-get update
apt-get upgrade -y

mkdir -p /etc/chef

# Setup the validation key.
(
cat <<'EOP'
<%= IO.read(Chef::Config[:validation_key]) %>
EOP
) > /etc/chef/validation.pem

# Setup the client configuration.
(
cat <<'EOP'
log_level        :info
log_location     STDOUT
ssl_verify_mode :verify_peer
chef_server_url  "<%= Chef::Config[:chef_server_url] %>"
validation_client_name "<%= Chef::Config[:validation_client_name] %>"
<% unless @config[:chef_node_name] == nil %>
node_name "<%= @config[:chef_node_name] %>"
<% end %>
EOP
) > /etc/chef/client.rb

(
cat <<'EOP'
<%= { "run_list" => @run_list }.to_json %>
EOP
) > /etc/chef/first-boot.json

curl -L https://www.opscode.com/chef/install.sh | sudo bash

/usr/bin/chef-client -j /etc/chef/first-boot.json

'

Set ssl_verify_mode before the first chef run takes place


<% content_for :title do %>
  State Pension calculator
<% end %>

<% content_for :meta_description do %>
  Work out your State Pension age and Pension Credit qualifying age or estimate how much basic State Pension you may get
<% end %>

<% content_for :body do %>
  Use the calculator to:

  * work out when you’ll reach State Pension age
  * work out your Pension Credit qualifying age
  * find out when you’ll be eligible for free bus travel

  ##If you’re under 55

  The calculator also gives an estimate of your basic State Pension under the current rules - not the [new State Pension](/new-state-pension) rules.

  It doesn’t estimate any [Additional State Pension](/additional-state-pension).

  ##If you’re 55 or over

  Don’t use the calculator to work out your State Pension. Get a [State Pension Statement](/state-pension-statement) instead.

<% end %>

<% content_for :post_body do %>
  ##What you need

  You need to enter the number of years you:

  * worked and paid National Insurance
  * got unemployment, sickness or disability benefits
  * claimed Child Benefit or were a carer or foster carer

  Don’t count the current tax year. Count tax years from 6 April to 5 April and don’t count any years twice, eg when you were working and getting benefits.

  This calculator uses a simplified calculation based on the current law. It can’t take into account every circumstance that might affect you.

  ^Don’t use the calculator to make future financial decisions.^

<% end %>

<% content_for :title do %>
  Check your State Pension age
<% end %>

<% content_for :meta_description do %>
  Work out your State Pension age and Pension Credit qualifying age
<% end %>

<% content_for :body do %>
  Check when you’ll reach State Pension age, Pension Credit qualifying age.

  You can also find out when you’ll be eligible for free bus travel.

<% end %>

Update state-pension-age flow start page

This commit updates the start page to show that state-pension-age calculates your pension start age & date, and your bus pass qualification age.


<% content_for(:page_title, "Face-to-face locations near #{@postcode.squish.upcase} - Pension Wise") %>

Face-to-face locations near <%= @postcode.squish.upcase %>

Your Pension Wise face-to-face appointment will take place at a Citizens Advice bureau. Your nearest 5 are:

  <% @locations.each do |location| %>

<%= link_to(location.name, location_path(location.id), class: 't-name') %>

        Distance:
        <%= location.distance %> miles

  <% end %>

Too far away? Book a phone appointment instead.

Or enter another postcode.

<form action="/locations" method="get">
  Find a face-to-face appointment near you
  <input type="text" class="form-control" name="postcode" id="location" value="">
  <input type="submit" class="button" value="Search">
</form>

<% content_for(:page_title, "Face-to-face locations near #{@postcode.squish.upcase} - Pension Wise") %>

Face-to-face locations near <%= @postcode.squish.upcase %>

Your appointment will take place at a Citizens Advice bureau.

Your nearest 5 are:

  <% @locations.each do |location| %>

<%= link_to(location.name, location_path(location.id), class: 't-name') %>

        Distance:
        <%= location.distance %> miles

  <% end %>

Try another postcode:

<form action="/locations" method="get">
  Find a face-to-face appointment near you
  <input type="text" class="form-control" name="postcode" id="location" value="">
  <input type="submit" class="button" value="Search">
</form>

You can also book a phone appointment.

Update content and layout of locations index


# This is a manifest file that'll be compiled into including all the files listed below.
# Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
# be included in the compiled file accessible from http:#example.com/assets/application.js
# It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
# the compiled file.
#
#= require jquery
#= require jquery_ujs
#= require jquery.drop
#= require jquery.upload
#
#= require underscore
#
#= require backbone
#= require backbone_rails_sync
#= require backbone_datalink
#
#= require juggernaut
#
#= require_self
#
#= require_tree .

window.juggernaut = new Juggernaut {
   secure:     false,
   host:       "<%= Chamber::Application.config.juggernaut_host %>",
   port:       <%= Chamber::Application.config.juggernaut_port %>,
   transports: ["xhr-polling", "jsonp-polling"]
}

# This is a manifest file that'll be compiled into including all the files listed below.
# Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
# be included in the compiled file accessible from http:#example.com/assets/application.js
# It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
# the compiled file.
#
#= require jquery
#= require jquery_ujs
#= require jquery.drop
#= require jquery.upload
#
#= require underscore
#
#= require backbone
#= require backbone_rails_sync
#= require backbone_datalink
#
#= require juggernaut
#
#= require_self
#
#= require_tree .

window.juggernaut = new Juggernaut {
   secure:     false,
   host:       "<%= Chamber::Application.config.juggernaut_host %>",
   port:       <%= Chamber::Application.config.juggernaut_port %>
}

Remove juggernaut transports config, it falls back gracefully itself


<% if is_followed? @listing.id %>
    <%= button_to [ :unfollow, @listing ] do %>
    <%= content_tag(:i, "", :class => "fa fa-eye-slash fa-lg") %>
    Un-Watch
    <% end %>
<% else %>
    <%= button_to [ :follow, @listing ] do %>
    <%= content_tag(:i, "", :class => "fa fa-eye fa-lg") %>
    Watch
    <% end %>
<% end %>

<!-- This whole chunk of code compiles to HTML as:
<button><i class="fa fa-eye fa-lg">Watch</button>

It's okay to wrap the whole chunk of code in a <div> or any regular HTML element if you need to
-->

<!-- button_to compiles to:
<button>Watch</button>
-->

<!-- content_tag compiles to:
<i class="fa fa-eye fa-lg"></i>
which is the Font Awesome eyeball icon -->

<% if is_followed? @listing.id %>
    <%= button_to [ :unfollow, @listing ], {class: 'button small radius'} do %>
    <%= content_tag(:i, "", :class => "fa fa-eye-slash fa-lg") %>
    Un-Watch<% end %>
<% else %>
    <%= button_to [ :follow, @listing ], {class: 'button small radius'} do %>
    <%= content_tag(:i, "", :class => "fa fa-eye fa-lg") %>
    Watch<% end %>
<% end %>

<!-- This whole chunk of code compiles to HTML as:
<button><i class="fa fa-eye fa-lg">Watch</button>

It's okay to wrap the whole chunk of code in a <div> or any regular HTML element if you need to
-->

<!-- button_to compiles to:
<button>Watch</button>
-->

<!-- content_tag compiles to:
<i class="fa fa-eye fa-lg"></i>
which is the Font Awesome eyeball icon -->

Make follow buttons small and add radius


    <%= link_to image_tag('http://lorempixel.com/74/74', :class => 'img-responsive'), '#', :class => 'image' %>

    <%=
      if entity.class.name == 'Bidder'
        link_to entity.name, bidder_path(entity)
      else
        link_to entity.name, public_body_path(entity)
      end
    %>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris.

  <%
    path = (entity.class.name == 'Bidder') ? bidder_path(entity) : public_body_path(entity)
  %>

    <%= link_to image_tag('http://lorempixel.com/74/74', :class => 'img-responsive'), path, :class => 'image' %>

    <%= link_to entity.name, path %>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris.

Fix path in related entities

Fix path in related entities


<% if collage.present? -%>

<%= raw collage.description %>

<div class="collage-content" id="collage<%= collage.id %>" data-id="<%= collage.id %>">

<% cache(["editable-content", collage.annotatable], :expires_in => 2.weeks, :compress => H2O_CACHE_COMPRESSION) do %>
<%= raw collage.editable_content %>
<% end -%>

<% end -%>

<% if collage.present? -%>
<div class="collage-content" id="collage<%= collage.id %>" data-id="<%= collage.id %>">

<% cache(["editable-content", collage.annotatable], :expires_in => 2.weeks, :compress => H2O_CACHE_COMPRESSION) do %>
<%= raw collage.editable_content %>
<% end -%>

<% end -%>

Remove dupe collage description in print view


<% @page_title = "#{@collection.title} - #{application_name}" %>

<%= render partial: 'generic_files/breadcrumbs', locals: {
  include_file: false, generic_file: GenericFile.new(title: @collection.title) } %>

<%= @collection.title %>

<%=@collection.description%>

<% unless has_collection_search_parameters? %>

      <%= render partial: 'collections/media_display', locals: { generic_file: @collection } %>

      <%= render partial: 'collections/show_actions' %>
      <%= render partial: 'collections/show_descriptions', locals: { generic_file: @collection } %>

<% end %>

<%= render 'sort_and_per_page' %>

  <% if has_collection_search_parameters? %>

Search Results within this Collection

  <% else %>

Items in this Collection

  <% end %>
  <%= render partial: 'search_form'%>
  <%= render_document_index @member_docs %>

  <%= render partial: 'paginate' %>

<% @page_title = "#{@collection.title} - #{application_name}" %>

<%= render partial: 'generic_files/breadcrumbs', locals: {
  include_file: false, generic_file: GenericFile.new(title: @collection.title) } %>

<%= @collection.title %>

<%=@collection.description%>

<% unless has_collection_search_parameters? %>

      <%= render partial: 'collections/media_display', locals: { generic_file: @collection } %>

      <%= render partial: 'collections/show_actions' %>
      <%= render partial: 'collections/show_descriptions', locals: { generic_file: @collection } %>

<% end %>

<%= render 'sort_and_per_page' %>

<% if has_collection_search_parameters? %>
    <% header_title = "Search Results within this Collection" %>
<% else %>
    <% header_title = "Items in this Collection" %>
<% end %>

  <%= header_title %>
  <%= render partial: 'search_form'%>

<%= render_document_index @member_docs %>
<%= render partial: 'paginate' %>

Fix alignment issue between section title and search box.


---
- scm:
    name: transition-config_Transition_load_site_config
    scm:
        - git:
            url: git@github.com:alphagov/transition-config.git
            branches:
              - release

- job:
    name: Transition_load_site_config
    display-name: Transition_load_site_config
    project-type: freestyle
    description: "
Loads site configuration into Transition/Bouncer from the release branch.
"
    scm:
      - transition-config_Transition_load_site_config
    logrotate:
      artifactNumToKeep: 30
    builders:
        - shell: |
            rsync --delete -avz -e ssh ./ deploy@backend-1.backend:/var/apps/transition/data/transition-config
            ssh deploy@backend-1.backend "cd /var/apps/transition && govuk_setenv transition bundle exec rake import:all:orgs_sites_hosts"
    triggers:
        - pollscm: '00 09-19 * * 1-5'
    wrappers:
        - ansicolor:
            colormap: xterm
    publishers:
        - trigger-parameterized-builds:
            - project: Production_Redirector_CDN
              condition: 'SUCCESS'
              trigger-with-no-params: true

Add `trigger-with-no-params` to Transition job

This brings it in line with the job on the old infrastructure. It needs
to trigger the downstream job without providing the parameter
in plaintext (password).


<%=
    javascript_include_tag "jquery-2.1.4.min",
                            "respond.min",
                            "bootstrap.min",
                            "jquery.lazyload.min"
%>
<script>
    (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/@Model.FacebookLocale/sdk.js#xfbml=1&version=v2.0";
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
</script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<script>$(function(){$("img.lazy").lazyload();});</script>

<%=
    javascript_include_tag "jquery-2.1.4.min",
                            "respond.min",
                            "bootstrap.min",
                            "jquery.lazyload.min",
                            :async => "",
                            :defer => "defer"
%>
<script>
    (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/@Model.FacebookLocale/sdk.js#xfbml=1&version=v2.0";
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
</script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<script>$(function(){$("img.lazy").lazyload();});</script>

Add async and defer attributes for Javascript.


<!DOCTYPE html>

  <%%= render_page_title_tag %>
  <%%= render_page_description_meta_tag %>
  <%%= render_page_keywords_meta_tag %>
  <%%= render_page_image_link_tag %>
  <%%= csrf_meta_tag %>

  <%%= stylesheet_link_tag "application" %>

  <%%= yield :stylesheets %>

  <meta property="og:title"       content="<%%= page_title ||  SeoHelper.configuration.site_name %>"/>
  <meta property="og:description" content="<%%= page_description || SeoHelper.configuration.default_page_description %>"/>
  <meta property="og:image:url"   content="<%%= page_image ||  SeoHelper.configuration.default_page_image %>"/>

<%%= render_body_tag %>

<%%= render :partial => "common/menu" %>

      <%%= notice_message %>

          <%%= yield %>
          <%%= yield (:sidebar) %>

      <%%= render :partial => "common/footer" %>

  <%%= render :partial => "common/bootstrap_modal" %>
  <%%= render :partial => "common/facebook_js" %>
  <%%= render :partial => "common/google_analytics" %>

  <%%= javascript_include_tag "application" %>

  <%%= yield :javascripts %>

<!DOCTYPE html>

  <%%= render_page_title_tag %>
  <%%= render_page_description_meta_tag %>
  <%%= render_page_keywords_meta_tag %>
  <%%= render_page_image_link_tag %>
  <%%= csrf_meta_tag %>

  <%%= stylesheet_link_tag "application" %>

  <%%= yield :stylesheets %>

  <meta property="og:title"       content="<%%= page_title ||  SeoHelper.configuration.site_name %>"/>
  <meta property="og:description" content="<%%= page_description || SeoHelper.configuration.default_page_description %>"/>
  <meta property="og:image"   content="<%%= page_image ||  SeoHelper.configuration.default_page_image %>"/>

<%%= render_body_tag %>

<%%= render :partial => "common/menu" %>

      <%%= notice_message %>

          <%%= yield %>
          <%%= yield (:sidebar) %>

      <%%= render :partial => "common/footer" %>

  <%%= render :partial => "common/bootstrap_modal" %>
  <%%= render :partial => "common/facebook_js" %>
  <%%= render :partial => "common/google_analytics" %>

  <%%= javascript_include_tag "application" %>

  <%%= yield :javascripts %>

Use og:image instead of og:image:url

Use og:image instead of og:image:url

Since Facebook cannot parse og:image:url correctly, resulting open graph image as “unspecified.”


Check Lists

    Title
    UserID

<% @check_lists.each do |check_list| %>

    <%= check_list.title %>
    <%= check_list.user_id %>
    <%= link_to 'Show', check_list %>
    <%= link_to 'Edit', edit_check_list_path(check_list) %>
    <%= link_to 'Destroy', check_list, method: :delete, data: { confirm: 'Are you sure?' } %>

<% end %>

<%= link_to 'New Check list', new_check_list_path %>

Fix content bug in table for CheckLists

Fix content bug in table for CheckLists


        <%= link_to 'Add an Event', new_ngos_event_path, class: 'btn btn-default' %>

          <%= render @events %>

      <%= link_to 'Add an Event', new_ngos_event_path, class: 'btn btn-default' %>

  <%#
%>

  <%#
%>

        <% if @events.select { |event| event.earliest_shift.starts_at >= DateTime.now }.size > 0 %>

Upcoming:

            <%= render @events.select { |event| event.earliest_shift.starts_at >= DateTime.now }  %>

        <% end %>
        <% if @events.select { |event| event.earliest_shift.starts_at < DateTime.now }.size > 0 %>

Past:

            <%= render @events.select { |event| event.earliest_shift.starts_at < DateTime.now }  %>

        <% end %>

Add Upcoming and Past filters for events


  Order Date:

  <%= order.order_date.strftime("%B %d, %Y at %I:%M%p") %>

  Status:

  <%= order.status.titleize %>

  Order Date:

  <%= local_time order.order_date %>

  Ship to name:

  <%= order.ship_to_name %>

  Ship to address:

  <%= order.ship_to_address %>

Use local_time or order details, remove status and add ship_to name and address


CoderDojo Japan 法務資料まとめ

    <% @contracts.each do |contract| %>

<%= link_to contract, contract_path(contract) %>

    <% end %>

Add a heading to index page

Add a heading to index page


  <form>
    <input type="search" placeholder="Find a charity" ng-model="search">
  </form>
  <%= render :partial => "templates/charities" %>

Remove chart from search page.

Remove chart from search page.


<% content_for :title do %>
  Number of days worked per week?
<% end %>

<% content_for :hint do %>
  We need this to calculate how many hours are worked in an average day. Include half-days, for example 3.5.
<% end %>

<% content_for :error_message do %>
  Please check and enter a correct value. Don't enter fractions. If you work half-days, enter .5 for half. eg 4.5
<% end %>

<% content_for :title do %>
  Number of days worked per week?
<% end %>

<% content_for :hint do %>
  We need this to calculate how many hours are worked in an average day. Include half-days, for example 3.5.
<% end %>

<% content_for :error_message do %>
  There are only 7 days in a week. Please check and enter a correct value.
<% end %>

Update error message for days_per_week_for_hours


  <% if @person.memberships.empty? %>

You are not a member of any groups.

  <% else %>

    <% @person.memberships.sort_by {|m| m.group_name.downcase}.each do |membership| %>

<%= group_link(membership.group) %>
      (<%= pluralize(membership.group_size, "member") %>)
      (<%= link_to "leave this group", :controller => :membership, :action => :leave, :id => membership.id, :confirm => "Are you sure that you want to leave this group?" %>)

    <% end %>

  <% end %>

  <% if @person.nil? %>

You are not logged in.

  <% elsif @person.memberships.empty? %>

You are not a member of any groups.

  <% else %>

    <% @person.memberships.sort_by {|m| m.group_name.downcase}.each do |membership| %>

<%= group_link(membership.group) %>
      (<%= pluralize(membership.group_size, "member") %>)
      (<%= link_to "leave this group", :controller => :membership, :action => :leave, :id => membership.id, :confirm => "Are you sure that you want to leave this group?" %>)

    <% end %>

  <% end %>

Handle users who are not logged in from seeing groups

Former-commit-id: c18b70b5172d78d9ced9924ac4c9aafbad167457


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

<% content_for :body do %>
  <% case calculator.ceremony_country %>
  <% when *%w(iran somalia syria) %>
    There are currently no British consular services available in <%= calculator.country_name_lowercase_prefix %>. See below if you need further advice.
    <%= render partial: 'shared/overseas_passports_embassies.govspeak.erb',
               locals: {
                 overseas_passports_embassies: calculator.overseas_passports_embassies
               } %>
  <% else %>
    <% raise "The outcome for #{calculator.ceremony_country} is not handled" %>
  <% end %>
<% end %>

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

<% content_for :body do %>
  <% case calculator.ceremony_country %>
  <% when *%w(iran somalia syria) %>
    There are currently no British consular services available in <%= calculator.country_name_lowercase_prefix %>. See below if you need further advice.
    <%= render partial: 'shared/overseas_passports_embassies.govspeak.erb',
               locals: {
                 overseas_passports_embassies: calculator.overseas_passports_embassies
               } %>
  <% end %>
<% end %>

Remove unused code from outcome_opposite_sex_marriage_in_other_countries

This outcome is only shown if ceremony country is one of Iran, Somalia
or Syria which means that this `else` block will never be reached.


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

Update outcome for British Indian Ocean Territory

I've removed all logic and content not related to ceremonies in the British
Indian Ocean territory.

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


Same-sex partnerships in Ecuador are known as ‘union de hecho’.

Contact the relevant local authorities in Ecuador to find out about local laws, including what documents you’ll need.

##What you need to do

You’ll be asked for an affirmation or affidavit document to prove that you’re allowed to enter into this partnership.

To swear an affirmation or affidavit, [make an appointment at the British Embassy Quito](https://www.consular-appointments.service.gov.uk/fco/#!/british-embassy-quito/oaths-affirmations-and-affidavits/slot_picker).

You’ll need to bring your passport and pay a fee.

## Fees

<%= render partial: 'consular_fees_table_items.govspeak.erb',
    collection: calculator.services,
    as: :service,
    locals: { calculator: calculator } %>

You normally have to pay fees for consular services in the local currency - these are shown in the list of [consular fees for Ecuador](/government/publications/ecuador-consular-fees).

<%= render partial: 'how_to_pay.govspeak.erb', locals: {calculator: calculator} %>

Contact the relevant local authorities in Ecuador to find out about local laws, including what documents you’ll need.

##What you need to do

You’ll be asked for an affirmation or affidavit document to prove that you’re allowed to marry.

To swear an affirmation or affidavit, [make an appointment at the British Embassy Quito](https://www.consular-appointments.service.gov.uk/fco/#!/british-embassy-quito/oaths-affirmations-and-affidavits/slot_picker).

You’ll need to bring your passport and pay a fee.

## Fees

<%= render partial: 'consular_fees_table_items.govspeak.erb',
    collection: calculator.services,
    as: :service,
    locals: { calculator: calculator } %>

You normally have to pay fees for consular services in the local currency - these are shown in the list of [consular fees for Ecuador](/government/publications/ecuador-consular-fees).

<%= render partial: 'how_to_pay.govspeak.erb', locals: {calculator: calculator} %>

Replace 'civil partnership' with 'marry'

Replacing reference to civil partnership with marry across all Ecuador same sex outcomes


<% heading ||= type.to_s.humanize %>
<section id="<%= heading.downcase %>" class="document-block documents-<%= document_block_counter %>">

<%= heading %>

    <%= render partial: "shared/list_description", locals: { editions: documents } %>

      <%= link_to "See all #{heading.downcase}", public_send("#{type}_filter_path", @classification, publication_filter_option: heading.downcase) %>

<%
   heading ||= type.to_s.humanize
   filter_option = (heading == "Publications") ? "all" : heading.downcase
%>
<section id="<%= heading.downcase %>" class="document-block documents-<%= document_block_counter %>">

<%= heading %>

    <%= render partial: "shared/list_description", locals: { editions: documents } %>

      <%= link_to "See all #{heading.downcase}", public_send("#{type}_filter_path", @classification, publication_filter_option: filter_option) %>

Fix "See all publications" link filtering


<% if spree_current_user %>

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

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

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

<%= link_to t(:store), spree.products_path, :target => '_blank' %>

<% end %>

<% if spree_current_user %>

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

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

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

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

<% end %>

Store links to root_path instead of product_path


# Host definitions
#
# Autogenerated by Chef.

<% @nodes.each do |n| -%>
define host {
  use server
  address <%= n['ipaddress'] %>
  host_name <%= n['hostname'] %>
  <% if node['nagios']['multi_environment_monitoring'] -%>
  <% if n.run_list.roles.nil? || n.run_list.roles.length == 0 -%>
  hostgroups all,<%= n.os %>,<%= n.chef_environment %>
  <% else -%>
  hostgroups <%= (n.run_list.roles.to_a & @hostgroups).join(",") %>,<%= n.os %>,<%= n.chef_environment %>
  <% end -%>
  <% elsif -%>
  <% if n.run_list.roles.nil? || n.run_list.roles.length == 0 -%>
  hostgroups all,<%= n.os %>
  <% else -%>
  hostgroups <%= n.run_list.roles.to_a.join(",") %>,<%= n['os'] %>
  <% end -%>
  <% end -%>
}

<% end -%>

<% unless @unmanaged_hosts.nil? -%>
<% @unmanaged_hosts.each do |n| -%>
define host {
  use server
  address <%= n['address'] %>
  host_name <%= n['id'] %>
  hostgroups <%= n['hostgroups'].join(",") %>
  notifications_enabled <%= n['notifications'] %>
}
<% end -%>
<% end -%>

# Host definitions
#
# Autogenerated by Chef.

<% @nodes.each do |n| -%>
define host {
  use server
  address <%= (!n['cloud'].nil? && n['cloud'] != node['cloud']) ? n['cloud']['public_ipv4'] : n['ipaddress'] %>
  host_name <%= n['hostname'] %>
  <% if node['nagios']['multi_environment_monitoring'] -%>
  <% if n.run_list.roles.nil? || n.run_list.roles.length == 0 -%>
  hostgroups all,<%= n.os %>,<%= n.chef_environment %>
  <% else -%>
  hostgroups <%= (n.run_list.roles.to_a & @hostgroups).join(",") %>,<%= n.os %>,<%= n.chef_environment %>
  <% end -%>
  <% elsif -%>
  <% if n.run_list.roles.nil? || n.run_list.roles.length == 0 -%>
  hostgroups all,<%= n.os %>
  <% else -%>
  hostgroups <%= n.run_list.roles.to_a.join(",") %>,<%= n['os'] %>
  <% end -%>
  <% end -%>
}

<% end -%>

<% unless @unmanaged_hosts.nil? -%>
<% @unmanaged_hosts.each do |n| -%>
define host {
  use server
  address <%= n['address'] %>
  host_name <%= n['id'] %>
  hostgroups <%= n['hostgroups'].join(",") %>
  notifications_enabled <%= n['notifications'] %>
}
<% end -%>
<% end -%>

Add an upstream pull request for ec2 internal IPs to the hosts template in Nagios


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

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

  <%= f.label :password %>

  <%= f.password_field :password %>

  <%= f.label :password_confirmation, "Confirm Password" %>

  <%= f.password_field :password_confirmation %>

<% if logged_in? && admin? %>

		<%= check_box_tag 'subscriber[admin]', '1',  %>
<% end %>

Revert the AJAX checkbox till it's done

Revert the AJAX checkbox till it's done


<script>
  up.compiler('.timestamp', (element) => {
    var now = new Date()
    element.innerText = now
  })
</script>

<div class="timestamp">
  Uncompiled
</div>

Update invalid HTML in spec_app

Update invalid HTML in spec_app


you must be liable for their secondary Class 1 National Insurance contributions - ie you will be if they’re on your payroll

you must be liable for their secondary Class 1 National Insurance contributions - you are if they’re on your payroll

Add minor change to maternity leave wording

Trello card: https://trello.com/c/QUboSszZ/1159-employers-maternity-calculator-new-question-in-maternity-branch


/* DO NOT EDIT: File is autogenerated */
package <%= schema.java.package %>;
<% set_iris_mode %>

@javax.annotation.Generated( "Domgen" )
@SuppressWarnings( { "UnusedDeclaration" } )
public class <%= schema.name %>Module
{
  public static final Class<?>[] LOAD_AT_STARTUP =
  {
    <%= schema.object_types.select{|o|!o.abstract? && o.iris.generate? && (o.iris.metadata? || o.iris.metadata_that_can_change? || o.iris.preload? )}.collect{|o|"#{j_classname(o.java.classname)}.class"}.join(",\n    ") %>
  };
}

/* DO NOT EDIT: File is autogenerated */
package <%= schema.java.package %>;
<% set_iris_mode %>

@javax.annotation.Generated( "Domgen" )
@SuppressWarnings( { "UnusedDeclaration" } )
public class <%= schema.name %>Module
{
  public static final Class<?>[] LOAD_AT_STARTUP =
  {
    <%= schema.object_types.select{|o|!o.abstract? && o.iris.generate? && (o.iris.metadata? || o.iris.metadata_that_can_change? || o.iris.preload? )}.collect{|o|"#{j_classname(o.java.classname)}.class"}.join(",\n    ") %>
  };

  /* Type Codes */
<% schema.object_types.select{|o|!o.abstract? && o.iris.generate? }.each_with_index do |object_type, index| %>
  public static final byte <%= uppercase_constantize(object_type.name) %>_TYPE_CODE = (byte)<%= index + 1 %>;
<% end %>
}

Add type codes used in transmission across the wire


---
title: RxSwift Community Projects
---

<%=

opener = <<-EOS

EOS

closer = <<-EOS

EOS

data.items.sections.map do |section|
  section_name = section['name']
  header = <<-EOS

 #{section_name}

  EOS

  contents = section['items']
              .sort { |a,b| a['name'] <=> b['name'] }
              .map do |item|
    item_to_html(item)
  end.reduce('', :+).strip.to_s

  opener + header + contents + closer

end.reduce('', :+).strip.to_s

%>

---
title: RxSwift Community Projects
---

<%=

opener = <<-EOS

EOS

closer = <<-EOS

EOS

data.items.sections.map do |section|
  section_name = section['name']
  header = <<-EOS

 #{section_name}

  EOS

  contents = section['items']
              .sort { |a, b|
                # If this is a GitHub repo, sort by last update.
                # Otherwise, sort alphabetically.
                if a.key?("updated_at") && b.key?("updated_at") then
                  date_a = Time.parse(a["updated_at"])
                  date_b = Time.parse(b["updated_at"])

                  date_b <=> date_a
                else
                  a['name'] <=> b['name']
                end
              }
              .map do |item| item_to_html(item) end
              .reduce('', :+).strip.to_s

  opener + header + contents + closer

end.reduce('', :+).strip.to_s

%>

Sort items by last GitHub update first, and alphabetically next


<% @decorated_content.action_buttons.each do |action| %>
  <% if action[:link_to] %>
    <%= link_to action[:text], action[:path], class: action[:class], method: (action[:method] || :post ), type: action[:type] %>
  <% elsif action[:button_to] %>
    <%= button_to action[:text], action[:path], class: action[:class], method: action[:method], form: action[:form] %>
  <% elsif action[:button_tag] %>
    <%= button_tag action[:text], { name: action[:name], type: action[:type], class: action[:class] } %>
  <% end %>
<% end %>

<% @decorated_content.action_buttons.each do |action| %>
  <% if action[:link_to] %>
    <%= link_to action[:text], action[:path], class: action[:class], method: (action[:method] || :post ), type: action[:type], role: "button", data: { disable_with: action[:text]} %>
  <% elsif action[:button_to] %>
    <%= button_to action[:text], action[:path], class: action[:class], method: action[:method], form: action[:form], data: { disable_with: action[:text]} %>
  <% end %>
<% end %>

Add disable with to link_to and button_to.


Splits

The following directories will be split in rsyncs for A-Z, a-z and 0-9. This increases performance for very large directories. Files and directories starting with other characters will not be backupped!

  <% @profile.splits.each do | split | %>

<%=h split.path %>
      <% if can?(:manage, split) %>
      (<%= link_to 'Edit', edit_profile_split_path(@profile, split) %> | <%= link_to 'Destroy', [@profile, split], :confirm => 'Are you sure?', :method => :delete %>)
      <% end %>

  <% end %>

<% if can?(:manage, Split) %>

Add split

  <% @split = @profile.splits.build %>
  <%= render :partial => 'splits/form' %>

<% end %>

Splits

The following directories will be split in rsyncs for A-Z, a-z and 0-9. This increases performance for very large directories. Files and directories starting with other characters will not be backed up!

  <% @profile.splits.each do | split | %>

<%=h split.path %>
      <% if can?(:manage, split) %>
      (<%= link_to 'Edit', edit_profile_split_path(@profile, split) %> | <%= link_to 'Destroy', [@profile, split], :confirm => 'Are you sure?', :method => :delete %>)
      <% end %>

  <% end %>

<% if can?(:manage, Split) %>

Add split

  <% @split = @profile.splits.build %>
  <%= render :partial => 'splits/form' %>

<% end %>

Change wording. Patch by Bert Driehuis

Change wording. Patch by Bert Driehuis


search results: <%= @results.length %>

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

			<a data-toggle="modal" data-target="#schoolModal" data-dbn="<%= item.dbn%>" data-school="<%= item.school  %>" data-enrollment=<%= item.total_enrollment %> data-owed=<%= item.amount_owed %>>
<%= item.dbn%> <%= item.school %>

			<% end %>

search results: <%= @results.length %>

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

			<a data-toggle="modal" data-target="#schoolModal" data-dbn="<%= item.dbn%>" data-school="<%= item.school  %>" data-enrollment=<%= item.total_enrollment %> data-owed=<%= item.amount_owed %>>
<%= item.dbn%> <%= item.school %>  (<%= item.district_code %> <%= item.district_name %>)

			<% end %>

Add district information to search results list


Listing todo_lists

      Title
      Description

    <% @todo_lists.each do |todo_list| %>

        <%= todo_list.title %>
        <%= todo_list.description %>
        <%= link_to 'Show', todo_list %>
        <%= link_to 'Edit', edit_todo_list_path(todo_list) %>
        <%= link_to 'Destroy', todo_list, method: :delete, data: { confirm: 'Are you sure?' } %>

    <% end %>

<%= link_to 'New Todo list', new_todo_list_path %>

Listing todo_lists

      Title
      Description

    <% @todo_lists.each do |todo_list| %>
      <tr id="<%= dom_id(todo_list) %>">
        <%= todo_list.title %>
        <%= todo_list.description %>
        <%= link_to 'Show', todo_list %>
        <%= link_to 'Edit', edit_todo_list_path(todo_list) %>
        <%= link_to 'Destroy', todo_list, method: :delete, data: { confirm: 'Are you sure?' } %>

    <% end %>

<%= link_to 'New Todo list', new_todo_list_path %>

Add tests for editing todo lists

Add tests for editing todo lists


<%- if !@operator.errors.empty? %>

    <%= t('admin.operator_form_error') %>

<%- end %>

  <%- if @operator.errors.on(:name) %>

      <%= error_message_on @operator, :name %>

  <%-end %>
  <%= raw f.label :name %>
  <%= raw f.text_field :name %>

  <%= raw f.label :notes %>
  <%= raw f.text_field :notes %>

  <%= raw f.label :transport_mode %>
  <%= raw f.collection_select(:transport_mode_id, TransportMode.active, :id, :name, :prompt => true) %>

<%= raw submit_tag t('admin.go') %>

<%- if !@operator.errors.empty? %>

    <%= t('admin.operator_form_error') %>

<%- end %>

  <%- if @operator.errors.on(:name) %>

      <%= error_message_on @operator, :name %>

  <%-end %>
  <%= raw f.label :name %>
  <%= raw f.text_field :name %>

  <%- if @operator.errors.on(:company_no) %>

      <%= error_message_on @operator, :company_no %>

  <%-end %>
  <%= raw f.label :company_no %>
  <%= raw f.text_field :company_no %>

  <%- if @operator.errors.on(:registered_address) %>

      <%= error_message_on @operator, :registered_address %>

  <%-end %>
  <%= raw f.label :registered_address %>
  <%= raw f.text_field :registered_address %>

  <%- if @operator.errors.on(:url) %>

      <%= error_message_on @operator, :url %>

  <%-end %>
  <%= raw f.label :url %>
  <%= raw f.text_field :url %>

  <%= raw f.label :notes %>
  <%= raw f.text_field :notes %>

  <%= raw f.label :transport_mode %>
  <%= raw f.collection_select(:transport_mode_id, TransportMode.active, :id, :name, :prompt => true) %>

<%= raw submit_tag t('admin.go') %>

Add fields for company_no, url and address.


<% if artefact && artefact.present? %>

Related topics

            <% if artefact.related_items.size > 0 %>
              <% (artefact.related_items || []).each do |item| %>
                <% if item.artefact %>
                <li class="<%= h(item.artefact.kind) %>">
                  <a href="/<%= h(item.artefact.slug) %>"><%= h(item.artefact.name) %>

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

            <% if artefact.section && artefact.section != "" %>
              <% section, subsection = artefact.section.split(':', 2) %>

<a href="/browse/<%= h(section.parameterize) %>"
                >More from the <%= h(section) %> section

            <% end %>

<% end %>

<% if artefact %>

Related topics

            <% if artefact["related_items"].any? %>
              <% artefact["related_items"].each do |item| %>
                <% if item["artefact"] %>
                <li class="<%= h item["artefact"]["kind"] %>">
                  <a href="/<%= h item["artefact"]["slug"] %>"><%= h item["artefact"]["name"] %>

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

            <% if artefact["section"] and artefact["section"] != "" %>
              <% section, subsection = artefact["section"].split(':', 2) %>

<a href="/browse/<%= h section.parameterize %>"
                >More from the <%= h section %> section

            <% end %>

<% end %>

Update related template to work with a plain hash

Necessary to work with slimmer 2.0.  Will be backwards compatible with
slimmer 1.x as it uses a GdsApi::Response which behaves like a hash.


<%= t(".configuration") %>

    <%= text_area_tag "custom_field[plugin_configuration]", f.object.plugin_configuration.present? ? JSON.pretty_generate(f.object.plugin_configuration) : nil %>

  <%= t(".configuration") %>
  <%= link_to "#{module_doc_url}#section-plugin", target: "_blank" do %>

  <% end %>

    <%= text_area_tag "custom_field[plugin_configuration]", f.object.plugin_configuration.present? ? JSON.pretty_generate(f.object.plugin_configuration) : nil %>

Add link to documentation from plugin options field


<% unless Rails.env.test? %>
  <%= javascript_include_tag "https://www.googletagmanager.com/gtag/js?id=G-08J9WTTHMP", async: true %>
<% end %>

<%= javascript_tag nonce: true do %>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-08J9WTTHMP');
<% end %>

<% unless Rails.env.test? %>
  <%= javascript_include_tag "https://www.googletagmanager.com/gtag/js?id=G-08J9WTTHMP", async: true %>
<% end %>

<%= javascript_tag nonce: true do %>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-08J9WTTHMP');
  gtag('config', 'UA-189329674-2');
<% end %>

Add GA Universal tracking ID

Add GA Universal tracking ID


    <title><%= @title || '' %> | Mockr</title>
    <link rel="shortcut icon" href="/images/feelings/happy.gif" />
    <%= stylesheet_link_tag "base" %>
    <%= stylesheet_link_tag "layouts/application" %>
    <%= javascript_include_tag "jquery" %>
    <%= javascript_include_tag "user" %>
    <%= javascript_include_tag "scrollto" %>
    <%= javascript_include_tag "plugins/jquery.form" %>
    <%= javascript_include_tag "plugins/jquery.cookie" %>
    <%= javascript_include_tag "plugins/jquery.shortkeys" %>
    <%= javascript_include_tag "mockr" %>
    <%= yield :head %>

  <body<%= ' class="fullscreen"' unless @sidebar %>>
    <%= render :partial => "/shared/facebook_connect_js" %>

    <% if !flash[:notice].blank? %>

<%= flash[:notice] %>

    <% end %>

    <%= yield %>

    <title><%= @title || '' %> | Mockr</title>
    <link rel="shortcut icon" href="/images/feelings/happy.gif" />
    <%= stylesheet_link_tag "base" %>
    <%= stylesheet_link_tag "layouts/application" %>
    <%= javascript_include_tag "jquery" %>
    <%= javascript_include_tag "user" %>
    <%= javascript_include_tag "scrollto" %>
    <%= javascript_include_tag "plugins/jquery.form" %>
    <%= javascript_include_tag "plugins/jquery.cookie" %>
    <%= javascript_include_tag "plugins/jquery.shortkeys" %>
    <%= javascript_include_tag "mockr" %>
    <%= yield :head %>

    <%= render :partial => "/shared/facebook_connect_js" %>

    <% if !flash[:notice].blank? %>

<%= flash[:notice] %>

    <% end %>

    <%= yield %>

Remove mention of fullscreen mode

Remove mention of fullscreen mode


[user]
  name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
  email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[color]
  ui = auto
[core]
  excludesfile = <%= ENV['HOME'] %>/.gitignore
  editor = mvim -f
[apply]
  whitespace = nowarn
[format]
  ; pretty = %C(yellow)%h%Cred%d %Creset%s
[github]
  user = <%= print("Your github user: "); STDOUT.flush; STDIN.gets.chomp %>
[push]
  default = tracking
[alias]
  ad = add
  am = commit --amend
  au = add -u
  bl = blame
  br = branch
  cb = checkout -b
  cl = clone
  cm = commit
  co = checkout
  cp = cherry-pick
  dc = diff --cached
  df = diff
  ft = fetch
  lg = log
  mr = merge
  pl = pull
  ps = push
  rb = rebase
  rm = rm -r
  rs = reset
  rv = revert
  sa = stash apply
  sh = show
  sl = stash list
  sm = submodule
  sp = stash pop
  ss = stash save
  st = status
  sw = stash show

  rmb = !sh -c 'git branch -d $1 && git push origin :$1' -
  commit-count = shortlog -s -n
[branch]
  autosetuprebase = always

[user]
  name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
  email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[color]
  ui = auto
[core]
  excludesfile = <%= ENV['HOME'] %>/.gitignore
  editor = mvim -f
[apply]
  whitespace = nowarn
[format]
  ; pretty = %C(yellow)%h%Cred%d %Creset%s
[github]
  user = <%= print("Your github user: "); STDOUT.flush; STDIN.gets.chomp %>
[alias]
  ad = add
  au = add -u
  bl = blame
  br = branch
  ca = commit --amend
  cb = checkout -b
  cl = clone
  cm = commit
  co = checkout
  cp = cherry-pick
  dc = diff --cached
  df = diff
  ft = fetch
  lg = log
  mr = merge
  pl = pull
  ps = push
  rb = rebase
  rm = rm -r
  rs = reset
  rv = revert
  sa = stash apply
  sh = show
  sl = stash list
  sm = submodule
  sp = stash pop
  ss = stash save
  st = status
  sw = stash show

  rmb = !sh -c 'git branch -d $1 && git push origin :$1' -
  commit-count = shortlog -s -n
[branch]
  autosetuprebase = always
[pull]
  rebase = true
[push]
  default = tracking

Update git aliases, add pull --rebase by default


#!/bin/bash
set -e # exit immediately if a simple command exits with a non-zero status
set -u # report the usage of uninitialized variables

JOB_NAME=route-registrar

RUN_DIR=/var/vcap/sys/run/cf-mysql-broker
LOG_DIR=/var/vcap/sys/log/cf-mysql-broker

PIDFILE=$RUN_DIR/route-registrar.pid
CONFIG_FILE=/var/vcap/jobs/proxy/config/route-registrar.yml

source /var/vcap/packages/cf-mysql-common/pid_utils.sh

case $1 in

start)

  mkdir -p $RUN_DIR
  chown -R vcap:vcap $RUN_DIR
  mkdir -p $LOG_DIR
  chown -R vcap:vcap $LOG_DIR

  pid_guard $PIDFILE $JOB_NAME

  su vcap -c "/var/vcap/packages/cf-mysql-route-registrar/bin/route-registrar \
  -pidfile=$PIDFILE \
  -configPath=$CONFIG_FILE \
  >>$LOG_DIR/route-registrar.stdout.log \
  2>>$LOG_DIR/route-registrar.stderr.log &"
;;

stop)
  kill_and_wait $PIDFILE
;;

*)
echo "Usage: route_registrar_ctl {start|stop}" ;;

esac
exit 0

#!/bin/bash
set -e # exit immediately if a simple command exits with a non-zero status
set -u # report the usage of uninitialized variables

JOB_NAME=route-registrar

RUN_DIR=/var/vcap/sys/run/proxy
LOG_DIR=/var/vcap/sys/log/proxy

PIDFILE=$RUN_DIR/route-registrar.pid
CONFIG_FILE=/var/vcap/jobs/proxy/config/route-registrar.yml

source /var/vcap/packages/cf-mysql-common/pid_utils.sh

case $1 in

start)

  mkdir -p $RUN_DIR
  chown -R vcap:vcap $RUN_DIR
  mkdir -p $LOG_DIR
  chown -R vcap:vcap $LOG_DIR

  pid_guard $PIDFILE $JOB_NAME

  su vcap -c "/var/vcap/packages/cf-mysql-route-registrar/bin/route-registrar \
  -pidfile=$PIDFILE \
  -configPath=$CONFIG_FILE \
  >>$LOG_DIR/route-registrar.stdout.log \
  2>>$LOG_DIR/route-registrar.stderr.log &"
;;

stop)
  kill_and_wait $PIDFILE
;;

*)
echo "Usage: route_registrar_ctl {start|stop}" ;;

esac
exit 0

Fix run and log dirs for route-registrar on proxy

- Was previously called "cf-mysql-broker"

[#116578267]


You may be able to register a civil partnership or get married at the British embassy or consulate in Peru.

[Make an appointment at the embassy in Lima.](https://www.book-consular-appointment.service.gov.uk/TimeSelection?location=125&service=10)

##What documents you’ll need

You need to have been living in Peru for 21 days. You and your partner will need to sign a declaration and provide proof of residence for example, an employer’s letter or a bank statement.

You’ll both need to bring your original passports. You’ll also need evidence that your partner is free to marry - a document from their government or their passport that says they are unmarried. If either of you have been divorced, widowed or in a civil partnership before, you’ll also need to provide:

- a [decree absolute or final order](/copy-decree-absolute-final-order)
- the [death certificate](/order-copy-birth-death-marriage-certificate/)

##What you need to do

At your appointment the embassy or consulate will give you:

-  a notice of registration
-  a declaration that you and your partner will need to swear, stating that you’re legally entitled to marry or enter into a civil partnership

Once you’ve completed these and paid the registration fee, the embassy or consulate will display your notice publicly for 14 days.

As long as nobody registers an objection you can get married or enter into a civil partnership up to 3 months after you gave notice.

You’ll need to bring two witnesses to your ceremony - they’ll need to show their photo ID (for example passport or driver’s licence).

You’ll need to pay a fee to register your marriage or civil partnership and a fee for your marriage or civil partnership certificate.

^All same-sex marriages must take place under English and Welsh or Scottish law even if you live in or are from Northern Ireland. Tell the embassy or consulate which law you want to get married under at your appointment.^

##Naturalisation of your partner if they move to the UK

Your partner can apply to [become a British citizen](/becoming-a-british-citizen/if-your-spouse-is-a-british-citizen) once they’ve lived in the UK for 3 years.

## Fees

<%= render partial: 'consular_fees_table_items',
    collection: calculator.services,
    as: :service,
    locals: { calculator: calculator } %>

You normally have to pay fees for consular services in the local currency - these are shown in the list of [consular fees for Peru](/government/publications/peru-consular-fees).

You can pay by cash or credit card, but not by personal cheque.

It’s not possible to get legal recognition for your same-sex relationship in Peru.

Remove same-sex option for Peru - other, other 1


<% if current_admin %>
  <%= link_to 'New Article', new_article_path, class: 'btn btn-default' %>
<% end %>

<% @articles.each do |article| %>

  <div class="panel panel-default article clickable" onclick="location.href='<%= article_path(article) %>'" >

<%= article.title %>

      <% if article.content.length > 500 %>
        <%= simple_format article.content[0..500] + '...' %>
      <% else %>
      <%= simple_format article.content %>
    <% end %>

<% end %>

<% if current_admin %>
  <%= link_to 'New Article', new_article_path, class: 'btn btn-default' %>
<% end %>

<% @articles.order(created_at: :desc).each do |article| %>

  <div class="panel panel-default article clickable" onclick="location.href='<%= article_path(article) %>'" >

<%= article.title %>

      <% if article.content.length > 500 %>
        <%= simple_format article.content[0..500] + '... (more)' %>
      <% else %>
      <%= simple_format article.content %>
    <% end %>

<% end %>

Make the articles index more intuitive.

Make the articles index more intuitive.

* Articles are sorted by recency
* Article previews end with a "(more)" link.


# <%= @mysql_name %> Service

description     "MySQL service <%= @mysql_name %>"
author          "chef-client"

start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]

respawn
respawn limit 2 5

env HOME=/etc/<%= @mysql_name %>
umask 007

kill timeout 300

pre-start script
[ -d <%= @socket_dir %> ] || install -m 755 -o <%= @run_user %> -g <%= @run_group %> -d <%= @socket_dir %>
end script

exec /usr/sbin/mysqld --defaults-file=<%= @defaults_file %>

post-start script
/usr/sbin/<%= @mysql_name %>-wait-ready
end script

# <%= @mysql_name %> Service

description     "MySQL service <%= @mysql_name %>"
author          "chef-client"

start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]

respawn
respawn limit 2 5

env HOME=/etc/<%= @mysql_name %>
umask 007

kill timeout 300

pre-start script
[ -d /run/<%= @mysql_name %> ] || install -m 755 -o <%= @run_user %> -g <%= @run_group %> -d /run/<%= @mysql_name %>
[ -d <%= @socket_dir %> ] || install -m 755 -o <%= @run_user %> -g <%= @run_group %> -d <%= @socket_dir %>
end script

exec /usr/sbin/mysqld --defaults-file=<%= @defaults_file %>

post-start script
/usr/sbin/<%= @mysql_name %>-wait-ready
end script

Add back in creating the appropriate run directory, otherwise pid file cannot be placed, and MySQL may fail to start.


<%= @user.name %>'s Movies:

      Title
      Rating
      Genre
      Edit

      <% @user.movies.each do |movie| %>
        <%= movie.name %>
        <%= movie.rating %>
        <%= movie.genres.first.name %>
        <a href="/user/<%= @user.id %>/<%= movie.name %>">EDIT
      <% end %>

    <a href="/user/<%= @user.id %>/add">ADD MOVIE

Move erb iteration to outside of table row tag


<% render_content_for :title do %>
  Are you clinically vulnerable?
<% end %>

<% render_content_for :body do %>
  You are clinically vulnerable if you are aged 70 or older (regardless of medical condition), pregnant, or under 70 with an underlying health condition listed below:

  - chronic (long-term) mild to moderate respiratory diseases, such as asthma, chronic obstructive pulmonary disease (COPD), emphysema or bronchitis
  - chronic heart disease, such as heart failure
  - chronic kidney disease
  - chronic liver disease, such as hepatitis
  - chronic neurological conditions, such as Parkinson’s disease, motor neurone disease, multiple sclerosis (MS), or cerebral palsy
  - diabetes
  - a weakened immune system as the result of certain conditions, treatments like chemotherapy, or medicines such as steroid tablets
  - seriously overweight (a body mass index (BMI) of 40 or above)

<% end %>

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

<% render_content_for :title do %>
  Are you clinically vulnerable?
<% end %>

<% render_content_for :body do %>
  You are clinically vulnerable if you are:

  - aged 70 or older (regardless of medical condition)
  - pregnant

  If you are under 70, you are also clinically vulnerable if you have an underlying health condition listed below:

  - chronic (long-term) mild to moderate respiratory diseases, such as asthma, chronic obstructive pulmonary disease (COPD), emphysema or bronchitis
  - chronic heart disease, such as heart failure
  - chronic kidney disease
  - chronic liver disease, such as hepatitis
  - chronic neurological conditions, such as Parkinson’s disease, motor neurone disease, multiple sclerosis (MS), or cerebral palsy
  - diabetes
  - a weakened immune system as the result of certain conditions, treatments like chemotherapy, or medicines such as steroid tablets
  - seriously overweight (a body mass index (BMI) of 40 or above)

<% end %>

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

Update content for the Coronavirus employee risk assessment flow

This makes the question about whether you are clinically vulnerable more
easy to understand.


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

<% content_for :extra_javascript do %>

<% end %>

New

Published

Archive

Review Requested

          Title

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

            <%= guide.title %>

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

        <% end %>

This will list published guides

This will list archived guides

This will list guides pending review

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

<% content_for :extra_javascript do %>

<% end %>

Make sure 'edit' link works. Add some basic content for the other tabs in the guide list so we can test them


<%= login_required class: "actions", id: "new_blog_post_link" do %>
  <%= link_to t(:new_blog_post, scope: 'blogit.posts'), new_post_path %>
<% end %>

<% if @posts.any? %>

  <%= render partial: "blogit/posts/post",
    collection: @posts,
    spacer_template: "blog_post_spacer",
    locals: {show_comments_count: true}  %>
<% else %>

  <%= render partial: "blogit/posts/empty" %>

<% end %>

<%= render "pagination" %>

<%= login_required class: "actions", id: "new_blog_post_link" do %>
  <%= link_to t(:new_blog_post, scope: 'blogit.posts'), new_post_path %>
<% end %>

<% if @posts.any? %>

  <%= render partial: "blogit/posts/post",
    collection: @posts,
    spacer_template: "blog_post_spacer",
    locals: {show_comments_count: (Blogit.configuration.include_comments == :active_records) }  %>
<% else %>

  <%= render partial: "blogit/posts/empty" %>

<% end %>

<%= render "pagination" %>

Remove comments count if not using active record comments


<%= link_to forum.title, forum %>

    <%= forum.description %>

    <%= link_to t('forem.forum.forums'), forums_path, :class => 'forums' %>

  <menu>
    <% unless @topic && @topic.new_record? %>
      <%= link_to t('forem.topic.links.post'), new_forum_topic_path(forum) %>
    <% end %>
    <% if @topic %>
      <%= link_to t('forem.topic.links.back_to_topics'), forum_path(forum) %>
    <% end %>
  </menu>

<%= link_to t('forem.forum.header', :title => forum.title), forum %>

    <%= link_to t('forem.forum.forums'), forums_path, :class => 'forums' %>

  <menu>
    <% unless @topic && @topic.new_record? %>
      <%= link_to t('forem.topic.links.post'), new_forum_topic_path(forum) %>
    <% end %>
    <% if @topic %>
      <%= link_to t('forem.topic.links.back_to_topics'), forum_path(forum) %>
    <% end %>
  </menu>

Simplify forum header, don't show description


We need more women on stages

If you are a professional speaker in any topic, register here, quick and free

        <%= link_to "Register as a speaker", sign_up_path, class: "btn btn-primary" %>

Make 'Register as a speaker' box green without hover


Contact the [relevant local authorities](http://www.dha.gov.za/index.php/civic-services/marriage-certificates) in South Africa to find out about local marriage laws, including what documents you’ll need.

^You should [get legal advice](/government/collections/list-of-lawyers) and check the [travel advice for South Africa](/foreign-travel-advice/south-africa) before making any plans.^

The UK doesn’t issue certificates of no impediment (CNIs) for marriages in Commonwealth countries. The British High Commission in Pretoria or the Consulate General in Cape Town can provide a letter to explain this if you’re asked to provide a CNI or a similar document to prove you’re allowed to marry.

Contact the High Commission and Consulate General to arrange to collect a letter.

$C
<southafrica.consulate@fco.gov.uk>
$C

The letter must be signed and stamped by a member of the consular staff.

Contact the [relevant local authorities](http://www.dha.gov.za/index.php/civic-services/marriage-certificates) in South Africa to find out about local marriage laws, including what documents you’ll need.

^You should [get legal advice](/government/collections/list-of-lawyers) and check the [travel advice for South Africa](/foreign-travel-advice/south-africa) before making any plans.^

The UK doesn’t issue certificates of no impediment (CNIs) for marriages in Commonwealth countries. You can get a letter to explain this if you’re asked to provide a CNI or a similar document to prove you’re allowed to marry.

Book an appointment to collect a letter at the [British Consulate General in Cape Town](https://www.consular-appointments.service.gov.uk/fco/#!/british-consulate-general-cape-town/providing-an-informative-note/slot_picker) or the [British High Commission in Pretoria](https://www.consular-appointments.service.gov.uk/fco/#!/british-high-commission-pretoria/providing-an-informative-note/slot_picker).

The letter is free. If you can't go to an appointment, you can ask a friend or family member to make an appointment and collect it for you.

Add appointment link for explanatory letter


  <% @issue.valence_issue_explanations.each do |explanation| %>

        <div class="canvas parties_<%= explanation.parties.size %>">
          <% explanation.parties.sort_by(&:name).each do |party| %>
            <a class="issue-graph-party" href="#<%= party.slug %>">
              <%= image_tag party.logo.versions[:medium], alt: "#{party.name}s logo" %>

          <% end %>

        <%= explanation.explanation %>

  <% end %>

    <%= render partial: 'shared/social_sharing' %>

Remove sharing buttons from valence issues (for now)


References

(Ref 1)

UNEP-WCMC (2017). Global statistics from the World Database on Protected Areas (WDPA), <%= Date.today.strftime("%B") %> 2017. Cambridge, UK: UNEP-WCMC.

    <% if @pame_statistics && Rails.application.secrets.show_pame_statistics %>

(Ref 2)

        Coad, L. et al. (2015). Measuring impact of protected area management
        interventions: current and future use of the Global Database of
        Protected Area Management Effectiveness. Phil. Trans. R. Soc. B 370:
        20140281.

        External link

    <% end %>

Move references to a partial for future use


<% @transactions.each do |transaction| %>

<%= render 'transaction.html.erb', transaction: transaction %>

<% end %>

Add class name to transaction ul

Add class name to transaction ul


<% if !obj.import.nil? %>
<%= data_row(heading: t("myplaceonline.dna_analyses.status"), content: obj.import.import_status, enumeration: Import::IMPORT_STATUSES) %>
<% end %>

Handle blank dna analysis import

Handle blank dna analysis import


<% unless @product_properties.empty? %>

<%= Spree.t('properties')%>

      <% @product_properties.each do |product_property| %>
        <% css_class = cycle('even', 'odd', :name => "properties") %>
        <tr class="<%= css_class %>">
          <%= product_property.property.presentation %>
          <%= product_property.value %>

      <% end %>
      <% reset_cycle('properties') %>

<% end %>

Bring in product properties partial from spree.


<%
  header_title ||= ""
  policies ||= nil
  topics ||= []
%>
<%= render partial: 'shared/heading',
          locals: { type: header_title,
                    heading: document.title,
                    extra: true } %>

<%= render('documents/archive_notice', document: document, type: header_title) if document.archived? %>

    <%= render partial: 'shared/available_languages', locals: {object: document} %>
    <%= national_statistics_logo(document) %>

<%= render partial: 'documents/metadata', locals: { document: document, policies: policies, topics: topics } %>

<%
  header_title ||= ""
  policies ||= nil
  topics ||= []
%>
<%= render partial: 'shared/heading',
          locals: { type: header_title,
                    heading: document.title,
                    extra: true } %>

<%= render('documents/archive_notice', document: document, type: document.format_name) if document.archived? %>

    <%= render partial: 'shared/available_languages', locals: {object: document} %>
    <%= national_statistics_logo(document) %>

<%= render partial: 'documents/metadata', locals: { document: document, policies: policies, topics: topics } %>

Use document format name to describe document

header_title is set to "Operations in #{location}" for fatality
notices.


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

Hello <%=h @user.login %>,

your account has been activated.  You can add your public SSH key here <%= Gitorious.url("/~#{h @user.login}") -%> as well as change your details.

Thank you

<%= Gitorious.url("/") %>

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

Hello <%=h @user.login %>,

Your account has been activated. You can now add your public SSH key here <%= Gitorious.url(user_edit_ssh_keys_path(@user)) -%>.
You can also update your profile details here <%= Gitorious.url(user_edit_path(@user)) -%>.

Thank you

<%= Gitorious.url("/") %>

Fix the path to ssh key add form in activation email


  <%= link_to "New Schema", "#" %><%= link_to "Log Out", "#" %><%= link_to "Save", "#" %>

<%= render '/tables/form' %>

Move links from tool bar to layout menu, also


<%= blog_sidebar do %>

Recent posts

    <% @recent_blog_posts.each do |recent_blog_post| %>

<a href='<%= active_blog_post_path(recent_blog_post.cached_slug) %>' itemscope itemprop='url' itemscope itemprop='url' title='<%= recent_blog_post.title %>'><%= recent_blog_post.title %>

    <% end %>

<% end %>

<%= blog_sidebar do %>

Recent posts

    <% @recent_blog_posts.each do |recent_blog_post| %>

<a href='<%= active_blog_post_path(recent_blog_post.cached_slug) %>' title='<%= recent_blog_post.title %>'><%= recent_blog_post.title %>

    <% end %>

<% end %>

Remove schemas from side bar, for now

Remove schemas from side bar, for now


We're hiring for an exciting new project. Come and join our friendly team.

Help keep our sites running in 2018. Please donate today.

Replace hiring banner with donate

Replace hiring banner with donate


<% present entry, local_assigns do |entry_presenter| %>

        <%= link_to entry.fully_qualified_url, target: '_blank', rel: 'noopener noreferrer', id: 'source_link' do  %>

<%= entry_presenter.entry_view_title %>

        <% end %>

            <time datetime="<%= entry_presenter.datetime %>"><%= entry_presenter.published_date %></time>
            <% unless entry.feed.newsletter? %>
                <%= entry_presenter.author %>
            <% end %>

        <% if entry_presenter.newsletter_from? %>

<%= entry_presenter.newsletter_from.name %> <% if entry_presenter.newsletter_from.address.present? %><<%= entry_presenter.newsletter_from.address %>><% end %>

        <% else %>

<span data-behavior="user_title" data-feed-id="<%= entry.feed.id %>"><%= strip_tags(entry.feed.title) %>

        <% end %>

    <div data-behavior="entry_content_wrap external_links" class="content-styles <%= entry_presenter.entry_type_class %>">
        <%= render partial: "article_content", locals: {entry: entry} %>

<% end %>

Add share data to entry.

Add share data to entry.


<% content_for :html do %>

          <%= link_to koi_engine.dashboard_path, class: "logo-header" do %>
            <%= image_tag "koi/application/logo-katalyst.png", border: 0 %>
          <% end %>
          <%= render :partial => "layouts/koi/navigation" %>

      <%= content_for?(:body) ? yield(:body) : yield %>

          <button type="button" class="close" data-dismiss="modal">×</button>

What?

          <input class="input-xlarge" name="answer" koi:bind="answer" />

          <button type="button" name="cancel" class="btn close" data-dismiss="modal">Cancel</button>
          <button type="button" name="submit" class="space-r-1 btn btn-primary" data-dismiss="modal">Ok</button>

<% end %>

<%= render :file => 'layouts/koi/html' %>

Make some space between the bottom of the page and the window.


<% content_for :title do %>
  What would you like to calculate?
<% end %>

<% options(
  "age": "State Pension age - including pension credit age",
  "bus_pass": "Bus pass age - find out when you’ll get free bus travel"
) %>

<% content_for :title do %>
  What would you like to calculate?
<% end %>

<% options(
  "age": "State Pension age - including Pension Credit qualifying age",
  "bus_pass": "Bus pass age - find out when you’ll get free bus travel"
) %>

Update option copy in which calculation question

Add capitalisation and the word qualifying to ‘pension credit age’, inline with other occurrences in the smart answer


<%= @collection.name %>

    <%= button_to "Add a Book", new_collection_book_path(@collection.id), method: 'get', class: "btn btn-block" %>

    <% if @collection.books.empty? %>

It's kinda lonely here...

    <% else %>
      <% @collection.books.each do |book| %>

<%= link_to book.title, book_path(book.id) %>

      <% end %>
    <% end %>

  <%= button_to "Edit Collection", edit_collection_path(@collection.id, @collection), method: 'get', class: "btn btn-block" %>
  <%= button_to "Delete Collection", {controller: 'collections', action: "destroy", id: @collection.id}, :method => :delete, class: "btn btn-block" %>
  <%= button_to "Back", user_collections_path(@collection.user_id), method: 'get', class: "btn btn-block" %>

Remove search a book button

Remove search a book button


<% content_for :scripts do %>

<% end %>
<div id="<%= options[:mapid] %>" class="<%= options[:class] unless options[:class].nil? %>" style="<%= options[:style] unless options[:style].nil? %>">

<% content_for :scripts do %>

	<script type="text/javascript" charset="utf-8">

	<%=raw generate_map(options) %>

	</script>
<% end %>
<div id="<%= options[:mapid] %>" class="<%= options[:class] unless options[:class].nil? %>" style="<%= options[:style] unless options[:style].nil? %>">

	<%= render @map_panels unless @map_panels.blank? %>

</div>

Allow the caller app to inject additional content into the map tab to enable viewing in full screen mode


<% # Clients of this partial must supply the following variables:
   # id
   # value
   #
   # Additionally, they may override the following variables:
   show_menu ||= false
   hide_image_tool ||= false
   canvas_width ||= 640
   canvas_height ||= 480
   canvas_expansion ||= 3
   hide_rulers ||= false
   width ||= "750px"
   height ||= "650px" %>

<%= javascript_include_tag "embedapi" %>
<%= javascript_include_tag "svgutils" %>

<script type="text/javascript">
  <%= render :partial => "sketchily/embed",
             :formats => :js,
             :locals => {:id => id,
                         :value => value,
                         :show_menu => show_menu,
                         :hide_image_tool => hide_image_tool} %>
</script>

<iframe src="/assets/svg-editor.html?source=&dimensions=<%= "#{canvas_width},#{canvas_height}" %>&canvas_expansion=<%= canvas_expansion %>&showRulers=<%= !hide_rulers %>"
  width="<%= width %>" height="<%= height %>" id="svgedit_<%= id %>" onload="initEmbed_<%= id %>();"></iframe>

<% # Clients of this partial must supply the following variables:
   # id
   # value
   #
   # Additionally, they may override the following variables:
   show_menu ||= false
   hide_image_tool ||= false
   canvas_width ||= 640
   canvas_height ||= 480
   canvas_expansion ||= 3
   hide_rulers ||= false
   width ||= "750px"
   height ||= "650px" %>

<%= javascript_include_tag "embedapi" %>
<%= javascript_include_tag "svgutils" %>

<script type="text/javascript">
  <%= render :partial => "sketchily/embed",
             :formats => :js,
             :locals => {:id => id,
                         :value => value,
                         :show_menu => show_menu,
                         :hide_image_tool => hide_image_tool} %>
</script>

<%= tag(
  :iframe,
  :src => "/assets/svg-editor.html?source=&dimensions=#{canvas_width},#{canvas_height}&canvas_expansion=#{canvas_expansion}&showRulers=#{!hide_rulers}",
  :width => width,
  :height => height,
  :id => "svgedit_#{id}",
  :onload => "initEmbed_#{id}();"
)%>

Use tag helper to generate iframe

Use tag helper to generate iframe


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

<%= render 'shared/trust_banner' %>

<%= render 'shared/directory',
           items: t('.featured') %>

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

<%= render 'shared/home_contact',
           title: t('.contact.title'),
           introduction: t('.contact.introduction_html'),
           details: t('.contact.details_html') %>

Remove old contact section from the homepage


<% provide(:title, 'New Meme') %>

New Meme

    <%= form_for(@meme) do |f| %>
      <%= render 'shared/error_messages' %>
      <%= f.label :title %>
      <%= f.text_field :title %>

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

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

      <%= f.submit "Create Meme", class: "btn btn-large btn-primary" %>
    <% end %>

Improve formatting of new meme page.

Improve formatting of new meme page.