<%= presented_document.title %>

    <% if presented_document.summary %>
<%= presented_document.summary %>
<% end %>
    <% if presented_manual.hmrc? %>
      <% if presented_document.body.present? %>

          <%= render 'govuk_publishing_components/components/govspeak', {} do %>
            <%= raw(presented_document.body) %>
          <% end %>
          <%= render 'govuk_publishing_components/components/govspeak',
            content: presented_document.body %>

      <% end %>

        <% presented_document.section_groups.each do | group | %>
        <%= render 'hmrc_sections', :group => group %>
      <% end %>

      <%= render 'govuk_publishing_components/components/previous_and_next_navigation', previous_and_next_links(presented_document) %>

    <% else %>
      <% if presented_document.body.present? %>
        <div class='js-collapsible-collection subsection-collection' data-collapse-depth=<%= presented_document.collapse_depth %>>

            <%= render 'govuk_publishing_components/components/govspeak', {} do %>
              <%= raw(presented_document.body) %>
            <% end %>

      <% end %>
    <% end %>

<%= presented_document.title %>

    <% if presented_document.summary %>
<%= presented_document.summary %>
<% end %>
    <% if presented_manual.hmrc? %>
      <% if presented_document.body.present? %>

          <%= render 'govuk_publishing_components/components/govspeak', {} do %>
            <%= raw(presented_document.body) %>
          <% end %>

      <% end %>

        <% presented_document.section_groups.each do | group | %>
        <%= render 'hmrc_sections', :group => group %>
      <% end %>

      <%= render 'govuk_publishing_components/components/previous_and_next_navigation', previous_and_next_links(presented_document) %>

    <% else %>
      <% if presented_document.body.present? %>
        <div class='js-collapsible-collection subsection-collection' data-collapse-depth=<%= presented_document.collapse_depth %>>

            <%= render 'govuk_publishing_components/components/govspeak', {} do %>
              <%= raw(presented_document.body) %>
            <% end %>

      <% end %>
    <% end %>

Fix duplicated body text in manual section

Removing a extra render of the body text in the manual section.


 Your Career in Web Development Starts Here

 Our full stack curriculum is free and supported by a passionate open source community.

        <%= link_to 'View Full Curriculum', courses_path,  class: 'button button--primary' %>

    <%= image_tag 'home-isometric.svg', class: 'hero__image', alt: 'home-page-banner' %>

  <%= render 'static_pages/home/how_it_works' %>

  <%= render 'static_pages/home/curriculum', courses: @courses %>

  <%= render 'static_pages/home/success_stories', cache: true %>

 Your Career in Web Development Starts Here

 Our full stack curriculum is free and supported by a passionate open source community.

        <%= link_to 'View Full Curriculum', tracks_path,  class: 'button button--primary' %>

    <%= image_tag 'home-isometric.svg', class: 'hero__image', alt: 'home-page-banner' %>

  <%= render 'static_pages/home/how_it_works' %>

  <%= render 'static_pages/home/curriculum', courses: @courses %>

  <%= render 'static_pages/home/success_stories', cache: true %>

Edit home page so that curriculum button shows track options

The button on the homepage to View Full Curriculum currently still only
goes to the default RoR track. It should now go to the tracks path to
mirror the behaviour of the Curriculum link in the navigation menu


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

    </button>
    <%= link_to "My Application", defined?(root_path) ? root_path : "#", class: "navbar-brand" %>

      <% if defined?(Devise) %>
        <% if admin_user_signed_in? %>

          <%= link_to "Admin", admin_dashboard_path %>

        <% end %>
      <% end %>

        <%= link_to "Categories", categories_path %>

        <%= link_to "Products", products_path %>

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

    </button>
    <%= link_to "Release Date", defined?(root_path) ? root_path : "#", class: "navbar-brand" %>

      <% if defined?(Devise) %>
        <% if admin_user_signed_in? %>

          <%= link_to "Admin", admin_dashboard_path %>

        <% end %>
      <% end %>

        <%= link_to "Categories", categories_path %>

        <%= link_to "Products", products_path %>

Change title from My Application to Release Date


        <%= content_tag(:p, ('Hire Me' if user.available_for_hire)) %>

    <%= image_tag gravatar_for(user), class: "user-image imagecard #{user.role}" %>

    <%= content_tag(:h1, user.full_name, title: user.full_name) %>
    <%= content_tag(:h3, user.role.titlecase) %>

    <%= content_tag(:p, user.bio) %>

    <%= social_icon_links(user) %>

  <% if user.available_for_hire %>
    <%= content_tag(:div, '', class: 'ribbon-wrapper') do %>
      <%= content_tag(:div, '', class: 'ribbon-wrapper-green') do %>
        <%= content_tag(:p, 'Hire Me') %>
      <% end %>
    <% end %>
  <% end  %>

    <%= image_tag gravatar_for(user), class: "user-image imagecard #{user.role}" %>

    <%= content_tag(:h1, user.full_name, title: user.full_name) %>
    <%= content_tag(:h3, user.role.titlecase) %>

    <%= content_tag(:p, user.bio) %>

    <%= social_icon_links(user) %>

Update user_card partial with conditional and correct div nesting


Made with Dough

You kneed it. Literally.

Download our component library, leave to rise in a warm place for twenty minutes, then use.

Add more demo content to header

Add more demo content to header


<%= semantic_form_for item, url: form_url, method: form_method, remote: true do |f| %>
  <%= f.inputs %>
    <%# Add inputs of your piece item model here %>
    <%# f.input :text, input_html: { rows: 2 } # as example %>
  <% end -%>
  <%= hidden_field_tag :kind, item.class.name.demodulize, id: nil %>
  <%= hidden_field_tag :owner_type, params[:owner_type], id: nil %>
  <%= hidden_field_tag :owner_id, params[:owner_id], id: nil %>
  <%= f.actions do %>
    <%= f.action :submit, as: :button %>
    <%= f.action :cancel, as: :link %>
  <% end -%>
<% end -%>

<%= semantic_form_for item, url: form_url, method: form_method, remote: true do |f| %>
  <%= f.inputs do %>
    <%# Add inputs of your piece item model here %>
    <%# f.input :text, input_html: { rows: 2 } # as example %>
  <% end -%>
  <%= hidden_field_tag :kind, item.class.name.demodulize, id: nil %>
  <%= hidden_field_tag :owner_type, params[:owner_type], id: nil %>
  <%= hidden_field_tag :owner_id, params[:owner_id], id: nil %>
  <%= f.actions do %>
    <%= f.action :submit, as: :button %>
    <%= f.action :cancel, as: :link %>
  <% end -%>
<% end -%>

Fix bug in the view generator template

Fix bug in the view generator template


---
- scm:
    name: alphagov-deployment_GDS_Production_Backup
    scm:
        - git:
            url: git@github.gds:gds/alphagov-deployment.git
            branches:
              - release

- job:
    name: GDS_Production_Backup
    display-name: GDS_Production_Backup
    disabled: false
    project-type: freestyle
    description: |
        After a production deployment, this job pushes the state of the deployed repository to the
        gds-production-backup organisation in GitHub Enterprise.
    scm:
      - alphagov-deployment_GDS_Production_Backup
    builders:
        - shell: |
            sh sync_to_ghe.sh
    publishers:
        - email:
            recipients: 2nd-line-support@digital.cabinet-office.gov.uk
            send-to-individuals: true
    parameters:
        - string:
            name: TARGET_APPLICATION_GIT_REPO
            description: |
                The path to the git repository to back up to GitHub Enterprise.
                (This is usually populated by the upstream deployment job.)
            default: false

---
- scm:
    name: govuk-app-deployment_GDS_Production_Backup
    scm:
        - git:
            url: git@github.com:alphagov/govuk-app-deployment.git
            branches:
              - release

- job:
    name: GDS_Production_Backup
    display-name: GDS_Production_Backup
    disabled: false
    project-type: freestyle
    description: |
        After a production deployment, this job pushes the state of the deployed repository to the
        gds-production-backup organisation in GitHub Enterprise.
    scm:
      - govuk-app-deployment_GDS_Production_Backup
    builders:
        - shell: |
            sh sync_to_ghe.sh
    publishers:
        - email:
            recipients: 2nd-line-support@digital.cabinet-office.gov.uk
            send-to-individuals: true
    parameters:
        - string:
            name: TARGET_APPLICATION_GIT_REPO
            description: |
                The path to the git repository to back up to GitHub Enterprise.
                (This is usually populated by the upstream deployment job.)
            default: false

Use new deployment repo for post-deploy repo backup job

All of the shared deployment code from alphagov-deployment, including the
sync_to_ghe.sh script which this job uses, is already in the new repo:
https://github.com/alphagov/govuk-app-deployment/blob/master/sync_to_ghe.sh

The Deploy_App job uses the new repo already so we should update this job too
for consistency. This change brings us nearer to getting all deployment code
out of alphagov-deployment.


<% if logged_in?%>
  YOU'RE LOGGED IN
<% else %>
  <%= link_to "REGISTER", new_user_path%> | <%= link_to "LOGIN", login_path %>
<% 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 %>

<% if logged_in?%>
  <%= link_to "PROFILE", current_user %> | <%= link_to "LOGOUT", logout %>
<% else %>
  <%= link_to "REGISTER", new_user_path %> | <%= link_to "LOGIN", login_path %>
<% 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 %>

Edit links visible to user if / if not logged in


<% if @articles.empty? %>

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

<% else
currentmonth = 0
currentyear = 0
for article in @articles
  if (article.published_at.month != currentmonth || article.published_at.year != currentyear)
    currentmonth = article.published_at.month
    currentyear = article.published_at.year %>

      <%= l(article.published_at, format: :letters_month_with_year) %>

  <% end %>

      <%= article.published_at.mday %> -
      <%= link_to_permalink(article,h(article.title)) %>
      <% if !article.tags.empty? %> <%= t(".posted_in") %>
        <%= safe_join(article.tags.collect {|t| link_to_permalink t,t.display_name }, ", ") %>
    <% end %>

  <% end %>
  <% end %>
  +<%= paginate @articles %>

<% if @articles.empty? %>

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

<% else
currentmonth = 0
currentyear = 0
for article in @articles
  if (article.published_at.month != currentmonth || article.published_at.year != currentyear)
    currentmonth = article.published_at.month
    currentyear = article.published_at.year %>

      <%= l(article.published_at, format: :letters_month_with_year) %>

  <% end %>

      <%= article.published_at.mday %> -
      <%= link_to_permalink(article,h(article.title)) %>
      <% if !article.tags.empty? %> <%= t(".posted_in") %>
        <%= safe_join(article.tags.collect {|t| link_to_permalink t,t.display_name }, ", ") %>
    <% end %>

  <% end %>
  <% end %>
  <%= paginate @articles %>

Remove spurious plus sign from archives page


<div class="project <%= parameterize_language(project.main_language) %>" data-id="<%= project.id %>">
  <% if defined?(show_avatar) && show_avatar %>
    <%= link_to image_tag(avatar_url(project), :width => 80, :height => 80), project.github_url, :rel => 'tooltip', :data => { :original_title => project.name }, :class => 'image' %>
  <% end %>

    <%= link_to project.main_language, language_path(project.main_language.downcase) %>

  <%= link_to project.github_url, :target => "_blank", :title => project.github_repository, :class => "project-link" do %>

      <%= project.name %>

      <%= project.description %>

  <% end %>
  <% project.labels.each do |label| %>

      <%= octicon "tag", :height => 10 %>
      <%= label.name %>

  <% end %>
  <% unless project.contribulator.blank? %>
    <%= link_to "Contribulator score #{project.contribulator}", project.contribulator_url, class: 'label label-info', target: '_blank' %>
  <% end %>

