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.

##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.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.

##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.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


    <%= link_to "Zooniverse Home", "https://www.zooniverse.org", class: "btn btn-default"%>

    <%= link_to "API Docs", "http://docs.panoptes.apiary.io/#", class: "btn btn-primary"%>

    <%= link_to "GitHub", "https://github.com/zooniverse/Panoptes", class: "btn btn-info"%>

        <%= link_to "Sign In", new_user_session_path, class: "btn btn-success"%>

        <%= link_to "Sign Out", destroy_user_session_path, class: "btn btn-danger"%>

    <%= link_to "Zooniverse Home", "https://www.zooniverse.org", class: "btn btn-default"%>

    <%= link_to "API Docs", "http://docs.panoptes.apiary.io/#", class: "btn btn-primary"%>

    <%= link_to "GitHub", "https://github.com/zooniverse/Panoptes", class: "btn btn-info"%>

        <%= link_to "Sign In", new_user_session_path, class: "btn btn-success"%>

        <%= link_to "Sign Out", destroy_user_session_path, method: :delete, class: "btn btn-danger"%>

Use appropriate method for sign_out

Use appropriate method for sign_out


<% provide(:title, "Edit account") %>
<% provide(:button_text, "Save changes") %>
<% provide(:path, user_path(@user)) %>
<% provide(:verb, :patch) %>

Your account

    <%= render 'form' %>

    Your payments...

Add javascript to User edit view to get payments json - Display json as a list beneath form


<%= @user.username %>

  <img src="<%= @user.avatar %>">

  <button data-role="new-follow" value="<%= @user %>">follow</button>

  <button data-role="unfollow">unfollow</button>

<%= pluralize(@user.followers.count, 'follower') %>

  <% @user.followers.each do |follower| %>
    <%= render partial: 'user', locals: { user: follower } %>
  <% end %>

<%= @user.followees.count %> following

  <% @user.followees.each do |followee| %>
    <%= render partial: 'user', locals: { user: followee } %>
  <% end %>

<%= pluralize(@user.drops.count, 'drop') %>

<% if current_user == @user %>

  <% @user.drops.each do |drop| %>
  	<%=  link_to image_tag(drop.photo), drop_path(drop) %>
  <% end %>

<% end %>

<%= @user.username %>

  <img src="<%= @user.avatar %>">

<% if current_user == @user %>

  <button data-role="edit-profile" value="<%= @user %>">edit profile</button>

<% else %>
  <%= render 'follow_form' %>
<% end %>

<%= pluralize(@user.followers.count, 'follower') %>

  <% @user.followers.each do |follower| %>
    <%= render partial: 'user', locals: { user: follower } %>
  <% end %>

<%= @user.followees.count %> following

  <% @user.followees.each do |followee| %>
    <%= render partial: 'user', locals: { user: followee } %>
  <% end %>

<%= pluralize(@user.drops.count, 'drop') %>

<% if current_user == @user %>

  <% @user.drops.each do |drop| %>
  	<%=  link_to image_tag(drop.photo), drop_path(drop) %>
  <% end %>

<% end %>

Update show to use follow form partials

Update show to use follow form partials


      <%= image_tag("https://s3.amazonaws.com/tatalog-milam-dev/tattoos/images/noavatar.png") %>

<%= @user.name %>

<%= @user.email %>

      <%= link_to("Edit your settings", edit_user_path(current_user), class: "button round") %>

Add button to user profile page to allow for editing of settings.


<%= notice %>

        First name:
        <%= @user.first_name %>

        Last name:
        <%= @user.last_name %>

        Email:
        <%= @user.email %>

      <%= link_to 'Edit', edit_profile_path(@user) %> |
      <%= link_to 'Back', users_path %>

<%= notice %>

        First name:
        <%= @user.first_name %>

        Last name:
        <%= @user.last_name %>

        Email:
        <%= @user.email %>

      <%= link_to 'Edit', edit_profile_path(@user) %>
      <% if can? :index, @user %>
      |
      <%= link_to 'Back', users_path %>
      <% end %>

Add cancancan access control to users/show view.


New Habit

    <%= render 'form' %>

    <%= link_to 'Dashboard', habits_path %>

Remove dashboard link as it is now in the footer


Hello, World!

Welcome to my Personal Web Page!

        <%= image_tag("wedding-pic.jpg", alt: "Dillon Downey\'s Main Pictire") %>

          fa-twitter on fa-square-o

          fa-flag on fa-circle

          fa-terminal on fa-square

          fa-ban on fa-camera

Add beginning of intro section with picture


<%= render 'form' %>
<%= render partial: 'change_visibility', locals: {:plan_id => params[:id]} %>
<%= render partial: 'comments/form', locals: {:plan_id => params[:id]} %>

Refactor edit view in Plans

Refactor edit view in Plans


<<<<<<< Updated upstream

<%= @plan.plan_name %>

	<% @plan.recipes.each do |recipe| %>

<a href="/recipes/<%= recipe.id %>"><%= recipe.title %>

Cooking Time: <%= recipe.cook_time_minutes %> minutes

	<% end %>

=======

Feast Your Eyes on <%= @plan.plan_name %>

		<% recipe_array = @plan.recipe_collection.split(", ") %>
		<% recipe_array.each do |digits| %>

<%= digits.to_i %>

		<% end %>

>>>>>>> Stashed changes

Resolve conflict with stashed changes

Resolve conflict with stashed changes


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

         <%= gravatar_for @user %>
         <%= @user.name %>

  <% if @user.projects.any? %>

    <%= render 'projects/table', projects: @projects %>
    <%= will_paginate @projects %>
  <% end %>

  <% if @edit_projects.present? %>

Other Projects you can edit

   <%= render 'projects/table', projects: @edit_projects %>
  <% end %>

  <% if @user.provider == 'github' && @user.nickname? %>

   See <a href="https://github.com/<%= @user.nickname %>">this user's
   external page.
  <% end %>

Add link to user's external page on GitHub if GitHub used.

  When displaying a user's page, include at the bottom a link to
  the user's page on GitHub.  That makes it easier to see who it is, etc.
  This isn't considered a privacy issue because GitHub pages are public.

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


<%= t('new_article.subject') %>

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

		<% if @article && @article.errors.any? %>

					<% @article.errors.full_messages.each do |msg| %>

<%= msg %>

					<% end %>

		<% end %>

			<%= f.label :title %>

			<%= f.text_field :title %>

			<%= f.label :text %>

			<%= f.text_area :text %>

			<%= f.submit 'Create article' %>

	<% end %>

<%= t('new_article.subject') %>

	<%= form_for :article, url: articles_path do |f| %>

		<% if @article && @article.errors.any? %>

					<% @article.errors.full_messages.each do |msg| %>

<%= msg %>

					<% end %>

		<% end %>

			<%= f.label :title %>

			<%= f.text_field :title %>

			<%= f.label :text %>

			<%= f.text_area :text %>

			<%= f.submit 'Create article' %>

	<% end %>

Change url: from '/articles' to articles_path


Login

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

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

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

    <%= f.submit %>

<% end %>

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

<% flash.each do |key, value| %>
  <%= content_tag :div, value, class: "flash #{key}" %>
<% end %>

Add a div.form container around the login form


<% content_for :heading do -%><%= t('myplaceonline.info.title') %><% end -%>

<%= t("myplaceonline.email") %>: <%= mail_to(t("myplaceonline.siteEmail")) %>

<%= t('myplaceonline.info.apk') %>: https://build.phonegap.com/apps/1133885/download/android/

Alert HTML

Add debug to info page

Add debug to info page


This is where you will edit existing item information

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

Add div.form container around edit item form


<input type="button" id="start" value="Add Bank">

Add redirect route for users update page within view script


Editing User

All users can create, edit and delete items in Klaxon.

        <% if @current_user.is_admin %>
          <%= link_to 'Delete? It’s Permanent.', @user, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-default btn-lg btn-block" %>
        <% end %>

<%= render 'form' %>

        <%= @user.first_name %>'s Subscriptions

      <% @user.watching.each do |watch_item| %>

          <%= watch_item.name %>
          <%= link_to "Edit", [:edit, watch_item], class: "btn btn-default btn-block" %>

      <% end %>

Editing User

All users can create, edit and delete items in Klaxon.

        <% if @current_user.is_admin %>
          <%= link_to 'Delete? It’s Permanent.', @user, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-default btn-lg btn-block" %>
        <% end %>

<%= render 'form' %>

        <%= @user.first_name %>'s Subscriptions

      <% @user.watching.each do |watch_item| %>

          <%= watch_item.name %>
          <%= link_to "Edit", [:edit, watch_item], class: "btn btn-default pull-right" %>

      <% end %>

Make the edit buttons a little smaller to preserve hierarchy.


<% content_for :toolbar do %>

I18n.t('news.news')

  <%= iphone_back_button %>
