<!DOCTYPE html>
<html lang="en">
<head>
  <title>Draw Your Data</title>
  <%= stylesheet_link_tag "application", media: "all",
                          "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= render 'layouts/navigation' %>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Draw Your Data</title>
  <%= stylesheet_link_tag "application", media: "all",
                          "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= render 'layouts/navigation' %>

<%= yield %>

<script type="text/javascript">
  var rumbleBannerBackgroundColor,
      rumbleBannerTextColor,
      rumbleBannerLinkColor,
      rumbleBannerPlacement;
  rumbleBannerBackgroundColor = "#f8f8f8";
  rumbleBannerTextColor = "#777777";
  rumbleBannerLinkColor = "##3a87ad";
  rumbleBannerPlacement = "bottom";
</script>
<script src="http://s0.railsrumble.com/banner.js"
        type="text/javascript"></script>

</body>
</html>

Add vote banner to bottom and style to page


<!DOCTYPE html>

  <title><%= yield(:title).blank? ? "Fridge" : yield(:title) %></title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <meta name="viewport" content="width=device-width">
  <%= csrf_meta_tags %>

<%# Navmenu collapsed by default %>
<%= render partial: "shared/navmenu" %>

<%# Page wrap is the element pushed aside by nav menu %>

  <%= render partial: "shared/navbar" %>
  <%# Content is what is filled by the pages %>

    <%= yield %>

Add Rails Rumble banner to site.

Add Rails Rumble banner to site.


<!DOCTYPE html>
<html>
<head>
  <title>Paweb</title>
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>PulseAudio volume control</title>
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

Change title to “PulseAudio volume control”


<!DOCTYPE html>

    <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,600,600italic'
          rel='stylesheet' type='text/css'>
    <%= stylesheet_link_tag 'application', media: 'all' %>
    <%= branding_stylesheets %>
    <%= javascript_include_tag 'application' %>
    <%= csrf_meta_tags %>
    <%= yield :head_script %>

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

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

        <%= render partial: 'shared/search_panel' %>
        <%= render partial: 'shared/admin_menu' if admin_signed_in? %>
        <%= yield %>

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

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

  <%= yield :foot_script %>
  <%= javascript_include_tag 'style' %>

<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0" />
    <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,600,600italic'
          rel='stylesheet' type='text/css'>
    <%= stylesheet_link_tag 'application', media: 'all' %>
    <%= branding_stylesheets %>
    <%= javascript_include_tag 'application' %>
    <%= csrf_meta_tags %>
    <%= yield :head_script %>

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

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

        <%= render partial: 'shared/search_panel' %>
        <%= render partial: 'shared/admin_menu' if admin_signed_in? %>
        <%= yield %>

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

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

  <%= yield :foot_script %>
  <%= javascript_include_tag 'style' %>

Add meta elements to layout

Add meta elements to layout

* Add viewport so mobile devices load the page at the correct scale.
* Add charset as a best practice.


<%= wiki_page_style -%>

<%=wt 'All pages' %>

  <% wiki_paginate @pages do -%>
    <% @pages.each do |page| -%>

<%= link_to page.title, wiki_page_path( page ) %>

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

<%= wiki_page_style -%>

<%=wt 'All pages' %>

  <%= wiki_paginate @pages do -%>
    <% @pages.each do |page| -%>

<%= link_to page.title, wiki_page_path( page ) %>

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

Fix view for 'all pages'

Fix view for 'all pages'


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

<%= title 'Log in' %>

      <%= f.label :email %>

      <%= f.email_field :email, autofocus: true, class: %w(form-control t-email) %>

      <%= f.label :password %>

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

  <% if devise_mapping.rememberable? -%>

      <%= f.check_box :remember_me, 't-remember-me' %>
      <%= f.label :remember_me %>

  <% end -%>

    <%= f.submit 'Log in', class: %w(t-submit) %>

<% end %>

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

Fix vertical spacing on login page

Fix vertical spacing on login page


<!DOCTYPE html>
<html>
<head>
  <title>StoryVine</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>StoryVine</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>
  <header>
    <%= render 'layouts/navigation' %>
  </header>
  <div id="container">
    <%= render 'layouts/messages' %>
    <%= yield %>
  </div>

</body>
</html>

Add nav bar and flash messages to application template


<!DOCTYPE html>

  <title><%= yield :title %> - GOV.UK</title>
  <%= stylesheet_link_tag "application" %>

  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
  <link rel="alternate" type="application/json" href="/api<%= request.path %>.json">

        <%= yield %>

<!DOCTYPE html>

  <title><%= yield :title %> - GOV.UK</title>
  <%= stylesheet_link_tag "application" %>

  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>

        <%= yield %>

Remove obsolete link to JSON representation

This linked to the publicly accessible Content API, but that no longer holds
the data for these pages. If there were a publicly accessible Content Store, we
could link to that.


<%= form_for :vote, url: '/votes/upvote' do |f|  %>
  <%= f.hidden_field :user_id, value: current_user.id %>
  <%= f.hidden_field :votable_type, value: votable_type %>
  <%= f.hidden_field :votable_id, value: votable_id %>
  <%= f.hidden_field :upvote, value: true %>
  <%= f.submit 'Upvote' %>
<% end %>

<%= form_for :vote, url: '/votes/downvote' do |f|  %>
  <%= f.hidden_field :user_id, value: current_user.id %>
  <%= f.hidden_field :votable_type, value: votable_type %>
  <%= f.hidden_field :votable_id, value: votable_id %>
  <%= f.hidden_field :upvote, value: false %>
  <%= f.submit 'Downvote' %>
<% end %>

<%= form_for :vote, url: '/votes/upvote' do |f|  %>
  <%= f.hidden_field :user_id, value: current_user.id %>
  <%= f.hidden_field :votable_type, value: votable_type %>
  <%= f.hidden_field :votable_id, value: votable_id %>
  <%= f.hidden_field :upvote, value: true %>
  <%= f.submit 'Upvote' %>
<% end %>

<%= @answer.vote_count if @answer %>
<%= @question.vote_count if @question %>

<%= form_for :vote, url: '/votes/downvote' do |f|  %>
  <%= f.hidden_field :user_id, value: current_user.id %>
  <%= f.hidden_field :votable_type, value: votable_type %>
  <%= f.hidden_field :votable_id, value: votable_id %>
  <%= f.hidden_field :upvote, value: false %>
  <%= f.submit 'Downvote' %>
<% end %>

Add vote_count to _vote_buttons partial.


<%= form_tag [:admin, :search], class: 'search-inline search-petitions', method: 'get' do %>
  <%= label_tag :q, "Search all petitions", class: "visuallyhidden" %>
  <%= search_field_tag 'q', query, class: 'form-control', placeholder:"Keywords, name, email address, petition ID or [tag]" %>
  <%= submit_tag 'Search', class: 'inline-submit' %>
<% end %>

<%= form_tag [:admin, :search], class: 'search-inline search-petitions', method: 'get' do %>
  <%= label_tag :q, "Search all petitions", class: "visuallyhidden" %>
  <%= search_field_tag 'q', query, class: 'form-control', placeholder:"Keywords, name, email address, IP address, petition ID or [tag]" %>
  <%= submit_tag 'Search', class: 'inline-submit' %>
<% end %>

Add 'IP address' to the placeholder text


<% category = Category.where(id: article.category_id).to_a[0] %>
  <%= link_to category_path(id: category.id) do %>

			<%= category.title %>

	<% end %>
	<%= link_to article_path(id: article.id ) do %>
		<%= image_tag article.image.url(:large), class: "#{image_class}" %>

		<%= article.title %>

	<% end %>

<% category = Category.where(id: article.category_id).to_a[0] %>
  <%= link_to category_path(id: category.id) do %>

			<%= category.title %>

	<% end %>
	<%= link_to article_path(id: article.id ) do %>
		<%= image_tag article.image.url(:medium), class: "#{image_class}" %>

		<%= article.title %>

	<% end %>

Set img_link image to medium

Set img_link image to medium


<div class="medium-4 columns <%= 'hide-for-small-only' if (index >= 3) %>">

    <%= link_to crop do %>

      <div class="crop-image full-cover" style="background-image:url(<%= crop.pictures[0] %>)">

<%= crop.name %>

    <% end %>