<div class="project <%= parameterize_language(project.main_language) %>" data-id="<%= project.id %>">
  <% if defined?(show_avatar) && show_avatar %>
    <%= link_to image_tag(avatar_url(project), :width => 80, :height => 80), project.github_url, :rel => 'tooltip', :data => { :original_title => project.name }, :class => 'image' %>
  <% end %>

    <%= link_to project.main_language, language_path(project.main_language.downcase) %>

  <%= link_to project.github_url, :target => "_blank", :title => project.github_repository, :class => "project-link" do %>

      <%= project.name %>

      <%= project.description %>

  <% end %>
  <% project.labels.each do |label| %>

      <%= octicon "tag", :height => 10 %>
      <%= label.name %>

  <% end %>
  <% unless project.contribulator.blank? %>

      <%= octicon "pulse", :height => 10 %>
      <%= link_to "Contribulator score: #{project.contribulator}", project.contribulator_url, class: 'contribulator', target: '_blank' %>

  <% end %>

Make contribulator score match general label styles


  <a href="#track-<%=track%>" data-toggle="collapse" aria-controls="collapseTwo" onclick='open_graph.track.config.toggle(this, event)'>
    <%= render 'heading', f: f, track: track, context: context, klass: klass %>

<div id="track-<%=track%>" class="panel-body collapse">
  <%= render 'track_objects', f: f, track: track, objects: klass.objects, klass: klass, context: context %>
  <%= render 'track_profiles', f: f, track: track, context: context, klass: klass %>

  <%= button_to_function 'menu-ctrl-panel', t('open_graph_plugin.views.track.config.activity.configure'), 'open_graph.track.config.open(this)',
href: "#track-#{track}", class: 'community-config', option: 'success', size: 'xs', 'data-toggle' => 'collapse', 'aria-controls' => 'collapseTwo' %>
  <a href="#track-<%=track%>" data-toggle="collapse" aria-controls="collapseTwo" onclick='open_graph.track.config.toggle(this, event)', class='community-config'>
    <%= render 'heading', f: f, track: track, context: context, klass: klass %>

<div id="track-<%=track%>" class="panel-body collapse">
  <%= render 'track_objects', f: f, track: track, objects: klass.objects, klass: klass, context: context %>
  <%= render 'track_profiles', f: f, track: track, context: context, klass: klass %>

Add button configure to community activity settings


<% @networks.each_with_index do |network, i| %>

  <% countryCount = network.countries.count %>
  <% protectedAreaCount = network.protected_areas.count %>

  <div
    data-id="tab-<%= i+1 %>-content"
    class="flex-row-wrap tab__content js-tab-content <%= "u-hide" unless i.zero? %>">

          <%= countryCount %>
          <%= countryCount > 1 ? 'Countries' : 'Country' %> involved

          <%= protectedAreaCount %>
          Protected Area<%= 's' if protectedAreaCount > 1 %>

        <% network.countries.each do |country| %>

<%= country.name %>

        <% end %>

<% end %>

Update class in stats section of protected area page that was preventing the stats from wrapping onto two lines


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

      <%= link_to excursion_thumb_for(excursion, 130), excursion, :class => "container" %>

<%= excursion.slide_count %>

<%= excursion.title %>

<%= simple_format auto_link(excursion.description) %>

<%= link_to t('details.msg'), excursion, :class => "attachment_text_link" %>

        <div class="verb_like" id="like_<%= dom_id(excursion.activities.first) %>"><%= link_like(excursion.activities.first)%>

<% end %>

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

      <%= link_to excursion_thumb_for(excursion, 130), excursion, :class => "container" %>

<%= excursion.slide_count %>

<%= excursion.title %>

<%= simple_format auto_link(excursion.description) %>

<%= link_to t('details.msg'), excursion, :class => "attachment_text_link" %>

<% end %>

Remove duplicate star for excursion

Remove duplicate star for excursion


<% if person.currently_in_a_role? %>

    <% person.current_roles.each do |role| %>

        <%= render "govuk_publishing_components/components/heading", {
            text: person.current_roles_title,
            id: person.current_roles_title.parameterize,
            margin_bottom: 2,
        } %>

        <%= render "govuk_publishing_components/components/govspeak", {
        } do %>
          <%= role["details"]["body"].html_safe %>
        <% end  %>

        <% if role["document_type"] == "ministerial_role" %>

<a href=<%= role["base_path"] %>>More about this role

        <% end %>

        <%= role["links"].fetch("ordered_parent_organisations", [])
          .map { |parent| link_to(parent["title"], parent["base_path"]) }
          .to_sentence
          .html_safe %>

    <% end %>

<% end %>

<% if person.currently_in_a_role? %>

    <% person.current_roles.each do |role| %>

        <%= render "govuk_publishing_components/components/heading", {
            text: person.current_roles_title,
            id: person.current_roles_title.parameterize,
            margin_bottom: 2,
        } %>

        <%= render "govuk_publishing_components/components/govspeak", {
        } do %>
          <%= role["details"]["body"].html_safe %>
        <% end  %>

        <% if role["document_type"] == "ministerial_role" %>

<a href=<%= role["base_path"] %>>More about this role

        <% end %>

          <%= role["links"].fetch("ordered_parent_organisations", [])
            .map { |parent| link_to(parent["title"], parent["base_path"], class: "govuk-link") }
            .to_sentence
            .html_safe %>

    <% end %>

<% end %>

Add govuk-body and govuk-link classes to organisations

This is necessary to get the right GOV.UK styles.


  <%= f.label :stores, Spree.t(:stores)%>

  <% Spree::Store.all.each do |store| %>
    <%= check_box_tag "product[store_ids][]", store.id, @product.stores.include?(store) %> <%= store.name %>
  <% end %>

Add data hook for stores to admin product form

This will let to customize with deface


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

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

<% end %>

Set up classes for transactions

Set up classes for transactions


#!/bin/sh
exec 2>&1
cd <%= node['jenkins']['node']['home'] %>
exec chpst -u <%= node['jenkins']['node']['user'] %> \
  java -jar <%= node['jenkins']['node']['home'] %>/slave.jar \
<% if node['jenkins']['node']['no_certificate_check'] -%>
  -noCertificateCheck \
<% end -%>
  -jnlpUrl <%= node['jenkins']['server']['url'] %>/computer/<%= node['jenkins']['node']['name'] %>/slave-agent.jnlp \
  <%= !@options[:secret] || @options[:secret].empty? ? '' : "-secret #{@options[:secret]}" %> \
  <%= node['jenkins']['node']['jvm_options'] %>

#!/bin/sh
exec 2>&1
cd <%= node['jenkins']['node']['home'] %>
exec chpst -u <%= node['jenkins']['node']['user'] %> \
  env HOME=<%= node['jenkins']['node']['home'] %> \
  java -jar <%= node['jenkins']['node']['home'] %>/slave.jar \
<% if node['jenkins']['node']['no_certificate_check'] -%>
  -noCertificateCheck \
<% end -%>
  -jnlpUrl <%= node['jenkins']['server']['url'] %>/computer/<%= node['jenkins']['node']['name'] %>/slave-agent.jnlp \
  <%= !@options[:secret] || @options[:secret].empty? ? '' : "-secret #{@options[:secret]}" %> \
  <%= node['jenkins']['node']['jvm_options'] %>

Add a HOME variable for nodes started with JNLP

Runit's chpst clears environment variables so we need to set this
explicitly.  Not having a HOME variable can cause a problem with some
jobs.  For example Ruby's expand_path method will fail.

[COOK-3841]


    <img class="d-flex mr-3 avatar-xs" src="<%= comment.user.avatar.thumb.url %>">

      <%= comment.content %>

         By <%= comment.user.name %> - <%= time_ago_in_words(comment.created_at) %> ago

        <% if can? :destroy, comment %>
        - <%= link_to 'Delete Comment', [comment.progress_update.project, comment.progress_update, comment], method: :delete %>
        <% end %>

    <img class="d-flex mr-3 avatar-xs" src="<%= comment.user.avatar.thumb.url %>">

      <%= comment.content %>

         <%= link_to comment.user.name, user_path(comment.user) %> - <%= time_ago_in_words(comment.created_at) %> ago

        <% if can? :destroy, comment %>
        - <%= link_to 'Delete Comment', [comment.progress_update.project, comment.progress_update, comment], method: :delete %>
        <% end %>

Add user profile link to comments

Add user profile link to comments


<%= link_to :controller => :src_sets, :action => :show, :id => src_set.name do %>

    <% if src_set.thumbnail %>
        <%= image_tag(url_for(src_set.thumbnail), :size => "#{src_set.thumb_width}x#{src_set.thumb_height}") %>
    <% else %>

∅

    <% end %>
<% end %>

  <%= src_set.name %>
  <%= src_set.src_images.size %>

<%= link_to :controller => :src_sets, :action => :show, :id => src_set.name do %>

    <% if src_set.thumbnail %>
        <%= image_tag(url_for(src_set.thumbnail), :size => "#{src_set.thumb_width}x#{src_set.thumb_height}") %>
    <% else %>

∅

    <% end %>
<% end %>

  <%= src_set.name %>
  <%= src_set.src_images.count %>

Use count instead of size for source set sizes.


[HKEY_THIS_MACHINE\Services\lsass\Parameters]
"SpaceReplacement"="-"

[HKEY_THIS_MACHINE\Services\lsass\Parameters\Providers\ActiveDirectory]
"HomeDirTemplate"="%H/%D/%U"
"SpaceReplacement"="-"
"AssumeDefaultDomain"=dword:00000001
"NssGroupMembersQueryCacheOnly"=dword:00000001
"RequireMembershipOf"=sza:"<%= @ad_membership_required.join(',') %>"
"LoginShellTemplate"="/bin/bash"

[HKEY_THIS_MACHINE\Services\lsass\Parameters\Providers\ActiveDirectory]
"LoginShellTemplate"="/bin/bash"

Set bash as the default shell for likewise

Former-commit-id: 7353cecd23db90de1740a18bc3f988b43185cbfe [formerly 5e646bec732e013f32aed93a2c578e36c76e14c1] [formerly beb919e79c9b5b4eac75ba96429b8efc7933dd04 [formerly c24675d90bf2fe05b1637dbf4dbae06786777d7d]]
Former-commit-id: d5c6fc8666681f779275c5dc18c5c34767634b71 [formerly 7dc87fd4abe347183f0edd4a245541940e77cb19]
Former-commit-id: 7113aa7ffded6983ba630f7083433a5465ef6e3a


#!/bin/bash

set -eu

run_dir=/var/vcap/sys/run/bosh-bot
log_dir=/var/vcap/sys/log/bosh-bot

PID_FILE="${run_dir}/bosh-bot.pid"

mkdir -p "${run_dir}"
chown -R vcap:vcap "${run_dir}"

mkdir -p "${log_dir}"
chown -R vcap:vcap "${log_dir}"

exec >> "${log_dir}/bosh-bot-ctl.log" 2>&1

package_dir="/var/vcap/jobs/bosh-bot/packages"
export PATH="$PATH:${package_dir}/nodejs/bin/"
export PATH="$PATH:${package_dir}/bosh-cli/"

export BOSH_BOT_CONFIG="/var/vcap/jobs/bosh-bot/config/bot.yml"

case "$1" in

  start)
    exec chpst -u vcap:vcap node "${package_dir}/bosh-bot/bot.js"
    ;;
  stop)
    kill "$( cat "${PID_FILE}" )"
    ;;
  *)
    echo "Usage: ctl {start|stop}"
    ;;
esac

#!/bin/bash

set -eu

run_dir=/var/vcap/sys/run/bosh-bot
log_dir=/var/vcap/sys/log/bosh-bot

PID_FILE="${run_dir}/bosh-bot.pid"

mkdir -p "${run_dir}"
chown -R vcap:vcap "${run_dir}"