<% end %>

  I18n.t('news.posted') <%= @news_item.published.to_s(:date) rescue '?' %>
  <% if @news_item.person %>
    I18n.t('news.by') <%= link_to h(@news_item.person.name), @news_item.person %>
  <% elsif @news_item.link.to_s.any? %>
    I18n.t('from') <%= link_to h(@news_item.link.sub(/^http:\/\//, '')), @news_item.link %>
  <% end %>

<%=h @news_item.title %>

<%= white_list_with_removal @news_item.body %>

<% content_for :toolbar do %>

<%= I18n.t('news.news') %>

  <%= iphone_back_button %>
<% end %>

  <%= I18n.t('news.posted') %> <%= @news_item.published.to_s(:date) rescue '?' %>
  <% if @news_item.person %>
    <%= I18n.t('news.by') %> <%= link_to h(@news_item.person.name), @news_item.person %>
  <% elsif @news_item.link.to_s.any? %>
    <%= I18n.t('from') %> <%= link_to h(@news_item.link.sub(/^http:\/\//, '')), @news_item.link %>
  <% end %>

<%=h @news_item.title %>

<%= white_list_with_removal @news_item.body %>

Fix erb insertion of i18n translation keys.


<!DOCTYPE html>

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

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

    <%= render :partial => 'shared/navbar' %>
    <%= render :partial => 'shared/user_header', :locals => { user: current_tenant } if current_tenant %>

      <%= bootstrap_flash %>
      <%= yield %>

              Copyright © <%= Date.today.year %> <%= root_user.full_name %>
              <% unless user_signed_in? %>
                · <%= link_to "Login", new_user_session_path %>
              <% end %>

    <% if user_signed_in? and current_tenant != current_user %>
      <%= render :partial => 'shared/userbar' %>
    <% end %>

<!DOCTYPE html>

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

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

    <%= render :partial => 'shared/navbar' %>
    <%= render :partial => 'shared/user_header', :locals => { user: current_tenant } if current_tenant %>

      <%= bootstrap_flash %>
      <%= yield %>

          Copyright © <%= current_tenant.copyright_range -%>
          <% unless user_signed_in? %>
            · <%= link_to "Login", new_user_session_url(host: request.domain) %>
          <% end %>

    <% if user_signed_in? and current_tenant != current_user %>
      <%= render :partial => 'shared/userbar' %>
    <% end %>

Use bare-domain login link in footer

Use bare-domain login link in footer

Signed-off-by: Max Fierke <0706025b2bbcec1ed8d64822f4eccd96314938d0@maxfierke.com>


require "json"

Ohai.plugin(:Lldp) do
  provides "lldp"

  collect_data(:default) do
    lldp Mash.new

    json = JSON.parse(%x(/usr/sbin/lldpctl -f json))

    json["lldp"]["interface"].each do |interface|
      interface.each do |name, details|
        lldp[name] = details
      end
    end

    lldp
  end
end

require "json"

Ohai.plugin(:Lldp) do
  provides "lldp"

  collect_data(:default) do
    lldp Mash.new

    json = JSON.parse(%x(/usr/sbin/lldpctl -f json))

    interfaces = if json["lldp"]["interface"].is_a?(Array)
                   json["lldp"]["interface"]
                 else
                   [json["lldp"]["interface"]]
                 end

    interfaces.each do |interface|
      interface.each do |name, details|
        lldp[name] = details
      end
    end

    lldp
  end
end

Handle machines with a single interface

Handle machines with a single interface


This is the admin index page.

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

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

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

<% end %>

This is the admin index page.

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

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

<%= link_to 'Edit Item', edit_item_path(item) %>

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

<% end %>

Include edit item link underneath each item name within admin item view


<%= form_for(order) do |f| %>

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

    <%= f.button_to "Add To Cart", method: 'add_to_cart' %>

<% end %>

<% @item.errors.each do |error_array, error| %>

<%= flash[:error] = error %>

<% end %>

Add form logic for new orders

Add form logic for new orders


<% @title = t('sign_in') %>

<%= link_to t('.forgot_password'), new_password_url %>

<%= form_for :session, :url => session_path do |form| %>

    <%= form.label :who, t('activerecord.attributes.session.who'), :class => 'form__label' %>
    <%= form.text_field :who, :class => 'form__input' %>

    <%= form.label :password, t('activerecord.attributes.session.password'), :class => 'form__label' %>
    <%= form.password_field :password, :class => 'form__input' %>

    <%= form.submit t('sign_in'), :data => {:disable_with => t('form_disable_with')}, :class => 'form__submit' %>

<% end %>

<% @title = t('sign_in') %>

<%= link_to t('.forgot_password'), new_password_url %>

<%= form_for :session, :url => session_path do |form| %>

    <%= form.label :who, t('activerecord.attributes.session.who'), :class => 'form__label' %>
    <%= form.text_field :who, :autofocus => true, :class => 'form__input' %>

    <%= form.label :password, t('activerecord.attributes.session.password'), :class => 'form__label' %>
    <%= form.password_field :password, :class => 'form__input' %>

    <%= form.submit t('sign_in'), :data => {:disable_with => t('form_disable_with')}, :class => 'form__submit' %>

<% end %>

Add autofocus to login form.

Add autofocus to login form.


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

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

<% if document.archived? %>

This <%= header_title.downcase %> was archived on <%= document.updated_at.to_date.to_s(:long_ordinal) %>

    <%=govspeak_to_html document.unpublishing.explanation unless document.unpublishing.explanation.blank? %>

<% end %>

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

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

Update front-end to include archive info when present.


This email was sent from the contact form at https://chalmers.it/contact
If this email was not sent with another recipient the sender wishes to remain anonymous. Please respect this.

<%= @body %>

Add header to email sent with contact form


<footer>
  <p class="text-muted">
    © <%= current_year %> <%= link_to t(:site_name), root_path %>. All Rights Reserved
  </p>
</footer>

Add social icons to footer

Add social icons to footer


My Events

Upcoming Events

  <% @upcoming_events.each do |event| %>

<%= link_to event.name, event%>

  <% end %>

Past Events

  <% @past_events.each do |event| %>

<%= link_to event.name, event%>

  <% end %>

<%= link_to "Create New Event", new_event_path %>

Add link to create new event on my_events


# Indexer Journal Client unit file
# Managed by puppet class profile::swh::deploy::indexer_journal_client
# Changes will be overwritten

[Unit]
Description=Software Heritage Indexer Journal Client
After=network.target

[Service]
User=<%= @user %>
Group=<%= @group %>
Type=simple
ExecStart=/usr/bin/python3 -m swh.indexer.journal_client
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

# Indexer Journal Client unit file
# Managed by puppet class profile::swh::deploy::indexer_journal_client
# Changes will be overwritten

[Unit]
Description=Software Heritage Indexer Journal Client
After=network.target

[Service]
User=<%= @user %>
Group=<%= @group %>
Type=simple
ExecStart=/usr/bin/swh indexer --config-file <%= @config_path %> journal-client
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Update cli to latest version

swh-indexer-journal-client: Update cli to latest version


<%- external_dns=scope.function_hiera(['external_dns']) %>
options {
    directory "/etc/contrail/dns/";
    managed-keys-directory "/etc/contrail/dns/";
    allow-new-zones yes;
    pid-file "/etc/contrail/dns/contrail-named.pid";
};

key "rndc-key" {
    algorithm hmac-md5;
    secret "xvysmOR8lnUQRBcunkC6vg==";
};

controls {
    inet 127.0.0.1 port 8094
    allow { 127.0.0.1; }  keys { "rndc-key"; };
};

logging {
    channel debug_log {
        file "/var/log/contrail/contrail-named.log" versions 3 size 5m;
        severity debug;
        print-time yes;
        print-severity yes;
        print-category yes;
    };
    category default {
        debug_log;
    };
    category queries {
        debug_log;
    };
};

view "_default_view_" {
    match-clients {any;};
    match-destinations {any;};
    match-recursive-only no;
    forwarders { <%= external_dns['dns_list'].split(',').map{ |ip| "#{ip};" }.join(' ') %> };
};

<%- external_dns=scope.function_hiera(['external_dns']) %>
options {
    directory "/etc/contrail/dns/";
    managed-keys-directory "/etc/contrail/dns/";
    allow-new-zones yes;
    pid-file "/etc/contrail/dns/contrail-named.pid";
};

key "rndc-key" {
    algorithm hmac-md5;
    secret "xvysmOR8lnUQRBcunkC6vg==";
};

controls {
    inet 127.0.0.1 port 8094
    allow { 127.0.0.1; }  keys { "rndc-key"; };
};

logging {
    channel debug_log {
        file "/var/log/contrail/contrail-named.log" versions 3 size 5m;
        severity debug;
        print-time yes;
        print-severity yes;
        print-category yes;
    };
    category default {
        debug_log;
    };
    category queries {
        debug_log;
    };
};

view "_default_view_" {
    match-clients {any;};
    match-destinations {any;};
    match-recursive-only no;
    forwarders { <%= external_dns['dns_list'].map{ |ip| "#{ip};" }.join(' ') %> };
};

Remove unrequired .split(), because dns list already an array.

  # hiera -h external_dns
  {
   "dns_list"=>["10.109.15.1"],
   "metadata"=>{"group"=>"network", "weight"=>30, "label"=>"Host OS DNS Servers"}
  }

Change-Id: Id077594248bb7b26f528f3bbcfdec94a6db3556b
Co-Authored-By: Sergey Vasilenko <78c24aa050af5837b04854a3e73c39051e6fee69@mirantis.com>
Closes-bug: #1556191


---
- job:
    name: search_reindex_with_new_schema
    display-name: Search reindex with new schema
    project-type: freestyle
    description: |
      Rebuild new search indexes with up to date settings and mappings, and reindex all content from the existing indexes.
    logrotate:
      numToKeep: 10
<% if @cron_schedule %>
    triggers:
        - timed: '<%= @cron_schedule %>'
<% end %>
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    builders:
      - trigger-builds:
          - project: run-rake-task
            block: true
            predefined-parameters: |
              TARGET_APPLICATION=rummager
              MACHINE_CLASS=search
              RAKE_TASK="rummager:migrate_schema CONFIRM_INDEX_MIGRATION_START=1 RUMMAGER_INDEX=all"
    wrappers:
      - ansicolor:
          colormap: xterm
      - timestamps

---
- job:
    name: search_reindex_with_new_schema
    display-name: Search reindex with new schema
    project-type: freestyle
    description: |
      Rebuild new search indexes with up to date settings and mappings, and reindex all content from the existing indexes.
    logrotate:
      numToKeep: 10
<% if @cron_schedule %>
    triggers:
        - timed: '<%= @cron_schedule %>'
<% end %>
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    builders:
        - shell: ssh deploy@$(govuk_node_list -c search --single-node) "cd /var/apps/rummager && govuk_setenv rummager bundle exec rake rummager:migrate_schema CONFIRM_INDEX_MIGRATION_START=1 RUMMAGER_INDEX=all"
    wrappers:
      - ansicolor:
          colormap: xterm
      - timestamps

Revert "Use run-rake-task in search_reindex_with_new_schema job"

This reverts commit 1254a68e5c718169b1fc1bf77c941d91fbf8fb41.


Home#index

Hello!

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dictum, nisi in mollis vehicula, turpis diam pretium eros, at maximus libero ipsum sed purus. Phasellus blandit mollis mi, non auctor est commodo a. Mauris volutpat nibh augue, vitae cursus sem tempor a. Praesent id tempor justo. Donec id leo urna. Nullam imperdiet aliquam mauris, et tempus quam sodales sed. Morbi a aliquet urna. Sed auctor convallis nisl, eu commodo lacus rutrum in. Aenean eu risus tincidunt, maximus est sed, venenatis metus. Sed pharetra quam et imperdiet euismod. Donec libero nisi, luctus non sem at, tincidunt feugiat metus.

<%= link_to 'Show all articles', articles_path %>

Welcome to Blog!

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dictum, nisi in mollis vehicula, turpis diam pretium eros, at maximus libero ipsum sed purus. Phasellus blandit mollis mi, non auctor est commodo a. Mauris volutpat nibh augue, vitae cursus sem tempor a. Praesent id tempor justo. Donec id leo urna. Nullam imperdiet aliquam mauris, et tempus quam sodales sed. Morbi a aliquet urna. Sed auctor convallis nisl, eu commodo lacus rutrum in. Aenean eu risus tincidunt, maximus est sed, venenatis metus. Sed pharetra quam et imperdiet euismod. Donec libero nisi, luctus non sem at, tincidunt feugiat metus.

<%= link_to 'Show all articles', articles_path %>

Change text on index page

Change text on index page


<%= form_for :search, url: search_path do |f| %>

<%= f.text_field :address_1, placeholder: "First Address" %>
<%= f.text_field :address_2, placeholder: "Second Address" %>
<%= f.text_field :address_3, placeholder: "Third Address (Optional)" %>
<%= f.submit "Find Midpoint"%>

<%end%>

Add Form On New Search Page

Add Form On New Search Page


<% text_for :title do %>
  Are you travelling through any of these countries on the way to your destination?
<% end %>

<% govspeak_for :body do %>
<% end %>

<% text_for :hint do %>
  Select all that apply:
<% end %>

<% countries = calculator.transit_country_options.dup %>
<% countries[:none] = "No" %>
<%= options(countries) %>

<% text_for :title do %>
  Are you travelling through any of these countries on the way to your destination?
<% end %>

<% govspeak_for :body do %>
  Select any countries that you’re travelling through without stopping or leaving the airport. This is sometimes called ‘transiting’. If you’re not sure whether you’re entering or transiting through a country, you should check the rules for that country from the results page of this tool.
<% end %>

<% text_for :hint do %>
  Select all that apply:
<% end %>

<% countries = calculator.transit_country_options.dup %>
<% countries[:none] = "No" %>
<%= options(countries) %>

Add explanation for travelling through/transiting


require 'json'
require 'delegate'

<%- name_declaration.namespace_or_client_name.each do |name| -%>
<%= name.type %> <%= name %>
<%- end -%>
  class JsonResponse < DelegateClass(Net::HTTPResponse)
    alias response __getobj__
    alias headers to_hash
    HAS_SYMBOL_GC = RUBY_VERSION > '2.2.0'

    def json
      parsable? ? JSON.parse(body, symbolize_names: HAS_SYMBOL_GC) : nil
    end

    def inspect
     "#<JsonResponse response: #{response.inspect}, json: #{json}>"
    end
    alias to_s inspect

    def parsable?
      !!body && !body.empty?
    end
  end

  class JsonSerializer
    APPLICATION_JSON     = 'application/json'.freeze
    JSON_REQUEST_HEADERS = {
      'Content-Type' => APPLICATION_JSON,
      'Accept'       => APPLICATION_JSON
    }.freeze

    def before_request(uri, body, headers, options)
      [uri, (body.nil? ? body : JSON.dump(body)), headers.merge(JSON_REQUEST_HEADERS), options]
    end
  end

  class JsonDeserializer
    def received_response(response, options)
      JsonResponse.new(response)
    end
  end

  private_constant :JsonSerializer, :JsonDeserializer
<%- name_declaration.namespace_or_client_name.each do -%>
end
<%- end -%>

require 'json'
require 'delegate'

<%- name_declaration.namespace_or_client_name.each do |name| -%>
<%= name.type %> <%= name %>
<%- end -%>
  class JsonResponse < DelegateClass(Net::HTTPResponse)
    alias response __getobj__
    alias headers to_hash
    HAS_SYMBOL_GC = RUBY_VERSION > '2.2.0'

    def json
      parsable? ? JSON.parse(body, symbolize_names: HAS_SYMBOL_GC) : nil
    end

    def inspect
     "#<JsonResponse response: #{response.inspect}, json: #{json}>"
    end
    alias to_s inspect

    def parsable?
      !!body && !body.empty?
    end
  end

  class JsonSerializer
    APPLICATION_JSON     = 'application/json'.freeze
    JSON_REQUEST_HEADERS = {
      'Content-Type' => APPLICATION_JSON,
      'Accept'       => APPLICATION_JSON
    }.freeze

    def before_request(uri, body, headers, options)
      headers = headers.merge(JSON_REQUEST_HEADERS)
      body    = body.nil? || body.is_a?(String) ? body : body.to_json

      [uri, body, headers, options]
    end
  end

  class JsonDeserializer
    def received_response(response, options)
      JsonResponse.new(response)
    end
  end

  private_constant :JsonSerializer, :JsonDeserializer
<%- name_declaration.namespace_or_client_name.each do -%>
end
<%- end -%>

Update the template for JSON serilalizer

  * Do not attempt to serialize string objects
  * Use the #to_json method instead of JSON.dump
  * Re-organize some lines of code


<% if application.production_hosted_on == "aws" %>
<%= application.hosting_name %>, on the <%= application.aws_puppet_class %> machine class
<% elsif application.hosting_name != "None"  %>
<%= application.hosting_name %>
<% else %>
N/A
<% end %>

Fix indentation of hosting partial

Fix indentation of hosting partial


<% if policy(@resource_service.build_resource({})).new? %>
  <%= link_to t("helpers.submit.create", model: @resource_class.model_name.human), [:new, *@resource_parents, @resource_class.model_name.singular_route_key], class: "btn btn-default" %>
<% end %>

<% if policy(@resource_service.build_resource({})).new? %>
  <%= link_to t("helpers.submit.create", model: @resource_class.model_name.human), [:new, *@resource_parents, @resource_class.model_name.singular_route_key.to_sym], class: "btn btn-default" %>
<% end %>

Patch incompatible code with newest Rails release

The latest Rails Security patch requires that polymorphic paths be constructed with symbols, rather than keys https://github.com/rails/rails/issues/42157

Release info:
https://weblog.rubyonrails.org/2021/3/26/marcel-upgrade-releases/


<% provide :title do %><%= @process.title %><% end %>

<%= render 'legislation/processes/header', process: @process, header: :full %>

<%= render 'key_dates', process: @process, phase: :proposals %>

          <% if @process.proposals.empty? %>

<%= t('.empty_proposals') %>

          <% else %>
            <%= render @process.proposals %>
          <% end %>

        <% if @process.proposals_phase.open? %>

<%= link_to t("proposals.index.start_proposal"), new_legislation_process_proposal_path(@process), class: 'button expanded' %>

        <% end %>
        <%= render 'legislation/proposals/categories', taggable: @process %>

<% provide :title do %><%= @process.title %><% end %>

<%= render 'legislation/processes/header', process: @process, header: :full %>

<%= render 'key_dates', process: @process, phase: :proposals %>

          <% if @proposals.empty? %>

<%= t("legislation.processes.proposals.empty_proposals") %>

          <% else %>
            <%= render @proposals %>
          <% end %>

        <% if @process.proposals_phase.open? %>

<%= link_to t("proposals.index.start_proposal"), new_legislation_process_proposal_path(@process), class: 'button expanded' %>

        <% end %>
        <%= render 'legislation/proposals/categories', taggable: @process %>

Reduce differences in custom proposals view

We were using `@process.proposals` in some places and `@proposals` in
some other places. Using `@proposals` makes more sense since we filter
them.

And using `t(.empty_proposals)` IMHO is a bit dangerous because we'd
need to change the locale files if we move the code to a partial or
rename the file.


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.

##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.

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 the letter for you.

##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.

Add appointment link for explanatory letter


<% wrap_layout :layout do %>

<%= date %>

<%= title %>

<%= topic_list %>

    <% if soundcloud_id %>

        <iframe
          width="100%"
          height="450"
          scrolling="no"
          frameborder="no"
          src=<%= big_soundcloud_player %>>

    <% end %>

    <% if interviewee %>

Other episodes with <a href="/tags/<%= dasherize(interviewee) %>.html"><%= interviewee %></a

    <% end %>

    <%= current_article.body %>

<% end %>

<% wrap_layout :layout do %>

<%= date %>

<%= title %>

<%= topic_list %>

    <% if soundcloud_id %>

        <iframe
          width="100%"
          height="450"
          scrolling="no"
          frameborder="no"
          src=<%= big_soundcloud_player %>>

    <% end %>

    <% if interviewee %>

Other Episodes

      <a class='other-episodes' href="/tags/<%= dasherize(interviewee) %>.html"><%= interviewee %>
    <% end %>

    <%= current_article.body %>

<% end %>

Rearrange other episodes link on blog detail page


The [Buildkite Elastic CI Stack](https://github.com/buildkite/elastic-ci-stack-for-aws)
gives you a private, autoscaling Buildkite Agent cluster. Use it to parallelize
legacy tests across hundreds of nodes, run tests and deployments for all your
Linux-based services and apps, or run AWS ops tasks.

The latest build of the stack template can be launched in your AWS account with
the following button:

Stop the image popping, and prevent linked image borders


<%= @language.name %>

Resources:

  <%= render partial: "/resources/display_resources", collection: @language.resources, as: :resource %>

<%= button_to "Delete #{@language.name}", language_path(@language), method: "delete" %>

<%= @language.name %>

<%= @language.description %>

Resources:

  <%= render partial: "/resources/display_resources", collection: @language.resources, as: :resource %>

<%= button_to "Delete #{@language.name}", language_path(@language), method: "delete" %>

Add delete button to language show page.


# Required nginx configuration
server {
  listen  80;
  server_name <%= @domains.split(',').map{|x| "*.#{x.strip}"}.join(" ") %>;
  location / {
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_redirect off;
    proxy_pass http://localhost:<%= @http_port%>; # The real pow port
  }
}

# Required nginx configuration
server {
  listen  80;
  server_name <%= @domains.split(',').map{|x| "*.#{x.strip}"}.join(" ") %>;
  location / {
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Port $server_port;
    proxy_redirect off;
    proxy_pass http://localhost:<%= @http_port%>; # The real pow port
  }
}

Set X-Forwarded-Port header to fix rack middleware

Rack middleware currently generates incorrect URLs when serving an app
through pow with this module. During a request to `http://myapp.pow`,
calling `Rack::Request#url` produces `http://myapp.pow:30559`.

Rack is incorrectly using the port that pow is listening for proxied
connections on. This header tells rack what the original port that the
end user connected to was, which lets it generate the right URLs.


<% content_for :page_title, title %>
<%= breadcrumb(hits.first || site.default_host.hits.build) %>

<%= title %>

<%= render partial: 'hits_tabs', locals: { active: active } %>

<%= pluralize(number_with_delimiter(hits.total_count, :delimiter => ','), 'hit', 'hits') %>

<%= paginate hits %>

<% if hits.any? %>
  <%= render partial: 'hits_table', locals: { hits: hits } %>
<% else %>

    <%= no_content_message %>

<% end %>

<%= paginate hits %>

<% content_for :page_title, title %>
<%= breadcrumb(hits.first || site.default_host.hits.build) %>

<%= title %>

<%= render partial: 'hits_tabs', locals: { active: active } %>

<%= pluralize(number_with_delimiter(hits.total_count, :delimiter => ','), 'hit', 'hits') %>

<%= paginate hits %>

<% if hits.total_count > 0 # already eval'd above, saves a DB call with #any? %>
  <%= render partial: 'hits_table', locals: { hits: hits } %>
<% else %>

    <%= no_content_message %>

<% end %>

<%= paginate hits %>

Save a DB call on "all hits" index

Save a DB call on "all hits" index


Join the Party!

  <%= form_for @user do |f| %>
    <%= f.text_field :picture_url, placeholder: "picture url" %>

    <%= f.text_field :bio, placeholder: "about you" %>

    <%= f.text_field :topic1, placeholder: "preferred topic 1" %>

    <%= f.text_field :topic2, placeholder: "preferred topic 2" %>

    <%= f.text_field :topic3, placeholder: "preferred topic 3" %>

    <%= f.submit "Edit profile!", class: "button" %>
  <% end %>

Copy changes from another branch

Copy changes from another branch


<%= @user.name %>'s Profile

Current Savings: $<%= @user.savings.total_savings %>

<%= link_to "Add savings", new_saving_path %>

<%= link_to "Add a new purchase", new_purchase_path %>

Add purchase link to profile page

Add purchase link to profile page


---
pageable: true
per_page: 12
---

Articles tagged '<%= tagname %>'

<% if paginate && num_pages > 1 %>

Page <%= page_number %> of <%= num_pages %>

  <% if prev_page %>

<%= link_to 'Previous page', prev_page %>

  <% end %>
<% end %>

  <% page_articles.each_with_index do |article, i| %>

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

  <% end %>

<% if paginate %>
  <% if next_page %>

<%= link_to 'Next page', next_page %>

  <% end %>
<% end %>

---
pageable: true
per_page: 12
---

Articles tagged '<%= tagname %>'

  <% page_articles.each_with_index do |article, i| %>

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

  <% end %>

<% if paginate && num_pages > 1 %>

Page <%= page_number %> of <%= num_pages %>

  <% if prev_page %>

<%= link_to 'Previous page', prev_page %>

  <% end %>
<% end %>

<% if paginate %>
  <% if next_page %>

<%= link_to 'Next page', next_page %>

  <% end %>
<% end %>

Rearrange pagination links for tag lists


# ************************************
# Vhost template in module nagios
# Managed by Puppet
# ************************************

<VirtualHost <%= @wsgi_vhost_listen_ip %>:<%= @http_port %>>
  ServerName nagios
  DocumentRoot "/usr/share/nagios3/htdocs"

  # WSGI implementation for the process_service_check command
  SetEnv NAGIOS_CMD_FILE <%= @nagios_command_file %>
  WSGIScriptAlias <%= @wsgi_process_service_checks_location %> <%= @wsgi_process_service_checks_script %>
  WSGIDaemonProcess nagios_process_service_checks user=nagios group=nagios processes=<%= @wsgi_processes %> threads=<%= @wsgi_threads %> display-name='%{GROUP}' maximum-requests=10000
  WSGIProcessGroup nagios_process_service_checks
  <Location <%= @wsgi_process_service_checks_location %>>
     AuthName "Nagios Access"
     AuthType Basic
     AuthUserFile <%= @cgi_htpasswd_file %>
     require valid-user
  </Location>

  ErrorLog "/var/log/apache2/nagios_wsgi_error.log"
  ServerSignature Off
  CustomLog "/var/log/apache2/nagios_wsgi_access.log" combined
</VirtualHost>

# ************************************
# Vhost template in module nagios
# Managed by Puppet
# ************************************

<VirtualHost <%= @wsgi_vhost_listen_ip %>:<%= @http_port %>>
  ServerName nagios

  # Disable directory indexes
  Options -Indexes
  <Directory />
    Options FollowSymLinks
    AllowOverride None
  </Directory>

  # WSGI implementation for the process_service_check command
  SetEnv NAGIOS_CMD_FILE <%= @nagios_command_file %>
  WSGIScriptAlias <%= @wsgi_process_service_checks_location %> <%= @wsgi_process_service_checks_script %>
  WSGIDaemonProcess nagios_process_service_checks user=nagios group=nagios processes=<%= @wsgi_processes %> threads=<%= @wsgi_threads %> display-name='%{GROUP}' maximum-requests=10000
  WSGIProcessGroup nagios_process_service_checks
  <Location <%= @wsgi_process_service_checks_location %>>
     AuthName "Nagios Access"
     AuthType Basic
     AuthUserFile <%= @cgi_htpasswd_file %>
     require valid-user
  </Location>

  ErrorLog "/var/log/apache2/nagios_wsgi_error.log"
  ServerSignature Off
  CustomLog "/var/log/apache2/nagios_wsgi_access.log" combined
</VirtualHost>

Disable Apache directory indexes for WSGI vhost

Change-Id: Id0402e56dd877da99b9d441b0ae9f979157c09e2


<% if @logconfig && @logconfig.keys.length > 0 %>
<%
_default_level     = 'INFO'
_default_appenders = ['Console']
_default_pattern   = '[%-5p] %m%n'
_default_target    = 'System.out'
_default_file      = 'jetty.log'

_loglevel  = @logconfig.fetch(:level, _default_level)
_appenders = @logconfig.fetch(:appenders, _default_appenders.join(','))
_pattern   = @logconfig.fetch(:pattern, _default_pattern)
_target    = @logconfig.fetch(:target, _default_target)
_file      = @logconfig.fetch(:file, _default_file)
%>
log4j.rootLogger=<%= _loglevel %>, <%= _appenders %>

log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.target=<%= _target %>
log4j.appender.Console.layout.ConversionPattern=<%= _pattern %>

log4j.appender.File=org.apache.log4j.FileAppender
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=<%= _pattern %>
log4j.appender.File.File=<%= _file %>
log4j.appender.File.append=true
<% end %>

<% if @logconfig && @logconfig.keys.length > 0 %>
<%
_default_level     = 'INFO'
_default_appenders = ['Console']
_default_pattern   = '[%-5p] %m%n'
_default_file      = 'jetty.log'

_loglevel  = @logconfig.fetch(:level,     @logconfig.fetch('level', _default_level))
_appenders = @logconfig.fetch(:appenders, @logconfig.fetch('appenders', _default_appenders.join(',')))
_pattern   = @logconfig.fetch(:pattern,   @logconfig.fetch('pattern', _default_pattern))
_target    = @logconfig.fetch(:target,    @logconfig.fetch('target', nil))
_file      = @logconfig.fetch(:file,      @logconfig.fetch('file', _default_file))
%>
log4j.rootLogger=<%= _loglevel %>, <%= _appenders %>
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
<% if _target %>
log4j.appender.Console.target=<%= _target %>
<% end %>
log4j.appender.Console.layout.ConversionPattern=<%= _pattern %>
log4j.appender.File=org.apache.log4j.FileAppender
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=<%= _pattern %>
log4j.appender.File.File=<%= _file %>
log4j.appender.File.append=true
<% end %>

Access the data with symbols or strings keys


        <%= render '/shared/enrollments_as_csv' %>

<<<<<<< HEAD
    <% @enrollments.each do |enrollment| %>
      <% if enrollment.student %>

<%= enrollment.section.name %>

<%= enrollment.section.code %>

=======
    <% master_order(@enrollments).each do |enrollment| %>
    <% if enrollment.student %>

<%= enrollment.section.name %>

<%= enrollment.section.code %>

>>>>>>> master

<%= enrollment.student.id_number %>

<%= enrollment.student.last_name %>

<%= enrollment.student.first_name %>

<%= enrollment.student.email %>

<%= enrollment.student.grade_level %>

      <% end %>
    <% end %>

        <%= render '/shared/enrollments_as_csv' %>

    <% @enrollments.each do |enrollment| %>
      <% if enrollment.student %>

<%= enrollment.section.name %>

<%= enrollment.section.code %>

<%= enrollment.student.id_number %>

<%= enrollment.student.last_name %>

<%= enrollment.student.first_name %>

<%= enrollment.student.email %>

<%= enrollment.student.grade_level %>

      <% end %>
    <% end %>

Fix remaining file from merge conflict

Fix remaining file from merge conflict


$('<%= "#answer_#{@answer.id}"%>').replaceWith(
    '<%= escape_javascript(render partial: 'course/assessment/answer/answer', object: @new_answer) %>'
);

<% if @assessment.autograded? && next_unanswered_question.nil? %>
  $('input.finalise').first().show();
<% end %>

$('.expected').shorten({
  'showChars': 140,
  'moreText': I18n.t('common.show_more'),
  'lessText': I18n.t('common.show_less')
});

$('textarea.code').ace();

Initialize ace editor on answer reload.

Initialize ace editor on answer reload.


<%= form_for [@student, @goal] do |f| %>
  <fieldset>
    <%= f.label :title %>
    <%= f.text_field :title %>
  </fieldset>

  <fieldset>
    <%= f.label :description %>
    <%= f.cktext_area :description %>
  </fieldset>

  <% if @parent && @parent.start && @parent.end %>
    The parent goal duration is <%= parent.expanded_date_range %>.
  <% end %>

  <fieldset>
    <%= f.label :start, "Start Date" %>
    <%= f.text_field :start, class: "datepicker" %>
  </fieldset>

  <fieldset>
    <%= f.label :end, "End Date" %>
    <%= f.text_field :end, class: "datepicker" %>
  </fieldset>

  <%= hidden_field_tag :parent_id, params[:parent_id] %>

  <%= f.submit "Save", class: "btn btn-success" %>
<% end %>

<%= form_for [@student, @goal] do |f| %>
  <fieldset>
    <%= f.label :title %>
    <%= f.text_field :title %>
  </fieldset>

  <fieldset>
    <%= f.label :description %>
    <%= f.cktext_area :description %>
  </fieldset>

  <% if @parent && @parent.start && @parent.end %>
    The parent goal duration is <%= parent.expanded_date_range %>.
  <% end %>

  <fieldset>
    <%= f.label :start, "Start Date" %>
    <%= f.text_field :start, value: @goal.start.strftime("%b %-d, %Y"), class: "datepicker" %>
  </fieldset>

  <fieldset>
    <%= f.label :end, "End Date" %>
    <%= f.text_field :end, value: @goal.end.strftime("%b %-d, %Y"), class: "datepicker" %>
  </fieldset>

  <%= hidden_field_tag :parent_id, params[:parent_id] %>

  <%= f.submit "Save", class: "btn btn-success" %>
<% end %>

Fix date format while editing a goal.

Fix date format while editing a goal.


<%= form_for(@post, url: posts_path, as: :internal_post) do |f| %>
  <% if @post.errors.any? %>

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

      <% @post.errors.full_messages.each do |msg| %>

<%= msg %>

      <% end %>

  <% end %>

    <%= f.label :title %>
    <%= f.text_field :title, class: 'form-control input-lg' %>

    <%= f.label :body_markdown %>
    <%= f.text_area :body_markdown, class: 'form-control', rows: 5 %>

    <%= f.label :tags_string, "Tags" %>
    <%= f.text_field :tags_string, class: 'form-control' %>

    <%= f.submit nil, class: 'btn btn-default' %>
<% end %>

<%= form_for(@post, url: (@post.new_record? ? posts_path : post_path(@post)), as: :internal_post) do |f| %>
  <% if @post.errors.any? %>

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

      <% @post.errors.full_messages.each do |msg| %>

<%= msg %>

      <% end %>

  <% end %>

    <%= f.label :title %>
    <%= f.text_field :title, class: 'form-control input-lg' %>

    <%= f.label :body_markdown %>
    <%= f.text_area :body_markdown, class: 'form-control', rows: 5 %>

    <%= f.label :tags_string, "Tags" %>
    <%= f.text_field :tags_string, class: 'form-control' %>

    <%= f.submit nil, class: 'btn btn-default' %>
<% end %>

Fix bug in url for edit form

Fix bug in url for edit form


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

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

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

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :title , class: "control-label"%>

    <%= f.text_field :title, class: "form-control" %>

    <%= f.label :content , class: "control-label"%>

    <%= f.text_area :content, class: "form-control" %>

    <%= f.submit "Submit", class: "btn btn-default btn-primary" %>

<% end %>

Update view partial _form posts

Update view partial _form posts


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

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

[Make an appointment at the embassy in Lima](https://www.book-consular-appointment.service.gov.uk/TimeSelection?location=125&service=10). You’ll need to have been in Peru for at least 7 full days before your appointment.

##What documents you’ll need

At the appointment, you and your partner will both need to bring:

- proof of residence, such as an employer’s letter or a bank statement
- your passport

If either of you have been divorced, widowed or in a civil partnership before, you’ll also need either:

- a [decree absolute or final order](/copy-decree-absolute-final-order)
- the [death certificate](/order-copy-birth-death-marriage-certificate) for a deceased husband, wife or civil partner

##What you need to do

At the appointment, you and your partner will need to sign a declaration that you’re legally entitled to marry or enter into a civil partnership.

The embassy will then give you a notice of registration. Once you've paid the registration fee, the notice will be displayed publicly for 14 days.

As long as nobody raises an objection, you can then 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 at the embassy. The witnesses will need to bring a photo ID, such as a passport or a 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.

##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.

Update other ceremony, local partner 1

Update other ceremony, local partner 1


<% if peek_enabled? %>
<div id="peek" class="<%= Peek.env %><%= ' disabled' if cookies[:peek] == 'false' %>">

    <% Peek.views.each do |view| %>
      <div id="<%= view.dom_id %>" class="view">
        <%= render view.partial_path, :view => view %>

    <% end %>

<% end %>

<% if peek_enabled? %>
<div id="peek" data-request-id="<%= Peek.request_id %>" class="<%= Peek.env %><%= ' disabled' if cookies[:peek] == 'false' %>">

    <% Peek.views.each do |view| %>
      <div id="<%= view.dom_id %>" class="view">
        <%= render view.partial_path, :view => view %>

    <% end %>

<% end %>

Insert the request id into the peek div

Insert the request id into the peek div


<%= @question.title %>

<%= @question.body %>

  <a href="/questions/<%= @question.id %>/edit">Edit Question

Answers:

<% if @question.answers %>

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

<%= answer.text %>

  <% end %>

<% end %>

<% if @errors %>

Errors:

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

<%= error %>

    <% end %>

<% end %>

<form method="POST" action="/questions/<%= @question.id %>/answers/new">
<input type = "hidden" name = "answer[question_id]" value = "<%= @question.id %>">
<textarea rows = '4' cols = '50' name="answer[text]" placeholder = 'Write your answer here'></textarea>

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

<%= @question.title %>

<%= @question.body %>

  <a href="/questions/<%= @question.id %>/edit">Edit Question

Answers:

<% if @question.answers %>

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

<%= answer.text %>

    <%= answer.user.username %>

    <a href="/answers/<%= answer.id %>/edit">Edit
    <form method="POST" action="/answers/<%= answer.id %>">
      <input type="hidden" name="_method" value="delete">
      <button type="submit">Delete</button>
    </form>

  <% end %>

<% end %>

<%= erb :_errors %>

<form method="POST" action="/questions/<%= @question.id %>/answers/new">
<input type = "hidden" name = "answer[question_id]" value = "<%= @question.id %>">
<textarea rows = '4' cols = '50' name="answer[text]" placeholder = 'Write your answer here'></textarea>

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

Add links for username, editing, deleting and refactor errors


<%= notice %>

Advancements

          User

        <% @advancements.each do |advancement| %>

          <%= advancement.user.name %>
          <%= link_to 'Show', advancement %>
          <%= link_to 'Edit', edit_advancement_path(advancement) %>
          <%= link_to 'Destroy', advancement, method: :delete, data: { confirm: 'Are you sure?' } %>

        <% end %>

  <%= link_to 'Create Direct Advancement', advancements_path(current_user.id), method: :post, class: "btn btn-success" %>
  <%= link_to 'Create Advancement', new_advancement_path, class: "btn btn-success" %>

<%= notice %>

Advancements

          User

        <% @advancements.each do |advancement| %>

          <%= advancement.user.name %>
          <%= link_to 'Show', advancement %>
          <%= link_to 'Edit', edit_advancement_path(advancement) %>
          <%= link_to 'Destroy', advancement, method: :delete, data: { confirm: 'Are you sure?' } %>

        <% end %>

  <% if user_signed_in? %>
  <%= link_to 'Create Direct Advancement', advancements_path(@user), method: :post, class: "btn btn-success create-advancement" %>
  <%= link_to 'Create Advancement', new_advancement_path, class: "btn btn-success" %>
  <% end %>

Add button logic based on signed_in

Add button logic based on signed_in


<%= form_tag do %>

    <%= label_tag :username %>
    <%= text_field_tag :username %>

    <%= label_tag :password %>
    <%= text_field_tag :password %>

  <%= hidden_field_tag :lt, @lt %>
  <%= hidden_field_tag :service, @service %>

  <%= submit_tag "Login" %>
<% end %>

<%= form_tag do %>

    <%= label_tag :username %>
    <%= text_field_tag :username %>

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

  <%= hidden_field_tag :lt, @lt %>
  <%= hidden_field_tag :service, @service %>

  <%= submit_tag "Login" %>
<% end %>

Set password field to actually be a password field


$C
**Department for Work and Pensions**
Telephone: 0345 605 7064
Telephone (Welsh): 0345 605 7066
Textphone: 0345 608 8551
[Find out about call charges](/call-charges)
$C

$C
**Department for Work and Pensions**\\
Telephone: 0345 605 7064\\
Telephone (Welsh): 0345 605 7066\\
Textphone: 0345 608 8551\\
[Find out about call charges](/call-charges)
$C

Update content style to list telephone numbers

Inside $C blocks, govspeak fails to respect content line brakes. Adding \\ to end of each line emits a trailing <br>.


Sign Up

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

        <%= f.label :email %>

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

        <%= f.label :password %>
        <% if @minimum_password_length %>
        (<%= @minimum_password_length %> characters minimum)
        <% end %>

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

        <%= f.label :password_confirmation %>

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

        <%= f.submit "Sign up", class: "btn btn-primary btn-block btn-lg" %>

    <% end %>

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

Remove specific styling on new user page


Remove some default rules and allow them to be explicitly configured


Movie Show Page!

<%= link_to "Edit Movie", edit_movie_path %>
<%= link_to "Delete Movie", movie_path, method: :delete, data: {confirm: "Are you sure?"} %>

<%= @movie.title %>

synopsis:
<%= @movie.synopsis.truncate(100, separator: ' ') %>

release date:
<%= @movie.release_date %>

Reviews:
<% @movie.reviews.each do |review| %>

<%= link_to "#{review.title}", movie_review_path(@movie, review) %>

<%= review.content.truncate(75, separator: ' ') %>

    <% end %>

Movie Show Page!

<%= link_to "Edit Movie", edit_movie_path %>
<%= link_to "Delete Movie", movie_path, method: :delete, data: {confirm: "Are you sure?"} %>

<%= @movie.title %>

synopsis:
<%= @movie.synopsis.truncate(100, separator: ' ') %>

release date:
<%= @movie.release_date %>

Reviews:
<% @movie.reviews.each do |review| %>

<%= link_to "#{review.title}", movie_review_path(@movie, review) %>

<%= review.content.truncate(75, separator: ' ') %>

<%= link_to "#{review.user.username}", user_path %>

    <% end %>

Add reviewer to the movie show page with link to user show page


PUL Bibliographic Data Web Service

(AKA: “MARC Liberation”,
  “Child of getvoyrec”,
  “The Fat Pipe”)

Alma

By Alma ID...

<%= render 'pages/bib_forms' %>

PUL Bibliographic Data Web Service

(AKA: “MARC Liberation”,
  “Child of getvoyrec”,
  “The Fat Pipe”)

By Alma ID...

<%= render 'pages/bib_forms' %>

Remove Alma header from index page

Remove Alma header from index page


<li id="<%= todo.dom_id %>" class="<%=todo.css_classes%>">
  <%= hidden_field_tag("id", todo.id) %>
  <%= hidden_field_tag("task_id", todo.task_id) %>
  <%= hidden_field_tag("todo[position]", todo.position)%>
  <%= todo_open_close_check_box(todo) %>

    <%=h todo.name %>

    <%= text_field_tag("todo[name]", todo.name) %>
    <%= javascript_tag("addTodoKeyListener(#{ todo.id }, #{ @task.id })") %>
    <%= link_to_function("Cancel", "toggleTodoEdit(this)") %>

  <% if todo.done? %>
    <%=h "[#{ formatted_datetime_for_current_user(todo.completed_at) }]" %>
    <%=h "[#{ todo.completed_by_user.name }]" if todo.completed_by_user %>
  <% else %>

    <%= link_to_function(image_tag("edit.png"), "toggleTodoEdit(this)") %>
  <% end %>

  <%= delete_todo_link(todo) %>

<li id="<%= todo.dom_id %>" class="<%=todo.css_classes%>">
  <%= hidden_field_tag("id", todo.id) %>
  <%= hidden_field_tag("task_id", todo.task_id) %>
  <%= hidden_field_tag("todo[position]", todo.position)%>
  <%= todo_open_close_check_box(todo) %>

    <%=h todo.name %>

    <%= text_field_tag("todo[name]", todo.name) %>
    <%= javascript_tag("addTodoKeyListener(#{ todo.id }, #{ @task.id })") %>
    <%= link_to_function("Cancel", "toggleTodoEdit(this)") %>

  <% if todo.done? %>
    <%=h "[#{ formatted_datetime_for_current_user(tz.utc_to_local(todo.completed_at)) }]" %>
    <%=h "[#{ todo.completed_by_user.name }]" if todo.completed_by_user %>
  <% else %>

    <%= link_to_function(image_tag("edit.png"), "toggleTodoEdit(this)") %>
  <% end %>

  <%= delete_todo_link(todo) %>

Fix time in completed todo. Now user sees in completed todo his local time, not utc.


	<% if current_user.present? %>
		<% content_for :headJavascript do %>

		<% end %>
			<% if @is_locked %>

hueIT is locked

			<% elsif ($hue_not_found || false) %>

Could not find Hue lights

					All data below is mocked for development purposes

			<% end %>

					<%= render 'form' %>

	<% end %>

	<% if current_user.present? %>
		<% content_for :headJavascript do %>

		<% end %>
			<% if @is_locked %>

hueIT is locked

			<% elsif ($hue_not_found || false) %>

Could not find Hue lights

					All data below is mocked for development purposes. Obviously requests to change the lights won't work.

			<% end %>

					<%= render 'form' %>

	<% end %>

Update descriptive text if the bulbs can't be found


  <% organisms.each do |org| %>

<%= org.english_name %>

Iconic Taxon: <%= org.iconic_taxon_name %>

Iconic Taxon Rank: <%= org.iconic_taxon_rank %>

Taxon: <%= org.taxon_name %>

Taxon Rank: <%= org.taxon_rank %>

---------------------------

  <% end %>

  <% taxon.each do |org| %>

<%= org.english_name %>

Iconic Taxon: <%= org.iconic_taxon_name %>

Iconic Taxon Rank: <%= org.iconic_taxon_rank %>

Taxon: <%= org.taxon_name %>

Taxon Rank: <%= org.taxon_rank %>

  <% end %>

Update partial to display each organism object's information


    <% if @local_government_area.has_import? %>

Detailed Reports

    <% else %>

No Data Imported

    <% end %>
    <%=
      render(
        :collection => @local_government_area.local_government_area_record_import_logs.successful.limit(5),
        :partial => 'local_government_area_record_import_logs/link'
      ) || 'No imports have been performed for this LGA'
    %>

Import Data File

    <%= form_tag(uploads_local_government_area_path(@local_government_area),
                  { :multipart => true }) do %>
      <input id="data_file" type="file" name="data_file">
      <button type="submit" class="secondary radius button">Upload data</button>
    <% end %>

    <% if @local_government_area.has_import? %>

Detailed Reports

    <% else %>

No Data Imported

    <% end %>
    <%=
      render(
        :collection => @local_government_area.local_government_area_record_import_logs.successful.limit(5),
        :partial => 'local_government_area_record_import_logs/link'
      ) || 'No imports have been performed for this LGA'
    %>

Import Data File

      Uploading a local government area record file assumes that the file name
      is correct and does not contain the characters "_LEP".

      If the file upload contains "_LEP" then it will be treated as a Standard Instrumentation Zone mapping upload.

    <%= form_tag(uploads_local_government_area_path(@local_government_area),
                  { :multipart => true }) do %>
      <input id="data_file" type="file" name="data_file">
      <button type="submit" class="secondary radius button">Upload data</button>
    <% end %>

Add message to the upload page

Add message to the upload page


<% page_title "Users" %>

      Name
      <% if admin? %>
        Actions
      <% end %>

    <% @users.each do |user| -%>
    <tr class="<%= cycle('odd', 'even') %>">

        <% if admin? && user.admin? %>
          <% if user.admin? %>
            (admin)
          <% end %>
          <% if user.selector? %>
            (selector)
          <% end %>
        <% end %>
        <%= link_to(user.label, user_path(user)) %><%= (", " + user.affiliation) unless user.affiliation.blank? %>

      <% if admin? %>

          <%= link_to "Edit", edit_user_path(user), :class => "editable" %>
          <%= link_to "Delete...", user, :method => :delete, :data => { :confirm => "Delete user #{h user.label}?" }, :class => "deletable" %>

      <% end %>

    <% end -%>

<% page_title "Users" %>

      Name
      <% if admin? %>
        Actions
      <% end %>

    <% @users.each do |user| -%>
    <tr class="<%= cycle('odd', 'even') %>">

        <% if admin? %>
          <% if user.admin? %>
            (admin)
          <% end %>
          <% if user.selector? %>
            (selector)
          <% end %>
        <% end %>
        <%= link_to(user.label, user_path(user)) %><%= (", " + user.affiliation) unless user.affiliation.blank? %>

      <% if admin? %>

          <%= link_to "Edit", edit_user_path(user), :class => "editable" %>
          <%= link_to "Delete...", user, :method => :delete, :data => { :confirm => "Delete user #{h user.label}?" }, :class => "deletable" %>

      <% end %>

    <% end -%>

Fix (selector) label for non-admin selectors


  skip_before_filter :verify_authenticity_token, :if => Proc.new {|c| c.request.format == 'application/json' }

  # PUT /<%= @api_path %>.json
  def create_by_keys
    @<%= @model_name %> = <%= @class_name %>.get_by_params(params)

    respond_to do |format|
      if @<%= @model_name %> != nil
        format.json { render action: 'show', status: :created, location: @<%= @model_name %>}
      else
        format.json { render json: @<%= @model_name %>.errors, status: :unprocessable_entity }
      end
    end
  end

  # POST /<%= @api_path %>.json
  def update_by_keys
    @<%= @model_name %> = <%= @class_name %>.get_by_params(params)

    respond_to do |format|
      if @<%= @model_name %>.update_by_params(params)
        format.json { render action: 'show', status: :updated, location: @<%= @model_name %>}
      else
        format.json { render json: @<%= @model_name %>.errors, status: :unprocessable_entity }
      end
    end
  end

  # DELETE /<%= @api_path %>.json
  def destroy_by_keys
    @<%= @model_name %> = <%= @class_name %>.find_by_params(params)
    if @<%= @model_name %> != nil
      @<%= @model_name %>.destroy
    end

    respond_to do |format|
      format.json { head :no_content }
    end
  end

  skip_before_filter :verify_authenticity_token, :if => Proc.new {|c| c.request.format == 'application/json' }

  # PUT /<%= @api_path %>.json
  def create_by_keys
    @<%= @model_name %> = <%= @class_name %>.get_by_params(params)

    respond_to do |format|
      if @<%= @model_name %> != nil
        format.json { render action: 'show', status: :created, location: @<%= @model_name %>}
      else
        format.json { render json: @<%= @model_name %>.errors, status: :unprocessable_entity }
      end
    end
  end

  # POST /<%= @api_path %>.json
  def update_by_keys
    @<%= @model_name %> = <%= @class_name %>.get_by_params(params)

    respond_to do |format|
      if @<%= @model_name %>.update_by_params(params)
        format.json { render action: 'show', status: :created, location: @<%= @model_name %>}
      else
        format.json { render json: @<%= @model_name %>.errors, status: :unprocessable_entity }
      end
    end
  end

  # DELETE /<%= @api_path %>.json
  def destroy_by_keys
    @<%= @model_name %> = <%= @class_name %>.find_by_params(params)
    if @<%= @model_name %> != nil
      @<%= @model_name %>.destroy
    end

    respond_to do |format|
      format.json { head :no_content }
    end
  end

Fix http status from controller.

Fix http status from controller.


    <% if logged_in? %>
      <% @answer = answer %>
      <%= render partial: "votes/vote_buttons", locals: {answer: @answer, votable_type: "Answer", votable_id: @answer.id} %>
    <% else %>
      points: <%= @answer.vote_count %>
    <% end %>

    <% if logged_in? && @qansweruser_id == current_user.id || current_user.is_admin %>
      <%= link_to_if(current_user, "Edit", { controller: "answers", action: "edit", question_id: @question.id }) %>
      <%= link_to_if(current_user, "Delete", { controller: "answers", action: "destroy", question_id: @question.id, id: @answer.id }) %>
    <% end %>

        <%= @answer.updated_at %>

        <%= @answer.body %>

    <% if logged_in? %>
      <% @answer = answer %>
      <%= render partial: "votes/vote_buttons", locals: {answer: @answer, votable_type: "Answer", votable_id: @answer.id} %>
    <% else %>
      points: <%= @answer.vote_count %>
    <% end %>

    <% if logged_in? && @answer.user_id == current_user.id || current_user.is_admin %>
      <%= link_to_if(current_user, "Edit", { controller: "answers", action: "edit", question_id: @question.id }) %>
      <%= link_to_if(current_user, "Delete", { controller: "answers", action: "destroy", question_id: @question.id, id: @answer.id }) %>
    <% end %>

        <%= @answer.updated_at %>

        <%= @answer.body %>

Fix typo in _show partial.

Fix typo in _show partial.


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

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

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

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

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

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

Add whitespace divs between each section


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

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

[Make an appointment at the embassy in Lima](https://www.book-consular-appointment.service.gov.uk/TimeSelection?location=125&service=10). You’ll need to have been in Peru for at least 7 full days before your appointment.

##What documents you’ll need

At the appointment, you and your partner will both need to bring:

- proof of residence, such as an employer’s letter or a bank statement
- your passport

If either of you have been divorced, widowed or in a civil partnership before, you’ll also need either:

- a [decree absolute or final order](/copy-decree-absolute-final-order)
- the [death certificate](/order-copy-birth-death-marriage-certificate) for a deceased husband, wife or civil partner

##What you need to do

At the appointment, you and your partner will need to sign a declaration that you’re legally entitled to marry or enter into a civil partnership.

The embassy will then give you a notice of registration. Once you've paid the registration fee, the notice will be displayed publicly for 14 days.

As long as nobody raises an objection, you can then 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 at the embassy. The witnesses will need to bring a photo ID, such as a passport or a 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.

##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.

Update UK ceremony, local partner 1

Update UK ceremony, local partner 1


<td class="dashboard-<%=column.id%>" id="<%='drop-'+group.id+'-'+column.id%>">
<% if issues.length > 0 -%>

    <%= l(:label_x_issues, :count => issues.length) %>

<% end -%>
<% issues.each do |issue| -%>
  <div class="dashboard-issue drag-<%=group.id%> hascontextmenu" id="issue-<%=issue.id%>">
<%= render :partial => DashboardController::VIEW_MODES[@view],
           :locals => {
           :issue => issue
    } %>

<% end -%>

<td class="dashboard-<%=column.id%>" id="<%='drop-'+group.id+'-'+column.id%>">
<% if issues.length > 0 -%>

    <%= l(:label_x_issues, :count => issues.length) %>

<% end -%>
<% issues.each do |issue| -%>
  <div class="dashboard-issue drag-<%=group.id%>" id="issue-<%=issue.id%>">
<%= render :partial => DashboardController::VIEW_MODES[@view],
           :locals => {
           :issue => issue
    } %>

<% end -%>

Remove context menu css class.

Remove context menu css class.


<% content_for :title do %>
  Find coronavirus financial support for your business
<% end %>

<% content_for :body do %>
  Coronavirus (COVID-19) support is available to employers and the
  self-employed. You may be eligible for loans, tax relief and cash grants.

  Use this business support finder to see what support is available for you
  and your business.
<% end %>

<% content_for :title do %>
  Find coronavirus financial support for your business
<% end %>

<% content_for :meta_description do %>
  Coronavirus (COVID-19) support is available to employers and the
  self-employed. You may be eligible for loans, tax relief and cash grants.
<% end %>

<% content_for :body do %>
  Coronavirus (COVID-19) support is available to employers and the
  self-employed. You may be eligible for loans, tax relief and cash grants.

  Use this business support finder to see what support is available for you
  and your business.
<% end %>

Add a meta description for business coronavirus support finder


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

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

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

<% end %>

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

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

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

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

Make thumbnail of item image visible in index view


<%- topic.posts.select{ |post| !post.new_record? }.each_with_index do |post, i| %>
  <%= render :partial => post %>
<%- end %>

<%- topic.posts.select{ |post| !post.new_record? }.sort_by(&:created_at).each_with_index do |post, i| %>
  <%= render :partial => post %>
<%- end %>

Update Post Listing to Order by Date

Update Post Listing to Order by Date

List all posts in the order that they are created, more like a
traditional Discussion Board.


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

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

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

<%= msg %>

      <% end %>

  <% end %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.label :email %>

    <%= f.text_field :email %>

    <%= f.label :time_zone %>

    <%= time_zone_select 'user', 'time_zone' %>

    <%= f.submit :class => "button" %>

<% end %>

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

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

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

<%= msg %>

      <% end %>

  <% end %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.label :email %>

    <%= f.text_field :email %>

    <%= f.label :time_zone %>

    <%= time_zone_select 'user', 'time_zone', nil, :include_blank => true %>

    <%= f.label :color %>

    <%= f.text_field :color %>

    <%= f.submit :class => "button" %>

<% end %>

Include blank in time_zone_select; add color form field


<% text_for :title do %>
  <%= why_abroad_question_title %>
<% end %>

<% options(
  "tax_credits_holiday": "A holiday or business trip",
  "tax_credits_medical_treatment": "For medical treatment for yourself, your partner or your child",
  "tax_credits_death": "Because of the death of your partner, child or close family member"
) %>

<% text_for :title do %>
  <%= calculator.why_abroad_question_title %>
<% end %>

<% options(
  "tax_credits_holiday": "A holiday or business trip",
  "tax_credits_medical_treatment": "For medical treatment for yourself, your partner or your child",
  "tax_credits_death": "Because of the death of your partner, child or close family member"
) %>

Fix issue rendering uk benefits abroad flow

Adds missing reference to calculator for the why_abroad_title.


worker_processes 4;
daemon off;

events {
    worker_connections  1024;
}

http {
    sendfile    on;
    tcp_nopush  on;

    keepalive_timeout  65;

    error_log logs/error.log notice;
    access_log logs/access.log;

    index <%= ENV['INDEX_DOCUMENT'] %> index.html index.htm index.xhtml;

    # Default configuration for non-framework apps
    server {
        server_name localhost;
        listen <%= ENV['PORT'] %>;
        root <%= ENV['DOCUMENT_ROOT'] %>;

        location ~ \.php {
            # for security reasons the next line is highly encouraged
            try_files $uri =404;

            include fastcgi_params;
            fastcgi_pass unix:/tmp/php5-fpm.sock;
        }
    }

    <% if ENV['FRAMEWORK'] %>
    include <%= ENV['FRAMEWORK'] %>.conf;
    <% end %>
}

worker_processes 4;
daemon off;

events {
    worker_connections  1024;
}

http {
    sendfile    on;
    tcp_nopush  on;

    keepalive_timeout  65;

    error_log logs/error.log notice;
    access_log logs/access.log;

    index <%= ENV['INDEX_DOCUMENT'] %> index.html index.htm index.xhtml;

    # Default configuration for non-framework apps
    server {
        server_name localhost;
        listen <%= ENV['PORT'] %>;
        root <%= ENV['DOCUMENT_ROOT'] %>;

        location ~ \.php {
            # for security reasons the next line is highly encouraged
            try_files $uri =404;

            include fastcgi_params;
            fastcgi_pass unix:/tmp/php-fpm.sock;
        }
    }

    <% if ENV['FRAMEWORK'] %>
    include <%= ENV['FRAMEWORK'] %>.conf;
    <% end %>
}

Fix path to FPM socket, again

Fix path to FPM socket, again


Haskell

Installation:

  Download and install a recent Haskell Platform (GHC) for your OS from
  haskell.org/platform.

Building and running tests:

$ runhaskell bob_test.hs

Making your first Haskell module

  To create a module that can be loaded with import Bob (responseFor),
  put this code in Bob.hs:

module Bob where
    responseFor = id

Add example of how to create a Haskell module


set nonumber
set nofoldenable
if exists('+relativenumber')
  set norelativenumber
end
set hidden
<% if @options[:no_filetype] %>
argdo set filetype=txt
set filetype=txt
filetype off
<% end %>

noremap <PageUp> :bp<CR>
noremap <Left> :bp<CR>
<% if @options[:mouse_enabled] -%>
noremap <RightMouse> :bp<CR>
<% end -%>
noremap <PageDown> :bn<CR>
noremap <Right> :bn<CR>
<% if @options[:mouse_enabled] -%>
noremap <LeftMouse> :bn<CR>
<% end -%>
noremap Q :q<CR>

<% if @options[:mouse_enabled] -%>
set mouse=a

<% end -%>
<% @buffers.each do |buffer| -%>
b <%= buffer[:num] %>
<% if buffer[:code] -%>
<% buffer[:code].each do |code| -%>
<%= code[:start] %>,<%= code[:end] %>SyntaxInclude <%= code[:language] %>
<% end -%>
<% end -%>
<% buffer[:comments].each do |comment| -%>
call matchadd("Comment", "<%= comment %>")
<% end -%>
<% end -%>
b 1

set nonumber
set nofoldenable
set nocursorcolumn
set nocursorline
if exists('+relativenumber')
  set norelativenumber
end
set hidden
<% if @options[:no_filetype] %>
argdo set filetype=txt
set filetype=txt
filetype off
<% end %>

noremap <PageUp> :bp<CR>
noremap <Left> :bp<CR>
<% if @options[:mouse_enabled] -%>
noremap <RightMouse> :bp<CR>
<% end -%>
noremap <PageDown> :bn<CR>
noremap <Right> :bn<CR>
<% if @options[:mouse_enabled] -%>
noremap <LeftMouse> :bn<CR>
<% end -%>
noremap Q :q<CR>

<% if @options[:mouse_enabled] -%>
set mouse=a

<% end -%>
<% @buffers.each do |buffer| -%>
b <%= buffer[:num] %>
<% if buffer[:code] -%>
<% buffer[:code].each do |code| -%>
<%= code[:start] %>,<%= code[:end] %>SyntaxInclude <%= code[:language] %>
<% end -%>
<% end -%>
<% buffer[:comments].each do |comment| -%>
call matchadd("Comment", "<%= comment %>")
<% end -%>
<% end -%>
b 1

Remove cursor highlighting, if on

Remove cursor highlighting, if on


Add tt link to masthead

Add tt link to masthead


<!DOCTYPE html>
<html>
<head>
  <title>How much has your school been robbed?</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">

	<!-- Optional theme -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">

	<!-- Latest compiled and minified JavaScript -->
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>

  <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>How much has your school been robbed?</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">

	<!-- Optional theme -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">

	<!-- Latest compiled and minified JavaScript -->
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>

  <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

</head>
<body>

<%= yield %>

</body>
</html>

Add viewport information for mobile device better view


<%= @title %>

    <% @board.each do |member| %>

        <% url = "/metrics/#{member['metric']}" %>
        <iframe src='<%= url %>?layout=bare&<%= query_string member %>' class='embed-responsive-item' width='100%' height='100%' frameBorder='0' scrolling='no'>

    <% end %>

Set height to make rows 50% of the viewport


    <title>#randonom links</title>

#randonom links

courtesy of slurp

    <% unless @links %>
      Currently no links, you should post some in the chat.
    <% end %>

    <% @links.each do |link| %>

<%= link.user %>	<a href="<%= link.url %>"><%= link.title %>	<%= link.message %>	 <%= link.date_added %>

    <% end %>

    <title>#randonom links</title>

#randonom links

courtesy of slurp

    <% unless @links %>
      Currently no links, you should post some in the chat.
    <% end %>

    <% @links.each do |link| %>

<%= link.user %>	<a href="<%= link.url %>"><%= link.title || "Link" %>	<%= link.message %>	 <%= link.date_added %>

    <% end %>

Handle when the url has no link title

Handle when the url has no link title


Featured Petition

<%= @featured.title %>

    <%= link_to 'Learn more', petitions_path(@featured.id), class: "btn btn-success" %>

    <%= image_tag('driving.jpg') %>

Petitions Close to Threshold

<% @top_9.in_groups_of(3, false) do |petitions| %>

    <% petitions.each do |petition| %>

        <%= link_to petition.title, petitions_path(petition.id) %>

          <% percentage =  number_to_percentage((petition.signature_count.to_f / petition.signature_threshold) * 100) %>
          <div class="bar" style="width: <%="#{percentage}" %>">

        Signatures needed: <%= number_with_delimiter(petition.signatures_needed)  %>

        Signature count: <%= number_with_delimiter(petition.signature_count) %>

      <% end %>

<% end %>

Featured Petition

<%= @featured.title %>

    <%= link_to 'Learn more', petitions_path(@featured.id), class: "btn btn-success" %>

    <%= image_tag('driving.jpg') %>

Petitions Close to Threshold

<% @top_9.in_groups_of(3, false) do |petitions| %>

    <% petitions.each do |petition| %>

        <%= link_to petition.title, petitions_path(petition.id) %>

          <% percentage =  number_to_percentage((petition.signature_count.to_f / petition.signature_threshold) * 100) %>
          <div class="bar" style="width: <%="#{percentage}" %>">

        Signatures needed: <%= number_with_delimiter(petition.signatures_needed)  %>

        Signature count: <%= number_with_delimiter(petition.signature_count) %>

        Time left: <%= distance_of_time_in_words(DateTime.now, petition.deadline) %>

      <% end %>

<% end %>

Add time left to the home page

Add time left to the home page


<%= @item.name %>

    <% if is_admin? %>

<%= link_to 'Edit Item', edit_item_path %> | <%= link_to 'Delete Item', @item, method: :delete %>

    <% end %>

    <% if !@item.image.blank? %>
      <img src="<%= @item.image %>" width="500" height="400">
    <% else %>

    <%end%>

Description: <%= @item.description %>

Quantity: <%= @item.quantity %>

Price: <%= number_to_currency(@item.price)  %>

  <% if logged_in? %>
    <%= button_to "Add To Cart", method: add_to_cart %>
  <% end %>
  <% if @cart %>
  <%= @cart %>
  <% end %>

Remove empty instance of an array that was visible in item show page


User settings

      <%= render 'form' %>

User settings

      <%= render 'form' %>

Rewrite to Foundation 5 classes.

Rewrite to Foundation 5 classes.


<%- model_class = @user.class -%>

<%= @user.login %>'s profile

				Forum topics:
				<%= @user.topics.count %>

				Forum messages:
				<%= @user.messages.count %>

				Role:
				<%= @user.role.name %>

		<img class="skin" src="http://www.minecraft.net/skin/<%= @user.login %>.png"/>

<%- model_class = @user.class -%>

<%= @user.login %>'s profile

				Forum topics:
				<%= @user.topics.count %>

				Forum messages:
				<%= @user.messages.count %>

				Role:
				<%= @user.role.name %>

				Join date:
				<%= ftime(@user.created_at) %>

				Last visit:
				<%= ftime(@user.current_login_at) %>

			<% if @current_user %>
			<% if @current_user.admin? %>

				Email:
				<%= @user.email %>

				Last IP:
				<%= @user.current_login_ip %>

			<% end %>
			<% end %>

		<img class="skin" src="http://www.minecraft.net/skin/<%= @user.login %>.png"/>

Add join date, last visit, email and IP to users' profile


# managed by chef, changes will be overwritten
CHECK PROCESS sshd WITH PIDFILE /var/run/sshd.pid
  START PROGRAM "/usr/sbin/service ssh start"
  STOP PROGRAM "/usr/sbin/service ssh stop"
  # under load a check may fail intermittently, so give it a few tries before restarting
  IF FAILED PORT 22022 PROTOCOL ssh 4 TIMES WITHIN 6 CYCLES THEN RESTART

# managed by chef, changes will be overwritten
CHECK PROCESS sshd WITH PIDFILE /var/run/sshd.pid
  START PROGRAM "/usr/sbin/service ssh start"
  STOP PROGRAM "/usr/sbin/service ssh stop"
  # under load a check may fail intermittently, so give it a few tries before restarting
  IF FAILED PORT 22 PROTOCOL ssh 4 TIMES WITHIN 6 CYCLES THEN RESTART

Set ssh default port to 22

Set ssh default port to 22


<% content_for :title do %>
  Who has British nationality?
<% end %>

<% options(
  "mother": "Mother only",
  "father": "Father only",
  "mother_and_father": "Mother and father",
  "neither": "Neither"
) %>

<% content_for :body do %>
  If the British parent was born abroad, they may be a British citizen ‘by descent’. This means they may not be allowed to pass on their British nationality to a child also born abroad. [Check if the parent is a British citizen](/check-british-citizen).

<% end %>

<% content_for :title do %>
  Who has British nationality?
<% end %>

<% options(
  "mother": "Mother only",
  "father": "Father only",
  "mother_and_father": "Mother and father",
  "neither": "Neither"
) %>

<% content_for :body do %>
  If the British parent was born abroad, they may be a British citizen ‘by descent’. This means they may not be allowed to pass on their British nationality to a child also born abroad. [Check if the parent is a British citizen by descent](/check-british-citizen).

<% end %>

Update link text in register a birth question


[Unit]
Description=<%=@name%>
After=syslog.target network.target

[Service]
Type=simple
User=<%=@user%>

<% if @display %>
Environment=DISPLAY=<%=@display%>
<% end %>
ExecStart= "<%=@exec%>" <%=@args%>
KillMode=process
Restart=on-failure
RestartSec=45s

[Install]
WantedBy=multi-user.target

[Unit]
Description=<%=@name%>
After=syslog.target network.target

[Service]
Type=simple
User=<%=@user%>

<% if @display %>
Environment=DISPLAY=<%=@display%>
<% end %>
ExecStart=<%=@exec%> <%=@args%>
KillMode=process
Restart=on-failure
RestartSec=45s

[Install]
WantedBy=multi-user.target

Fix debian 8 Invalid argument exception

Fix debian 8 Invalid argument exception


<%= @user.name %> Posts

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

    <% if current_user %>
      <%= link_to image_tag("snowflake.png", class: "snowflake"), {:controller => "votes",
          :action => "create",
          :comment_id => comment.id,
          :user_id => current_user.id,
          :value => "1"},
          :method => "post" %>
    <% else %>
      <%= link_to image_tag("snowflake.png", class: "snowflake") %>
    <% end %>

    <%= comment.votes.sum(:value) %>

<%= comment.content%>

<%= comment.trail.name %> @ <%= comment.trail.mountain.name %>

<% end %>

<% if @user.comments.empty? %>

Looks like you haven't posted yet!
 Find your favorite trails and leave comments for other riders.

<% end %>

<%= link_to '← Previous Page'.html_safe, request.referer.present? ? request.referer : default_path %>

Include statement for no posts, navigation to previous page


Informatii generale
---------------------------

- Categorie: <%= @category %>
- Judetul: <%= @county %>
<% if @source_url %>- Surse: <%= @source_url %><% end %>
<% if @homepage %>- Homepage: <%= @homepage %><% end %>

Descriere
--------------

<%= @description %>

Tehnologii
---------------

<%= @technical_description %>

Cerinte sistem
---------------------

<%= @system_requirements %>

Realizatori
---------------------
<% @contestants.each do |contestant| %>
### <%= contestant.name %> ###
- Scoala: <%= contestant.school_name %>
- Clasa: <%= contestant.grade %>
- Judet: <%= contestant.county %>
- Oras: <%= contestant.city %>
<% end %>

Screenshots
------------------
<% @screenshots.each do |screenshot| %>
<img src='<%= screenshot.url%>' />
<% end %>

Informatii generale
---------------------------

- Categorie: <%= @category %>
- Judetul: <%= @county %>
<% if not @source_url.blank? %>- Surse: <%= @source_url %><% end %>
<% if not @homepage.blank? %>- Homepage: <%= @homepage %><% end %>

Descriere
--------------

<%= @description %>

Tehnologii
---------------

<%= @technical_description %>

Cerinte sistem
---------------------

<%= @system_requirements %>

Realizatori
---------------------
<% @contestants.each do |contestant| %>
### <%= contestant.name %> ###
- Scoala: <%= contestant.school_name %>
- Clasa: <%= contestant.grade %>
- Judet: <%= contestant.county %>
- Oras: <%= contestant.city %>
<% end %>

Screenshots
------------------
<% @screenshots.each do |screenshot| %>
<img src='<%= screenshot.url%>' />
<% end %>

Check source_url and homepage for blank for forum


New Rule Set

<%= link_to 'Back', rule_set_path %>

<%= form_for :rule_set, url: rule_set_path do |f| %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.label :rules %>

    <%= f.text_field :rules %>

    <%= f.label :description %>

    <%= f.text_field :description %>

    <%= f.submit %>

<% end %>

New Rule Set

<%= link_to 'Back', rule_sets_path %>

<%= form_for :rule_set, url: rule_sets_path do |f| %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.label :rules %>

    <%= f.text_field :rules %>

    <%= f.label :description %>

    <%= f.text_field :description %>

    <%= f.submit %>

<% end %>

Fix links adding new rule sets

Fix links adding new rule sets


Add new post

	<form>
		<textarea class="form-control" rows="6"></textarea>

			<button type="submit" class="btn btn-primary">Submit</button>
	</form>

Add new post

	<form action="/new" method="POST">
		<textarea class="form-control" rows="6"></textarea>

			<button type="submit" class="btn btn-primary">Submit</button>
	</form>

Add action, metoth atributes to form

Add action, metoth atributes to form


<%= simple_form_for @event do |f| %>
  <%= f.error_notification %>
  <%= f.input :title %>
  <%= f.input :description %>

  <%= f.association :category, include_blank: true, collection: Category.order(:title).map { |c| [c.title, c.id, {'data-color' => c.color}] } %>
  <%= f.input :location %>
  <%= f.association :users, label_method: :username, collection: User.approved %>
  <%= f.input :all_day %>
  <%= f.input :starts_at, {minute_step: 15, default: params[:start] ? Time.at(params[:start].to_i) : Time.now, start_year: Date.today.year} %>
  <%= f.input :ends_at, {minute_step: 15, default: (params[:start] ? Time.at(params[:start].to_i) : Time.now) + 2.hours, start_year: Date.today.year} %>
  <%= f.input :recurring_type, collection: [:weekly, :monthly, :yearly] %>
  <%= f.input :recurring_until, as: :date, include_blank: true, default: nil, start_year: Date.today.year %>
  <%= f.input :schedule_exceptions, as: :check_boxes, label_method: proc{ |d| l d, format: '%d.%m.%Y' }, collection: @event.schedule_exceptions unless @event.schedule_exceptions.empty? %>
  <%= f.button :submit %>
<% end %>

<%= simple_form_for @event do |f| %>
  <%= f.error_notification %>
  <%= f.input :title %>
  <%= f.input :description %>

  <%= f.association :category, include_blank: true, collection: Category.order(:title).map { |c| [c.title, c.id, {'data-color' => c.color}] } %>
  <%= f.input :location %>
  <%= f.association :users, label_method: :username, collection: User.approved %>
  <%= f.input :all_day %>
  <%= f.input :starts_at, {minute_step: 15, default: params[:start] ? Time.at(params[:start].to_i) : Time.now} %>
  <%= f.input :ends_at, {minute_step: 15, default: (params[:start] ? Time.at(params[:start].to_i) : Time.now) + 2.hours} %>
  <%= f.input :recurring_type, collection: [:weekly, :monthly, :yearly] %>
  <%= f.input :recurring_until, as: :date, include_blank: true, default: nil, start_year: Date.today.year %>
  <%= f.input :schedule_exceptions, as: :check_boxes, label_method: proc{ |d| l d, format: '%d.%m.%Y' }, collection: @event.schedule_exceptions unless @event.schedule_exceptions.empty? %>
  <%= f.button :submit %>
<% end %>

Allow year of event to be before current year (important when editing old events with schedule)


Merge Layer (admins only)

Merge this layer with another.

Deletes the reference of <%= pluralize @layer.maps_count,'map' -%>  from Layer <%=@layer.id %> and moves them onto the specified destination layer.

This cannot be undone!

    <%= image_tag(@layer.thumb) %>
    Layer <%=@layer.id%> : <%= link_to h(@layer.name),  layer_path(@layer) -%>

Move all <%= pluralize @layer.maps_count,'map' -%> to this layer:

<% form_for :layer, :url=> { :action=>"merge"},
  :html => {:method => :put } do |f| %>
    <%= f.hidden_field :id %>
    Destination Layer
    <%= text_field_tag :dest_id %>

    <%= submit_tag 'Merge Layer!', :confirm => "Are you sure, this cannot be undone?" %>
  <%end-%>

Add missing admin only merge template

Add missing admin only merge template


Sign Up

<%= form_for(@user) do |f| %>

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

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

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

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

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

<% end %>

Add users directory to views and create new user form


<!DOCTYPE html>
<html>
  <head>
    <title>PairBoard</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
  </head>

  <header>
    <nav>
      <ul class="nav">
        <% if logged_in? %>
          <%= link_to "Hello #{current_user.first_name}", user_path(current_user) %> |
          <%= link_to "Sign Out", session_path(current_user.id), method: :delete %>
        <% end %>
       </ul>
    </nav>
  </header>

  <body>
    <%= yield %>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title>PairBoard</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
  </head>

  <header>
    <nav>
      <%= image_tag("DevBootcamp_Logo.png") %>
      <ul class="nav">
        <% if logged_in? %>
          <%= link_to "Hello #{current_user.first_name}", user_path(current_user) %> |
          <%= link_to "Sign Out", session_path(current_user.id), method: :delete %>
        <% end %>
       </ul>
    </nav>
  </header>

  <body>
    <%= yield %>
  </body>
</html>

Add DBC banner to header

Add DBC banner to header


<!DOCTYPE html>
<html>
<head>
  <title>TransactionMappr</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <link href='http://fonts.googleapis.com/css?family=Roboto:300|Merriweather:300' rel='stylesheet' type='text/css'>
  <script src="http://fb.me/react-0.13.1.js"></script>
  <script src="http://fb.me/JSXTransformer-0.13.1.js"></script>
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>TransactionMappr</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <link href='http://fonts.googleapis.com/css?family=Roboto:300|Merriweather:300' rel='stylesheet' type='text/css'>
  <script src="http://fb.me/react-0.13.1.min.js"></script>
  <script src="http://fb.me/JSXTransformer-0.13.1.js"></script>
</head>
<body>

<%= yield %>

</body>
</html>

Use minified version of React for production