<div class="medium-4 columns <%= 'hide-for-small-only' if (index >= 3) %>">

    <%= link_to crop do %>

      <div class="crop-image full-cover" style="<%= if !crop.pictures[0].blank? then "background-image: url(#{crop.pictures[0].attachment.url})" end %>">

<%= crop.name %>

    <% end %>

Fix for homepage crop images

Fix for homepage crop images


 <%= comment.user ? comment.user.name : 'Default' %>

<%= comment.body %>

  <%= link_to 'Edit', edit_comment_path(comment) %>
  <%= link_to 'Delete', comment, method: :delete, data: {confirm: "You sure bub?" } %>

  <button data-id="<%comment.id%>" class="upvote">UpVote</button>

Prepare upvote button for ajax call.

Prepare upvote button for ajax call.


<div class="order-message-title status-<%= order.current_status %>">

    <%= _("%{code} %{status_message}") % { :code => order.code, :status_message => order.status_message } %>

  <%= link_to _('open'), {:controller => :distribution_plugin_order, :action => :edit, :id => order.id}, :class => 'open' if order != @order %>

<div class="order-message-title status-<%= order.current_status %>">

    <%= _("%{code} %{status_message}") % { :code => order.code, :status_message => order.status_message } %>

  <%= link_to _('open it'), {:controller => :distribution_plugin_order, :action => :edit, :id => order.id}, :class => 'open' if order != @order %>

Fix imperative open with past open translation


---
- 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
                - vpn
        - string:
            name: USERNAME
            description: Vcloud username
        - password:
            name: VCLOUD_PASSWORD
            description: Vcloud Password
        - choice:
            name: TARGET_ENVIRONMENT
            description: The environment to deploy network configuration to
            choices:
                <%- @environments.each do |env| -%>
                - <%= env %>
                <%- end -%>

Add environment options to dryrun job

Add environment options to dryrun job

This job should mimic the real job and lacks the options to select which
environment to deploy network changes too.


<%= simple_form_for(@text, url: backend_content_text_path(@text)) do |f| %>
  <fieldset class="radius">
    <%= f.input :content %>
  </fieldset>

  <%= render 'backend/form_actions', cancel_url: content_path %>
<% end %>

<%= simple_form_for [:backend, @text] do |f| %>
  <fieldset class="radius">
    <%= f.input :content %>
  </fieldset>

  <%= render 'backend/form_actions', cancel_url: content_path %>
<% end %>

Refactor the text edit form.

Refactor the text edit form.


<% @title = _("Missing contact details for '") + h(@info_request.public_body.name) + "'" %>

<%=@title%>

<%= _('Unfortunately, we do not have a working {{info_request_law_used_full}}
address for', :info_request_law_used_full => @info_request.law_used_full) %> <%=h @info_request.public_body.name %>. <%= _('You may be able to find
one on their website, or by phoning them up and asking. If you manage
to find one, then please send it to us.', :help_url => help_contact_path) %>

<% @title = _("Missing contact details for '") + h(@info_request.public_body.name) + "'" %>

<%=@title%>

<%= _('Unfortunately, we do not have a working {{info_request_law_used_full}}
address for', :info_request_law_used_full => @info_request.law_used_full) %> <%=h @info_request.public_body.name %>. <%= _('You may be able to find
one on their website, or by phoning them up and asking. If you manage
to find one, then please send it to us.', :help_url => new_change_request_path(:body => @info_request.public_body.url_name)) %>

Send people to new change request instead of generic contact page

You get to this page by attempting to make a request and being asked
to contribute an email for an authority that's missing an email so it
makes sense to just send them to the change request page for this
authority.


<% if !Rails.env.production? || Rails.application.secrets.deploy_env != "production" -%>

<%= Rails.application.secrets.deploy_env.present? ? Rails.application.secrets.deploy_env.upcase : Rails.env.upcase %>

<% end -%>

<% env = Rails.application.secrets.deploy_env -%>
<% if env.present? -%>

<%= env.upcase %>

<% end -%>

Update banner to show based on if there is a value from the secrets


<%= render_flash(timeout: 5000, sticky: true) %>
<%= remove_element("#piece_justificative_#{@champ.id}") %>
<%= show_element("#champs_#{@champ.id}") %>

Align with behaviour on user dossier form


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

Ciphers -arcfour,arcfour128,arcfour256

SyslogFacility                  AUTH
LogLevel                        VERBOSE

LoginGraceTime                  120
StrictModes                     yes

RSAAuthentication               yes
PubkeyAuthentication            yes

IgnoreRhosts                    yes
HostbasedAuthentication         no
PermitEmptyPasswords            no
KerberosAuthentication          no
GSSAPIAuthentication            no

PermitRootLogin                 no
PasswordAuthentication          no
ChallengeResponseAuthentication no

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

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

PrintMotd                       no
PrintLastLog                    yes
TCPKeepAlive                    no
ClientAliveInterval             30
ClientAliveCountMax             20

AcceptEnv                       LANG LC_*

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

UsePAM                          yes

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

SyslogFacility                  AUTH
LogLevel                        VERBOSE

LoginGraceTime                  120
StrictModes                     yes

RSAAuthentication               yes
PubkeyAuthentication            yes

IgnoreRhosts                    yes
HostbasedAuthentication         no
PermitEmptyPasswords            no
KerberosAuthentication          no
GSSAPIAuthentication            no

PermitRootLogin                 no
PasswordAuthentication          no
ChallengeResponseAuthentication no

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

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

PrintMotd                       no
PrintLastLog                    yes
TCPKeepAlive                    no
ClientAliveInterval             30
ClientAliveCountMax             20

AcceptEnv                       LANG LC_*

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

UsePAM                          yes

Revert "Disable the use of insecure arcfour SSH ciphers"


#
# Generated by Chef
#

<% @realm_types.each_pair do |k,v| %>
<%= k %> {
<%= v %> required;
};
<% end %>

/*
 * Generated by Chef
 */

<% @realm_types.each_pair do |k,v| %>
<%= k %> {
<%= v %> required;
};
<% end %>

Use the correct commenting style

Use the correct commenting style


<% unless defined?(style)%>
    <% style = "standard" %>
<% end %>
<div class="fb-like" data-href="https://www.facebook.com/coursemology" data-layout="<%= style %>" data-action="like" data-show-faces="false" data-share="false">

<% unless defined?(style)%>
    <% style = "standard" %>
<% end %>
<div class="fb-like"
     data-href="https://www.facebook.com/coursemology"
     data-width="20"
     data-height="20"
     data-layout="<%= style %>"
     data-action="like"
     data-show-faces="false"
     data-share="false">
</div>

Update facebook like code, to fix issues with bootstrap


  My school

    <%= link_to current_user.school.name, school_path(current_user.school), class: 'dropdown-item' %>
    <%= link_to 'Gas usage', pupils_school_analysis_path(school, category: :gas), class: 'dropdown-item' if current_user.school.has_gas? %>
    <%= link_to 'Electricity usage', pupils_school_analysis_path(school, category: :electricity), class: 'dropdown-item' if current_user.school.has_electricity? %>
    <%= link_to 'Analysis', school_analysis_path(current_user.school), class: 'dropdown-item' %>
    <%= link_to 'Simulations', school_simulations_path(current_user.school), class: 'dropdown-item' if can?(:manage, current_user.school) %>
    <% if current_user.contact %>
      <%= link_to 'My alerts', edit_school_contact_path(current_user.school, current_user.contact), class: 'dropdown-item' %>
    <% else %>
      <%= link_to 'My alerts', new_school_contact_path(current_user.school, user_id: current_user.id), class: 'dropdown-item' %>
    <% end %>

  My school

    <%= link_to current_user.school.name, school_path(current_user.school), class: 'dropdown-item' %>
    <%= link_to 'Gas usage', pupils_school_analysis_path(current_user.school, category: :gas), class: 'dropdown-item' if current_user.school.has_gas? %>
    <%= link_to 'Electricity usage', pupils_school_analysis_path(current_user.school, category: :electricity), class: 'dropdown-item' if current_user.school.has_electricity? %>
    <%= link_to 'Analysis', school_analysis_path(current_user.school), class: 'dropdown-item' %>
    <%= link_to 'Simulations', school_simulations_path(current_user.school), class: 'dropdown-item' if can?(:manage, current_user.school) %>
    <% if current_user.contact %>
      <%= link_to 'My alerts', edit_school_contact_path(current_user.school, current_user.contact), class: 'dropdown-item' %>
    <% else %>
      <%= link_to 'My alerts', new_school_contact_path(current_user.school, user_id: current_user.id), class: 'dropdown-item' %>
    <% end %>

Fix links in my school

Fix links in my school


  <% @environment.display_categories.each do |item| %>
    <li id="category<%= item.display_color %>"<%= ' class="active"' if (@category && (@category.top_ancestor == item)) %>>
      <%= item.name %>

        <% item.children_for_menu.each do |child| %>

<%= link_to(content_tag('span', child.name), :controller => 'search', :action => 'category_index', :category_path => child.explode_path) %>

        <% end %>

  <% end %>

  <% @environment.display_categories.each do |item| %>
    <li id="category<%= item.display_color %>"<%= ' class="active"' if (@category && (@category.top_ancestor == item)) %>>
      <%= item.name %>

        <% next if item.children_for_menu.blank? %>
        <% item.children_for_menu.each do |child| %>

<%= link_to(content_tag('span', child.name), :controller => 'search', :action => 'category_index', :category_path => child.explode_path) %>

        <% end %>

  <% end %>

Fix error on nil category

Fix error on nil category


Given /^the following <%= plural_name %>:$/ do |<%= plural_name %>|
  <%= class_name %>.create!(<%= plural_name %>.hashes)
end

When /^I delete the (\d+)(?:st|nd|rd|th) <%= singular_name %>$/ do |pos|
  visit <%= plural_name %>_url
  within("table > tr:nth-child(#{pos.to_i+1})") do
    click_link "Destroy"
  end
end

Then /^I should see the following <%= plural_name %>:$/ do |expected_<%= plural_name %>_table|
  expected_<%= plural_name %>_table.diff!(tableish('table tr', 'td,th'))
end

Given /^the following <%= plural_name %>:$/ do |<%= plural_name %>|
  <%= class_name %>.create!(<%= plural_name %>.hashes)
end

When /^I delete the (\d+)(?:st|nd|rd|th) <%= singular_name %>$/ do |pos|
  visit <%= plural_name %>_url
  within("table tr:nth-child(#{pos.to_i+1})") do
    click_link "Destroy"
  end
end

Then /^I should see the following <%= plural_name %>:$/ do |expected_<%= plural_name %>_table|
  expected_<%= plural_name %>_table.diff!(tableish('table tr', 'td,th'))
end

Fix CSS selector so that XPath works

Fix CSS selector so that XPath works


<% if cookies[:hide_matrix].nil? %>

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

      <%= link_to(t('global.show'), params.merge(hide: false), class: 'btn primary') %>
      <%= link_to(t('global.hide'), params.merge(hide: true), class: 'btn primary') %>

<% elsif cookies[:hide_matrix] == 'true' %>

    <%= t('.you_chose_to_hide') %>
    <%= link_to(params.merge(hide: false)) do %>
      <%= t('.like_to_show') %>
    <% end %>

<% elsif cookies[:hide_matrix] == 'false' %>

    <%= t('.you_chose_to_show') %>
    <%= link_to(params.merge(hide: true)) do %>
      <%= t('.like_to_hide') %>
    <% end %>

<% end %>

<% if cookies[:hide_matrix].nil? %>

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

      <%= link_to(t('global.show'), { hide: false }, class: 'btn primary') %>
      <%= link_to(t('global.hide'), { hide: true }, class: 'btn primary') %>

<% elsif cookies[:hide_matrix] == 'true' %>

    <%= t('.you_chose_to_hide') %>
    <%= link_to(hide: false) do %>
      <%= t('.like_to_show') %>
    <% end %>

<% elsif cookies[:hide_matrix] == 'false' %>

    <%= t('.you_chose_to_show') %>
    <%= link_to(hide: true) do %>
      <%= t('.like_to_hide') %>
    <% end %>

<% end %>

Hide matrix: remove params to avoid XSS

Hide matrix: remove params to avoid XSS


<% content_for :title do %>
  How long are you planning to %{study_or_work} in the UK for?
<% end %>

<% options(
  "six_months_or_less": "6 months or less",
  "longer_than_six_months": "longer than 6 months"
) %>

<% content_for :title do %>
  How long are you planning to <%= study_or_work %> in the UK for?
<% end %>

<% options(
  "six_months_or_less": "6 months or less",
  "longer_than_six_months": "longer than 6 months"
) %>

Use ERB tag to interpolate value in template

This was not dealt with automatically by the conversion script.


[Service]
PermissionsStartOnly=true
ExecStartPre=/bin/chown -R www:www /var/www
ExecStartPre=-/usr/bin/sudo -u www /var/www/rails/current/script/prestart

Call restart script on rails nginx if exists


<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, shrink-to-fit=no"
    >
    <meta name="description" content="<%= page_description %>">
    <title><%= page_title %></title>
    <% if content_for?(:preferred_path) %>
      <link rel="canonical" href="<%= preferred_url %>">
    <% end %>
    <%= stylesheet_link_tag "main" %>
    <%= stylesheet_link_tag(
      "https://cloud.typenetwork.com/projects/2107/fontface.css/"
    ) %>

        <%= partial "partials/site_nav" %>

        <%= yield %>

        <%= partial "partials/site_footer" %>

    <%= partial "partials/javascript" %>
    <%= partial "partials/analytics" %>

<!DOCTYPE html>
<html lang="<%= I18n.locale %>">

    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, shrink-to-fit=no"
    >
    <meta name="description" content="<%= page_description %>">
    <title><%= page_title %></title>
    <% if content_for?(:preferred_path) %>
      <link rel="canonical" href="<%= preferred_url %>">
    <% end %>
    <%= stylesheet_link_tag "main" %>
    <%= stylesheet_link_tag(
      "https://cloud.typenetwork.com/projects/2107/fontface.css/"
    ) %>

        <%= partial "partials/site_nav" %>

        <%= yield %>

        <%= partial "partials/site_footer" %>

    <%= partial "partials/javascript" %>
    <%= partial "partials/analytics" %>

Set lang attribute through i18n module

Set lang attribute through i18n module


property $id="cib-bootstrap-options" \
        stonith-enabled="<%= @stonith_enabled %>" \
        no-quorum-policy="<%= @no_quorum_policy %>" \
        placement-strategy="balanced"
op_defaults $id="op-options" \
        timeout="<%= @op_default_timeout %>" \
        record-pending="true"
rsc_defaults $id="rsc-options" \
        resource-stickiness="1" \
        migration-threshold="3"

property $id="cib-bootstrap-options" \
        stonith-enabled="<%= @stonith_enabled %>" \
        no-quorum-policy="<%= @no_quorum_policy %>" \
        placement-strategy="balanced"
op_defaults $id="op-options" \
        timeout="<%= @op_default_timeout %>" \
        record-pending="true"
rsc_defaults $id="rsc-options" \
        resource-stickiness="100" \
        migration-threshold="3" \
        failure-timeout="60s"

Increase resource stickiness threshold to 100 and set failure timeout to 60s


	<%# <% link_to "/", class: "logo-link" do %>
		<%# <%= image_tag "ralph.png" %>
	<%# <% end %>

<%= link_to "Home", "/" %>

<%= link_to "About Us", "/about" %>

<%= link_to "Contact Us", "/contact" %>

<%= link_to "Donate", "/donate" %>

<%= link_to "Plexus", "/plexus" %>

<%= link_to "Sermons", "/sermons" %>

<%= link_to "Subscribe", "/subscribe" %>

	<%# <% link_to "/", class: "logo-link" do %>
		<%# <%= image_tag "ralph.png" %>
	<%# <% end %>

<%= link_to "Home", "/" %>

<%= link_to "About", "/about" %>

<%= link_to "Contact", "/contact" %>

<%= link_to "Donate", "/donate" %>

<%= link_to "Plexus", "/plexus" %>

<%= link_to "Sermons", "/sermons" %>

<%= link_to "Subscribe", "/subscribe" %>

Remove the "us's" from the Contact and About links in nav bar


        <% klass = %w(nav-link) %>
        <% klass << 'active' if active == :general %>

        <%= link_to t('b.general'), edit_backend_article_path(@model), class: klass %>

      <% Udongo.config.i18n.app.locales.each do |locale| %>

          <% klass = %w(nav-link) %>
          <% klass << 'active' if active == locale.to_sym %>

          <%= link_to locale.upcase, edit_translation_backend_article_path(@model, locale), class: klass %>

      <% end %>

Add todo regarding the user images tab.

Add todo regarding the user images tab.


<%=version.title%>

<%= raw version.body %>

<%=version.title%>

created by  <%= version.author.full_name %> on <%= version.format_date %>

<%= raw version.body %>

Add author and timestamp to version show page


1. Download the latest Windows release from Buildkite Agent releases on GitHub
2. Extract the files to a directory of your choice (we recommend `C:\buildkite-agent`)
3. Edit `buildkite-agent.cfg` and add your token
4. Run `buildkite-agent start` from a command prompt

1. Download the latest Windows release from Buildkite Agent releases on GitHub
2. Extract the files to a directory of your choice (we recommend `C:\buildkite-agent`)
3. Edit `buildkite-agent.cfg` and add your token
4. Run `buildkite-agent.exe start` from a command prompt

Add .exe to the start command

Add .exe to the start command


Delegations

      <input type="text" name="filter" id="filter" value="" placeholder="Type your search here... " size="25"/>
      Clear Search

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

            Name
            Questionnaire
            Actions

          <% @user.delegated_tasks.each do |delegation| %>
              <tr id="row_<%=delegation.id.to_s%>">
                <%= link_to h(delegation.user.full_name), user_path(delegation.user) %>
                <%= delegation.questionnaire.title %>
                <%= link_to t('manage'), user_delegate_path(delegation.user_delegate) %>

          <% end %>

    <% else %>
      <%= t('no_current_delegations') %>
    <% end %>

Delegations

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

        <input type="text" name="filter" id="filter" value="" placeholder="Type your search here... " size="25"/>
        Clear Search

            Name
            Questionnaire
            Actions

          <% @user.delegated_tasks.each do |delegation| %>
              <tr id="row_<%=delegation.id.to_s%>">
                <%= link_to h(delegation.user.full_name), user_path(delegation.user) %>
                <%= delegation.questionnaire.title %>
                <%= link_to t('manage'), user_delegate_path(delegation.user_delegate) %>

          <% end %>

    <% else %>
      <%= t('manage_delegates.no_delegations') %>
    <% end %>

Fix table when no delegations

Fix table when no delegations


<% if object.url.present? && object.aspect_ratio.present? %>
  <div class="embed-responsive embed-responsive-<%= object.aspect_ratio_class %>">
    <iframe class="embed-responsive-item" src="<%= object.embed_url %>" allowfullscreen>

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

        <%= object.caption.html_safe %>

    <% else %>

        <%= object.caption %>

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

Add default for the video column content.


<%= t('stats.governance.title') %>

    <% governance_types.each_with_index do |type, index| %>
      <% themes = ['blue', 'aqua', 'purple', 'green'] %>

      <chart-row-stacked
        class="chart--row-stacked--basic"
        :rows="<%= [{ percent: type["percentage"].to_f.round(2) }].to_json %>"
        theme="<%= themes[index] %>"
      ></chart-row-stacked>
    <% end %>

    <% governance_types.each do |type| %>

        <%= type['governance_name'] %>
        <%= type['count'] %>
        <%= link_to 'View list', '', title: '', class: 'list__right list__a' %>

    <% end %>

<%#= link_to row["governance_name"], search_url("#{location.class.name.downcase}" => location.name, governance: row["governance_name"], main: location.class.name.downcase.to_sym) %>

<%= t('stats.governance.title') %>

    <% governance_types.each do |type| %>

        <%= type['governance_name'] %>
        <%= type['count'] %>
        <%= link_to 'View list', '', title: '', class: 'list__right list__a' %>

    <% end %>

<%#= link_to row["governance_name"], search_url("#{location.class.name.downcase}" => location.name, governance: row["governance_name"], main: location.class.name.downcase.to_sym) %>

Remove stacked row chart from governance section as this is being swapped out for a pie chart


<%= render layout: 'layouts/base' do %>

      <%= render 'components/phase_banner' %>
      <%= render 'components/logo_link' %>

    <%= render 'components/breadcrumbs' %>

            <%= yield %>

<% end %>

<%= render layout: 'layouts/base' do %>

      <%= render 'components/phase_banner' %>
      <%= render 'components/logo_link' %>

    <%= render 'components/breadcrumbs' %>

            <%= yield %>

        <%= yield :sidebar %>

<% end %>

Add sidebar to guides layout

Add sidebar to guides layout


<%= link_to("Down Vote", '/', class: "up-vote-answer", data: { direction: "down", url: "/questions/#{@question.id}/answers/#{answer.id}/votes", answer_id: answer.id, question_id: @question.id, votable_type: "Answer" }) %>

<%= link_to image_tag('thumbs-down.png', class: "up-vote-answer thumbs", data: { direction: "down", url: "/questions/#{@question.id}/answers/#{answer.id}/votes", answer_id: answer.id, question_id: @question.id, votable_type: "Answer" }), "#" %>

Add thumb image for ajax call

Add  thumb image for ajax call


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

      </button>
      MEAL TICKET

    <% if current_page?('/map') %>

        Select a pin to see great meal deals!

    <% end %>
    <% if owner_signed_in? %>
      Logged in as <%= current_owner.email %>.
      <%= link_to 'Edit profile', edit_owner_registration_path %> |
      <%= link_to "Logout", destroy_owner_session_path, method: :delete %>
    <% else %>
      <%= link_to "Sign up", new_owner_registration_path %> |
      <%= link_to "Login", new_owner_session_path %>
    <% end %>

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

      </button>
      <%= link_to "MEAL TICKET", root_path, class: "navbar-brand" %>

    <% if current_page?('/map') %>

        Select a pin to see great meal deals!

    <% end %>
    <% if owner_signed_in? %>
      Logged in as <%= current_owner.email %>.
      <%= link_to 'Edit profile', edit_owner_registration_path %> |
      <%= link_to "Logout", destroy_owner_session_path, method: :delete %>
    <% else %>
      <%= link_to "Sign up", new_owner_registration_path %> |
      <%= link_to "Login", new_owner_session_path %>
    <% end %>

Add link_to to return to home page on click of Meal Ticket brand


<%
  # Include this once a page then reference the symbols where you want them eg:
  #
  # <svg>
  #   <use xlink:href="#svg-arrow-right"></use>
  # </svg>
%>
<svg style="display: none;">
  <symbol id="svg-arrow-right" viewBox="0 0 22 34">
    <polygon points="0,5 5,0 22,17 5.1,34 0,29 12,17" />
  </symbol>
</svg>

<%
  # Include this once a page then reference the symbols where you want them eg:
  #
  # <svg>
  #   <use xlink:href="#svg-arrow-right"></use>
  # </svg>
%>
<svg <%= 'style="display: none;"' unless local_assigns[:no_styles] %>>
  <symbol id="svg-arrow-right" viewBox="0 0 22 34">
    <polygon points="0,5 5,0 22,17 5.1,34 0,29 12,17" />
  </symbol>
</svg>

Update svg_sprite to conditionally add the style attribute

This is required because you are not allowed style attribute in amp
webpages.


<div class="section <%= generator_name %>">

Source Listing

<%= h object.source %>

<div class="section <%= generator_name %>">
  View source

<%= h object.source %>

Make View Source into a link so it can be hidden/shown for later. This may change


<%= list.title %>

<% if list.image %>
  <%= image_tag list.image %>
<% end %>

  <%= simple_format list.description %>

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

<%= item.title %>

        <%= simple_format item.body %>

  <% end %>

<%= list.title %>

<% if list.image? %>
  <%= image_tag list.image %>
<% end %>

  <%= simple_format list.description %>

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

<%= item.title %>

        <%= simple_format item.body %>

  <% end %>

Check for presence of image

Check for presence of image

Image will return, even when `nil`.
```
#<KnowledgeBase::ImageUploader:0x007fd28c524a48
 @model=
  #<KnowledgeBase::Sectionables::Text id: 1, heading: "laudantiumnullaeum", lead: "Nihil laudantium sunt consequatur rem ipsam sit non...", body: "Accusantium natus asperiores totam aut porro et. Ni...", created_at: "2014-03-25 09:27:42", updated_at: "2014-03-25 09:27:42", image: nil>,
 @mounted_as=:image>
```


<%= text.heading %>

<% if text.image %>
  <%= image_tag text.image %>
<% end %>

  <%= simple_format text.lead %>

  <%= simple_format text.body %>

<%= text.heading %>

<% if text.image? %>
  <%= image_tag text.image %>
<% end %>

  <%= simple_format text.lead %>

  <%= simple_format text.body %>

Check for presence of image


---
title: HTML5 Boilerplate Middleman
---

<form>

    Input:
    <input type='text' name='swatchInput' class='swatchInput'>

    Output:
    <input type='text' name='swatchOutput' class='swatchOutput'>

    <input type='button' class='convert' value='Convert'>
</form>

---
title: Rugby! Colour conversion for designers and developers.
---

<form>

    Input:
    <input type='text' name='swatchInput' class='swatchInput'>

    Output:
    <input type='text' name='swatchOutput' class='swatchOutput'>

    <input type='button' class='convert' value='Convert!'>
</form>

Update doc title and convert button copy

Signed-off-by: Cole Peters <c40dbb01a0ae2ed2db5ce64b57b4492867839e53@colepeters.com>


Contact Forms

      Name
      Email
      Actions

    <% @contact_forms.each do |contact_form| %>

      <%= contact_form.name %>
      <%= contact_form.email %>

        <%= link_to 'Edit', [:edit, :admin, contact_form], :class => 'btn btn-primary btn-small' %>
        <%= link_to 'Delete', [:admin, contact_form], method: :delete, data: { confirm: 'Are you sure?' }, :class => 'btn btn-danger btn-small' %>

    <% end %>

Options

<%= link_to 'Add a Contact Form', new_admin_contact_form_path %>

<%= link_to "Test Link", '#' %>

<%= link_to "Test Link", '#' %>

<%= link_to "Test Link", '#' %>

<%= link_to "Test Link", '#' %>

Contact Forms

      Name
      Email
      Spam
      Actions

    <% @contact_forms.each do |contact_form| %>

      <%= contact_form.name %>
      <%= contact_form.email %>
      <%= contact_form.spam? ? 'Yes' : 'No' %>

        <%= link_to 'Edit', [:edit, :admin, contact_form], :class => 'btn btn-primary btn-small' %>
        <%= link_to 'Delete', [:admin, contact_form], method: :delete, data: { confirm: 'Are you sure?' }, :class => 'btn btn-danger btn-small' %>

    <% end %>

Options

<%= link_to 'Add a Contact Form', new_admin_contact_form_path %>

<%= link_to "Test Link", '#' %>

<%= link_to "Test Link", '#' %>

<%= link_to "Test Link", '#' %>

<%= link_to "Test Link", '#' %>

Add spam indication in admin - eventually should separate by a filter.


  <col width="25%" />

      Exercise
      Language
      Iterations
      Latest Iteration

  <% exercises.order(created_at: :desc).each do |exercise| %>

        <% if profile.can_access?(exercise) %>
          <a href="/exercises/<%= exercise.key %>">
            <%= exercise.problem.name %>

        <% else %>

          <a href="/exercises/<%= exercise.track_id %>/<%= exercise.slug %>"><%= exercise.problem.name %>
        <% end %>

      <%= exercise.problem.language %>
      <%= exercise.iteration_count %>
      <td data-value="<%= exercise.updated_at.to_i %>"><%= exercise.updated_at.strftime("%m-%d-%Y") %>

  <% end %>

  <col width="25%" />

      Exercise
      Language
      Iterations
      Latest Iteration

  <% exercises.order(updated_at: :desc).each do |exercise| %>

        <% if profile.can_access?(exercise) %>
          <a href="/exercises/<%= exercise.key %>">
            <%= exercise.problem.name %>

        <% else %>

          <a href="/exercises/<%= exercise.track_id %>/<%= exercise.slug %>"><%= exercise.problem.name %>
        <% end %>

      <%= exercise.problem.language %>
      <%= exercise.iteration_count %>
      <td data-value="<%= exercise.updated_at.to_i %>"><%= exercise.updated_at.strftime("%m-%d-%Y") %>

  <% end %>

Change to sort exercises by updated_at instead of created_at

The default sort column on the user show page is by "latest iteration."
The iteration date was displaying correctly, but the sorting was by
exercise creation_date, which coincides with the first submitted
iteration.

Addresses issue #2638


<%= @user.name %>

  <%= edit_profile_button %>

    <%= image_tag @user.profile_picture, class: 'mu-user-avatar', id: 'mu-user-avatar' %>

<%= content_for :no_container do %>
    <%= render partial: 'layouts/modals/avatar_picker' %>
<% end %>

<%= @user.name %>

  <%= edit_profile_button %>

    <%= image_tag @user.profile_picture, class: 'mu-user-avatar', id: 'mu-user-avatar' %>
git

<%= content_for :no_container do %>
    <%= render partial: 'layouts/modals/avatar_picker' %>
<% end %>
git

Move user name header to profile tab

Move user name header to profile tab


<IfModule alias_module>
Alias /icons/ "<%= @icons_path %>/"
<Directory "<%= @icons_path %>">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
</IfModule>

Add conditional <IfModule> directive to alias_module template.


<component>

    <templateId root="2.16.840.1.113883.10.20.1.8" assigningAuthorityName="HL7 SDTC CCD"/>
    <templateId root="2.16.840.1.113883.3.88.11.83.112" assigningAuthorityName="HITSP"/>
    <templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.19" assigningAuthorityName="IHE"/>

    <title>Medications - Prescription and Non-Prescription</title>
    <%= render :partial => 'narrative_block', :locals => {:entries => entries, :section => 'medications'} %>
    <% entries.each do |entry| -%>
    <entry>

      <substanceAdministration classCode="SBADM" moodCode="EVN">
        <templateId root="2.16.840.1.113883.10.20.1.24" assigningAuthorityName="HL7 SDTC CCD"/>
        <id root="<%= UUID.generate %>"/>
        <statusCode code="<%= status_code_for(entry) %>"/>
        <effectiveTime value="<%= Time.at(entry.time).utc.to_formatted_s(:number) %>"/>
        <consumable>

          <manufacturedProduct classCode="MANU">
            <templateId root="2.16.840.1.113883.10.20.1.53" assigningAuthorityName="HL7 SDTC CCD"/>
            <manufacturedMaterial>
              <%= raw code_display(entry) %>
              <name><%= entry.description %></name>
            </manufacturedMaterial>
          </manufacturedProduct>
        </consumable>
      </substanceAdministration>
    </entry>
    <% end -%>

</component>

Add medications section to generated C32


  <%= render 'form' %>

  <%= render 'shared/links' %>

Add row to new event form

fix: Add row to new event form

Related issue: #3


<%= link_to "<- Back my lists", user_lists_path(current_user) %>

<%= @list.title %>

  <% @list.tasks.each do |task| %>

<%= link_to task.content, task %>

  <% end %>

Add a task:

<%= form_for [current_user, @list] do |f| %>
  <%= f.hidden_field :user_id %>
  <%= f.fields_for :tasks, @list.tasks.build do |task_form| %>
    <%= task_form.label :content %>
    <%= task_form.text_field :content %>
  <% end %>
  <%= f.submit "Add task" %>
<% end %>

<%= link_to "<- Back my lists", user_lists_path(current_user) %>

<%= @list.title %>

  <% @list.tasks.each do |task| %>

<%= link_to task.content, task %>

  <% end %>

Add a task:

<%= form_for [current_user, @list] do |f| %>
  <%= f.fields_for :tasks, @list.tasks.build do |task_form| %>
    <%= task_form.label :content %>
    <%= task_form.text_field :content %>
  <% end %>
  <%= f.submit "Add task" %>
<% end %>

Clean up add task form in lists show.

Clean up add task form in lists show.


			<%= render 'layouts/copyright' %>

Users - Show

			<%= render 'layouts/copyright' %>

Users - Show

			<%= render 'layouts/copyright' %>

Users - Show

Name: <%= @user.name if @user.name %>

Email: <%= @user.email if @user.email %>

			<%= render 'layouts/copyright' %>

Users - Show

Name: <%= @user.name if @user.name %>

Email: <%= @user.email if @user.email %>

Add content to user show

Add content to user show


<% if product.images.size > 1 %>

    <% product.images.each do |i| %>
      <li class="tmb-all" id="tmb-<%= i.id.to_s %>"><%= link_to image_tag(i.attachment.url(:mini)), i.attachment.url(:product),
        :data => { :original => i.attachment.url(:original) } %>

    <% end %>
    <% if @product.has_variants?
      @variants.each do |v|
        if v.available?
          v.images.each do |i| %>
          <li class="vtmb-<%= v.id.to_s %> vtmb" id="tmb-<%= i.id.to_s %>"><%= link_to image_tag(i.attachment.url(:mini)), i.attachment.url(:product),
            :data => { :original => i.attachment.url(:original) }  %>

          <%
          end
        end
      end
    end
    %>

<% end %>

<% if product.images.size > 1 || product.variant_images.size > 0 %>

    <% product.images.each do |i| %>
      <li class="tmb-all" id="tmb-<%= i.id.to_s %>"><%= link_to image_tag(i.attachment.url(:mini)), i.attachment.url(:product),
        :data => { :original => i.attachment.url(:original) } %>

    <% end %>
    <% if @product.has_variants?
      @variants.each do |v|
        if v.available?
          v.images.each do |i| %>
          <li class="vtmb-<%= v.id.to_s %> vtmb" id="tmb-<%= i.id.to_s %>"><%= link_to image_tag(i.attachment.url(:mini)), i.attachment.url(:product),
            :data => { :original => i.attachment.url(:original) }  %>

          <%
          end
        end
      end
    end
    %>

<% end %>

Fix zooming of variant images

Fix zooming of variant images


KOBRA

- Kontroll av kårmedlemskap vid Linköpings Universitet.

    KOBRA används för att kontrollera kårmedlemskap och biljetter till studenter vid Linköpings Universitet.
    För att nyttja systemet krävs ett konto och en klientdator med MiFARE-läsare, bokas via <acronym title="Driftchef">DC</acronym> på Kårallen i Linköping.

    Se Kalasmanualen.

Logga in

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

<%= f.label :email, 'Användarnamn eller e-post' %>

    <%= f.text_field :email %>

<%= f.label :password, 'Lösenord' %>

    <%= f.password_field :password %>

    <% if devise_mapping.rememberable? -%>

<%= f.check_box :remember_me %> <%= f.label :remember_me, 'Kom ihåg mig' %>

    <% end -%>

<%= f.submit "Logga in" %>

  <% end %>

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

Add some usage information to the login page


<% if local_assigns[:screen_reader_filter_description] %>

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

<% end %>

<% if local_assigns[:applied_filters] %>

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

        <% applied_filter.each do |filter| %>

<%= filter[:preposition] %>

<%= filter[:text] %>

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

        <% end %>

    <% end %>

<% end %>

Fix facet tag layout when styles disabled

- changing the p and div elements to spans makes the button to remove the facet tag line up better with the text of the facet tag if styles are disabled
- this makes the layout much clearer


<!DOCTYPE html>

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

<body class="<%= body_class %>">

<% unless @suppress_navbar %>
  <%= render partial: 'shared/navbar' %>
<% end %>

  <%= render partial: 'shared/flashes' %>
  <%= render partial: 'shared/announcements' %>

  <%= yield %>

© Jason Morrison 2012.  All Rights Reserved.  CLAHub is a trademark of Jason Morrison.

      •

Source Code and Issues

      •
      <%= nav_link_to 'Privacy Policy', page_path('privacy') %>
      •
      <%= nav_link_to 'Terms of Service', page_path('terms') %>
      <% if signed_in? %>
        •
        <%= nav_link_to 'Sign Out', sign_out_path %>
      <% end %>

<%= javascript_include_tag "application" %>
<%= yield :javascript %>

<!DOCTYPE html>

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

<body class="<%= body_class %>">

<% unless @suppress_navbar %>
  <%= render partial: 'shared/navbar' %>
<% end %>

  <%= render partial: 'shared/flashes' %>
  <%= render partial: 'shared/announcements' %>

  <%= yield %>

© Jason Morrison 2012.  All Rights Reserved.

CLAHub is a trademark of Jason Morrison.

Source Code and Issues

      •
      <%= nav_link_to 'Privacy Policy', page_path('privacy') %>
      •
      <%= nav_link_to 'Terms of Service', page_path('terms') %>
      <% if signed_in? %>
        •
        <%= nav_link_to 'Sign Out', sign_out_path %>
      <% end %>

<%= javascript_include_tag "application" %>
<%= yield :javascript %>

Clean up footer by vertically breaking

Clean up footer by vertically breaking


<!DOCTYPE html>

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

  <% if current_user %>

        Hello <%= current_user.name %>

  <% end %>
  <%= yield %>
  <% if not current_user %>

        Internal user ?
        <%= link_to 'Login Here', login_path %>

  <% end %>

<!DOCTYPE html>

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

  <% if current_user %>

        <button type="button" class="btn btn-default dropdown-toggle"
        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
     <%= current_user.name %>
   </button>

<%= link_to 'Log out', session_destroy_path %>

  <% end %>
  <%= yield %>
  <% if not current_user %>

        Internal user ?
        <%= link_to 'Login Here', login_path %>

  <% end %>

Add dropdown with log out link on it

Add dropdown with log out link on it


<!DOCTYPE html>

  <title>Giftoppr</title>
  <link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= csrf_meta_tags %>
  <%= render :partial => 'layouts/head_js' %>

        <%= image_tag "logo.png", :width => 253, :height => 55 %>

        <%= image_tag "by.png", :width => 158, :height => 38 %>

        <% if user_signed_in? %>

Hi <%= current_user.name %>!

<%= link_to "Logout", auth_logout_path %>

        <% else %>

<%= link_to "Signin with Dropbox", auth_path(:dropbox) %>

        <% end %>

    <%= yield %>

Move head.js call to just after the script loader.


<!DOCTYPE html>

  <title>maur-unity</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <%= favicon_link_tag 'favicon.ico' %>

<% if admin_signed_in? %>

   new post

   <%= link_to "sign out", destroy_admin_session_path, :method => :delete %>

<% else %>

    <%= link_to "admin", new_admin_session_path %>

<% end %>

home

<%= yield %>

<!DOCTYPE html>

  <title>maur-unity</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <%= favicon_link_tag 'favicon.ico' %>

 Maurunity coming soon!

Change site to coming soon view

Change site to coming soon view


<!DOCTYPE html>

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

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

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

    <% end %>

  <%= yield %>

<!DOCTYPE html>

  <%= csrf_meta_tag %>

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

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

    <% end %>

  <%= yield %>

Remove application.js from application layout

This line causes a deprecation warning about the asset pipeline in rails
versions over 5 - and clearance does not actually distribute an application js
file.


<!DOCTYPE html>

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

<%= notice %>

<%= alert %>

<%= yield %>

<!DOCTYPE html>

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

  <% if user_signed_in? %>
    <%= current_user.email %>
    <%= link_to('Logout', destroy_user_session_path, :method => :delete) %>
  <% else %>
    <%= link_to('Login', new_user_session_path)  %>
  <% end %>

<%= notice %>

<%= alert %>

<%= yield %>

Add login/logout to top of app layout.

Add login/logout to top of app layout.


<!DOCTYPE html>
<html>
  <head>
    <title><%= t '.title' %></title>
  </head>
  <body>
    <%= form_tag @click_form[:url], method: @click_form[:http_method], id: 'nano_api_click_form' do %>
      <% @click_form[:params].each do |key, value| %>
        <%= hidden_field_tag key, h(value) %>
      <% end %>
    <% end %>

    <script type="text/javascript">
      //document.getElementById('nano_api_click_form').submit()
    </script>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title><%= t '.title' %></title>
  </head>
  <body>
    <%= form_tag @click_form[:url], method: @click_form[:method], id: 'nano_api_click_form' do %>
      <% @click_form[:params].each do |key, value| %>
        <%= hidden_field_tag key, h(value) %>
      <% end %>
    <% end %>

    <script type="text/javascript">
      //document.getElementById('nano_api_click_form').submit()
    </script>
  </body>
</html>

Fix bug with click form

Fix bug with click form


127.0.0.1 localhost <%= @fqdn %> <% @equivalent_hosts.each do |host| -%><%= host %> <% end -%>

<% @hosts.each_pair do |ip, properties| -%>
<%= ip %> <%= properties['hostname'] %>.<%= @domain %> <%= properties['hostname'] %>
<% end -%>

127.0.0.1 localhost <% @equivalent_hosts.each do |host| -%><%= host %> <% end -%>

<% @hosts.each_pair do |ip, properties| -%>
<%= ip %> <%= properties['hostname'] %>.<%= @domain %> <%= properties['hostname'] %>
<% end -%>

Remove fqdn from localhost line

Remove fqdn from localhost line


<%= @course.title %>

Learner: <%= @course.learner.name %>

Tutor: <%= @course.tutor.name %>

Price: <%= @course.price %>

Length: <%= @course.length %>

Status: <%= @course.status %>

Learning Objectives

<% @course.learning_objectives.each do |lo| %>

<%= lo.objective %>

<% end %>
<%= link_to 'Update Lesson', edit_connection_course_path(@connection,@course) %>

Add edit lesson link to lesson page

Add edit lesson link to lesson page


<% taxa.each do |taxon| %>
  <% if !taxon.nil? %>
    <% if taxon[:rank] == "species" %>
      <p> <%= taxon %> </p>
    <% end %>
  <% end %>
<% end %>

Update the reults partial to display the results of the query


<form class="set-location-form" action="/users/<%= current_user.id %>/reports/<%= @report.id %>">

  <input type="submit" value="Set Location">
</form>
<form class="report-show" action="/users/<%= current_user.id %>/reports/<%= @report.id %>">
  <input type="submit" value="View Report">
</form>

Add button to redirect from edit to report show page


Blackjack on Rails!

  <%= button_to "Sign in with Google!", "/auth/google_oauth2/", id: "sign_in" %>
  <%= button_to "Play As a Guest!", root_path, id: 'btnGuest', method: "get" %>

Blackjack on Rails!

  <%= button_to "Sign in with Google!", "/auth/google_oauth2/", id: "sign_in" %>
  <%= button_to "Sign in with Facebook!", "/auth/facebook/", id: "sign_in" %>
  <%= button_to "Play As a Guest!", root_path, id: 'btnGuest', method: "get" %>

Add button for facebook sign in.

Add button for facebook sign in.


---
- job:
    name: run-rake-task
    display-name: Run rake task
    project-type: freestyle
    description: "Run a rake task on an application."
    builders:
      - shell: ssh deploy@$(govuk_node_list -c $MACHINE_CLASS --single-node) "cd /var/apps/$TARGET_APPLICATION && govuk_setenv $TARGET_APPLICATION bundle exec rake $RAKE_TASK"
    wrappers:
      - ansicolor:
          colormap: xterm
    parameters:
      - choice:
          name: TARGET_APPLICATION
          description: Choose the application to run the rake task in
          choices: <%= ['-- Choose an app'] + @applications.keys %>
      - choice:
          name: MACHINE_CLASS
          description: Choose the machine class this app is running on
          choices:
            - api
            - backend
            - bouncer
            - calculators_frontend
            - content_store
            - draft_cache
            - draft_content_store
            - draft_frontend
            - exception_handler
            - frontend
            - router_backend
            - search
            - whitehall_backend
            - whitehall_frontend
      - string:
          name: RAKE_TASK
          description: Name of rake task to run (try `-T` to print the tasks)

---
- job:
    name: run-rake-task
    display-name: Run rake task
    project-type: freestyle
    description: "Run a rake task on an application."
    builders:
      - shell: ssh deploy@$(govuk_node_list -c $MACHINE_CLASS --single-node) "cd /var/apps/$TARGET_APPLICATION && govuk_setenv $TARGET_APPLICATION bundle exec rake $RAKE_TASK"
    wrappers:
      - ansicolor:
          colormap: xterm
    parameters:
      - choice:
          name: TARGET_APPLICATION
          description: Choose the application to run the rake task in
          choices: <%= ['-- Choose an app'] + @applications.keys %>
      - choice:
          name: MACHINE_CLASS
          description: Choose the machine class this app is running on
          choices:
            - api
            - backend
            - bouncer
            - calculators_frontend
            - content_store
            - draft_cache
            - draft_content_store
            - draft_frontend
            - exception_handler
            - frontend
            - router_backend
            - publishing_api
            - search
            - whitehall_backend
            - whitehall_frontend
      - string:
          name: RAKE_TASK
          description: Name of rake task to run (try `-T` to print the tasks)

Add publishing_api machine class to run rake task


  By <%= verb -%>, you accept AskThem's
  terms of use and
  privacy policy
  <%- if @question && @question.user.partner? %>
    and may receive updates from <%= link_to @question.user.name, user_path(@question.user) -%>
  <%- end %>

  By <%= verb -%>, you accept AskThem's
  terms of use and
  privacy policy
  <%- if @question && @question.user.partner? %>
    and may receive updates from <%= link_to @question.user.given_name, user_path(@question.user) -%>
  <%- end %>

Adjust display name of partner for TOS on question

Supports #415


Results for <%= @test_run.skill_test.title %>

Total score: <%= number_to_percentage(@test_run.score, precision:2)%>
Time taken: <%= "#{'%02i' % @time_taken[:minutes]}:#{'%02i' % @time_taken[:seconds]}" %>

<% @test_run.submitted_answers.each do |a| %>
    Question <%= a.question_number %>
      Score: <%= a.score %>/<%= a.max_score %>
    <% if a.wrong_answers? %>
      Wrong answers: <%= a.wrong_answers %>
    <% end %>
<% end %>

Results for <%= @test_run.skill_test.title %>

Submitted by
<%= @test_run.user.name %>
<%= @test_run.user.email %>
<%= "http://github.com/#{@test_run.user.authentications.where(provider: :github).first.username}" %>

Total score: <%= number_to_percentage(@test_run.score, precision:2)%>
Time taken: <%= "#{'%02i' % @time_taken[:minutes]}:#{'%02i' % @time_taken[:seconds]}" %>

<% @test_run.submitted_answers.each do |a| %>
    Question <%= a.question_number %>
      Score: <%= a.score %>/<%= a.max_score %>
    <% if a.wrong_answers? %>
      Wrong answers: <%= a.wrong_answers %>
    <% end %>
<% end %>

Update email template with user info

Update email template with user info


@pagerduty-CAPI-service

There may not be a clear actionable step to resolve the jobs failing, but please investigate and collect any relevant logs.

Too many failed CloudController background jobs

Question: change(max(last_10m),last_1d):avg:datadog.nozzle.cc.failed_job_count.total{deployment:<%= metron_agent_deployment %>} by {deployment} > 300

Add CAPI alert around failed job spikes

Add CAPI alert around failed job spikes

Signed-off-by: Tim Downey <ac5faf2072a7e8487ec8b27348636434d5c3410d@pivotal.io>


COSA

    <%= render 'layouts/admin/menu' %>

NAVIGATION

    <%= render 'layouts/admin/menu' %>

Fix label for sidebar navigation

Fix label for sidebar navigation


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

      </button>

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

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

          <%= link_to "Privacy", page_path("privacy") %>

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

      </button>

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

          <%= link_to "About", page_path("about") %>

          <%= link_to "Privacy", page_path("privacy") %>

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

Add link to about page in header

Add link to about page in header


<!DOCTYPE html>
<html>
<head>
  <title>LottifyMe</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <%= render partial: "/layouts/navigation", locals: {user: @user }%>
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>

  <title>LottifyMe</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <%= render partial: "/layouts/navigation", locals: {user: @user }%>

  <% if flash[:error] %>

<%= flash[:error] %>

  <% end %>

<%= yield %>

Add div to show messages on layout

Add div to show messages on layout


<% if @presentations.any? %>
  <% @presentations.each do |pres| %>

<%= pres.inspect %>

  <% end %>
<% else %>

You don't have any presentations yet... Perhaps you should <%= link_to('create the first one', new_presentation_path) %>.

<% end %>

<% if @presentations.any? %>
  <% @presentations.each do |pres| %>

<%= pres.inspect %>

  <% end %>
  <%= link_to('Submit your talk', new_presentation_path, class: 'btn btn-primary btn-large') %>
<% else %>

You don't have any presentations yet... Perhaps you should <%= link_to('create the first one', new_presentation_path) %>.

<% end %>

Add link to submit a talk

Add link to submit a talk


<%= render "govuk_publishing_components/components/radio", {
  name: radio_facet.key,
  items: radio_facet.options
} %>

<%= render "govuk_publishing_components/components/radio", {
  name: radio_facet.key,
  small: true,
  items: radio_facet.options
} %>

Use small radios in radio facet

Use small radios in radio facet


<style type="text/css">

  div.custom-message p, div.followup p {
    margin-top: 1em;
    margin-bottom: 1em;
  }

  div.reservationCard {
    color: #000000;
    padding: 1em;
    margin-bottom: 1em;
  }

  div.reservationCard h2 {
    background-color: #eeeeaa;
    font-family: Palatino, serif;
    font-style: italic;
    text-align: center;
    margin-top: 0px;
    font-size: 200%;
    font-weight: bold;
  }

  div.reservationCard dd {
    padding-bottom: 0.5em;
  }

  div.reservationContainer {
    margin-top: 1em;
    margin-left: 0.1em;
    margin-right: 0.1em;
  }

  div.reservationContainer input {
    width: 100%;
    height: 3em;
    color: white;
    font-weight: bold;
    margin-bottom: 1em;
    font-size: 1em;
    font-weight: bold;
    border: 3px outset black;
    cursor: pointer;
  }

  dd.topic-description p {
    margin-bottom: 1em;
  }

</style>

<style type="text/css">

  div.custom-message p, div.followup p {
    margin-top: 1em;
    margin-bottom: 1em;
  }

  div.reservationCard {
    color: #000000;
    padding: 1em;
    margin-bottom: 1em;
  }

  div.reservationCard h2 {
    background-color: #eeeeaa;
    font-family: Palatino, serif;
    font-style: italic;
    text-align: center;
    margin-top: 0px;
    font-size: 200%;
    font-weight: bold;
  }

  div.reservationCard dd {
    padding-bottom: 0.5em;
  }

  div.reservationContainer {
    margin-top: 1em;
    margin-left: 0.1em;
    margin-right: 0.1em;
  }

  div.reservationContainer input {
    width: 100%;
    height: 3em;
    color: white;
    font-weight: bold;
    margin-bottom: 1em;
    font-size: 1em;
    font-weight: bold;
    border: 3px outset black;
    cursor: pointer;
  }

  dd.topic-description p {
    margin-bottom: 1em;
  }

  dl {
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0
  }
  dt {
    float: left;
    width: 10%;
    /* adjust the width; make sure the total of both is 100% */
    padding: 0;
    margin: 0
  }
  dd {
    float: left;
    width: 90%;
    /* adjust the width; make sure the total of both is 100% */
    padding: 0;
    margin: 0
  }

</style>

Align label and text for the email message


<% provide(:title, "Kategorien verwalten") %>

<%= link_to "Neue Kategorie erstellen", new_jmd_category_path, class: "btn" %>

      Name
      Kürzel

    <% @categories.each do |category| %>
      <%= content_tag("tr", class: category.active? ? nil : "muted") do %>
        <%= category.name %>
        <%= category.slug %>

          <%= link_to icon_tag("edit", title: "Diese Kategorie bearbeiten"), edit_jmd_category_path(category) %>
          <%= link_to icon_tag("remove", title: "Diese Kategorie löschen"), jmd_category_path(category), method: :delete, :confirm => "Soll die Kategorie #{category.name} wirklich gelöscht werden?" %>

      <% end %>
    <% end %>

<% provide(:title, "Kategorien verwalten") %>

<%= link_to "Neue Kategorie erstellen", new_jmd_category_path, class: "btn" %>

      Name
      Kürzel
      Genre
      Solo/Ensemble

    <% @categories.each do |category| %>
      <%= content_tag("tr", class: category.active? ? nil : "muted") do %>
        <%= category.name %>
        <%= category.slug %>
        <%= category.popular? ? "Pop" : "Klassik" %>

          <%= info_label_tag("Solo", :info) if category.solo? %>
          <%= info_label_tag("Ensemble", :info) if category.ensemble? %>

          <%= link_to icon_tag("edit", title: "Diese Kategorie bearbeiten"), edit_jmd_category_path(category) %>
          <%= link_to icon_tag("remove", title: "Diese Kategorie löschen"), jmd_category_path(category), method: :delete, :confirm => "Soll die Kategorie #{category.name} wirklich gelöscht werden?" %>

      <% end %>
    <% end %>

Add genre and solo/ensemble info to category list


<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js"></script>
<script>
  WebFont.load({
    google: {
      families: ['Source Sans Pro:300,400,400italic,600', 'Droid Sans Mono']
    }
  });
</script>

<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js"></script>
<script>
  WebFont.load({
    google: {
      families: ['Source Sans Pro:400,400italic,700,700italic', 'Droid Sans Mono']
    }
  });
</script>

Use proper bold fonts instead of this weak semi-bold.


Routing Status: <%= @cargo.delivery.routing_status %>

<%= @cargo_status %>

<% @cargo.itinerary.inspect %>

<% @cargo.delivery.inspect %>

Estimated time of arrival in <%= @cargo.route_specification.destination %>: <%= @cargo.delivery.eta %>

<% if @cargo.delivery.is_misdirected %>

<%= Cargo is misdirected! %>

<% end %>
<% if @cargo.delivery.next_expected_activity %>

Next expected activity is to <%= @cargo.delivery.next_expected_activity.handling_event_type %> in <%= @cargo.delivery.next_expected_activity.location.name %>

<% end %>

    Type
    Location
    Completion Date
    Tracking ID

  <% @handling_events_history.each do |handling_event| %>

    <%= handling_event.event_type %>
    <%= handling_event.location.name %>
    <%= handling_event.completion_date %>
    <%= handling_event.tracking_id %>

  <% end %>

Routing Status: <%= @cargo.delivery.routing_status %>

Transport Status: <%= @cargo_status %>

<% @cargo.itinerary.inspect %>

<% @cargo.delivery.inspect %>

<% if @cargo.delivery.is_misdirected %>

Cargo is misdirected and requires rerouting

<% else %>

Estimated time of arrival in <%= @cargo.route_specification.destination %>: <%= @cargo.delivery.eta %>

<% end %>
<% if @cargo.delivery.next_expected_activity %>

Next expected activity is to <%= @cargo.delivery.next_expected_activity.handling_event_type %> in <%= @cargo.delivery.next_expected_activity.location.name %>

<% end %>

    Type
    Location
    Completion Date
    Tracking ID

  <% @handling_events_history.each do |handling_event| %>

    <%= handling_event.event_type %>
    <%= handling_event.location.name %>
    <%= handling_event.completion_date %>
    <%= handling_event.tracking_id %>

  <% end %>

Fix message for misdirected cargo on tracking form.


description "govuk-uptime-collector"

start on runlevel [2345]
respawn

env RBENV_VERSION=2.6
env PATH=/usr/lib/rbenv/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

exec govuk_uptime_collector <%= @environment %> content-store hmrc-manuals-api link-checker-api manuals-publisher publishing-api specialist-publisher travel-advice-publisher whitehall-admin:healthcheck/overdue

description "govuk-uptime-collector"

start on runlevel [2345]
respawn

env RBENV_VERSION=2.6
env PATH=/usr/lib/rbenv/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

exec govuk_uptime_collector <%= @environment %> hmrc-manuals-api link-checker-api manuals-publisher publishing-api specialist-publisher travel-advice-publisher whitehall-admin:healthcheck/overdue

Remove content-store from govuk-uptime-collector list

By removing the public load balancer of content-store as per
https://github.com/alphagov/govuk-aws/pull/1572 we also removed
the public hostname for content-store.
This breaks govuk-uptime-collector which depends on this hostname
for the check url of content-store.
The solution is to simply remove content-store of the list of
services monitored by govuk-uptime-collector, it should probably
never have been there in the first place as evidenced by :
https://docs.publishing.service.gov.uk/manual/uptime-metrics.html


<!DOCTYPE html>
<html>
<head>
  <title>Gitly</title>
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>

  <script type="text/javascript" src="//use.typekit.net/cnm6ivo.js"></script>
	<script type="text/javascript">try{Typekit.load();}catch(e){}</script>

  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>Gitly</title>
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>

  <script type="text/javascript" src="//use.typekit.net/cnm6ivo.js"></script>
	<script type="text/javascript">try{Typekit.load();}catch(e){}</script>

  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

<script type="text/javascript">
  var _gauges = _gauges || [];
  (function() {
    var t   = document.createElement('script');
    t.type  = 'text/javascript';
    t.async = true;
    t.id    = 'gauges-tracker';
    t.setAttribute('data-site-id', '52e917bbde2e264d7e001785');
    t.src = '//secure.gaug.es/track.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(t, s);
  })();
</script>

</body>
</html>

Add in some tracking code

Add in some tracking code


<!DOCTYPE html>

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

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

            </button>
            <%= link_to 'Biodb', home_url, class: 'navbar-brand' %>

              <% if current_user %>

<%= link_to 'sign out', delete_session_path, :method => :delete %>

              <% end %>

            <% if current_user %>

<%= current_user.email %>

            <% end %>

    <%= yield %>

Add id='main-menu' to navbar to aid view testing


<%= link_to 'Home', home_path %>

<%= link_to 'All petitions', petitions_path %>

<%= link_to 'Start a petition', check_petitions_path %>

<%= link_to 'How petitions work', help_path %>

<%= link_to 'Privacy and cookies', privacy_path %>

<%= link_to 'Feedback', feedback_path %>

Open Government Licence

All content is available under the Open Government Licence v3.0, except where otherwise stated

      © Crown copyright

Remove crown logos from footer

Remove crown logos from footer

Also remove crown copyright text.


<%= content_for :head do %>
  <%= javascript_tag do -%>
    <%== "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %>
  <% end -%>
<% end %>

<% if @cards.present? %>

Credit Cards on File

          Card Number(last four)
          Exp Month
          Exp Year

        <% @cards.each do |card| %>
          <tr id="<%= spree_dom_id(card)%>" class="<%= cycle('even', 'odd') %>">
            <%= card.last_digits %>
            <%= card.month %>
            <%= card.year %>

            <%= link_to (icon('delete') + ' ' + t(:delete)),
                spree.credit_card_url(card),
                :remote => true, :method => :delete,
                :confirm => 'Are you sure?' %>

        <% end %>

<% end %>

<%= content_for :head do %>
  <%= javascript_tag do -%>
    <%== "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %>
  <% end -%>
<% end %>

<% if @cards.present? %>

Credit Cards on File

          Card Number (last four)
          Exp Month
          Exp Year

        <% @cards.each do |card| %>
          <tr id="<%= spree_dom_id(card)%>" class="<%= cycle('even', 'odd') %>">
            <%= card.last_digits %>
            <%= card.month %>
            <%= card.year %>

            <%= link_to (image_tag("icons/delete.png") + " " + t(:delete)),
                spree.credit_card_url(card),
                :remote => true, :method => :delete,
                :confirm => 'Are you sure?' %>

        <% end %>

<% end %>

Clean up _card_admin partial a bit

Clean up _card_admin partial a bit


<!DOCTYPE html>

  <title><%= yield :title %> - GOV.UK</title>
  <%= stylesheet_link_tag "application" %>

  <%= stylesheet_link_tag "print", media: "print" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
  <%= yield :extra_head_content %>

        <%= yield %>

          <%= link_to 'Print this page', '#', :onclick => 'window.print();return false;'%>

    <%= render 'govuk_publishing_components/components/feedback' %>

<!DOCTYPE html>

  <title><%= yield :title %> - GOV.UK</title>
  <%= stylesheet_link_tag "application" %>

  <%= stylesheet_link_tag "print", media: "print" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
  <%= render partial: 'govuk_component/analytics_meta_tags', locals: { content_item: @content_store_manual } %>
  <%= yield :extra_head_content %>

        <%= yield %>

          <%= link_to 'Print this page', '#', :onclick => 'window.print();return false;'%>

    <%= render 'govuk_publishing_components/components/feedback' %>

Add analytics tags to manuals frontend

Add analytics tags to manuals frontend

Manuals frontend doesn't set analytics tags. It probably should.


<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><%= t ".title" %></title>
    <%= stylesheet_link_tag    "application", media: "all" %>
    <%= javascript_include_tag 'application' %>
    <%= csrf_meta_tags %>
    <%= favicon_link_tag 'favicon.ico' %>
    <meta name="viewport" content="width=device-width">
  </head>
  <body>

    <%= render "layouts/header" %>
    <div id="start-page">
      <%= yield %>
      <%= render "layouts/footer" if render_footer? %>
    </div>

  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title><%= t ".title" %></title>
    <%= stylesheet_link_tag    "application", media: "all" %>
    <%= javascript_include_tag 'application' %>
    <%= csrf_meta_tags %>
    <%= favicon_link_tag 'favicon.ico' %>

  </head>
  <body>

    <%= render "layouts/header" %>
    <div id="start-page">
      <%= yield %>
      <%= render "layouts/footer" if render_footer? %>
    </div>

  </body>
</html>

Revert "adding viewport and utf-8 to head"

This reverts commit b59cc199fa54ca830e4950e016b70de088a40675.


<!DOCTYPE html>

  <title>We the Entities</title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>

We the Entities

<%= link_to 'Home', :root %> |
<%= link_to 'Developer API', :controller => :home, :action => :api %> |
<%= link_to 'About', :controller => :home, :action => :about %>

<%= yield %>

This work is licensed under a Creative Commons Attribution 3.0 Unported License.

<!DOCTYPE html>

  <title>We the Entities</title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>

We the Entities

<%= link_to 'Home', :root %> |
<%= link_to 'Petition Browser', :controller => :petitions, :action => :index%> |
<%= link_to 'Developer API', :controller => :home, :action => :api %> |
<%= link_to 'About', :controller => :home, :action => :about %>

<%= yield %>

This work is licensed under a Creative Commons Attribution 3.0 Unported License.

Add a link to the Petition Browser from the homepage.


<!DOCTYPE html>

  <title><%= yield :page_title %> - GOV.UK</title>
    <%= stylesheet_link_tag "application.css" %>

  <%= csrf_meta_tags %>
  <%= yield :extra_headers %>

      <%= link_to "Home", '/' %>

    <%= yield :breadcrumbs %>

    <div id="page" class="<%= content_for?(:page_class) ? yield(:page_class) : '' %>" >
      <%= yield %>

<!DOCTYPE html>

  <title><%= yield :page_title %> - GOV.UK</title>
    <%= stylesheet_link_tag "application.css" %>

  <%= csrf_meta_tags %>
  <%= render partial: 'govuk_component/analytics_meta_tags', locals: { content_item: @contact.contact } %>
  <%= yield :extra_headers %>

      <%= link_to "Home", '/' %>

    <%= yield :breadcrumbs %>

    <div id="page" class="<%= content_for?(:page_class) ? yield(:page_class) : '' %>" >
      <%= yield %>

Use GA component to track format and organisation


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= I18n.locale %>">

  <title><%= ENV['APP_NAME'] %></title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>

  <%= stylesheet_link_tag 'bootstrap.min' %>
  <%= stylesheet_link_tag 'application' %>

<%= ENV['APP_NAME'] %>

        <%= build_menu %>

  	<% if has_system_message? %>
      <%= show_messages.html_safe %>
    <% end %>

    <%= yield %>

  <%= javascript_include_tag 'jquery.min' %>
  <%= javascript_include_tag 'bootstrap.min' %>

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= I18n.locale %>">

  <title><%= ENV['APP_NAME'] %></title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>

  <%= stylesheet_link_tag 'bootstrap.min' %>
  <%= stylesheet_link_tag 'application' %>

<a href="<%= url :index %>"><%= ENV['APP_NAME'] %>

        <%= build_menu %>

  	<% if has_system_message? %>
      <%= show_messages.html_safe %>
    <% end %>

    <%= yield %>

  <%= javascript_include_tag 'jquery.min' %>
  <%= javascript_include_tag 'bootstrap.min' %>

Add link in application layout that points to user dashboard.


  Your Right to Know

<%= link_to "Everyone", help_requesting_path(:anchor => "who") %> has the right to access information held by Australian public authorities. By law, they have to respond.

<a href="<%= help_about_url %>">Find out more about Freedom of Information.

Your Right to Know

  <%= link_to "Everyone", help_requesting_path(:anchor => "who") %> has the right to access information held by Australian public authorities.

  <% if AlaveteliConfiguration.authority_must_respond %>
    <%= _("By law, they have to respond.") %>
  <% end %>

<a href="<%= help_about_url %>">Find out more about Freedom of Information.

Reformat intro sentence template to be closer to alaveteli


<meta charset='<%= Rails.application.config.encoding %>' />
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><![endif]-->
<title><%= browser_title(yield(:title)) %></title>
<%= raw %(<meta name="description" content="#{@meta.meta_description}" />) if @meta.meta_description.present? -%>
<%= raw %(<link rel="canonical" href="#{request.protocol}#{request.host_with_port}#{@canonical}" />) if @canonical.present? -%>
<%= csrf_meta_tags if Refinery::Core.authenticity_token_on_frontend -%>
<%= yield :meta %>

<%= stylesheet_link_tag "application" %>
<%= yield :stylesheets %>

<%= render '/refinery/google_analytics' %>

<%= javascript_include_tag 'modernizr-min' %>

<meta charset='<%= Rails.application.config.encoding %>' />
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><![endif]-->
<title><%= browser_title(yield(:title)) %></title>
<%= tag(:meta, name: 'description', content: @meta.meta_description) if @meta.meta_description.present? -%>
<%= tag(:link, href: request.protocol+request.host_with_port+@canonical, rel: 'canonical') if @canonical.present? -%>
<%= csrf_meta_tags if Refinery::Core.authenticity_token_on_frontend -%>
<%= yield :meta %>

<%= stylesheet_link_tag "application" %>
<%= yield :stylesheets %>

<%= render '/refinery/google_analytics' %>

<%= javascript_include_tag 'modernizr-min' %>

Use tag helper for meta desc and canonical


    <form action="<%= @prefix %>/search" method="get" accept-charset="utf-8" class="search-header search-header-2" role="search">
      <fieldset>
        <legend class="visuallyhidden">Search gov.uk</legend>
        something?
        <input type="search" name="q" value="<%= h @query %>" id="search-main" /> <input type="submit" value="Search" class="button">
      </fieldset>
    </form>

    <form action="<%= @prefix %>/search" method="get" accept-charset="utf-8" class="search-header search-header-2" role="search">
      <fieldset>
        <legend class="visuallyhidden">Search gov.uk</legend>
        What are you looking for?
        <input type="search" name="q" value="<%= h @query %>" id="search-main" /> <input type="submit" value="Search" class="button">
      </fieldset>
    </form>

Revise the page at the root of search to have a message before the search box and not have anything else. Decided that this is good enough for now as there is only one route to this view so low trafficked


RuLu

<%= link_to 'Speakers', '/speakers' %>

<%= link_to 'Sponsor', '/sponsors' %>

<%= link_to 'About', '/about' %>

<%= link_to "Get your ticket", '/tickets' %>

<%= image_tag 'twitter.png' %>

<%= image_tag 'lanyrd.png' %>

RuLu

<%= link_to 'Speakers', '/speakers' %>

<%= link_to 'Sponsors', '/sponsors' %>

<%= link_to 'About', '/about' %>

<%= link_to "Get your ticket", '/tickets' %>

<%= image_tag 'twitter.png' %>

<%= image_tag 'lanyrd.png' %>

Correct pluralization in Sponsors menu

Correct pluralization in Sponsors menu


        <% if @presenter.current_node.has_title? %>

<%= @presenter.current_node.title %>

        <% end %>
        <% if @presenter.current_node.has_body? %>
          <%= @presenter.current_node.body %>
        <% end %>

      <% if @presenter.current_node.has_next_steps? %>

Next steps

          <%= @presenter.current_node.next_steps %>

      <% end %>

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

Add missing group class to article

Add missing group class to article


Language Pair

Top Languages

  <% @languages.each do |language| %>

<%= language.name %>

  <% end %>

<%= EasyTranslate.translate('Welcome to Language Pair', :to => random_language) %>

Return Easy Translate to landing page

Return Easy Translate to landing page


  Copy

<% File.readlines(file_path).each do |line| %><%= line %><% end %>

Remove unnecessary iteration over lines

Remove unnecessary iteration over lines


Ciudades

		<% cities.each do |c| %>

<a href='/city/<%= c[:name] %>'><%= c[:name] %>

		<% end %>

Ciudades

	<a href=<%= '/mapa' %> class='feature-image'>

		<% cities.each do |c| %>

<a href='/city/<%= c[:name] %>'><%= c[:name] %>

		<% end %>

Add img : mapeando to mapas

Add img : mapeando to mapas


APT::Periodic::Update-Package-Lists "<%= node['apt']['unattended_upgrades']['update_package_lists'] ? 1 : 0 %>";
APT::Periodic::Unattended-Upgrade "<%= node['apt']['unattended_upgrades']['enabled'] ? 1 : 0 %>";

APT::Periodic::Update-Package-Lists "<%= node['apt']['unattended_upgrades']['update_package_lists'] ? 1 : 0 %>";
APT::Periodic::Unattended-Upgrade "<%= node['apt']['unattended_upgrades']['enable'] ? 1 : 0 %>";

Update unatteneded-upgrades template attribute reference to match name used in attribute file


<%= form_for @attendance do %>

  <%= hidden_field_tag(:meeting_id, Meeting.find(params[:id]).id) %>

  <% @initiative.users.each do |user| %>
      <% if user.privilege == 2 %>

<%= user.name %>

          <%= check_box_tag('attendance[]', user.id) %>
      <% end %>
  <% end %>
  <%= submit_tag "Submit", class: "btn btn-default enrol-btn" %>
<% end %>

<%= form_for @attendance do %>

  <%= hidden_field_tag(:meeting_id, Meeting.find(params[:id]).id) %>

  <% @initiative.users.each do |user| %>
        <% if user.privilege == 2 || user.privilege == 1 %>

<%= user.known_as %>

          <%= check_box_tag('attendance[]', user.id) %>
      <% end %>
  <% end %>
  <%= submit_tag "Submit", class: "btn btn-default enrol-btn" %>
<% end %>

Allow volunteers to be included in attendance taking.


Welcome to Casein

You’re ready to begin scaffolding and customizing and whatever!

To remove this screen, set casein_config_dashboard_url

View README on GitHub

Welcome to Casein

You’re ready to begin scaffolding and customizing!

To remove this screen, set casein_config_dashboard_url

View README on GitHub

Tidy up blank screen message

Tidy up blank screen message


Conversaciones con tus amigos

                    <%= render partial: 'conversations/conversation', collection: @conversations %>

Create index page por display all the conversations with the user friends


<!DOCTYPE html>

  <title>TheHive</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
  <%= javascript_include_tag 'application' %>

  <%= csrf_meta_tags %>

  <% if current_user %>
<%= render 'layouts/header' %>
<% else %>

    <% if flash[:notice]%>

<%= flash[:notice] %>

    <% end %>
    <% if flash[:errors]%>
      <% flash[:errors].each do |error| %>

<%= error %>

      <% end %>
    <% end %>

<% end %>
  <%= yield %>

<!DOCTYPE html>

  <title>TheHive</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
  <%= javascript_include_tag 'application' %>

  <%= csrf_meta_tags %>

  <% if current_user %>
  <%= render 'layouts/header' %>
  <% end %>

    <% if flash[:notice]%>

<%= flash[:notice] %>

    <% end %>
    <% if flash[:errors]%>
      <% flash[:errors].each do |error| %>

<%= error %>

      <% end %>
    <% end %>

  <%= yield %>

Move yield one level up and remove else statement


<!DOCTYPE html>
<html>
<head>
  <title>Was Ist Das?</title>

  <%= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css", media: 'all' %>
  <%= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css", media: 'all' %>
  <%= stylesheet_link_tag 'application', media: 'all' %>
  <%= stylesheet_link_tag 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,600,300,700,800', media: 'all'%>

  <%= javascript_include_tag 'application' %>

  <%= csrf_meta_tags %>
</head>
<body>

  <div class="container">

    <%= yield %>

    <%= render '/footer' %>

  </div>

</body>
</html>

<!DOCTYPE html>

  <title>Was Ist Das?</title>

  <%= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css", media: 'all' %>
  <%= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css", media: 'all' %>
  <%= stylesheet_link_tag 'application', media: 'all' %>
  <%= stylesheet_link_tag 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,600,300,700,800|Permanent+Marker', media: 'all'%>

  <%= javascript_include_tag 'application' %>

  <%= csrf_meta_tags %>

  <%= render '/nav' %>

      <%= yield %>

    <%= render '/footer' %>

Add new google font for h1

Add new google font for h1


<!DOCTYPE html>
<html>
<head>
  <title>FlMagDash</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>
  <%= analytics_init if Rails.env.production? %>
</head>
<body>

<div id="wrapper">
  <%= render 'layouts/navbar' %>
  <%= render 'layouts/sidebar' %>
  <div data-pjax-container id="page-content-wrapper">
    <%= yield %>
  </div>
</div>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>FlMagDash</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>
  <%= analytics_init if Rails.env.production? %>

  <meta name="viewport" content="initial-scale=1">
</head>
<body>

<div id="wrapper">
  <%= render 'layouts/navbar' %>
  <%= render 'layouts/sidebar' %>
  <div data-pjax-container id="page-content-wrapper">
    <%= yield %>
  </div>
</div>

</body>
</html>

Add viewport meta tag to enable jquery.inview


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

    <title><%= content_for?(:title) ? yield(:title) : "foundation-rails" %></title>

    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "vendor/modernizr" %>
    <%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
    <%= csrf_meta_tags %>
  </head>

  <body>

    <%= yield %>

  </body>
</html>

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

    <title><%= content_for?(:title) ? yield(:title) : "SB | stephaniebarreyro.com" %></title>

    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "vendor/modernizr" %>
    <%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
    <%= csrf_meta_tags %>
  </head>

  <body>

    <%= yield %>

  </body>
</html>

Change title to 'SB | stephaniebarreyro.com'.


<!DOCTYPE html>

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><%= content_for?(:title) ? yield(:title) : "DCAF Case Management System" %></title>
    <meta name="description" content="<%= content_for?(:description) ? yield(:description) : "DCAF" %>">
    <meta name='ROBOTS' content='NOINDEX, NOFOLLOW'>
    <%= stylesheet_link_tag 'application', media: 'all' %>
    <%= favicon_link_tag 'favicon.ico' %>
    <%= javascript_include_tag 'application' %>
    <%= csrf_meta_tags %>

    <% if current_user.present? %>

      <%= render 'layouts/navigation' %>

    <% end %>

        <%= render 'layouts/messages' %>

        <%= yield %>

      <%= render 'layouts/footer' %>

Add footer partial to layouts/application


 <%= response.user ? response.user.name : 'Default' %>

<%= response.content %>

  <% if response.user.id == session[:current_user] %>
    <%= link_to 'Edit', edit_response_path(response) %>
    <%= link_to 'Delete', response, method: :delete, data: {confirm: "You sure bub?" } %>
  <% end %>

   Comments

  <% if session[:current_user] %>
    <%= link_to 'Add Comment', new_response_comment_path(response) %>
  <% end %>

  <% response.comments.each do |comment| %>
    <%= render partial: 'comment', locals: {comment: comment} %>
  <% end %>
   <button data-id="<%response.id%>" class="upvote">UpVote</button>

 <%= response.user ? response.user.name : 'Default' %>

<%= response.content %>

  <% if response.user.id == session[:current_user] %>
    <%= link_to 'Edit', edit_response_path(response) %>
    <%= link_to 'Delete', response, method: :delete, data: {confirm: "You sure bub?" } %>
  <% end %>

   Comments

  <% if session[:current_user] %>
    <%= link_to 'Add Comment', new_response_comment_path(response) %>
  <% end %>

  <% response.comments.each do |comment| %>
    <%= render partial: 'comment', locals: {comment: comment} %>
  <% end %>
   <button data-id="<%= response.id %>" class="upvote">UpVote</button>

Fix erb tag to populate data id attribute.


    ホーム
    | Kata (Wiki)
    | 憲章
    | 公式ブック
    | Podcast

本サイトのソースコードや社団法人の定款などは GitHub 上で公開されています。

Copyright © 2012-2017 一般社団法人 CoderDojo Japan

    東京都新宿区高田馬場1-28-10 三慶ビル4F CASE Shinjuku

Put links to SNSs on Footer with font-awesome icons


Add new post

	<form action="/new" method="post" role="form">
	  <textarea class="form-control" rows="6" placeholder="Type post text here"></textarea>

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

Add new post

	<form action="/new" method="POST" role="form">
	  <textarea name="content" class="form-control" rows="6" placeholder="Type post text here"></textarea>

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

Fix typo and add name parameter for textarea


<%= template_header %>

# This file controls the activity of snmpd

# Don't load any MIBs by default.
# You might comment this lines once you have the MIBs downloaded.
export MIBS=

# snmpd control (yes means start daemon).
SNMPDRUN=yes

# snmpd options (use syslog, close stdin/out/err).
<%- ll = %i[emerg alert crit err warn notice info debug].rindex(@log_level.to_i) || 4 -%>
SNMPDOPTS='-LS<%= ll %>d -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'

<%= template_header %>

# This file controls the activity of snmpd

# Don't load any MIBs by default.
# You might comment this lines once you have the MIBs downloaded.
export MIBS=

# snmpd control (yes means start daemon).
SNMPDRUN=yes

# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-LS<%= @ll_num %>d -Lf /dev/null -u <%= @user %> -g <%= @group %> -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'

Make snmpd user and group configurable

Make snmpd user and group configurable


    The Building Healthy Communities
    by TeamN

      <% if current_page?(login_path) %>

<%= link_to "Contact", contact_path %>

      <% end %>

Building Healthy Communities

    The Building Healthy Communities
    by TeamN

<%= link_to "Contact", contact_path %>

Building Healthy Communities

Add contact page back to logged in user.