mkdir -p "${log_dir}"
chown -R vcap:vcap "${log_dir}"

exec >> "${log_dir}/bosh-bot-ctl.log" 2>&1

package_dir="/var/vcap/jobs/bosh-bot/packages"
export PATH="$PATH:${package_dir}/nodejs/bin/"
export PATH="$PATH:${package_dir}/bosh-cli/"
export PATH="$PATH:${package_dir}/git/bin/"

export BOSH_BOT_CONFIG="/var/vcap/jobs/bosh-bot/config/bot.yml"

case "$1" in

  start)
    exec chpst -u vcap:vcap node "${package_dir}/bosh-bot/bot.js"
    ;;
  stop)
    kill "$( cat "${PID_FILE}" )"
    ;;
  *)
    echo "Usage: ctl {start|stop}"
    ;;
esac

Add git to path for bosh-bot job

Add git to path for bosh-bot job


<% section["sub_sections"].each do |sub_section| %>
  <% if sub_section["title"] %>

<%= sub_section["title"] %>

  <% end %>

    <% sub_section["list"].each do | item | %>

        <a class="govuk-link covid__accordion-link" href="<%= item["url"] %>"><%= item["label"] %>

    <% end %>

<% end %>

<% section["sub_sections"].each do |sub_section| %>
  <% if sub_section["title"] %>

<%= sub_section["title"] %>

  <% end %>

    <% sub_section["list"].each do | item | %>

        <a class="govuk-link covid__accordion-link <%= "covid__page-guidance-link" if item["featured_link"] %>" href="<%= item["url"] %>"><%= item["label"] %>

    <% end %>

<% end %>

Add support for accordion featured links

These links are rendered as bold with an arrow


---
- scm:
    name: govuk-provisioning_Network_Config_Deploy_DryRun
    scm:
        - git:
            url: git@github.gds:gds/govuk-provisioning.git
            branches:
              - master

- job:
    name: Network_Config_Deploy_DryRun
    display-name: Network_Config_Deploy_DryRun
    project-type: freestyle
    description: "Dry run only. Use this to observe the diff output before deploying for real. Accepts a branch so that you can test pull requests."
    properties:
        - github:
            url: https://github.gds/gds/govuk-provisioning/
    scm:
      - govuk-provisioning_Network_Config_Deploy_DryRun
    builders:
        - shell: |
            ./vcloud-edge_gateway/jenkins.sh <%= @environment -%> --dry-run
    wrappers:
        - ansicolor:
            colormap: xterm
        - build-name:
            name: '#${BUILD_NUMBER} ${ENV,var="component"}'
    parameters:
        - choice:
            name: COMPONENT
            description: Which part of the networking config do you wish to update?
            choices:
                - PLEASE CHOOSE ONE
                - lb
                - nat
                - firewall
        - string:
            name: USERNAME
            description: Vcloud username
        - password:
            name: VCLOUD_PASSWORD
            description: Vcloud Password

---
- scm:
    name: govuk-provisioning_Network_Config_Deploy_DryRun
    scm:
        - git:
            url: git@github.gds:gds/govuk-provisioning.git
            branches:
              - master

- job:
    name: Network_Config_Deploy_DryRun
    display-name: Network_Config_Deploy_DryRun
    project-type: freestyle
    description: "Dry run only. Use this to observe the diff output before deploying for real. Accepts a branch so that you can test pull requests."
    properties:
        - github:
            url: https://github.gds/gds/govuk-provisioning/
    scm:
      - govuk-provisioning_Network_Config_Deploy_DryRun
    builders:
        - shell: |
          ./vcloud-edge_gateway/jenkins.sh <%= @environment_script_parameter %> --dry-run
    wrappers:
        - ansicolor:
            colormap: xterm
        - build-name:
            name: '#${BUILD_NUMBER} ${ENV,var="component"}'
    parameters:
        - choice:
            name: COMPONENT
            description: Which part of the networking config do you wish to update?
            choices:
                - PLEASE CHOOSE ONE
                - lb
                - nat
                - firewall
        - string:
            name: USERNAME
            description: Vcloud username
        - password:
            name: VCLOUD_PASSWORD
            description: Vcloud Password

Fix network deploy dryrun job

Fix network deploy dryrun job

This had the incorrect environment variable set which meant the bash
script would fail when you tried to use this infinitely useful
prerequisite for firewall changes.


<% content_for(:page_title, 'Leaderboard') %>

    Organisation
    Sites
    Mappings

        Total
        Unresolved
        Errors ↓

    <% Organisation.leaderboard.each do |org| %>

      <%= link_to org.title, organisation_path(org) %>
      <%= org.site_count %>
      <%= number_with_delimiter(org.mappings_across_sites) %>
      <%= number_with_delimiter(org.unresolved_mapping_count) %>
      <%= number_with_delimiter(org.error_count) %>

    <% end %>

<% content_for(:page_title, 'Leaderboard') %>

Department leaderboard

      Which departments have the highest numbers of erroring mappings?

    Organisation
    Sites
    Mappings

        Total
        Unresolved
        Errors ↓

    <% Organisation.leaderboard.each do |org| %>

      <%= link_to org.title, organisation_path(org) %>
      <%= org.site_count %>
      <%= number_with_delimiter(org.mappings_across_sites) %>
      <%= number_with_delimiter(org.unresolved_mapping_count) %>
      <%= number_with_delimiter(org.error_count) %>

    <% end %>

Add a title and a description to the leaderboard page

- This needs some copy work, probably.


# Autogenerated by Chef for <%= node['fqdn'] %>
$ActionQueueType LinkedList # use asynchronous processing
$ActionQueueFileName srvrfwd # set file name, also enables disk mode
$ActionResumeRetryCount -1 # infinite retries on insert failure
$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down
<% @servers.each do |server| -%>
<% case node['rsyslog']['protocol'] -%>
<% when "tcp" -%>
<%= node['rsyslog']['logs_to_forward'] %> @@<%= server %>:<%= node['rsyslog']['port'] %>
<% when "udp" -%>
<%= node['rsyslog']['logs_to_forward'] %> @<%= server %>:<%= node['rsyslog']['port'] %>
<% end -%>
<% end -%>

# Autogenerated by Chef for <%= node['fqdn'] %>
$ActionQueueType LinkedList # use asynchronous processing
$ActionQueueFileName srvrfwd # set file name, also enables disk mode
$ActionResumeRetryCount -1 # infinite retries on insert failure
$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down
$ActionQueueMaxDiskSpace 1g   # 1gb space limit (use as much as possible)
<% @servers.each do |server| -%>
<% case node['rsyslog']['protocol'] -%>
<% when "tcp" -%>
<%= node['rsyslog']['logs_to_forward'] %> @@<%= server %>:<%= node['rsyslog']['port'] %>
<% when "udp" -%>
<%= node['rsyslog']['logs_to_forward'] %> @<%= server %>:<%= node['rsyslog']['port'] %>
<% end -%>
<% end -%>

Set a 1 GB limit for the ActionQueue.

Set a 1 GB limit for the ActionQueue.


<title><%= title %></title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<%= raw stylesheet_tags %>
<%= csrf_meta_tag %>
<%= javascript_include_tag 'jquery-1.4.2.min', 'jquery.validate.min.js', 'rails', 'application', :cache => 'jquery-core' %>
<% unless I18n.locale.to_s[0..1] == 'en' %>
  <%= javascript_include_tag ['localization/messages_', I18n.locale.to_s[0..1], '.js'].join %>
<% end %>
<%= yield :head %>
<%= raw meta_data_tags %>

<title><%= title %></title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<%== meta_data_tags %>
<%== stylesheet_tags %>
<%= csrf_meta_tag %>
<%= javascript_include_tag 'jquery-1.4.2.min', 'jquery.validate.min.js', 'rails', 'application', :cache => 'jquery-core' %>
<% unless I18n.locale.to_s[0..1] == 'en' %>
  <%= javascript_include_tag ['localization/messages_', I18n.locale.to_s[0..1], '.js'].join %>
<% end %>
<%= yield :head %>

Move meta tags to one place

Move meta tags to one place


<div class="past-vote <%=@past_vote.downcase %>-vote">

You already voted '<%= @past_vote %>' for this agenda item

<div class="past-vote <%=@past_vote.downcase %>-vote">

Your vote for this item: <%= @past_vote %>

Next Item <%=link_to ''.html_safe, item_path(find_next_item(current_user)) %>

Update past vote partial; add next item button


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <link rel="shortcut icon" href="<%= image_path(theme_favicon) %>" type="image/x-icon" />
    <title><%=
       (@page ? @page.name + ' - ' : '') +
       (@profile ? @profile.name + ' - ' : '') +
       @environment.name +
       (@category ? "→ #{@category.full_name}" : '')
    %></title>

    <%= stylesheet_import "slideshow" %>
    <%= javascript_include_tag 'jquery-latest', 'sliderjs', 'pikachoose', :cache => 'cache/slideshow' %>
    <script type="text/javascript">
      $(document).ready(function (){
        $("#slideshow").PikaChoose({
          buttons: { play: <%= _("Play").to_json %>, stop: <%= _("Stop").to_json %>, previous: <%= _("Previous").to_json %>, next: <%= _("Next").to_json %> }
        });
        $("#slideshow").SliderJS({
          window_width: 320,
          window_height: 55,
          list_width: 832,
          pikachoose: true,
          auto_play: false
        });
      });
    </script>
  </head>
  <body>
    <%= yield %>
  </body>
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <link rel="shortcut icon" href="<%= image_path(theme_favicon) %>" type="image/x-icon" />
    <title><%=
       (@page ? @page.name + ' - ' : '') +
       (@profile ? @profile.name + ' - ' : '') +
       @environment.name +
       (@category ? "→ #{@category.full_name}" : '')
    %></title>

    <%= stylesheet_import "slideshow" %>
    <%= javascript_include_tag 'jquery-2.1.1.min', 'sliderjs', 'pikachoose', :cache => 'cache/slideshow' %>
    <script type="text/javascript">
      $(document).ready(function (){
        $("#slideshow").PikaChoose({
          buttons: { play: <%= _("Play").to_json %>, stop: <%= _("Stop").to_json %>, previous: <%= _("Previous").to_json %>, next: <%= _("Next").to_json %> }
        });
        $("#slideshow").SliderJS({
          window_width: 320,
          window_height: 55,
          list_width: 832,
          pikachoose: true,
          auto_play: false
        });
      });
    </script>
  </head>
  <body>
    <%= yield %>
  </body>
</html>

Replace old call to jquery

Replace old call to jquery


        <%= updated_text %> <%= time_ago_in_words(created_at)%> ago

      <%= image_tag avatar_url(user), :size => "32x32" %>

      <%= link_to user.name, user %>

      wojiao jinsanpangwojiao

        <%= updated_text %> <%= time_ago_in_words(created_at)%> ago

      <%= image_tag user.avatar_url(:thumb), :size => "32x32" %>

      <%= link_to user.name, user %>

      wojiao jinsanpangwojiao

Add tags to question for db:seed.

Add tags to question for db:seed.


<%= @event.name %>

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

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

<%= @event.location %>

Attendees

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

<%= user.email%>

<% end %>

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

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

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

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

<%= @event.name %>

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

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

<%= @event.location %>

Attendees

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

<%= user.email%>

<% end %>

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

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

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

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

Hide button if no results

Hide button if no results


<%= display_header title: taxon_form.title, breadcrumbs: [:taxons, taxon_form] %>

  Parent taxons
  Base path

<% parent_taxons.each do |parent_taxon| %>

    <%= link_to parent_taxon['title'], taxon_path(parent_taxon['content_id']) %>
    <%= link_to parent_taxon['base_path'], "#{website_url('/api/content' + parent_taxon['base_path'])}" %>

<% end %>

  Title
  URL

<% tagged.each do |content_item| %>

    <%= content_item["title"] %>
    <% content_item_url = website_url(content_item["base_path"]) %>
    <%= link_to content_item["base_path"], content_item_url %>

<% end %>

<%= display_header title: taxon_form.title, breadcrumbs: [:taxons, taxon_form] %>

  Parent taxons
  Base path

<% parent_taxons.each do |parent_taxon| %>

    <%= link_to parent_taxon['title'], taxon_path(parent_taxon['content_id']) %>
    <%= link_to parent_taxon['base_path'], "#{website_url('/api/content' + parent_taxon['base_path'])}" %>

<% end %>

  Title
  URL
  Actions

<% tagged.each do |content_item| %>

    <%= content_item["title"] %>
    <%= link_to content_item["base_path"], website_url(content_item["base_path"]) %>
    <%= link_to 'Update tags', content_url(content_item["content_id"]) %>

<% end %>

Add link from tagged item to tagger

Add link from tagged item to tagger

Since we now have all the functionality in this app, we can create
cross-links. This commit adds a link from the "Tagged content" page
(content tagged to a certain taxon) to the Tagging page (where the user
can update the tags).


Case Studies

<% if @case_studies %>

      Title
      Description
      Position
      File
      Actions

    <% @case_studies.each do |case_study| %>

        <%= link_to case_study.title, admin_case_study_path(case_study) %>
        <%= case_study.description %>
        <%= case_study.description %>

          <% if case_study.file.attached? %>
            <%= link_to 'File', url_for(case_study.file) %>
          <% else %>
            No file attached
          <% end %>

            <%= link_to 'Edit', edit_admin_case_study_path(case_study), class: 'btn' %>
            <%= link_to 'Delete', admin_case_study_path(case_study), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn' %>

    <% end %>

<% else %>

There are no case study

<% end %>

<%= link_to 'New Case study', new_admin_case_study_path, class: 'btn'%>

Case Studies

<% if @case_studies %>

      Title
      Description
      Position
      File
      Actions

    <% @case_studies.each do |case_study| %>

        <%= link_to case_study.title, admin_case_study_path(case_study) %>
        <%= case_study.description %>
        <%= case_study.position %>

          <% if case_study.file.attached? %>
            <%= link_to 'File', url_for(case_study.file) %>
          <% else %>
            No file attached
          <% end %>

            <%= link_to 'Edit', edit_admin_case_study_path(case_study), class: 'btn' %>
            <%= link_to 'Delete', admin_case_study_path(case_study), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn' %>

    <% end %>

<% else %>

There are no case study

<% end %>

<%= link_to 'New Case study', new_admin_case_study_path, class: 'btn'%>

Use position in admin case studies view

Use position in admin case studies view


<%= render 'sidebar' %>

Inbox

<%= render 'trashList', layout: false %>

<%= render 'sidebar' %>

Inbox

<%= render 'inboxList', layout: false %>

Fix errors of having partial for trashlist on the index page.


<%= field_set_tag nil, class: 'form-group' do %>
  <legend class="rm">
    Tagging
  </legend>
  <% if defined? form %>
    <%= form.label :tag_list, 'Tags' %>
  <% else %>
    <%= label_tag :tag_list, 'Tags' %>
  <% end %>

      <% if defined? form %>
        <%= form.text_field :tag_list, class: 'form-control' %>
      <% else %>
        <%= text_field_tag :tag_list, @bulk_add.tag_list.to_s, class: 'form-control' %>
      <% end %>

<% end %>

<%= field_set_tag nil, class: 'form-group' do %>
  <legend class="rm">
    Tagging
  </legend>

  <% tag_list_label = capture do %>
    Tags

Separate each tag with a comma. eg "content, need:123, plan:2"

  <% end %>

  <% if defined? form %>
    <%= form.label :tag_list, tag_list_label %>
  <% else %>
    <%= label_tag :tag_list, tag_list_label %>
  <% end %>

      <% if defined? form %>
        <%= form.text_field :tag_list, class: 'form-control' %>
      <% else %>
        <%= text_field_tag :tag_list, @bulk_add.tag_list.to_s, class: 'form-control' %>
      <% end %>

<% end %>

Include help text when adding tags

Include help text when adding tags


<%= class_name.camelize.pluralize %>

  <a class="button slide" href="<%%= url_for :controller => :<%= name.camelize %>, :action => :new %>">New

    <%% @<%= name.downcase.pluralize %>.each do |obj| %>
    <% if self.attributes? %>

          <a class="slide" href="<%%= url_for :action => :show, :id => obj.object %>">
            <%%= obj.<%= attributes[0] %> %>

    <% else %>

          Some list entry...

    <% end %>
    <%% end %>

<%= name.camelize.pluralize %>

  <a class="button slide" href="<%%= url_for :controller => :<%= name.camelize %>, :action => :new %>">New

    <%% @<%= name.downcase.pluralize %>.each do |<%= name.downcase %>| %>
    <% if self.attributes? %>

          <a class="slide" href="<%%= url_for :action => :show, :id => <%= name.downcase %>.object %>">
            <%%= <%= name.downcase %>.<%= attributes[0] %> %>

    <% else %>

          Some list entry...

    <% end %>
    <%% end %>

Use name in block when creating list items


#!/bin/sh
exec 2>&1
cd <%= node['jenkins']['server']['home'] %>
touch jenkins.start
exec chpst -u <%= node['jenkins']['server']['user'] %> -U <%= node['jenkins']['server']['user'] %> \
  env HOME=<%= node['jenkins']['server']['home'] %> \
  JENKINS_HOME=<%= node['jenkins']['server']['home'] %> \
  USER=<%= node['jenkins']['server']['user'] %> \
<% if node['jenkins']['server']['locale'] %>
  LANG="<%= node['jenkins']['server']['locale'] %>" \
  LC_ALL="<%= node['jenkins']['server']['locale'] %>" \
<% end %>
<% if node['jenkins']['server']['path'] %>
  PATH="<%= node['jenkins']['server']['path'] %>" \
<% end %>
  java <%= node['jenkins']['server']['jvm_options'] %> -jar jenkins.war \
  -Xloggc:<%= node['jenkins']['server']['log_dir'] %>/gclog.log \
  --httpPort=<%= node['jenkins']['server']['port'] %> \
  <%= node['jenkins']['server']['jenkins_args'] %>

Allow passing in jenkins-args to service

We'd like to be able to pass in arguments to the jenkins server at launch time (such as --sessionTimeout)


<%= form_tag collection_url,
  :method => :get, :html => {:class => 'form-inline'} do  %>

    <%= text_field_tag :query, params[:query], :class => "input-xxlarge" %>

  <%= submit_tag 'Search', :class => "btn search-btn"%>
<% end %>

<%= form_tag collection_url,
  :method => :get, :html => {:class => 'form-inline'} do  %>

  <% if params[:type].present? %>
    <%= hidden_field_tag :type, params[:type] %>
  <% end %>

    <%= text_field_tag :query, params[:query], :class => "input-xxlarge" %>

  <%= submit_tag 'Search', :class => "btn search-btn"%>
<% end %>

Make sure that if there's a type param present to include it in the search. Fixes issue when searching for CITES REGIONS it would search in Countries


<%- search_fields_for_advanced_search.each do |key, field_def| -%>

      <%= label_tag key, "#{field_def.label }", :class => "col-sm-3 control-label" %>

      	<% if key =~ /^(all_fields|title|author|subject)$/ %>

          <%#= text_field_tag key, label_tag_default_for(key), :class => 'form-control', :autocomplete => :off, data: { autocomplete_enabled: autocomplete_enabled?, autocomplete_path: '/:controller/suggest/:category' } %>
          <%= text_field_tag key, label_tag_default_for(key), :class => 'form-control' %>
        <% else %>
          <%= text_field_tag key, label_tag_default_for(key), :class => 'form-control' %>
        <% end %>

<%- end -%>

Fix advanced search field width

Fix advanced search field width


<%= article.title %>

      <%= simple_format article.description %>

    <% article.sections.each do |section| %>
    <div class="<%= section.sectionable.class.name.demodulize.downcase %> section">
      <%= render section.sectionable %>

    <% end %>

<%= article.title %>

      <%= simple_format article.description %>

    <% article.sections.each do |section| %>
      <div class="<%= section.sectionable.class.name.demodulize.downcase %> section <%= section.sectionable.style %>">
        <%= render section.sectionable %>

    <% end %>

Put the style in the wrapper DOM element


<% content_for :body_opened do %>

<% end %>

<div
  class="fb-like"
  data-href="<%= escape_html(config[:meta][:siteurl] + post.url) %>"
  data-layout="button_count"
  data-action="like"
  data-size="small"
  data-show-faces="false"
  data-share="false">

Upgrade Facebook SDK to v2.9

feat: Upgrade Facebook SDK to v2.9


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

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

Add ckeditor javascript to editor layout


Section 1

<%= f.inputs do %>
  <%= f.input :title %>
  <%= f.input :excerpt, :as => :text %>
  <%= f.input :body, :as => :text %>
  <%= f.input :slug %>
<% end %>

Section 1

  <%= f.inputs do %>
    <%= f.input :title %>
    <%= f.input :excerpt, :as => :text %>
    <%= f.input :body, :as => :text %>
    <%= f.input :slug %>
    <%= f.remove_link "Remove" %>
  <% end %>

Add link for removing a part

Add link for removing a part


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

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

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

<%= msg %>

      <% end %>

  <% end %>

    <%= f.label :title %>

    <%= f.text_field :title %>

    <%= f.submit %>

<% end %>

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

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

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

<%= msg %>

      <% end %>

  <% end %>

  <%= f.hidden_field :selected, :value => params[:selected] %>
  <%= f.hidden_field :add_to_album, :value => params[:add_to_album] %>

    <%= f.label :title %>

    <%= f.text_field :title %>

    <%= f.submit %>

<% end %>

Add hidden fields for params from edit mode


<% content_for :title, @document.full_title %>
<%= render partial: "header" %>

<%= @document.title %>

<%= @document.summary %>

  <% if @document.body.present? %>
    <div class='js-collapsible-collection subsection-collection' data-collapse-depth=<%= @document.collapse_depth %>>

          <%= @document.body %>

  <% end %>
  <% if @manual.hmrc? %>

      <% @document.section_groups.each do | group | %>
      <%= render 'hmrc_sections', :group => group %>
    <% end %>

  <% end%>

<% content_for :title, @document.full_title %>
<%= render partial: "header" %>

<%= @document.title %>

  <% if @document.summary %>
<%= @document.summary %>
<% end %>
  <% if @manual.hmrc? %>
    <% if @document.body.present? %>

          <%= @document.body %>

    <% end %>

      <% @document.section_groups.each do | group | %>
      <%= render 'hmrc_sections', :group => group %>
    <% end %>

  <% else %>
    <% if @document.body.present? %>
      <div class='js-collapsible-collection subsection-collection' data-collapse-depth=<%= @document.collapse_depth %>>

            <%= @document.body %>

    <% end %>
  <% end %>

Fix view logic for HMRC leaf nodes

Fix view logic for HMRC leaf nodes

As HMRC leaf nodes are now on the document.body, make sure they aren't accidentally made collapsible.
I'm not sure if it's possible for the HMRC API to give us a document with a `document.body` AND `document.section_groups` but it seems sensible to show them both if they're both there.

Non HMRC manuals should just have a `document.body` on their show action, but they don't need a don't need to be wrapped in a `.body-content-wrapper` class because their headings still need to be full width (as visually they are styled differently to hrmc's manuals)

Further work on this file (which I'm leaving here as a note for myself later) would be to remove:
`

`
and leave add the javascript to add in these elements as they are not needed unless the javascript is running.


<img id="info-button" src="/images/info.png" />

<%= render partial: 'shared/charity' %>
<%= render partial: 'shared/feedback' %>
<%= render partial: 'shared/hotkeys' %>
<%= render partial: 'shared/traffic_lights' %>
<%= render partial: 'shared/dashboard' %>
<%= render partial: 'shared/help' %>
<%= render partial: 'shared/shas' %>

<script type="text/javascript">
'use strict';
$(() => {

  const $button = $('#info-button');
  const $buttons = $('.info-button');
  cd.createTip($button, 'info');
  $buttons.hide();
  $button.clickToggle(() => $buttons.fadeIn(), () => $buttons.fadeOut());

});
</script>

<img id="info-button" src="/images/info.png" />

<%= render partial: 'shared/charity' %>
<%= render partial: 'shared/feedback' %>
<%= render partial: 'shared/hotkeys' %>
<%= render partial: 'shared/traffic_lights' %>
<%= render partial: 'shared/dashboard' %>
<%= render partial: 'shared/help' %>
<%= render partial: 'shared/shas' %>

<script type="text/javascript">
'use strict';
$(() => {

  const $button = $('#info-button');
  const $buttons = $('.info-button');
  cd.createTip($button, 'toggle info buttons on/off');
  $buttons.hide();
  $button.clickToggle(() => $buttons.fadeIn(), () => $buttons.fadeOut());

});
</script>

Improve hover tip for info button

Improve hover tip for info button


<%= back_link_to admin_budgets_path %>

<%= t("admin.budgets.edit.title") %>

<%= render '/admin/budgets/form' %>

<%= back_link_to admin_budgets_path %>

<%= button_to t("admin.budgets.edit.delete"), admin_budget_path(@budget), method: :delete, class: "button hollow alert float-right small" %>

<%= t("admin.budgets.edit.title") %>

<%= render '/admin/budgets/form' %>

Add destroy budget button to admin budget edit view


<%= semantic_nested_form_for @resource, :url => admin_edition_path(@resource), :as => :edition do |f| %>
  <%= f.inputs do %>
    <%= render :partial => 'admin/shared/title_etc', :locals => {:f => f} %>
    <%= render :partial => 'admin/shared/video', :locals => {:f => f} %>
  <% end %>

Parts

        <% tidy_up_parts_before_editing(f.object) %>

        <%= f.semantic_fields_for :parts do |part| %>
          <%= render :partial => '/admin/shared/part', :locals => {:f => part, :editable => ! @resource.published? } %>
        <% end %>

<%= f.link_to_add "Add new part", :parts, :data => { :target => "#parts" } %>

Govspeak help

        <%= render "../shared/govspeak_help" %>

<% end %>

<%= semantic_bootstrap_nested_form_for @resource, :url => admin_edition_path(@resource), :as => :edition do |f| %>
  <%= f.inputs do %>
    <%= render :partial => 'admin/shared/title_etc', :locals => {:f => f} %>
    <%= render :partial => 'admin/shared/video', :locals => {:f => f} %>
  <% end %>

Parts

        <% tidy_up_parts_before_editing(f.object) %>

        <%= f.semantic_fields_for :parts do |part| %>
          <%= render :partial => '/admin/shared/part', :locals => {:f => part, :editable => ! @resource.published? } %>
        <% end %>

<%= f.link_to_add "Add new part", :parts, :data => { :target => "#parts" } %>

Govspeak help

        <%= render "../shared/govspeak_help" %>

<% end %>

Use the Bootstrap-variant of the form_for helper

This uses the formtastic-bootstrap form builder so that
Bootstrap-friendly markup is rendered


<% text_for :title do %>
  What is the rateable value of your business' non-domestic property?
<% end %>

<% text_for :hint do %>
  The rateable value of your property is used by your local council to calculate your business rates bill.
<% end %>

<% options(
  "none": "My business does not have any non-domestic property",
  "under_51k": "Under £51,000",
  "51k_and_over": "£51,000 and over",
) %>

<% text_for :title do %>
  Does your business have any rateable non-domestic property?
<% end %>

<% text_for :hint do %>
  The rateable value of your property is used by your local council to calculate your business rates bill.
<% end %>

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

Update title and options in the view

Update title and options in the view

- Simplifies the "What is the rateable value of your business' non-domestic property?" question
to "Does your business have any rateable non-domestic property?".

- Updates the radio button options.

- The reason for this is that this question is used to display the "Business rates holiday for retail, hospitality and leisure"
and the "Support for nursery businesses that pay business rates" schemes.

These schemes don't require knowing specifically what the property value is.
We previously had a scheme that did, but that has been removed.

We also found that some users were not familiar with 'rateable non-domestic property value'.
Therefore, adding a "not sure" option will help them progress and aims to reduce drop off.


<% message.subject = "[#{@node.name}] #{t('ezine.entry_type.' + @entry.entry_type)}確認" %>
<%= @node.reply_upper_text %>

メールアドレスの<%= t('ezine.entry_type.' + @entry.entry_type) %>を受け付けました。
以下のアドレスをクリックして<%= t('ezine.entry_type.' + @entry.entry_type) %>を完了してください。
<%= "#{@node.full_url}entry/verify?token=#{@entry.verification_token}" %>

メールアドレス: <%= @entry.email %>
配信形式: <%= @entry.email_type %>

このメールに心当たりのない方はお手数ですが本メールを破棄してください。

<%= @node.reply_lower_text %>

<%= @node.reply_signature %>

Add signature to verification mail

Add signature to verification mail


      <%= link_to root_path, class: "navbar-brand", id: "logo" do %>
        <%= image_tag('stories-logo.svg', height: 40, alt: "Stories") %>
      <% end %>

        <% if user_signed_in? %>

<%= link_to "Write a story", new_post_path, class: "button" %>

            <%= react_component('NotificationsContainer', {}) %>

          <%= render 'layouts/avatar_dropdown' %>
        <% else %>

<%= link_to "Write a story", new_post_path, class: "button", data: { behavior: 'trigger-overlay' } %>

<%= link_to "Sign in / Sign up", new_user_session_path, class: 'button green-border-button sign-in-button', data: { behavior: 'trigger-overlay' } %>

        <% end %>

      <%= link_to root_path, class: "navbar-brand", id: "logo" do %>
        <%= image_tag('stories-logo.svg', height: 40, alt: "Stories") %>
      <% end %>

        <% if user_signed_in? %>

<%= link_to "Write a story", new_post_path, class: "button" %>

            <%= react_component('NotificationsContainer', {}) %>

          <%= render 'layouts/avatar_dropdown' %>
        <% else %>

<%= link_to "Write a story", new_post_path, class: "button", data: { behavior: 'trigger-overlay' } %>

<%= link_to "Sign in / Sign up", new_user_session_path, class: 'button green-border-button', data: { behavior: 'trigger-overlay' } %>

        <% end %>

Fix CSS for the sign in button in the search result page


<%= standard_edition_form(edition) do |form| %>
  <%= render partial: 'related_policy_fields', locals: { form: form, edition: edition } %>
  <%= render partial: 'organisation_fields', locals: { form: form, edition: edition } %>
  <%= render partial: 'minister_fields', locals: { form: form, edition: edition } %>
  <%= render partial: 'country_fields', locals: { form: form, edition: edition } %>

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

  <%= render partial: 'first_published_at', locals: { form: form, edition: edition } %>
<% end %>

<%= standard_edition_form(edition) do |form| %>
  <fieldset>
    <legend>Associations</legend>
    <%= render partial: 'related_policy_fields', locals: { form: form, edition: edition } %>
    <%= render partial: 'organisation_fields', locals: { form: form, edition: edition } %>
    <%= render partial: 'minister_fields', locals: { form: form, edition: edition } %>
    <%= render partial: 'country_fields', locals: { form: form, edition: edition } %>
  </fieldset>

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

  <%= render partial: 'first_published_at', locals: { form: form, edition: edition } %>
<% end %>

Add missing association fieldset for consistency with other doc types.

I believe this was missed in 17b0d3cc1c5d33633bae343aab8ff4e082eaaece.


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

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

<%= msg %>

    <% end %>

<% end %>

<%= form_for @appointment_summary, url: appointment_summaries_path do |f| %>
  <%= f.label :name %>
  <%= f.text_field :name, class: 't-name' %>
  <%= f.submit 'Submit', class: 't-submit' %>
<% end %>

Add styling to new appointment summary form


$( "#stat-sharing-section" ).html( "<%= escape_javascript(render 'options_sharing') %>" );
$( "#sharing-modal" ).modal( "hide" );

$( "#stat-sharing-section" ).html( "<%= escape_javascript(render 'stats/options_sharing') %>" );
$( "#sharing-modal" ).modal( "hide" );

Update location of partial rendered by JavaScript


  <% if user_signed_in? %>

<%= link_to User.model_name.human(count: 2).capitalize, admin_users_path %>

    <li class="dropdown <%= active_status_for(:admin_issues_index) %>">

        <%= t 'app.analysis' %>

<%= link_to t('app.issues.edit.new'), new_admin_issue_path %>

<%= link_to Issue.model_name.human(count: 2).capitalize, admin_issues_path %>

<%= link_to Topic.model_name.human(count: 2).capitalize, admin_topics_path %>

<%= link_to t('app.documentation.default'), controller: 'docs', action: 'analysis' %>

<%= link_to t('app.logout'), destroy_user_session_path, method: 'delete' %>

  <% else %>

<%= link_to t('app.login'), new_user_session_path  %>

  <% end %>

  <% if user_signed_in? %>

<%= link_to User.model_name.human(count: 2).capitalize, admin_users_path %>

    <li class="dropdown <%= active_status_for(:admin_issues_index) %>">

        <%= t 'app.analysis' %>

<%= link_to t('app.issues.edit.new'), new_admin_issue_path %>

<%= link_to 'Dashboard', admin_root_path %>

<%= link_to Issue.model_name.human(count: 2).capitalize, admin_issues_path %>

<%= link_to Topic.model_name.human(count: 2).capitalize, admin_topics_path %>

<%= link_to t('app.documentation.default'), controller: 'docs', action: 'analysis' %>

<%= link_to t('app.logout'), destroy_user_session_path, method: 'delete' %>

  <% else %>

<%= link_to t('app.login'), new_user_session_path  %>

  <% end %>

Add link to dashboard in analysis menu.

Add link to dashboard in analysis menu.


Unknown action

<%=h @exception.message %>

Fix indent in UnknownAction template

Fix indent in UnknownAction template


Announcements

    <%= render partial: "documents/news_articles", locals: {news_articles: @news_articles} %>

    <%= render partial: "documents/speeches", locals: {speeches: @speeches} %>

Remove unnecessary wrapping elements for announcements


<%= form_for(resource, as: resource_name, url: session_path(resource_name),
             enforce_utf8: false, html: { novalidate: true }) do |f| %>

    <%= f.label :username, t('user_sessions.new.username') %>
    <%= f.email_field :username, autofocus: true %>

    <%= f.label :password, t('user_sessions.new.password') %>
    <%= f.password_field :password, autocomplete: "off" %>

  <% if devise_mapping.rememberable? -%>

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

  <% end -%>

  <%= f.submit t('user_sessions.new.submit'), class: 'submit' %>
<% end %>

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

<%= form_for(resource, as: resource_name, url: session_path(resource_name),
             enforce_utf8: false, html: { novalidate: true }) do |f| %>

    <%= f.label :username, t('user_sessions.new.username') %>
    <%= f.email_field :username, 'aria-label' => t('user_sessions.new.username'), autofocus: true %>

    <%= f.label :password, t('user_sessions.new.password') %>
    <%= f.password_field :password, 'aria-label' => t('user_sessions.new.password'), autocomplete: "off" %>

  <% if devise_mapping.rememberable? -%>

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

  <% end -%>

  <%= f.submit t('user_sessions.new.submit'), class: 'submit' %>
<% end %>

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

Add aria labels to login form

Add aria labels to login form


<!DOCTYPE html>

  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width,user-scalable=no">
  <meta name="apple-mobile-web-app-capable" content="yes" />

  <title><%= t('app_title') %></title>

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

  <%= javascript_include_tag "application" %>

  <% [:alert, :error, :notice].each do |key| %>
    <% if flash[key] %>
      <div class="flash flash-<%= key %>" data-alert="alert"><%= flash[key] %>

    <% end %>
  <% end %>

  <%= yield %>

<!DOCTYPE html>

  <meta charset="utf-8" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="viewport" content="width=device-width,user-scalable=no">

  <title><%= t('app_title') %></title>

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

  <%= javascript_include_tag "application" %>

  <% [:alert, :error, :notice].each do |key| %>
    <% if flash[key] %>
      <div class="flash flash-<%= key %>" data-alert="alert"><%= flash[key] %>

    <% end %>
  <% end %>

  <%= yield %>

Fix letterbox on ios fullscreen with trick


<!DOCTYPE html>

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

<%= flash.notice %>

		<%= yield %>

			<% if logged_in? %>
				<%= "Logged in as #{current_user.email}" %>
				<%= link_to "(Logout)", logout_path %>
			<% else %>
				<%= link_to "(Login)", login_path %>
			<% end %>

<!DOCTYPE html>

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

<%= flash.notice %>

		<%= yield %>

			<% if logged_in? %>
				<%= "Logged in as #{current_user.email}" %>
				<%= link_to "(Logout)", logout_path %>
			<% else %>
				<%= link_to "(Login)", login_path %>
				<%= link_to "(Create an Account)", new_author_path %>
			<% end %>

Add create account link on homepage

Add create account link on homepage


<%= form_with(model: meeting, id: "new-meeting-form") do |f| %>

New Meeting

        Name your meeting and click CREATE it to start adding
        to the agenda.

There were some errors creating your meeting.

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

      Close
      <%= f.submit "Create",
        class: "modal-action waves-effect waves-light btn btn-green" %>

<% end %>

<%= form_with(model: meeting, id: "new-meeting-form") do |f| %>

New Meeting

        Name your meeting and click CREATE it to start adding
        to the agenda.

There were some errors creating your meeting.

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

      Close
      <%= f.submit "Create",
        class: "modal-action button" %>

<% end %>

Replace new meeting modal buttons

Replace new meeting modal buttons


Login

	<%= form_tag user_sessions_path, :method => :post do %>

			<%= label_tag :email %>

			<%= text_field_tag :email %>

			<%= label_tag :password %>

			<%= password_field_tag :password %>

			<%= check_box_tag :remember %> <%= label_tag :remember, "Remember Me" %>

			<%= submit_tag "Login", class: "submit"  %>

	<% end %>

Login

	<%= form_tag user_sessions_path, :method => :post do %>

			<%= label_tag :email %>

			<%= text_field_tag :email %>

			<%= label_tag :password %>

			<%= password_field_tag :password %>

			<%= link_to("Forgot Password?", new_password_reset_path) %>

			<%= check_box_tag :remember %> <%= label_tag :remember, "Remember Me" %>

			<%= submit_tag "Login", class: "submit"  %>

	<% end %>

Add Link To Forgot Password Page In Login


^The deadline is 9 months after the first day of the month that your course started. This would be 31 May if your course started on 20 September.^

^The deadline is 9 months after the first day of the course's academic year. Academic years begin on 1 September, 1 January, 1 April and 1 July. Ask someone who runs your course if you don't know which one applies.^

Update outcome copy in `student-finance-forms`

The copy in the outcome `when-you-can-apply` must mention the academic
year.


<% content_for :title do %>
  You must reach State Pension age before 6 April 2016 to use this calculator

<% end %>

<% content_for :body do %>
  State Pension age is 63 if you’re a woman, or 65 if you’re a man.
<% end %>

Remove misleading information from a State Pension Top Up outcome

Eligibility requirements are not trivial and were incorrect in this outcome,
therefore remove it to avoid confusion.


<%= sub_nav_tag({}) do %>

		<%= link_to organizations_path do %>  My Organizations
		<% end %>

		<%= link_to users_path do %>
		 <%= "Users (#{@organization.users.count})"%>
		<% end %>

		<%= link_to locations_path do %>
		 <%= "Locations (#{@organization.locations.count})"%>
		<% end %>

		<%= link_to map_organization_path(@organization) do %>
		 Map
		<% end %>

<% end %>

<%= sub_nav_tag({}) do %>

		<%= link_to organizations_path do %>  My Organizations
		<% end %>

		<%= link_to users_path do %>
		 <%= "Users (#{@organization.users.count})"%>
		<% end %>

		<%= link_to map_organization_path(@organization) do %>
		 Map
		<% end %>

<% end %>

Remove locations link from orgs sub nav

Remove locations link from orgs sub nav


<%= render partial: 'shared/page_title', locals: {:title_key => 'errors.something_went_wrong.title'} %>
<% content_for :feedback_source, 'MATCHING_ERROR_PAGE' %>

<%= t 'errors.something_went_wrong.heading' %>

      <%= t('hub.response_processing.matching_error.problem', rp_name: 'Test RP') %>

<%= t('hub.response_processing.matching_error.start_again_message_html', start_again_link: link_to(t('hub.response_processing.matching_error.start_again_link'), redirect_to_service_error_path)) %>

<%= t('hub.response_processing.matching_error.other_ways', other_ways_description: @other_ways_description) %>

    <%= render partial: 'shared/other_ways', locals: {other_ways_description: @other_ways_description, other_ways_text: @other_ways_text} %>

<%= render partial: 'shared/page_title', locals: {:title_key => 'errors.something_went_wrong.title'} %>
<% content_for :feedback_source, 'MATCHING_ERROR_PAGE' %>

<%= t 'errors.something_went_wrong.heading' %>

      <%= t('hub.response_processing.matching_error.problem', rp_name: @rp_name) %>

<%= t('hub.response_processing.matching_error.start_again_message_html', start_again_link: link_to(t('hub.response_processing.matching_error.start_again_link'), redirect_to_service_error_path)) %>

<%= t('hub.response_processing.matching_error.other_ways', other_ways_description: @other_ways_description) %>

    <%= render partial: 'shared/other_ways', locals: {other_ways_description: @other_ways_description, other_ways_text: @other_ways_text} %>

Use RP name on matching error page

bau: Use RP name on matching error page

Fixes issue where RP name was hard coded as 'Test RP'.


    Info

新しいゲーム<%= session[:round] %>を作成しました。

あなたのユーザー名は<%= session[:username] %>です。

      <% if params.key?( :passcode ) %>

パスコードは<%= params[:passcode] %>です。

      <% end %>

5分以内にゲームを開始してください

Remove start within 5 minutes

Remove start within 5 minutes


<% admin = try_spree_current_user.try(:has_spree_role?, "admin") %>

<header class="header <%= admin ? "logged-in" : "logged-out" %>">

          <%= link_to image_tag(Spree::Config[:admin_interface_logo], id: 'logo', height: '100%'), spree.admin_path, class: "logo navbar-brand" %>

        <% if admin %>

              Toggle navigation

        <% end %>

<% admin = try_spree_current_user.try(:has_spree_role?, "admin") %>

<header class="header <%= admin ? "logged-in" : "logged-out" %>">

          <%= link_to image_tag(Spree::Config[:admin_interface_logo], id: 'logo', height: '100%'), spree.admin_path, class: "logo navbar-brand" %>
          <% if admin %>

          <% end %>

        <% if admin %>

        <% end %>

Hide the sidebar toggle when logged out

Hide the sidebar toggle when logged out

Also deleted an unused old toggle navigation button from AdminLTE

Fixes #5978


# BoxCI Documentation

This is intended to be a jumping point for you to easily get to the
documentation you are interested in.

## New to BoxCI?

If you are new to BoxCI we recommend you go straight to the [Getting
Started](/guides/getting_started) guide.

  Getting Started

# BoxCI Documentation

This is intended to be a jumping point for you to easily get to the
documentation you are interested in.

## New to BoxCI?

If you are new to BoxCI we recommend you check out the intro video below and
go straight to the [Getting Started](/guides/getting_started) guide.

  Getting Started

### Quick Intro

For a quick approx. 7 min intro please watch the video below. It walks through
the BoxCI three step process: init, build, test. It takes you through a direct
real world example of getting the
[snapdragon](https://github.com/reachlocal/snapdragon) open source project
setup and working with BoxCI.

Embed quick intro video on landing page.

I did this so that people new to the project would be able to learn via video
if that is their preferred mechanism.


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

    <%= t 'b.msg.something_went_wrong' %>!
    <%= t 'b.msg.please_select_a_valid_image' %>

<% end %>

<%= simple_form_for @image, url: backend_images_path(klass: 'Article', id: @model.id) do |f| %>

      <%= t 'b.image' %>

      <%= f.simple_fields_for :asset do |fa| %>
        <%= fa.input :filename, as: :file, label: false %>
        <%= fa.input :description, as: :text, required: false %>
      <% end %>

      <%= render 'backend/form_actions', cancel_url: backend_images_path(klass: 'Article', id: @model.id) %>

<% end %>

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

    <%= t 'b.msg.something_went_wrong' %>!
    <%= t 'b.msg.please_select_a_valid_image' %>

<% end %>

<%= simple_form_for @image, url: backend_images_path(klass: @model.class.name, id: @model.id) do |f| %>

      <%= t 'b.image' %>

      <%= f.simple_fields_for :asset do |fa| %>
        <%= fa.input :filename, as: :file, label: false %>
        <%= fa.input :description, as: :text, required: false %>
      <% end %>

      <%= render 'backend/form_actions', cancel_url: backend_images_path(klass: @model.class.name, id: @model.id) %>

<% end %>

Remove hardcoded link to Article.

Remove hardcoded link to Article.


My Results

<% @score_report.each do |report| %>

<%= report[:wine_bringer] %>'s Wine :

    <% report[:user_results]["Country"] = "the #{report[:user_results]["Country"]}" if report[:user_results]["Country"] == "United States" %>

You guessed: <%= report[:user_results]["Grape"] %> from <%= report[:user_results]["Country"] %>

The wine was: <%= report[:correct_answers]["Grape"] %> from <%= report[:correct_answers]["Country"] %>

    <% report[:user_results].each do |attr, val| %>

<%= attr %>

      <% if report[:user_results][attr] == report[:correct_answers][attr] %>

Correct: <%= val %>

      <% else %>

Incorrect: <%= val %>

Answer: <%= report[:correct_answers][attr] %>

<%= report[:feedback_hash][attr] %>

      <% end %>
    <% end %>

Your observations were: <%= report[:observation_score] %>

Your wine choice based on your observations was: <%= report[:conclusion_score] %>

<% end %>

My Results

<% @score_report.each do |report| %>

<%= report[:wine_bringer] %>'s Wine :

    <% if report[:user_results]["Country"] == "United States" %>
      <% report[:user_results]["Country"] = "the #{report[:user_results]["Country"]}" %>
    <% end %>
    <% if report[:correct_answers]["Country"] == "United States" %>
      <% report[:correct_answers]["Country"] = "the #{report[:correct_answers]["Country"]}" %>
    <% end %>

You guessed: <%= report[:user_results]["Grape"] %> from <%= report[:user_results]["Country"] %>

The wine was: <%= report[:correct_answers]["Grape"] %> from <%= report[:correct_answers]["Country"] %>

    <% report[:user_results].each do |attr, val| %>

<%= attr %>

      <% if report[:user_results][attr] == report[:correct_answers][attr] %>

Correct: <%= val %>

      <% else %>

Incorrect: <%= val %>

Answer: <%= report[:correct_answers][attr] %>

<%= report[:feedback_hash][attr] %>

      <% end %>
    <% end %>

Your observations were: <%= report[:observation_score] %>

Your wine choice based on your observations was: <%= report[:conclusion_score] %>

<% end %>

Change united states in correct_answers to match user_results


<!DOCTYPE html>

    <title>Factlink</title>
    <%= stylesheet_link_tag "style" %>

    <%= stylesheet_link_tag "frontend" %>
    <%= stylesheet_link_tag "grid" %>
    <%= stylesheet_link_tag "popup" %>

    <%= javascript_include_tag "modernizr-2.0.6.min" %>

					<%= render "users/account_block", target: "_blank" %>

			<%= render 'home/notifications', notice: notice, alert: alert %>

  	  <%= yield %>

<!DOCTYPE html>

    <title>Factlink</title>
    <%= stylesheet_link_tag "style" %>

    <%= stylesheet_link_tag "frontend" %>
    <%= stylesheet_link_tag "grid" %>
    <%= stylesheet_link_tag "bootstrap/bootstrap" %>
    <%= stylesheet_link_tag "popup" %>

    <%= javascript_include_tag "modernizr-2.0.6.min" %>

				<%= render "users/account_block", target: "_blank" %>

			<%= render 'home/notifications', notice: notice, alert: alert %>

  	  <%= yield %>

Add Bootstrap CSS for popup

Add Bootstrap CSS for popup


<% papers.each do |paper| %>

<%= link_to paper.pretty_repository_name, paper_path(paper) %><a href="<%= badge_link(paper) %>"><img src="<%= setting(:url) %>/papers/<%= paper.sha %>/status.svg">

    <%= formatted_body(paper, 200) %>

    <% if paper.pretty_doi == "DOI pending" %>
      DOI pending
    <% else %>
      <%= link_to paper.pretty_doi, paper.doi_with_url, :target => "_blank", :class => "doi" %>
    <% end %>

<% end %>

Use general repo icon for papers

Use general repo icon for papers

Closes #263


<% content_for :locale do %>
<% end %>

Locales Primary locale is <%= Tolk::Locale.primary_locale.language_name %>

<% if @locales.any? %>

    <% @locales.each do |locale| %>

        <%= link_to locale.language_name, locale %>
        33

    <% end %>

<% else %>

No locales yet.

<% end %>
<% form_for(Tolk::Locale.new) do |f| %>

  <%= f.error_messages %>

    <%= f.label "Add a new Locale" %>
    <%= f.text_field :name, :class => "locale_new" %>
    <%= f.submit 'Add' %>

<% end %>

<% content_for :locale do %>
<% end %>

Locales Primary locale is <%= Tolk::Locale.primary_locale.language_name %>

<% if @locales.any? %>

    <% @locales.each do |locale| %>

        <%= link_to locale.language_name, locale %>
        <%= locale.count_phrases_without_translation %>

    <% end %>

<% else %>

No locales yet.

<% end %>
<% form_for(Tolk::Locale.new) do |f| %>

  <%= f.error_messages %>

    <%= f.label "Add a new Locale" %>
    <%= f.text_field :name, :class => "locale_new" %>
    <%= f.submit 'Add' %>

<% end %>

Fix the dummy counter on the index page

Fix the dummy counter on the index page


<!-- oEmbed -->
<link rel="alternate" type="application/json+oembed" href="<%= page.asciicast_oembed_url(:json) %>" />
<link rel="alternate" type="text/xml+oembed" href="<%= page.asciicast_oembed_url(:xml) %>" />

<!-- Open Graph -->
<meta property="og:title" content="<%= page.asciicast_title %>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<%= asciicast_url(page.asciicast) %>" />
<meta property="og:image" content="<%= asciicast_url(page.asciicast, format: :png) %>" />
<meta property="og:description" content="<%= page.short_text_description %>" />
<meta property="og:site_name" content="asciinema.org" />

<!-- Twitter card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@asciinema" />
<meta name="twitter:title" content="<%= page.asciicast_title %>" />
<meta name="twitter:url" content="<%= asciicast_url(page.asciicast) %>" />
<meta name="twitter:description" content="<%= page.short_text_description %>" />
<meta name="twitter:image" content="<%= asciicast_url(page.asciicast, format: :png) %>" />

Add Twitter card meta tags

Add Twitter card meta tags


<!DOCTYPE html>
<html>
  <head>
    <title><%= blazer_title ? blazer_title : "Blazer" %></title>

    <meta charset="utf-8" />

    <%= stylesheet_link_tag "blazer/application" %>
    <%= javascript_include_tag "blazer/application" %>
    <script>
      <%= blazer_js_var "rootPath", root_path %>
    </script>
    <% if blazer_maps? %>
      <%= stylesheet_link_tag "https://api.mapbox.com/mapbox.js/v2.4.0/mapbox.css" %>
      <%= javascript_include_tag "https://api.mapbox.com/mapbox.js/v2.4.0/mapbox.js" %>
    <% end %>
    <%= csrf_meta_tags %>
  </head>
  <body>
    <div class="container">
      <%= yield %>
    </div>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title><%= blazer_title ? blazer_title : "Blazer" %></title>

    <meta charset="utf-8" />

    <%= stylesheet_link_tag "blazer/application" %>
    <%= javascript_include_tag "blazer/application" %>
    <script>
      <%= blazer_js_var "rootPath", root_path %>
    </script>
    <% if blazer_maps? %>
      <%= stylesheet_link_tag "https://api.mapbox.com/mapbox.js/v3.1.1/mapbox.css", integrity: "sha384-o8tecBIfqi9yU5yYK2Ne/9A9hlOGFV9MBvCpmemvJH1XxqOe6h8Bl4mLxMi6PgjG", crossorigin: "anonymous" %>
      <%= javascript_include_tag "https://api.mapbox.com/mapbox.js/v3.1.1/mapbox.js", integrity: "sha384-j81LqvtvYigFzGSUgAoFijpvoq4yGoCJSOXI9DFaUEpenR029MBE3E/X5Gr+WdO0", crossorigin: "anonymous" %>
    <% end %>
    <%= csrf_meta_tags %>
  </head>
  <body>
    <div class="container">
      <%= yield %>
    </div>
  </body>
</html>

Use subresource integrity for Mapbox

Use subresource integrity for Mapbox


$ ->

    ###################  INITIALIZE KEYS  ##############################

    authorization_key = $('[data-attribute="authorization_key"]').val()
    session_key = $('[data-attribute="session_key"]').val()
    participant_name = $('[data-attribute="participant_name"]').val()

    participantListReact = $('[data-react-class="ParticipantsList"]').get(0)

    client_channel = session_key+"-client"
    server_channel = session_key+"-server"
    chat_channel = session_key+"-chat"

    ##################### PUBNUB CLIENT  ##############################

    presence_event_callback = (event_message, env, ch, timer, magic_ch) ->
      status = switch event_message.action
          when 'leave' then 'offline'
          when 'timeout' then 'offline'
          when 'join' then 'online'
      name = if event_message.data?
                event_message.data.name
            else
              null

      if status?
          uuid_with_status = {uuid: event_message.uuid, status: status, name: name}
          React.render(<ParticipantsList newParticipant=uuid_with_status />, participantListReact)

    pubnub = PUBNUB(
      publish_key: '<%= ENV.fetch('PUBNUB_PUBLISH_KEY') %>',
      subscribe_key: '<%= ENV.fetch('PUBNUB_SUBSCRIBE_KEY') %>',
      auth_key: authorization_key,
      uuid: authorization_key,
      origin: 'pubsub.pubnub.com',
      ssl: true
    )

    pubnub.state(
      channel: chat_channel
      uuid: authorization_key
      state:
          name: participant_name
      callback: (m)->
      error: (m)->
    )

    pubnub.subscribe
        channel: chat_channel,
        state:
          name: participant_name
        message: (m, env, ch, timer, magic_ch) ->
        presence: presence_event_callback
        connect: ->
        heartbeat: 20

    pubnub.here_now
        channel: chat_channel,
        state: true
        callback: (m) ->
            uuids_with_status = _.map(m.uuids, (uuid) ->
                { uuid: uuid.uuid, status: 'online', name: uuid.state.name }
            )
            React.render(<@ParticipantsList onlineParticipants=uuids_with_status />, participantListReact)

    pubnub.subscribe
        channel: server_channel,
        message: (message, env, ch, timer, magic_ch) ->
        connect: ->

Update Participant Status list from Pubnub client


<% roles.each do |role| %>
  <td>
    <label class="permissions-checkbox-label">
      <%= check_box_tag "#{user.id}[#{role.to_s}]", 'foo', user.has_cached_role?(role),
                        disabled: (role == :developer and not user.has_cached_role?(role)),
                        class: "permissions-checkbox", data: {:user_id => user.id, :role => role.to_s } %>
      <% if role.to_sym == :core %>
        <%= check_box_tag "#{user.id}[#{role.to_s}]", 'foo', user.has_pinned_role?(role),
                          disabled: (role == :developer and not user.has_cached_role?(role)),
                          class: "pin-checkbox", data: {:user_id => user.id, :role => role.to_s } %>
      <% end %>
    </label>
  </td>
<% end %>

<% roles.each do |role| %>
  <td>
    <label class="permissions-checkbox-label">
      <%= check_box_tag "#{user.id}[#{role.to_s}]", 'foo', user.has_cached_role?(role),
                        disabled: (role == :developer and not user.has_cached_role?(role)),
                        class: "permissions-checkbox", data: {:user_id => user.id, :role => role.to_s } %>
    </label>
  </td>
<% end %>

Remove core pinned role checkboxes

Remove core pinned role checkboxes


      <%= user_menu_header %>

        <%= profile_user_menu_link %>
        <%= user_menu_divider %>
        <%= messages_user_menu_link %>
        <%= discussions_user_menu_link %>
        <%= user_menu_divider %>
        <%= activity_user_menu_link %>
        <%= certificates_user_menu_link %>
        <%= exam_authorizations_user_menu_link %>
        <%= notifications_user_menu_link %>

      <%= user_menu_header %>

        <%= profile_user_menu_link %>
        <%= notifications_user_menu_link %>
        <%= user_menu_divider %>
        <%= messages_user_menu_link %>
        <%= discussions_user_menu_link %>
        <%= user_menu_divider %>
        <%= activity_user_menu_link %>
        <%= certificates_user_menu_link %>
        <%= exam_authorizations_user_menu_link %>

Move notifications menu item up

Move notifications menu item up


<% content_for :head do %>
  <script type="text/javascript" charset="utf-8">
    $(document).ready(function(){
      var myTextArea = $('textarea.tagme').tagify();

      myTextArea.tagify('inputField').autocomplete({
        source: <%= raw resource_class.tag_counts.collect { |t| t.name } %>,
        position: { of: myTextArea.tagify('containerDiv') },
        close: function(event, ui) { myTextArea.tagify('add'); },
      });

      $('textarea.tagme').closest("form").submit( function() {
        $('textarea').tagify('serialize');
      });
    });
  </script>
  <style type="text/css" media="all">
    .ui-autocomplete {width:296px;}
  </style>
<% end %>

<%= f.input :tag_list, as: :text, input_html: { class: "tagme" } %>

<% id = "koi-#{ new_uuid }" %>

<% content_for :head do %>

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

    $ (document).ready (function ()
    {
      var input = $ ('#<%= id %>')

      input.tagify ()

      input.tagify ('inputField').autocomplete ({

        source: <%= raw resource_class.tag_counts_on(attr).collect { |t| t.name } %>

      , position: { of: input.tagify ('containerDiv') }

      , close: function (event, ui) { input.tagify ('add') }

      })

      input.closest ('form').submit (function (e)
      {
        input.tagify ('serialize')
      })

    })
  </script>

  <style type="text/css" media="all">
    .ui-autocomplete { width : 296px; }
  </style>
<% end %>

<%= f.input attr, as: :text, input_html: { id: id } %>

Fix for dodgy tags, and allow for other tag field names.


<% content_for :page_title, @application.name %>

<%= @application.name %>

Repo:

<%= link_to @application.repo, @application.repo %>

  <%= link_to "Edit", { action: "edit", id: @application.id }, class: "btn" %>
  <%= link_to "Create Deploy Task", { controller: "tasks", action: "new", application_id: @application.id },
                               class: "btn" %>

<% content_for :page_title, @application.name %>

<%= @application.name %>

Repo:

<%= link_to @application.repo, @application.repo %>

  <%= link_to "Edit", { action: "edit", id: @application.id }, class: "btn" %>
  <%= link_to "Create Deploy Task", new_task_path, class: "btn" %>

Simplify 'Create Deploy Task' action

Simplify 'Create Deploy Task' action

Rather than providing the application id, direct users straight to the
new task action.


    <%= spree_breadcrumbs(@taxon) %>

<%= @taxon.name %>

    <% unless @taxon.description.blank? %>

<%= @taxon.description %>

    <% end %>
    <% if @taxon.icon&.attachment %>

        <%= lazy_image(
          src: main_app.url_for(@taxon.icon.attachment),
          alt: @taxon.description || Spree.t('taxon_missing_alt'),
          width: 1110,
          height: 300,
          class: 'w-100'
        ) %>

    <% end %>

  <%= render 'subcategories', taxon: @taxon %>

    <%= render template: 'spree/products/index', colors: @colors, sizes: @sizes %>

Set category headers to align left

[SD-625] Set category headers to align left


      <%= link_to "WORK PARTY !", '#', id: "logo" %>

<%= link_to "Create Account",    '#' %>

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

      <%= link_to "WORK PARTY !", '#', id: "logo" %>

          <% if user_signed_in? %>

<%= link_to current_user.email, edit_user_registration_path %>

<%#= link_to 'Edit Profile', edit_user_registration_path %>

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

          <% else %>

<%= link_to "Create Account", new_user_registration_path %>

<%= link_to "Log In", new_user_session_path %>

          <% end %>

Create nice login auth stuff in the header


    <%= link_to "VITA Site Finder", root_path, id: 'logo' %>

<%= link_to 'Home', root_path %>

        <% if logged_in? && is_admin? %>
          <%= render 'layouts/sites_dropdown' %>
        <% else %>

<%= link_to 'Sites', sites_path %>

        <% end %>

        <% if logged_in? && is_admin? %>
          <%= render 'layouts/users_dropdown' %>
        <% end %>

        <% if logged_in? %>

                Account

<%= link_to 'Profile', current_user %>

<%= link_to 'Settings', '#' %>

                  <%= link_to 'Log out', logout_path, method: 'delete' %>

        <% else %>

<%= link_to 'Log In', login_path %>

        <% end %>

    <%= link_to "VITA Site Finder", root_path, id: 'logo' %>

<%= link_to 'Home', root_path %>

        <% if logged_in? && is_admin? %>
          <%= render 'layouts/sites_dropdown' %>
        <% else %>

<%= link_to 'Sites', sites_path %>

        <% end %>

        <% if logged_in? && is_admin? %>
          <%= render 'layouts/users_dropdown' %>
        <% end %>

        <% if logged_in? %>

                Account

<%= link_to 'Profile', current_user %>

<%= link_to 'Settings', edit_user_path(current_user) %>

                  <%= link_to 'Log out', logout_path, method: 'delete' %>

        <% else %>

<%= link_to 'Log In', login_path %>

        <% end %>

Add link to edit your profile

Add link to edit your profile


<% @questions.each do |question| %>
<%= link_to question.title, question_path(question) %>
<% end %>

Add h3 tag to questions title links in layout


Enter your expenses!

Current expense total: <% @user.expenses.each do |expense| %>

$<%= expense.amount %>

 <% end %>

<%= render "form" %>

Enter your expenses!

<%= render "form" %>

Remove current expenses from form page

Remove current expenses from form page


<%= notice %>

Listing Orders

      Name
      Address
      Email
      Pay type

    <% @orders.each do |order| %>

        <%= order.name %>
        <%= order.address %>
        <%= order.email %>
        <%= order.pay_type %>
        <%= link_to 'Show', order %>
        <%= link_to 'Edit', edit_order_path(order) %>
        <%= link_to 'Destroy', order, method: :delete, data: { confirm: 'Are you sure?' } %>

    <% end %>

<%= link_to 'New Order', new_order_path %>

<% if notice %>

<%= notice %>

<% end %>

Listing Orders

      Name
      Address
      Email
      Pay type

    <% @orders.each do |order| %>

        <%= order.name %>
        <%= order.address %>
        <%= order.email %>
        <%= order.pay_type %>
        <%= link_to 'Show', order %>
        <%= link_to 'Edit', edit_order_path(order) %>
        <%= link_to 'Destroy', order, method: :delete, data: { confirm: 'Are you sure?' } %>

    <% end %>

<%= link_to 'New Order', new_order_path %>

Fix displaying empty notice on orders index view


    <%= render partial: 'form' %>

            <%= render collection: @results, partial: "result" %>

<% content_for :extra_headers do %>
  <link rel="alternate" type="application/json" href="/api/search.json?q=<%= @search_term %>">
<% end %>
<% content_for :title, "#{@search_term} | Search | GOV.UK Beta (Test)" %>

Remove some unneeded divs in search results.

This is a temporary change that will be replaced with the new search
layout shortly


          TIYD-Rails TA Page

        Contribute

<%= link_to 'Repo', 'https://github.com/jmbuscemi/lecture_pics', target: "_blank" %>

<%= render partial: 'layouts/alert' %>

        <%= form_tag login_path do %>

              <%= text_field_tag :email, nil, placeholder: "Email" %>

              <%= password_field_tag :password, nil, placeholder: "Password" %>

              <%= submit_tag "Login", class: "button expand"%>

              <%= link_to "Sign up", new_user_path %>

        <% end %>

Add nav bar to login page.

Add nav bar to login page.


Unless you have an administrative role

  (essentially, unless you are Barb, Jane, or Sharon)
you do NOT need to log-in or sign-up to use this site.

Add help page and styling.

Add help page and styling.


<!DOCTYPE html>

  <title>WeCrowd</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>
  <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,700|Roboto+Slab:400,300,700' rel='stylesheet' type='text/css'>

      <%= render("shared/flash", { :flash => flash })%>

    <%= render("shared/header.html.erb")%>

      <%= yield %>

	<%= render("shared/footer.html.erb")%>

Remove duplicate assets load from layout


<!DOCTYPE html>
<html>
<head>
  <title>Mguides</title>
  <%= stylesheet_link_tag '/guide-assets/stylesheets/formtastic.css', '/guide-assets/stylesheets/formtastic_changes.css' %>
  <%= csrf_meta_tag %>
  <%= yield :extra_headers %>
</head>
<body>

  <div id="wrapper" class="wrapper">
    <%= yield %>

    <script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <%= javascript_include_tag '/guide-assets/javascripts/jquery.mustache.js', '/guide-assets/javascripts/jquery-ui-1.8.14.custom.min.js', '/guide-assets/javascripts/form-tools.js' %>
    <%= yield :extra_javascript %>
  </div>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>Mguides</title>
  <%= stylesheet_link_tag '/guide-assets/stylesheets/formtastic.css', '/guide-assets/stylesheets/formtastic_changes.css', 'jquery-ui-1.8.10.custom.css' %>
  <%= csrf_meta_tag %>
  <%= yield :extra_headers %>
</head>
<body>

  <div id="wrapper" class="wrapper">
    <%= yield %>

    <script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <%= javascript_include_tag '/guide-assets/javascripts/jquery.mustache.js', '/guide-assets/javascripts/jquery-ui-1.8.14.custom.min.js', '/guide-assets/javascripts/form-tools.js' %>
    <%= yield :extra_javascript %>
  </div>

</body>
</html>

Load the jquery UI CSS

Load the jquery UI CSS


<!DOCTYPE html>

    <title><%= yield(:title) || 'Untitled' %></title>
    <%= csrf_meta_tags %>
    <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload', async: Rails.env.production? %>
    <%= yield(:head) %>
    <link rel="mask-icon" href="pinned-masterlab.svg" color="#993399">

      <%= render 'layouts/header' -%>
      <%= render 'layouts/tabs' -%>

      <%= render 'sidebar' -%>

      <%= yield %>

    <%= render 'layouts/footer' -%>

<!DOCTYPE html>

    <title><%= yield(:title) || 'Untitled' %></title>
    <%= csrf_meta_tags %>
    <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
    <%= yield(:head) %>
    <link rel="mask-icon" href="pinned-masterlab.svg" color="#993399">

      <%= render 'layouts/header' -%>
      <%= render 'layouts/tabs' -%>

      <%= render 'sidebar' -%>

      <%= yield %>

    <%= render 'layouts/footer' -%>

Revert "Use async to load JS in production"

This reverts commit 7477b6dab7a0be4a48a9634b780f38d658f6f185.


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

  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Triage | <%= controller.singular_class_name(controller).gsub('_controller', '').capitalize %> | <%= controller.action_name %></title>

<%= flash[:notice] %>

<%= yield  %>

Add a very basic layout.

Add a very basic layout.


<!DOCTYPE html>

    <title>CityGems</title>
    <%= csrf_meta_tags %>

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

      <% if current_user %>
        Signed in as <%= current_user.name %>!
        <%= link_to "Sign out", signout_path, id: "sign_out" %>
      <% else %>
        <%= link_to "Sign in with Google", "/auth/google_oauth2", id: "sign_in" %>
      <% end %>

    <%= yield %>

<!DOCTYPE html>

    <title>CityGems</title>
    <%= csrf_meta_tags %>

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

      <% if current_user %>
        Signed in as <%= current_user.first_name %>!
        <%= link_to "Sign out", signout_path, id: "sign_out" %>
      <% else %>
        <%= link_to "Sign in with Google", "/auth/google_oauth2", id: "sign_in" %>
      <% end %>

    <%= yield %>

Change layout to just use first name instead of full name


  Material Name
  <%= scope[:form].text_field com.thoughtworks.go.config.materials.AbstractMaterialConfig::MATERIAL_NAME, :class => "form_input", :id => nil -%>
  <%= error_message_on(scope[:material], com.thoughtworks.go.config.materials.AbstractMaterialConfig::MATERIAL_NAME, :css_class => "form_error") %>

    Pipeline [Stage]*
    <%= scope[:form].text_field com.thoughtworks.go.config.materials.dependency.DependencyMaterialConfig::PIPELINE_STAGE_NAME, :class => "form_input required", :id => "material_pipelineStageName" -%>
    <%= error_message_on(scope[:material], com.thoughtworks.go.config.materials.dependency.DependencyMaterialConfig::PIPELINE_STAGE_NAME, :css_class => "form_error") %>

<%= render :partial => 'admin/shared/dependency_auto_complete.html', :locals => {:scope => {:pipeline_stages_json => @pipeline_stages_json, :selector => "#material_pipelineStageName"}} %>

Add material name field for dependency material in pipeline creation wizard.


<% if not @resp.submitted -%>

Session saved

You have saved your response in progress to this survey.  When you come back to Journey and log in, you'll be
	  able to pick it up where you left off.

<% else -%>

Thank you!

You have successfully submitted your answers to the <%=h @resp.questionnaire.title %> survey.

<% end -%>

    <%= link_to :action => 'prompt', :id => @resp.questionnaire.id do %>
	  Go back to the front page of this survey »
    <% end -%>

    <%= link_to root_url do %>
	   Go to the main page of Journey »
    <% end -%>

Use CSS-friendly markup on save-session page