Your Groups

Groups

      <% groups.each_with_index do |user_group, index| %>

        #1

        <a href="/groups/<%= user_group.id %>"><%= "#{user_group.name} (#{user_group.user.nickname})" %>
        <% if current_user.id == user_group.user_id %>
          <a href="/groups/<%= user_group.id %>/edit" class="btn btn-warning btn-xs pull-right">edit
        <% else %>
        <% end %>

      <% end %>

Your Groups

Groups

    <% if groups.any? %>

        <% groups.each_with_index do |user_group, index| %>

          #1

          <a href="/groups/<%= user_group.id %>"><%= "#{user_group.name} (#{user_group.user.nickname})" %>
          <% if current_user.id == user_group.user_id %>
            <a href="/groups/<%= user_group.id %>/edit" class="btn btn-warning btn-xs pull-right">edit
          <% else %>
          <% end %>

        <% end %>

    <% else %>

You don't have and don't belong to any group yet. You can create a group or wait until someone invite you.

    <% end %>

Add message when user doesn't have groups


<%= _('More about this authority')%>

<% if !public_body.calculated_home_page.nil? %>
    <%= link_to _('Home page of authority'), public_body.calculated_home_page %>

<% end %>

<% if !public_body.publication_scheme.empty? %>
    <%= link_to _('Publication scheme'), public_body.publication_scheme %>

<% end %>

<% unless public_body.disclosure_log.empty? %>
    <%= link_to _('Disclosure log'), public_body.disclosure_log %>

<% end %>

<% if public_body.has_tag?('charity') %>
    <% public_body.get_tag_values('charity').each do |tag_value| %>
        <% if tag_value.match(/^SC/) %>
            <%= link_to _('Charity registration'), "http://www.oscr.org.uk/CharityIndexDetails.aspx?id=#{ tag_value }"

        <% else %>
            <%= link_to _('Charity registration'), "http://www.charity-commission.gov.uk/SHOWCHARITY/RegisterOfCharities/CharityFramework.aspx?RegisteredCharityNumber=#{ tag_value }" %>

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

<%= link_to _('View FOI email address'), view_public_body_email_path(public_body.url_name) %>

<%= link_to _("Ask us to update FOI email"), new_change_request_path(:body => public_body.url_name) %>

Add charity links to public bodies

Add charity links to public bodies

If the body is a charity, provide a link to its registration info


<%= attribute_table_row(t("myplaceonline.exercise_regimens.exercise_regimen_name"), obj.exercise_regimen_name) %>
<%= attribute_table_row_markdown(t("myplaceonline.general.notes"), obj.notes) %>
<% obj.exercise_regimen_exercises.each do |x| %>
  <%= table_row_heading(t("myplaceonline.exercise_regimens.exercise_regimen_exercise")) %>
  <%= attribute_table_row(t("myplaceonline.exercise_regimen_exercises.exercise_regimen_exercise_name"), x.exercise_regimen_exercise_name) %>
  <%= attribute_table_row_markdown(t("myplaceonline.general.notes"), x.notes) %>
  <%=
    render partial: 'myplaceonline/pictures', locals: {
      pics: x.exercise_regimen_exercise_files,
      placeholder: "myplaceonline.exercise_regimen_exercises.file"
    }
  %>
<% end %>

<%# attribute_table_row(t("myplaceonline.exercise_regimens.exercise_regimen_name"), obj.exercise_regimen_name) %>
<%# attribute_table_row_markdown(t("myplaceonline.general.notes"), obj.notes) %>

<% content_for :aftertable do %>
  <% obj.exercise_regimen_exercises.each do |x| %>
    <%
    container_name = x.class.name + "_container" + x.id.to_s
    %>
    <div id="<%= container_name %>">
      <%= myp_check_box_tag(x.class.name + x.id.to_s, x.exercise_regimen_exercise_name, false, false, nil, "return myplaceonline.hideIfChecked(this, $(this).parents('#" + container_name + "').first());") %>

        <%= markdown_content(x.notes) %>
        <% x.exercise_regimen_exercise_files.each do |pic| %>

<%= image_content(pic.identity_file, true) %>

        <% end %>

  <% end %>
<% end %>

Create checklist for exercise regimen

Create checklist for exercise regimen


<% @asset_pipeline_prefixes.each do |prefix| %>
  location ^~ /<%= prefix %>/ {
    # Set expires headers for assets
    # Assets with a digest (32+ char hex string in filename) get max expires
    # Non-digest assets get 30 mins
    expires 30m;
    add_header Cache-Control public;
    gzip_static on;

    location ~ "-[0-9a-f]{32,}\." {
      expires max;
      add_header Cache-Control "public, immutable";

      # Set CORS allow origin for fonts only
      location ~* \.(eot|otf|ttf|woff|woff2)$ {
        add_header Access-Control-Allow-Origin "*";
        add_header Access-Control-Allow-Methods "GET, OPTIONS";
        add_header Access-Control-Allow-Headers "origin, authorization";
      }
    }

  }
<% end %>

<%= @nginx_extra_config %>

<% @asset_pipeline_prefixes.each do |prefix| %>
  location ^~ /<%= prefix %>/ {
    # Set expires headers for assets
    # Assets with a digest (32+ char hex string in filename) get max expires
    # Non-digest assets get 30 mins
    expires 30m;
    add_header Cache-Control public;
    gzip_static on;

    location ~ "-[0-9a-f]{32,}\." {
      expires max;
      add_header Cache-Control "public, immutable";
      add_header Surrogate-Key "assets assets-<%= @vhost %>";

      # Set CORS allow origin for fonts only
      location ~* \.(eot|otf|ttf|woff|woff2)$ {
        add_header Access-Control-Allow-Origin "*";
        add_header Access-Control-Allow-Methods "GET, OPTIONS";
        add_header Access-Control-Allow-Headers "origin, authorization";
      }
    }

  }
<% end %>

<%= @nginx_extra_config %>

Include surrogate keys for immutable assets

As these assets are cached for perpetuity it is hard to make any changes
to how the CDN hosts them without needing to manually purge lots of
assets from the CDN or purge the entire CDN.

This was a problem we hit when enabling Brotli compression at the CDN,
where we were faced with this challenge of purging everything or a lot
of manual purges.

In order to try avoid this problem in future a surrogate key is being
set for both all application assets (assets) or an individual
applications ones based on the vhost (assets-government-frontend). These
surrogate keys can be used to purge a grouping of files from a Fastly
cache [1]. Thus, should we need to purge all assets (or an applications
assets), from the Fastly cache it will be a simple operation.

This is only applied to assets with a max expires time as these are the
items that are hard to remove from a cache, other times (with more
manageable cache times such as 30 mins) will clear by themselves in that
time frame.

[1]: https://docs.fastly.com/en/guides/getting-started-with-surrogate-keys


New Private Topic

<%= form_for [messageboard, private_topic],
  url: messageboard_private_topics_path(messageboard, @private_topic),
  html: { class: css_class } do |form| %>

      <%= form.label :title %>
      <%= form.text_field :title, { placeholder: placeholder, autofocus: 'autofocus' } %>

      <%= form.label :user_id, 'Users' %>
      <%= form.select :user_ids,
        form.object.users_options,
        form.object.selected_options,
        form.object.html_options %>

    <%= render 'thredded/posts/content_field', form: form %>

      <%= form.submit 'Create New Private Topic', class: 'button-wide' %>

<% end %>

<%= form_for [messageboard, private_topic],
  url: messageboard_private_topics_path(messageboard, @private_topic),
  html: { class: css_class } do |form| %>

      <%= form.label :title, 'Private Topic Title' %>
      <%= form.text_field :title, { placeholder: placeholder } %>

      <%= form.label :user_id, 'Users in Private Topic' %>
      <%= form.select :user_ids,
        form.object.users_options,
        form.object.selected_options,
        form.object.html_options %>

    <%= render 'thredded/posts/content_field', form: form %>

      <%= form.submit 'Create New Private Topic' %>

<% end %>

Make private topics form act like topics form


Slack

      We have a Slack organization where you can ask questions and discuss programming topics. <%= link_to "Click here to join", "https://seattlerbslack.herokuapp.com" %>.

      <%= link_to(image_tag("/assets/slack.png",  height:"200"), "https://seattlerbslack.herokuapp.com") %>

Embed the slack form in the page in an iframe


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

Images

<% for image_type in @images.keys.reverse
   next if @images[image_type].blank? %>

<%= image_type %>

  <% for image in @images[image_type] %>

      <%= image_tag @movie.tmdb_image_url(image["file_path"], image_type.singularize, "medium") %>

  <% end %>

<% end %>

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

Images

<% for image_type in @images.keys.reverse
   next if @images[image_type].blank? %>

<%= image_type %>

  <% for image in @images[image_type] %>

      <%= link_to image_tag(@movie.tmdb_image_url(image["file_path"], image_type.singularize, "medium")),
                  @movie.tmdb_image_url(image["file_path"], image_type.singularize, "original"),
		  :target => "_blank" %>

  <% end %>

<% end %>

Make images clickable to show original size


<% title "Login to Libraries.io" %>

Login to Libraries.io

Choose one of the identity providers to login with:

  <%= link_to '/auth/github', class: 'btn btn-success' do %>
    <%= fa_icon 'github' %> Login with GitHub
  <% end %>

  <%= link_to '/auth/gitlab', class: 'btn btn-success' do %>
    <%= fa_icon 'gitlab' %> Login with GitLab
  <% end %>

  <%= link_to '/auth/bitbucket', class: 'btn btn-success' do %>
    <%= fa_icon 'bitbucket' %> Login with Bitbucket
  <% end %>

Add page title to login page

Add page title to login page


<div class="<%= record.class_names %> <%= record.custom_field.configuration["plugin_type"] %>"
     id="<%= "custom_field_#{ record.uid }" %>"
     data-uid="<%= record.uid %>"
     data-vocabulary-id="<%= record.custom_field.vocabulary_id %>">
  <%= hidden_field_tag "#{ input_base_name }[#{ record.uid }][custom_field_id]", record.custom_field_id %>

    <%= send(record.field_tag, "#{ input_base_name }[#{ record.uid }][value]", record.payload.to_json, record.tag_attributes) %>

<% content_for :javascript_hook do %>
  <%= javascript_tag do %>
    <%== "window.GobiertoAdmin.gobierto_common_custom_field_records_#{record.custom_field.configuration["plugin_type"]}_plugin_controller.form({ uid: '#{record.uid}' })" %>
  <% end %>
<% end %>

<div class="<%= record.class_names %> <%= record.custom_field.configuration["plugin_type"] %>"
     id="<%= "custom_field_#{ record.uid }" %>"
     data-uid="<%= record.uid %>"
     data-vocabulary-id="<%= record.custom_field.vocabulary_id %>">
     <%= label_tag :custom_field_id, record.custom_field.name %>
     <%= hidden_field_tag "#{ input_base_name }[#{ record.uid }][custom_field_id]", record.custom_field_id %>

       <%= send(record.field_tag, "#{ input_base_name }[#{ record.uid }][value]", record.payload.to_json, record.tag_attributes) %>

<% content_for :javascript_hook do %>
  <%= javascript_tag do %>
    <%== "window.GobiertoAdmin.gobierto_common_custom_field_records_#{record.custom_field.configuration["plugin_type"]}_plugin_controller.form({ uid: '#{record.uid}' })" %>
  <% end %>
<% end %>

Add label with the custom field name

Add label with the custom field name


<%= image_tag 'logo.svg', alt: "Fractaled Mind" %>

Fix GitHub link in header

Fix GitHub link in header


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

<%= f.label "About the language:" %>
<%= f.text_area :description %>

Add description field to form.

Add description field to form.


				<%= link_to "Boston Public Schools", 'http://bostonpublicschools.org', target: '_blank' %>

				Copyright © 2011-2013 Boston Public Schools.

				<%= link_to "Boston Public Schools", 'http://bostonpublicschools.org', target: '_blank' %>

				Copyright © 2011-<%= Date.today.year %> Boston Public Schools.

Set copyright date to Date.today.year

Set copyright date to Date.today.year


History

      <% @transfers.each do |transfer| %>

From

<%= transfer.outgoing_account.user.name %>

To

<%= transfer.incoming_account.user.name %>

Amount

<%= transfer.amount %>

Created On

<%= transfer.created_at %>

      <% end %>

 <%= link_to 'Go Back to Your Account', account_path(current_user.account), class: 'btn btn-default' %>

History

      <% if @transfers.empty? %>

There are no transfers yet. To transfer funds, click <%= link_to 'here', new_transfer_path %>.

      <% else %>
        <% @transfers.each do |transfer| %>

From

<%= transfer.outgoing_account.user.name %>

To

<%= transfer.incoming_account.user.name %>

Amount

<%= transfer.amount %>

Created On

<%= transfer.created_at %>

        <% end %>
      <% end %>

 <%= link_to 'Go Back to Your Account', account_path(current_user.account), class: 'btn btn-default' %>

Fix history message when there are no transfers


<% content_for(:meta_title, t('nlt.new_user')) %>

<%= registration_header %>

  (<%= t 'nlt.if_youre_already_an_user' %>
  <%= link_to t('nlt.access_here'), new_user_session_path, :title => "user login" %>)

    <%= render 'new_form' %>

Make "new" registration form a bit wider

This is just for consistency with the registration "edit" form.


      <% if @notifications.blank? %>

          <%= t("proposals.show.no_notifications") %>

      <% end %>

      <% @notifications.each do |notification| %>
        <div id="<%= dom_id(notification) %>">

<%= notification.title %>

<%= notification.created_at.to_date %>

          <%= simple_format sanitize_and_auto_link(notification.body), {}, sanitize: false %>

            <%= render "proposal_notifications/actions", notification: notification %>

      <% end %>

Remove invalid HTML in proposal notifications

This HTML wasn't valid because it was a <span> containing the <div
class="reply"> element and it wasn't needed because there aren't any
flag actions in proposal notifications.


<%= button_to 'details', parcel_path(parcel), method: 'get'%>

<%= button_to 'match', parcel_trips_path(parcel), method: :get %>

<%= parcel.description %>

<%= parcel.destination_address.city %>

    <%= parcel.deliver_by %>

    <%= button_to 'Edit', edit_parcel_path(parcel.id), method: 'get' %>
    <%= button_to 'Delete', parcel_path(parcel.id), method: 'delete' %>

  <% if @reviewer %>

      <%= link_to "Review", new_trip_review_path(trip) %>

  <% else %>

<%= button_to 'details', parcel_path(parcel), method: 'get'%>

<%= button_to 'match', parcel_trips_path(parcel), method: :get %>

<%= button_to 'Edit', edit_parcel_path(parcel.id), method: 'get' %>

 <%= button_to 'Delete', parcel_path(parcel.id), method: 'delete' %>

  <% end %>

<%= parcel.description %>

<%= parcel.destination_address.city %>

    <%= parcel.deliver_by %>

Add review button to parcel summary

Add review button to parcel summary


<%= simple_form_for @supporter, remote: true, html: {id: 'sign-form', class: 'overlay-container'} do |f| %>
  <% if @success %>

Благодарим Ви!

Изпратихме Ви имейл, в който има инструкции как да потвърдите подкрепата си.

Скриване на това съобщение.

  <% end %>

  <%= f.hidden_field :area %>
  <%= f.input :full_name, placeholder: 'Весела Радостинова' %>
  <%= f.input :email, placeholder: 'vesela@radostinova.com' %>
  <%= f.input :is_organization %>
  <%= f.input :organization, placeholder: 'Вашата организация' %>
  <%= f.button :submit, 'Подкрепи', class: 'button standart green' %>
<% end %>

<%= simple_form_for @supporter,
                    remote: true,
                    authenticity_token: true,
                    html: {id: 'sign-form', class: 'overlay-container'} do |f| %>
  <% if @success %>

Благодарим Ви!

Изпратихме Ви имейл, в който има инструкции как да потвърдите подкрепата си.

Скриване на това съобщение.

  <% end %>

  <%= f.hidden_field :area %>
  <%= f.input :full_name, placeholder: 'Весела Радостинова' %>
  <%= f.input :email, placeholder: 'vesela@radostinova.com' %>
  <%= f.input :is_organization %>
  <%= f.input :organization, placeholder: 'Вашата организация' %>
  <%= f.button :submit, 'Подкрепи', class: 'button standart green' %>
<% end %>

Fix invalid authenticity token errors

Fix invalid authenticity token errors

The fix is to force the authenticity_token param to be present in the
form, even though the form is an AJAX one.

These errors would occur when a user visits the site without JavaScript.
The reason for that is the support form's `remote: true` flag was
preventing an authenticity_token to be included in the form fields
because AJAX forms are whitelisted by default. However, when JS is
turned off, the form would not work. Having this param present in the
form does not prevent it from working when JS is enabled.


New user registered

	User email: <%= @user.email %>

	User name is: <%= @user.name %>

Please grant access to this user or delete him

New user registered

	User email: <%= @user.email %>

	User name is: <%= @user.name %>

	User role: <%= @user.api_role.join(' / ') %>

Please grant access to this user or delete him at <%= link_to 'user page', rhinoart.edit_admin_user_url(@user) %>

Make user link from new_user_notification


<%= t 'read.tours.entry.closeTooltip' %>

<%= t 'read.tours.entry.step1.title' %>

<%= t 'read.tours.entry.step1.content_html' %>

<%= t 'read.tours.entry.step2.title' %>

<%= t 'read.tours.entry.step2.content_html' %>

<%= t 'read.tours.entry.step3.title' %>

<%= t 'read.tours.entry.step3.content_html' %>

<%= t 'read.tours.entry.step1.title' %>

<%= t 'read.tours.entry.step2.title' %>

<%= t 'read.tours.entry.step3.title' %>

Move a bubble in the entry tour a bit to the left.

This way it should fit inside the screen in smartphones; previouslt it often was partially outside the screen in small screens.


<%
  @title = :glossary_term_index_title.t

  tabs = [
    link_to(:create_glossary_term.t, new_glossary_term_path)
  ]
  @tabsets = { right: draw_tab_set(tabs) }
%>

    <%= :glossary_term_index_intro.tp %>

  <% @glossary_terms.each do |glossary_term| %>

<%= link_to(glossary_term.name,
                        glossary_term_path(glossary_term.id)) %>:

        <%= glossary_term.description.tpl %>

        <%= if glossary_term.&thumb_image_id&.nonzero?
          thumbnail(glossary_term.thumb_image, votes: true)
        end %>

  <% end %>

<%
  @title = :glossary_term_index_title.t

  tabs = [
    link_to(:create_glossary_term.t, new_glossary_term_path)
  ]
  @tabsets = { right: draw_tab_set(tabs) }
%>

    <%= :glossary_term_index_intro.tp %>

  <% @glossary_terms.each do |glossary_term| %>

<%= link_to(glossary_term.name,
                        glossary_term_path(glossary_term.id)) %>:

        <%= glossary_term.description.tpl %>

        <%= if glossary_term&.thumb_image_id&.nonzero?
          thumbnail(glossary_term.thumb_image, votes: true)
        end %>

  <% end %>

Fix typo from commit eba9440

Fix typo from commit eba9440

It was `.&` instead of `&.`


User side bar
 hello,
<%= current_user.first_name %>

YO' PUBLISHED POSTS:

   <% current_user.all_published.each do |story| %>

<%= story.title %>

    <% end %>

YO' UNPUBLISHED POSTS:

   <% current_user.all_unpublished.each do |story| %>

<%= story.title %>

    <% end %>

User side bar
 hello,
<%= current_user.first_name %>

 hello, <%= current_user.first_name %>

Here are your unpublished posts:

   <% current_user.all_unpublished.each do |story| %>

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

    <% end %>

Some of your published work:

   <% current_user.all_published.each do |story| %>

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

    <% end %>

Change some user side bar text

Change some user side bar text


      <button type="button" class="navbar-toggle" data-toggle="collapse"
        data-target=".navbar-collapse">

      </button>

        <li class="<%= active?(home_path) %>">
          <%= link_to "Home", home_path %>

        <li class="<%= active?(/^\/browse/, request.path) %>">
          <%= link_to "Browse", browse_path %>

        <li class="<%= active?(search_path) %>">
          <%= link_to "Search", search_path %>

        <li class="<%= active?(about_path) %>">
          <%= link_to "About", about_path %>

      <button type="button" class="navbar-toggle" data-toggle="collapse"
        data-target=".navbar-collapse">

      </button>

        <li class="<%= active?(home_path) %>">
          <%= link_to "Home", home_path %>

        <li class="<%= active?(/^#{config.relative_url_root}\/browse/,
          request.path) %>">
          <%= link_to "Browse", browse_path %>

        <li class="<%= active?(search_path) %>">
          <%= link_to "Search", search_path %>

        <li class="<%= active?(about_path) %>">
          <%= link_to "About", about_path %>

Update Browse active? check to consider sub-URI


<%= render 'layouts/nav' %>

<%= notice %>

  User:
  <%= @positions_held.user.friendly_name %>

  Position:
  <%= @positions_held.position.name %>

  Program:
  <%= @positions_held.program.name %>

<%= link_to 'Edit', edit_positions_held_path(@positions_held) %> |
<%= link_to 'Back', positions_helds_path %>

<%= render 'layouts/nav' %>

<%= notice %>

  User:
  <%= @positions_held.user.friendly_name %>

  Position:
  <%= @positions_held.position.name if @positions_held.position %>

  Program:
  <%= @positions_held.program.name if @positions_held.program %>

<%= link_to 'Edit', edit_positions_held_path(@positions_held) %> |
<%= link_to 'Back', positions_helds_path %>

Allow for empty position and program on positions_helds show


window.App = Em.Application.create
  LOG_TRANSITIONS: <%= Rails.env == 'development' %>

Em.RSVP.configure 'onerror', (e) ->
  console.log(e.message)
  console.log(e.stack)

window.App = Em.Application.create
  LOG_TRANSITIONS: <%= Rails.env == 'development' %>

Em.RSVP.configure 'onerror', (e) ->
  console?.log(e.message)
  console?.log(e.stack)

Check that console exists before using it


  <% hidden_text = capture do %>
    Share on
  <% end %>

    <%= I18n.t("brexit_checker.results.share_link_title") %>

  <%= render "govuk_publishing_components/components/share_links", {
    columns: true,
    links: [
      {
        href: "https://www.facebook.com/sharer/sharer.php?u=#{encoded_results_url}",
        text: hidden_text + "Facebook",
        icon: "facebook"
      },
      {
        href: "https://twitter.com/share?url=#{encoded_results_url}",
        text: hidden_text + "Twitter",
        icon: "twitter"
      },
      {
        href: "https://api.whatsapp.com/send?text=#{encoded_results_url}",
        text: hidden_text + "WhatsApp",
        icon: "whatsapp"
      },
      {
        href: "mailto:?body=#{encoded_results_url}&subject=#{I18n.t("brexit_checker.results.title")}",
        text: hidden_text + "Email",
        icon: "email"
      },
      {
        href: "http://www.linkedin.com/shareArticle?url=#{encoded_results_url}",
        text: hidden_text + "LinkedIn",
        icon: "linkedin"
      },
    ]
  } %>

Change share links title from h4 to h2

Change share links title from h4 to h2

The level of the heading is on a par with group headings and should be promoted for sensible markup and accessibility


<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title><%= APP_TITLE %></title>
    <link rel="stylesheet" href="https://d2npiipx5ecxt9.cloudfront.net/assets/external_triggers.css" />
    <link rel="stylesheet" href="/style.css" />

    <script type="text/javascript" src="https://d2npiipx5ecxt9.cloudfront.net/assets/external_triggers.js"></script>
    <script type="text/javascript">easyXDM.DomHelper.requiresJSON("https://d2npiipx5ecxt9.cloudfront.net/assets/json2.js");</script>
    <script>
var pbt = new PachubeTrigger();
    </script>
  </head>
  <body>
    <%= yield %>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title><%= APP_TITLE %></title>
    <link rel="stylesheet" href="https://d13nj05qmdn3m1.cloudfront.net/assets/external_triggers.css" />
    <link rel="stylesheet" href="/style.css" />

    <script type="text/javascript" src="https://d13nj05qmdn3m1.cloudfront.net/assets/external_triggers.js"></script>
    <script type="text/javascript">easyXDM.DomHelper.requiresJSON("https://d13nj05qmdn3m1.cloudfront.net/assets/json2.js");</script>
    <script>
var pbt = new PachubeTrigger();
    </script>
  </head>
  <body>
    <%= yield %>
  </body>
</html>

Revert "Update to point at correct cloudfront bucket."

This reverts commit a8d52760a582a6af74f40df02ea6650fc4215d70.


    <% link_to '/' do %><%= image_tag 'Between_Screens_Logo_Cube_Up.svg', alt: 'Logo cube' %><% end %>

<%= link_to 'fork!', 'https://github.com/vis-kid/betweenscreens' %>

<%= link_to 'about', '/pages/about.html' %>

<%= link_to 'design', '/design.html' %>

<%= link_to 'code', '/code.html' %>

    <% link_to '/' do %><%= image_tag 'Between_Screens_Logo_Cube_Up.svg', alt: 'Logo cube' %><% end %>

<%= link_to 'fork!', 'https://github.com/vis-kid/betweenscreens' %>

<%= link_to 'about', '/pages/about.html' %>

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

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

<%= link_to 'design', '/design.html' %>

<%= link_to 'code', '/code.html' %>

Add dummy links for menu

Add dummy links for menu

investing
startups


<% if calculator.services.any? %>
  ## Fees

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

  <% unless calculator.country_without_consular_facilities? ||
     calculator.ceremony_country_is_french_overseas_territory? ||
     calculator.ceremony_country == 'indonesia' ||
     calculator.ceremony_country == 'monaco' ||
     calculator.ceremony_country == 'france' %>

    <% if calculator.ceremony_country == 'vietnam' %>
      <%= render partial: 'link_to_consular_fees_pay_in_sterling_or_local_currency.govspeak.erb',
                 locals: { calculator: calculator } %>

    <% elsif calculator.ceremony_country != 'cambodia' &&
      !(calculator.ceremony_country == 'brazil' && calculator.resident_outside_of_third_country?) %>
      <%= render partial: 'link_to_consular_fees.govspeak.erb',
                 locals: { calculator: calculator } %>
    <% end %>
  <% end %>

  <% if calculator.services_payment_partial_name.present? %>
    <% partial = 'payment_information_partials/' + calculator.services_payment_partial_name + '.govspeak.erb' %>
    <%= render partial: partial, locals: { calculator: calculator } %>
  <% end %>
<% end %>

<% if calculator.services.any? %>
  ## Fees

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

  <% unless calculator.country_without_consular_facilities? ||
     calculator.ceremony_country_is_french_overseas_territory? ||
     calculator.ceremony_country == 'indonesia' ||
     calculator.ceremony_country == 'monaco' ||
     calculator.ceremony_country == 'france' ||
     calculator.ceremony_country == 'cambodia' ||
     (calculator.ceremony_country == 'brazil' && calculator.resident_outside_of_third_country?) %>

    <% if calculator.ceremony_country == 'vietnam' %>
      <%= render partial: 'link_to_consular_fees_pay_in_sterling_or_local_currency.govspeak.erb',
                 locals: { calculator: calculator } %>

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

  <% if calculator.services_payment_partial_name.present? %>
    <% partial = 'payment_information_partials/' + calculator.services_payment_partial_name + '.govspeak.erb' %>
    <%= render partial: partial, locals: { calculator: calculator } %>
  <% end %>
<% end %>

Simplify conditional logic around link to consular fees

The commit titled "Display payment information independently to consular fee
link" means that I'm now able to have this single conditional that determines
whether to display the link to consular fees. Prior to this commit, the outer
conditional decided whether we can potentially display both the link to
consular fees and payment information partial.

Note that the logic has been inverted as it's changed from being an `if`
condition to an `unless` condition.


<%#encoding: UTF-8%>
// variant autocompletion

$(document).ready(function() {
  if ($('#variant_autocomplete_template').length > 0) {
    window.variantTemplate = Handlebars.compile($('#variant_autocomplete_template').text());
  }
})

formatVariantResult = function(variant) {
  if (variant["images"][0] != undefined && variant["images"][0].image != undefined) {
    variant.image = variant.images[0].image.mini_url
  }
  return variantTemplate({ variant: variant })
}

$.fn.variantAutocomplete = function() {
  this.parent().children(".options_placeholder").attr('id', this.parent().data('index'))
  this.select2({
    placeholder: "Select a variant",
    minimumInputLength: 4,
    ajax: {
      url: Spree.routes.variants_search,
      datatype: 'json',
      data: function(term, page) {
        return { q: term }
      },
      results: function (data, page) {
        return { results: data }
      }
    },
    formatResult: formatVariantResult,
    formatSelection: function (variant) {
      $(this.element).parent().children('.options_placeholder').html(variant.options_text)
      return variant.name;
    }
  })
}

<%#encoding: UTF-8%>
// variant autocompletion

$(document).ready(function() {
  if ($('#variant_autocomplete_template').length > 0) {
    window.variantTemplate = Handlebars.compile($('#variant_autocomplete_template').text());
  }
})

formatVariantResult = function(variant) {
  if (variant["images"][0] != undefined && variant["images"][0].image != undefined) {
    variant.image = variant.images[0].image.mini_url
  }
  return variantTemplate({ variant: variant })
}

$.fn.variantAutocomplete = function() {
  this.parent().children(".options_placeholder").attr('id', this.parent().data('index'))
  this.select2({
    placeholder: "Select a variant",
    minimumInputLength: 3,
    ajax: {
      url: Spree.routes.variants_search,
      datatype: 'json',
      data: function(term, page) {
        return { q: term }
      },
      results: function (data, page) {
        return { results: data }
      }
    },
    formatResult: formatVariantResult,
    formatSelection: function (variant) {
      $(this.element).parent().children('.options_placeholder').html(variant.options_text)
      return variant.name;
    }
  })
}

Reduce minimum characters required for variant autocomplete (from 4 to 3)

Fixes #2774


  <% if can?(:edit, :general_settings) || can?(:display, Spree::Tracker) || can?(:display, Spree::Taxonomy) %>
    <%= tab :general_settings, label: :store, url: spree.edit_admin_general_settings_path %>
  <% end %>

  <% if can?(:display, Spree::PaymentMethod) %>
    <%= tab :payments, url: admin_payment_methods_path %>
  <% end %>

  <% if can?(:display, Spree::Zone) || can?(:display, Spree::Country) || can?(:display, Spree::State) %>
    <%= tab :areas, url: admin_zones_path %>
  <% end %>

  <% if can?(:display, Spree::TaxCategory) || can?(:display, Spree::TaxRate) %>
    <%= tab :taxes, url: admin_tax_categories_path %>
  <% end %>

  <% if can?(:display, Spree::RefundReason) || can?(:display, Spree::ReimbursementType) ||
     can?(:display, Spree::ReturnReason) || can?(:display, Spree::AdjustmentReason) %>
    <%= tab :checkout, url: admin_refund_reasons_path %>
  <% end %>

  <% if can?(:display, Spree::ShippingMethod) || can?(:display, Spree::ShippingCategory) || can?(:display, Spree::StockLocation) %>
    <%= tab :shipping, url: admin_shipping_methods_path %>
  <% end %>

Add settings sub menu partial

Add settings sub menu partial

This settings sub menu partial will compartimentalize the current
general settings. Implementing the new tabbing technology will give us a
much nicer overall interface for the settings instead of the current
overwhelming wall of settings on the right side.


<%= @instrument.title %>

      <%= link_to instrument_instrument_translations_path(@instrument), class: 'btn btn-primary' do %>
         Translations
      <% end %>
      <%= link_to instrument_versions_path(@instrument), class: 'btn btn-primary' do %>
         Past Versions
      <% end %>
      <%= link_to edit_instrument_path(@instrument), class: 'btn btn-primary' do %>
         Edit Instrument
      <% end %>

    Current Version: <%= @instrument.current_version_number %>

      <% @instrument.questions.each do |question| %>

          <%= question.text %>

          <%= question.question_type %>
          <% if question.has_options? %>

Options:

              <% question.options.each do |option| %>

<%= option.text %>

              <% end %>

          <% end %>

      <% end %>

Make current version a badge

Make current version a badge


<% content_for :extra_head do %>

<% end %>

<%= @prism.title.html_safe %>

<%= @prism.author %>

    <%= @prism.content.html_safe %>

  <%= render 'vizopts' %>

<%= render 'cc_license' %>

    <% if @prism.word_markings.map(&:user_id).uniq != nil %><%=@prism.word_markings.map(&:user_id).uniq.size %> <% if @prism.word_markings.map(&:user_id).uniq.size == 1%>user <% else%>users <%end%>contributed to this visualization.<% end %>

<%= @prism.title.html_safe %>

<%= @prism.author %>

    <%= @prism.content.html_safe %>

  <%= render 'vizopts' %>

<%= render 'cc_license' %>

    <% if @prism.word_markings.map(&:user_id).uniq != nil %><%=@prism.word_markings.map(&:user_id).uniq.size %> <% if @prism.word_markings.map(&:user_id).uniq.size == 1%>user <% else%>users <%end%>contributed to this visualization.<% end %>

<%# content_for :extra_head do %>

<%# end %>

Remove content_for block from visualize

Remove content_for block from visualize

content_for is not applied in caches. See http://apidock.com/rails/ActionView/Helpers/CaptureHelper/content_for


<title><%= title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<%== meta_data_tags %>
<%= canonical_tag(current_store.url) %>
<%= favicon_link_tag 'favicon.ico' %>
<%= stylesheet_link_tag 'spree/frontend/all', media: 'screen' %>
<%= csrf_meta_tags %>
<%= render 'spree/shared/paths' %>
<%= javascript_include_tag 'spree/frontend/all', defer: true %>
<%= yield :head %>
<%= render 'spree/shared/translations' %>

Remove duplicate JS code in header

Remove duplicate JS code in header


<title>
    <%= @view_title %> - Go
</title>
<%= yield :before_stylesheets %>
<%= stylesheet_link_tag "application", {media: "all", debug: Rails.env.development? && params[:debug_assets]} %>
<%= stylesheet_link_tag "patterns/application", {media: "all", debug: Rails.env.development? && params[:debug_assets]} %>

<!-- START: prototype hooks for css injection -->
<% if params[:controller] == "prototype" %>
    <%= stylesheet_link_tag "prototype_#{params[:action]}" %>
<% end %>

<!-- END: prototype hooks for css injection -->

<%= javascript_include_tag "application", debug: Rails.env.development? && params[:debug_assets] %>
<![if !IE]>
    <%= javascript_include_tag 'lib/d3-3.1.5.min' %>
<![endif]>
<!--[if gt IE 8]><!-->
    <%= javascript_include_tag 'lib/d3-3.1.5.min' %>
<!--<![endif]-->

<%= yield :after_javascript %>
<link rel="shortcut icon" href="<%=asset_path('cruise.ico')%>"/>

<title>
    <%= @view_title %> - Go
</title>
<%= yield :before_stylesheets %>
<%= stylesheet_link_tag "application", {media: "all", debug: Rails.env.development? && params[:debug_assets]} %>
<%= stylesheet_link_tag "patterns/application", {media: "all", debug: Rails.env.development? && params[:debug_assets]} %>

<%= javascript_include_tag "application", debug: Rails.env.development? && params[:debug_assets] %>
<![if !IE]>
    <%= javascript_include_tag 'lib/d3-3.1.5.min' %>
<![endif]>
<!--[if gt IE 8]><!-->
    <%= javascript_include_tag 'lib/d3-3.1.5.min' %>
<!--<![endif]-->

<%= yield :after_javascript %>
<link rel="shortcut icon" href="<%=asset_path('cruise.ico')%>"/>

Remove unused css injection hooks

Remove unused css injection hooks


New Group

<% form_for :group, :url => groups_url, :id => "new_group_form" do |f| %>
  <%= f.error_messages %>
  <%= render :partial => "form" %>

		<button class="btn_create" onclick="$('new_group_form').submit();">Create</button>
		<a href="<%= home_path %>" class="cancel btn_cancel">Cancel

<% end %>

New Group

<% form_for :group, :url => groups_url, :html => {:id => "new_group_form"} do |f| %>
  <%= f.error_messages %>
  <%= render :partial => "form" %>

		<button class="btn_create" onclick="$('new_group_form').submit();">Create</button>
		<a href="<%= home_path %>" class="cancel btn_cancel">Cancel

<% end %>

Fix form submission on IE

Fix form submission on IE


<% content_for :head do -%>
  <%= webpack_styles_tag "hello_world", "hello_world" %>
<% end -%>

<%= render "shared/default_client_settings" %>
<%= webpack_manifest_script("hello_world") %>

<%= webpack_bundle_tag "hello_world", "hello_world_manifest" %>
<%= webpack_bundle_tag "hello_world", "hello_world_vendor" %>
<%= webpack_bundle_tag "hello_world", "hello_world" %>

Remove unnecessary webpack helpers from index page


<% govspeak_for :body do %>
  You can claim Bereavement Allowance, Bereavement Payment or Widowed Parent's Allowance as appropriate.

  Find out how to claim:

  - [Bereavement Allowance](/bereavement-allowance#how-to-claim)
  - [Bereavement Payment](/bereavement-payment#how-to-claim)
  - [Widowed Parent's Allowance](/widowed-parents-allowance#how-to-claim)
<% end %>

<% govspeak_for :body do %>
  <% if calculator.country == "bermuda" || calculator.country == "mauritius"%>
    You might be able to get Widowed Parent’s Allowance. [Find out how to claim](/widowed-parents-allowance).
  <% else %>
    You might be able to get Bereavement Support Payment or Widowed Parent’s Allowance.

    Find out how to claim:

    - [Bereavement Support Payment](/bereavement-support-payment)
    - [Widowed Parent’s Allowance](/widowed-parents-allowance)
  <% end %>
<% end %>

Update /already_abroad non EEA countries

There is a slightly different outcome for Bermuda and Mauritius.


Question: min(last_15m):per_minute(avg:datadog.nozzle.auctioneer.AuctioneerLRPAuctionsFailed{deployment:<%= metron_agent_diego_deployment %>}) > 1

<%= cloudops_pagerduty %> <%= diego_oncall %>

<%= environment %> Diego: LRP Auction Failure per min is too high

Question: min(last_15m):per_minute(avg:datadog.nozzle.auctioneer.AuctioneerLRPAuctionsFailed{deployment:<%= metron_agent_diego_deployment %>}) > 1

Disable alerting for "no data" on LRP auction failure

Signed-off-by: Jim Park <7187dadeaa9825054bf26bb1a84055243400af16@pivotal.io>


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

<%= link_to "jots", '/jots.html' %>

<%= link_to "projects", '/projects.html' %>

      <form role="search" action="/search" method="get">
        <input class="search-term" type="search" placeholder="Search..." name="q" />
        <button class="search-submit" type="submit">

        </button>
      </form>

<%= link_to "articles", '/articles.html' %>

<%= link_to "projects", '/projects.html' %>

<%= link_to "jots", '/jots.html' %>

      <form role="search" action="/search" method="get">
        <input class="search-term" type="search" placeholder="Search..." name="q" />
        <button class="search-submit" type="submit">

        </button>
      </form>

Update the navigation partial to point to the 3 site sections


            Copyright © <%= Time.now.year %> Hacker News Kansai

            Created by <%= link_to 'FajitaNachos', 'http://fajitanachos.com' %>

            Copyright © <%= Time.now.year %> Hacker News Kansai

            Created by <%= link_to 'FajitaNachos', 'https://github.com/andrewholsted' %>

Update broken link in footer.

Update broken link in footer.


<a href="/businesses/<%= current_business.id %>">Dinner Winner

<a class="business-dash" href="/businesses/<%= current_business.id %>">Business Dashboard

      |

Create New Mass Deal

      |

<a id="deals-link" class="my-deals-link" href="<%= current_business.id %>/deals">My Deal Templates

        |
        <a href="/businesses/<%= current_business.id %>/edit">

        <form class="sign-out-form" action="/businesses/sign_out" method="post"/>
          <input type="hidden" name="_method" value="delete">
          <input name="authenticity_token" type="hidden" value="token_value">
          <input type="submit" value="Logout">
        </form>

<a href="/businesses/<%= current_business.id %>">Dinner Winner

<a class="business-dash" href="/businesses/<%= current_business.id %>">Business Dashboard

      |

Create New Mass Deal

      |

<a id="deals-link" class="my-deals-link" href="/businesses/<%= current_business.id %>/deals">My Deal Templates

        |
        <a href="/businesses/<%= current_business.id %>/edit">

        <form class="sign-out-form" action="/businesses/sign_out" method="post"/>
          <input type="hidden" name="_method" value="delete">
          <input name="authenticity_token" type="hidden" value="token_value">
          <input type="submit" value="Logout">
        </form>

Fix my deals template link

Fix my deals template link


OpenID <%= link_to h(uri.uri), h(uri.uri) %>

hCard <%= uri.uri_property.hcard? %>

FoaF <%=h uri.uri_property.foaf? %>

Atom/RSS feeds <%=h uri.uri_property.feeds? %>

Microformats <%=h uri.uri_property.microformats %>

OpenID <%= link_to h(uri.uri), h(uri.uri) %>

FoaF <%=h uri.uri_property.foaf? %>

Atom/RSS feeds <%=h uri.uri_property.feeds? %>

Microformats <%=h uri.uri_property.microformats %>

Remove obsolete hCard from uris/show

Remove obsolete hCard from uris/show


Register New User

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

Already have a profile?  <%= link_to 'Login here!', login_path%>

Change User Registration form title from using <h2> to <h1>


<%= form_for @user do |f| %>
  <%= f.label :name %>
  <%= f.text_field :name %>
  <%= f.label :email %>
  <%= f.email_field :email %>
  <%= f.label :password %>
  <%= f.password_field :password %>
  <%= f.label :'confirm password' %>
  <%= f.password_field :password_confirmation %>
  <%= f.submit %>
<% end %>

Tell DemBoyz your problem:

    <%= form_for @user do |f| %>
      <%= f.label :name %>
      <%= f.text_field :name %>
      <%= f.label :email %>
      <%= f.email_field :email %>
      <%= f.label :password %>
      <%= f.password_field :password %>
      <%= f.label :'confirm password' %>
      <%= f.password_field :password_confirmation %>
      <%= f.submit 'Signup', class: 'small button' %>
    <% end %>

Add styling to users new view

Add styling to users new view


      Method name
      Number of calls
      Monitoring start date
      Last call date

    <% @method_call_situations.each do |method_call_situation| %>

          <%= method_call_situation.class_name %><%= method_call_situation.method_symbol %><%= method_call_situation.method_name %>

          <%= method_call_situation.called_num %>

          <%= method_call_situation.created_at %>

          <%= method_call_situation.called_num > 0 ? method_call_situation.updated_at : "未呼出" %>

    <% end %>

<%= paginate @method_call_situations %>

      Method name
      Number of calls
      Monitoring start date
      Last call date

    <% @method_call_situations.each do |method_call_situation| %>

          <%= method_call_situation.class_name %><%= method_call_situation.method_symbol %><%= method_call_situation.method_name %>

          <%= method_call_situation.called_num %>

          <%= method_call_situation.created_at %>

          <%= method_call_situation.called_num > 0 ? method_call_situation.updated_at : "Not called" %>

    <% end %>

<%= paginate @method_call_situations %>

Fix word from Japanese to English

Fix word from Japanese to English


<!doctype html>
<html>
  <head>
    <meta charset="utf-8">

    <!-- Always force latest IE rendering engine or request Chrome Frame -->
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">

    <!-- Use title if it's in the page YAML frontmatter -->
    <title><%= current_page.data.title || "The Middleman" %></title>

    <%= stylesheet_link_tag "normalize", "all" %>
    <%= javascript_include_tag  "all" %>
  </head>

  <body class="<%= page_classes %>">
    <%= yield %>
  </body>
</html>

Remove spaces on empty lines

Remove spaces on empty lines


#
# This file is managed by puppet class 'uwsgi::app'
#
# uwsgi app config for '<%= @name %>'
#
[uwsgi]
uid = <%= @uid %>
gid = <%= @gid %>
<%
if @application_options
  @application_options.each do |key, value|
    if value.is_a? Array
      value.each do |v|
-%>
<%= key %> = <%= v%>
<%
      end
    else
-%>
<%= key %> = <%= value%>
<%
    end
  end

if @environment_variables
  @environment_variables.sort.each do |key, value|
-%>
env = <%= key %>=<%= value %>
<%
  end
end
-%>

#
# This file is managed by puppet class 'uwsgi::app'
#
# uwsgi app config for '<%= @name %>'
#
[uwsgi]
uid = <%= @uid %>
gid = <%= @gid %>
<%
if @application_options
  @application_options.each do |key, value|
    if value.is_a? Array
      value.each do |v|
-%>
<%= key %> = <%= v%>
<%
      end
    else
-%>
<%= key %> = <%= value%>
<%
    end
  end
%>

<%
if @environment_variables
  @environment_variables.sort.each do |key, value|
-%>
env = <%= key %>=<%= value %>
<%
  end
end
-%>

Make a logical seperation of setting values


 the Hive

<% if current_user %>

<%= current_user.username%>

<%= link_to "Profile", user_path(session[:user_id]) %>

<%= link_to "Logout", logout_path %>

<% end %>

 <%= flash[:notice]%>

Add float divs to nav bar

Add float divs to nav bar


<%= @user.username %> profile

Past Questions:

    <% @user.questions.each do |q| %>

<%= q.title %>

    <% end %>

Answers You've Given:

    <% @user.answers.each do |a| %>

Answer: <%= a.content %> | Question: <%= a.question %>, by: <%= a.question.asker %>

    <% end %>

Create template to show user profile page


<%
if Rails.env.development? || Rails.env.test?
  require_asset ("ember-template-compiler.js")
  require_asset ("ember.custom.debug.js")
else
  require_asset ("ember.prod.js")
end
%>

<%
if Rails.env.development? || Rails.env.test?
  require_asset ("ember-template-compiler.js")
  require_asset ("ember.custom.debug.js")
else
  require_asset ("ember-template-compiler.js")
  require_asset ("ember.prod.js")
end
%>

Include the template compiler in production mode.

Some people use this for customizations.


<% if @locales[:available].any? && !params.empty? %>

   <p class="locale-list-trigger <% @locales[:current] %>">
     <%= locale_name(@locales[:current]) %>

     <% @locales[:available].each do |locale| %>

         <%= link_to locale_name(locale), url_for(params.merge(:locale => locale)) %>

     <% end %>

<% end %>

<% if @locales[:available].any? %>

   <p class="locale-list-trigger <% @locales[:current] %>">
     <%= locale_name(@locales[:current]) %>

     <% @locales[:available].each do |locale| %>

         <%= link_to locale_name(locale), url_for(params.merge(:locale => locale)) %>

     <% end %>

<% end %>

Remove params check in locale switcher

Remove params check in locale switcher

Introduced in 8eed2061. Specs all pass so I think its a hangover from an
old way of routing.


Hello <%= @resource.email %>!

Someone has requested a link to change your password. You can do this through the link below.

<%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %>

If you didn't request this, please ignore this email.

Your password won't change until you access the link above and create a new one.

Hello <%= @resource.first_name %>!

Someone has requested a link to change your password. You can do this through the link below.

<%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %>

If you didn't request this, please ignore this email.

Your password won't change until you access the link above and create a new one.

Update password recovery email message

Update password recovery email message


<%= "Contributions from #{@maker.name}" %>

<% if @jerries.any? %>
  <% @jerries.each do |jerry| %>

    <%= link_to image_tag(jerry.avatar.url(:small).to_s), jerry_path(jerry) if jerry.avatar.url %>
    <%= link_to jerry.name, jerry_path(jerry) %>

  <% end %>
<% end %>

<%= "Contributions from #{@maker.name}" %>

<% if @jerries.any? %>
  <% @jerries.each do |jerry| %>

  <% if jerry.avatar.url %>
    <%= link_to image_tag(jerry.avatar.url(:small).to_s), jerry_path(jerry) %>
  <% else %>
    <%= link_to image_tag("http://placehold.it/50x50&text=#{jerry.name.first.upcase}"), jerry_path(jerry) %>
  <% end %>
    <%= link_to jerry.name, jerry_path(jerry) %>

  <% end %>
<% end %>

Fix thumbnails on maker profile

Fix thumbnails on maker profile


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

<%= song.name %>

One fine booty…

        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>

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

Title: <%= song.name %>

        <img src="<%= song.artwork %>" />

        <audio controls>
          <source src="<%= song.attachment %>" type="audio/mpeg">
        </audio>

Artist: <%= song.artist.name %>

Expiration: <%= song.expire.strftime("%b %d, %Y") %>

    70% Complete

Listens: <%= song.listens.count %>

        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

Add modal to song show

Add modal to song show


(c) Copyright 2010-2012 Mickael Faivre-Maçon

    Report a bug or an evolution

Update TO for report a bug

Update TO for report a bug


<%= t('solicitor_search').html_safe %>

    <%= text_field_tag 'q', nil, autocomplete: "off", autofocus: true, class: "no-enter-submit search-text-field text-field" %>
    <%= button_tag t('search'), class: 'button solicitor-search' %>

<%= t('solicitor_search').html_safe %>

    <%= text_field_tag 'q', nil, autocomplete: "off", autofocus: true, class: "no-enter-submit search-text-field text-field" %>
    <%= button_tag t('search'), type: "button", class: 'button solicitor-search' %>

Stop search being submitted by enter on DR form

Not sure when this broke, but the dr form was
submitting the search when enter was pressed on
any field, apparently browsers assume any button
without `type="button"` is a submit button.


<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title><%=h @page_title %></title>
  <meta content="<%=h @page_section %>" name="x-section-name">
  <meta content="<%=h @page_section_link %>" name="x-section-link">
  <% yield_content :head %>
</head>
<body class="<%= proposition %>">
  <div id="wrapper" class="wrapper">
    <%= yield %>
  </div>
</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title><%=h @page_title %></title>
  <meta content="<%=h @page_section %>" name="x-section-name">
  <meta content="<%=h @page_section_link %>" name="x-section-link">
  <%= yield_content :head %>
</head>
<body class="<%= proposition %>">
  <div id="wrapper" class="wrapper">
    <%= yield %>
  </div>
</body>
</html>

Tweak to try and get JSON links into search page headers


<!DOCTYPE html>

      <meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />

Status: <%= @gem.status %>

Notes:  <%= @gem.notes %>

Link:   <%= link_to @gem.name, rubygem_url(@gem) %>

Fix indentation in mailer template

Fix indentation in mailer template


<% if not patient.pledge_sent? %>
  <%= link_to submit_pledge_button, submit_pledge_path(patient), class:'submit-pledge-button', aria: { label: t('patient.menu.submit_pledge') }, remote: true %>
<% else %>
  <%= link_to cancel_pledge_button, submit_pledge_path(patient), class:'submit-pledge-button', remote: true %>
<% end %>

<% if not patient.pledge_sent? %>
  <%= link_to submit_pledge_button, submit_pledge_path(patient), class:'submit-pledge-button', aria: { label: t('patient.menu.submit_pledge') }, remote: true %>
<% else %>
  <%= link_to cancel_pledge_button, submit_pledge_path(patient), class:'submit-pledge-button', aria: { label: t('patient.menu.cancel_pledge') }, remote: true %>
<% end %>

Add label to cancel pledge button

Add label to cancel pledge button


<div id="page-tab-<%= page_tab.id || 'new' %>" class='page-tab'>

    <% if page_tab.page_id %>
      <%# button nil, t('fb_app_plugin.views.myprofile.catalog.see_page'), "https://facebook.com/#{page_tab.page_id}/app_#{FbAppPlugin.page_tab_app_credentials[:id]}", target: '_blank'  %>
      <%# button nil, t('fb_app_plugin.views.myprofile.catalog.see_page'), "https://facebook.com/#{page_tab.page_id}", target: '_blank'  %>
    <% else %>
      <%= t('fb_app_plugin.views.myprofile.catalogs.new') %>
    <% end %>

  <%= render 'fb_app_plugin_page_tab/configure_form', page_tab: page_tab, signed_request: nil %>

<div id="page-tab-<%= page_tab.id || 'new' %>" class='page-tab'>

    <% if page_tab.page_id %>
      <%= page_tab.name %>
      <%# button nil, t('fb_app_plugin.views.myprofile.catalog.see_page'), "https://facebook.com/#{page_tab.page_id}/app_#{FbAppPlugin.page_tab_app_credentials[:id]}", target: '_blank'  %>
      <%# button nil, t('fb_app_plugin.views.myprofile.catalog.see_page'), "https://facebook.com/#{page_tab.page_id}", target: '_blank'  %>
    <% else %>
      <%= t('fb_app_plugin.views.myprofile.catalogs.new') %>
    <% end %>

  <%= render 'fb_app_plugin_page_tab/configure_form', page_tab: page_tab, signed_request: nil %>

Put the name to each catalog

Put the name to each catalog


; This file was auto-generated by Puppet.  Do not edit by hand.

<%
i = 0
@hosts.each do |host|
-%>
[program:munin-tunnel-<%= host %>]
command=autossh -N -M <%= 20000 + 2 * i %> -L <%= 5000 + i %>:localhost:4949 -o ControlMaster=yes nagios@<%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
priority=200                   ; the relative start priority (default 999)
autostart=true                 ; start at supervisord start (default: true)
autorestart=true               ; whether/when to restart (default: unexpected)
stopsignal=TERM                 ; signal used to kill process (default TERM)
stopwaitsecs=30                ; max num secs to wait b4 SIGKILL (default 10)
user=nagios                    ; setuid to this UNIX account to run the program
redirect_stderr=true           ; redirect proc stderr to stdout (default false)
stdout_logfile=/var/log/zulip/autossh.<%= host %>.log         ; stdout log path, NONE for none; default AUTO

<%
i += 1
end
-%>

; This file was auto-generated by Puppet.  Do not edit by hand.

<%
i = 0
@hosts.each do |host|
-%>
[program:autossh-tunnel-<%= host %>]
command=autossh -N -M <%= 20000 + 2 * i %> -L <%= 5000 + i %>:localhost:4949 -o ControlMaster=yes nagios@<%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
priority=200                   ; the relative start priority (default 999)
autostart=true                 ; start at supervisord start (default: true)
autorestart=true               ; whether/when to restart (default: unexpected)
stopsignal=TERM                 ; signal used to kill process (default TERM)
stopwaitsecs=30                ; max num secs to wait b4 SIGKILL (default 10)
user=nagios                    ; setuid to this UNIX account to run the program
redirect_stderr=true           ; redirect proc stderr to stdout (default false)
stdout_logfile=/var/log/zulip/autossh.<%= host %>.log         ; stdout log path, NONE for none; default AUTO

<%
i += 1
end
-%>

puppet: Rename autossh tunnel, as it is no longer for just munin.


<%= div_for contact, :class => 'row' do %>

      <%= link_to(image_tag(contact.receiver.logo.url(:profile)),
                  contact.receiver_subject, :class => "container") %>

<%= link_to(truncate_name(contact.receiver_subject.name), contact.receiver_subject, :class => "contact_link", :length => 18) %>

       <%= link_to(image_tag('close.png'), contact, :method => :delete, :remote => true )%>

followers: <%= link_to contact.receiver_subject.followers.count, "#" %>

followings: <%= link_to contact.receiver.following_actor_objects.includes(:actor).count, "#" %>

<%=contact_to(contact.receiver) %>

<% end %>

<%= div_for contact, :class => 'row' do %>

      <%= link_to(image_tag(contact.receiver.logo.url(:profile)),
                  contact.receiver_subject, :class => "container") %>

<%= link_to(truncate_name(contact.receiver_subject.name), contact.receiver_subject, :class => "contact_link", :length => 18) %>

       <%= link_to(image_tag('close.png'), contact, :method => :delete, :remote => true )%>

<%= t('follow.followers') %>: <%= link_to contact.receiver_subject.followers.count, [contact.receiver_subject, "followers"] %>

<%= t('follow.followings') %>: <%= link_to contact.receiver.following_actor_objects.includes(:actor).count, [contact.receiver_subject, "followings"] %>

<%=contact_to(contact.receiver) %>

<% end %>

Fix contact suggestion links for followers/followings


Edit

<%= form_for @post, url: course_forum_topic_post_path(@course, @forum, @topic, @post, method: 'PUT') do |f| %>
  <%= render partial: 'form', locals: { reply_to: nil, form: f } %>
  <%= f.submit 'Save', class: 'btn btn-primary' %>
<% end %>

  <%= render partial: 'forums/topics/header', locals: { topic: @topic } %>

Edit Post

  <%= form_for @post, url: course_forum_topic_post_path(@course, @forum, @topic, @post, method: 'PUT') do |f| %>
    <%= render partial: 'form', locals: { reply_to: nil, form: f } %>
    <%= f.submit 'Save', class: 'btn btn-primary' %>
  <% end %>

Edit post should have a breadcrumb to navigate.


OSS Badge Program

    The CII Best Practices badge is a way for open source software (OSS) projects to
    show that they follow best practices. Projects can voluntarily self-certify,
    at no cost, by using this web application to explain how they follow each
    best practice. The CII Best Practices Badge is inspired by the many badges
    available to projects on Github. Consumers of the badge will be able to
    quickly assess which OSS projects are following best practices and as a
    result are more likely to produce higher-quality secure software.

    More information on the CII Best Practices Badging program, including background
    and criteria, is available on
    GitHub.

<%= link_to 'Get Your Badge Now!', new_project_path, class:"btn btn-success" %>

CII Best Practices Badge Program

    The Core Infrastructure Initiative (CII)
    Best Practices badge is a way for Free/Libre and
    Open Source Software (FLOSS) projects to
    show that they follow best practices. Projects can voluntarily self-certify,
    at no cost, by using this web application to explain how they follow each
    best practice. The CII Best Practices Badge is inspired by the many badges
    available to projects on Github. Consumers of the badge will be able to
    quickly assess which OSS projects are following best practices and as a
    result are more likely to produce higher-quality secure software.

    More information on the CII Best Practices Badging program,
    including background
    and criteria, is available on
    GitHub.

<%= link_to 'Get Your Badge Now!', new_project_path, class:"btn btn-success" %>

Fix up home page so FLOSS term is used

Fix up home page so FLOSS term is used

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


This is where your category form partial will go, to be rendered in new and edit

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

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

    <%= f.submit %>

<% end %>

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

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

<% end %>

Create form for creating a new category

Create form for creating a new category


<%= notice %>

Listing Categories

      Name
      Category

    <% @categories.each do |category| %>

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

    <% end %>

<%= link_to 'New Category', new_category_path %>

<%= notice %>

Listing Categories

      Name

    <% @categories.each do |category| %>

        <%= category.name %>
        <%= link_to 'Show', category %>

    <% end %>

Fix paths no longer exists

Fix paths no longer exists


<%= @module['name'] %> Module

<% if @module['module'] %>

Parent: <%= link_to @module['module'], "#{@module['module']}.html" %>

<% end %>

<% if @module['requires'] %>

Requires: <%= @module['requires'].map{|r| link_to(r['name'], "#{r['name']}.html") }.join(", ") %>

<% end %>

<%= api_markdown @module['description'] %>

<% if @module['submodules'].length > 0 %>

Submodules

  <% @module['submodules'].keys.each do |name| %>

<%= link_to name, "#{name}.html" %>

  <% end %>

<% end %>

<% if @module['classes'].length > 0 %>
  <%# FIXME: Split these apart %>

Classes and Namespaces

  <% @module['classes'].keys.each do |name| %>
    <li class="<%= api_classes_for_class(name) %>"><%= link_to name, "../classes/#{name}.html" %>

  <% end %>

<% end %>

<%= @module['name'] %> Module

<% if @module['module'] %>

Parent: <%= link_to @module['module'], "#{@module['module']}.html" %>

<% end %>

<% if @module['requires'] %>

Requires: <%= @module['requires'].map{|r| link_to(r, "#{r}.html") }.join(", ") %>

<% end %>

<%= api_markdown @module['description'] %>

<% if @module['submodules'].length > 0 %>

Submodules

  <% @module['submodules'].keys.each do |name| %>

<%= link_to name, "#{name}.html" %>

  <% end %>

<% end %>

<% if @module['classes'].length > 0 %>
  <%# FIXME: Split these apart %>

Classes and Namespaces

  <% @module['classes'].keys.each do |name| %>
    <li class="<%= api_classes_for_class(name) %>"><%= link_to name, "../classes/#{name}.html" %>

  <% end %>

<% end %>

Fix reference so required modules are properly linked


<%= form.label :statistical_data_set_document_ids, 'Related statistical data sets' %>
<%= form.select :statistical_data_set_document_ids, options_from_collection_for_select(statistical_data_set_options, :first, :last, edition.statistical_data_set_document_ids), {}, multiple: true, class: 'chzn-select', data: { placeholder: "Choose statistical data sets..."} %>

<%= form.label :statistical_data_set_document_ids, 'Related statistical data sets' %>
<%= form.select :statistical_data_set_document_ids,
                options_from_collection_for_select(statistical_data_set_options, :first, :last, edition.statistical_data_set_document_ids),
                { include_blank: true },
                multiple: true,
                class: 'chzn-select',
                data: { placeholder: "Choose statistical data sets..."} %>

Add blank option to statistical data sets


<li data-reorder-id='<%= node.id %>'>
  <%= simple_form_for [main_app, node], remote: true do |f| %>

          <%= f.input :title, as: :string, input_html: { name: "#{f.object.model_name.singular}[title][]", class: "title" }, value: node.to_s, label: false %>

          <%= link_to polymorphic_path([main_app, node]), title: "Edit file" do %>

          <% end %>

        <% if node.respond_to?(:page_title) %>

            <em title="<%= node.page_title %>">(<%= truncate(node.page_title, length: 29) %>)

        <% end %>

          <%= render "file_manager_thumbnail", node: node %>

          <%= render "file_manager_attributes", node: node, f: f%>

  <% end %>

<li data-reorder-id='<%= node.id %>'>
  <%= simple_form_for [main_app, node], remote: true, html: {'data-type': 'json'} do |f| %>

          <%= f.input :title, as: :string, input_html: { name: "#{f.object.model_name.singular}[title][]", class: "title" }, value: node.to_s, label: false %>

          <%= link_to polymorphic_path([main_app, node]), title: "Edit file" do %>

          <% end %>

        <% if node.respond_to?(:page_title) %>

            <em title="<%= node.page_title %>">(<%= truncate(node.page_title, length: 29) %>)

        <% end %>

          <%= render "file_manager_thumbnail", node: node %>

          <%= render "file_manager_attributes", node: node, f: f%>

  <% end %>

Send remote requests as JSON in FM.

Send remote requests as JSON in FM.

Makes the responses MUCH faster.


<div class="container <% if params[:action] == 'picks' %>container--picks<% end %>">

Staff Picks

Try out some of these exemplary React Native apps.

  <%= render partial: 'apps', locals: {apps: @apps} %>

Adjust picks view's style a bit

Adjust picks view's style a bit


Welcome to GOV.UK

Your account

<%= link_to "Change your passphrase", edit_user_path %>

<%= link_to "Sign out", destroy_user_session_path, :method => :delete %>

<% if current_user.is_admin? %>

Admin tasks

<%= link_to "Administer users", admin_users_path %>

<% end %>

My Applications

  <% current_user.permissions.sort_by { |p| p.application.name }.each do |permission| %>

<%= link_to_if permission.application.home_uri, permission.application.name, permission.application.home_uri %>

      <% if permission.application.description.present? %>
      <%= simple_format permission.application.description %>
      <% end %>

Roles: <%= permission.permissions.nil? ? "None" : permission.permissions.map(&:humanize).to_sentence %>

  <% end %>

Welcome to GOV.UK

Your account

<%= link_to "Change your passphrase", edit_user_path %>

<%= link_to "Sign out", destroy_user_session_path, :method => :delete %>

  <% if current_user.is_admin? %>

Admin tasks

<%= link_to "Administer users", admin_users_path %>

  <% end %>

Your Applications

    <% current_user.permissions.sort_by { |p| p.application.name }.each do |permission| %>

<%= link_to_if permission.application.home_uri, permission.application.name, permission.application.home_uri %>

        <% if permission.application.description.present? %>
        <%= simple_format permission.application.description %>
        <% end %>

Roles: <%= permission.permissions.nil? ? "None" : permission.permissions.map(&:humanize).to_sentence %>

    <% end %>

Tidy up HTML in index page

Tidy up HTML in index page

Add missing close div tag, re-indent, change some heading levels


<%= User.find(params[:id]).username %>'s Profile

    <% if @groups.length > 0 %>

Your Groups

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

<a href="/groups/<%= group.id %>"><%= group.name %>

          <% end %>

    <% else %>
      You haven't joined any groups yet. Look at the groups page to get started!
    <% end %>

Your Top 40 Artists

      <% if @user_artists.length > 0 %>
        <%= render partial: 'artists/rankings_table', locals: {artists: @user_artists} %>
      <% else %>
        You haven't voted on any artists yet. Get started now!
      <% end %>

      <% if current_user %>

<%= link_to 'Edit Your Profile', edit_user_path(current_user) %>

      <% end %>

<%= User.find(params[:id]).username %>'s Profile

    <% if @groups.length > 0 %>
      <% if current_user %>

Your Groups

      <% else %>

<%= User.find(params[:id]).username %>'s Groups

      <% end %>

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

<a href="/groups/<%= group.id %>"><%= group.name %>

          <% end %>

    <% else %>
      You haven't joined any groups yet. Look at the groups page to get started!
    <% end %>

    <% if current_user %>

Your Top 40 Artists

    <% else %>

<%= User.find(params[:id]).username %>'s Top 40 Artists

    <% end %>
      <% if @user_artists.length > 0 %>
        <%= render partial: 'artists/rankings_table', locals: {artists: @user_artists} %>
      <% else %>
        <% if current_user %>
         You haven't voted on any artists yet. Get started now!
        <% else %>
          <%= User.find(params[:id]).username %> hasn't voted on any artists yet.
        <% end %>
      <% end %>

      <% if current_user %>

<%= link_to 'Edit Your Profile', edit_user_path(current_user) %>

      <% end %>

Update user show text depending on user status.


#!/bin/bash

set -e

# Back up the shared directory, which includes uploaded images and documents
tar cjpf <%= @shared_filename %> -C /var/www/toolkit shared
openssl dgst -md5 <%= @shared_filename %> > <%= @shared_filename + ".md5" %>

# Back up the database
pg_dump <%= @database %> -Z 1 -f <%= @dbdump_filename %>
openssl dgst -md5 <%= @dbdump_filename %> > <%= @dbdump_filename + ".md5" %>

#!/bin/bash

set -e

# Back up the shared directory, which includes uploaded images and documents
tar --exclude="*.log" -cjpf <%= @shared_filename %> -C /var/www/toolkit shared
openssl dgst -md5 <%= @shared_filename %> > <%= @shared_filename + ".md5" %>

# Back up the database
pg_dump <%= @database %> -Z 1 -f <%= @dbdump_filename %>
openssl dgst -md5 <%= @dbdump_filename %> > <%= @dbdump_filename + ".md5" %>

Exclude log files from the backup.

Exclude log files from the backup.

The backups are often failing because the log files are changing
while being read. Rather than ignoring all read errors
(--ignore-read-error) we'll exclude the logs instead.


Home

<% @users.each do |user| %>

User: <%=link_to user.name, user %>

<% end %>

Update homepage to be blank for now.

Update homepage to be blank for now.


Edit account information

Make the desired changes below, and click the button.

<%= render "form" %>

Add grid to match formatting consistent with rest of the site.


<% text_for :title do %>
  Is your partner or family member a British citizen, or settled in the UK?
<% end %>

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

<% text_for :title do %>
  Does your partner or family member have any of the following types of UK immigration status?
<% end %>

<% govspeak_for :body do %>
 - British citizenship
 - settlement (called having ‘indefinite leave to remain’)
 - settled or pre-settled status under the EU Settlement Scheme
 - a Turkish worker or businessperson visa
<% end %>

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

Update family visa eligibility question

Update family visa eligibility question

There are more users eligible for family visas. The title
and additional bulleted list of immigration status' now reflects
this.


<% if project.draft? %>

Let's setup your Project

<%= render partial: "setup/setup/step", collection: setup.steps, locals: { readonly: false }%>
<% else %>

This project is in readonly

<%= link_to "Latest project draft is available here", setup_project_path(current_program.project_anchor.latest_draft) %>

<%= render "readonly" %>
<% end %>

<% if project.draft? %>

Let's setup your Project

<%if params[:readonly]%>
<%= render "readonly" %>
<%else%>
<%= render partial: "setup/setup/step", collection: setup.steps, locals: { readonly: false }%>
<%end%>
<% else %>

This project is in readonly

<%= link_to "Latest project draft is available here", setup_project_path(current_program.project_anchor.latest_draft) %>

<%= render "readonly" %>
<% end %>

Allow to display in readonly mode the current draft


<div id="in_tail_format" class="form-group" formatOptions="<%= formats.to_json %>" initialSelected="<%= initialSelected %>">

    format
    <select name="setting[format]" v-model="format" class="form-control">
      <option v-repeat="formats" value="{{ $value }}" v-attr="selected: format==$value">{{ $value }}</option>
    </select>

    {{ $value }}
    <input type="text" name="setting[{{ $value }}]" />

    <%= raw t('fluentd.settings.in_tail_option_guide') %>

<div id="in_tail_format" class="form-group" formatOptions="<%= formats.to_json %>" initialSelected="<%= initialSelected %>">

    format(TODO: use Glok?)
    <select name="setting[format]" v-model="format" class="form-control">
      <option v-repeat="formats" value="{{ $value }}" v-attr="selected: format==$value">{{ $value }}</option>
    </select>

    {{ $value }}
    <input type="text" name="setting[{{ $value }}]" />

    <%= raw t('fluentd.settings.in_tail_option_guide') %>

Add TODO for in_tail setup format

Add TODO for in_tail setup format


Change your password

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

      <%= f.input :password, placeholder: "New password", required: true, input_html: {autofocus: true, autocomplete: "off"} %>
      <%= f.input :password_confirmation, placeholder: "Confirm new password", required: true, input_html: {autocomplete: "off"} %>

      <%= f.input :current_password, required: true, wrapper_html: {autocomplete: "off"} do %>
        <%= f.input_field :current_password, placeholder: "Current password" %>
        <%= content_tag :span, "(Enter current password to confirm changes)", class: "help-inline" %>
      <% end %>

        <%= f.submit "Update", class: "btn btn-primary" %>
        <%= link_to "Back", :back, class: "btn" %>

    <% end %>

Cancel my account

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

Split the block for canceling account on change password page


<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', '<%= Course.main.ga_account %>']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript';
    ga.async = true;
    ga.src = 'https://ssl.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(ga, s);
  })();
</script>

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', '<%= Course.main.ga_account %>');
  ga('send', 'pageview');
</script>

Update Google Analytics tracking code.

Update Google Analytics tracking code.


      <%= @effort_show.full_name %>
      <%= "(#{@effort_show.bib_number})" if @effort_show.bib_number %>
      • <%= link_to @effort_show.event_name, event_path(@effort_show.event) %>

    <% overall_place, gender_place = @effort_show.combined_places %>

<%= "#{@effort_show.finish_status} • #{overall_place.ordinalize} Place • #{gender_place.ordinalize} #{@effort_show.gender.titleize}" %>

<% if @effort_show.split_rows.count > 0 %>
    <%= render 'split_times/split_times_list_compact' %>
<% end %>

      <%= @effort_show.full_name %>
      <%= "(#{@effort_show.bib_number})" if @effort_show.bib_number %>
      • <%= @effort_show.event_name %>

    <% overall_place, gender_place = @effort_show.combined_places %>

<%= "#{@effort_show.finish_status} • #{overall_place.ordinalize} Place • #{gender_place.ordinalize} #{@effort_show.gender.titleize}" %>

<% if @effort_show.split_rows.count > 0 %>
    <%= render 'split_times/split_times_list_compact' %>
<% end %>

Make modal effort view more compact.

Make modal effort view more compact.


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

<%= pluralize(@support_source.errors.count, "error") %> prohibited this support source from being saved

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

<%= message %>

            <% end %>

    <% end %>

        <%= f.label :name %>
        <%= f.text_field :name, class: 'form-control' %>

        <%= f.label :rss_url %>
        <%= f.text_field :rss_url, class: 'form-control' %>
        For Stack Overflow: http://stackoverflow.com/feeds/tag?tagnames=passenger&sort=newest

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

<% end %>

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

<%= pluralize(@support_source.errors.count, "error") %> prohibited this support source from being saved

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

<%= message %>

            <% end %>

    <% end %>

        <%= f.label :name %>
        <%= f.text_field :name, class: 'form-control' %>

        <%= f.label :rss_url %>
        <%= f.text_field :rss_url, class: 'form-control' %>
        For Stack Overflow: https://stackoverflow.com/feeds/tag?tagnames=passenger&sort=newest

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

<% end %>

Update recommended Stack Overflow URL

Update recommended Stack Overflow URL


<% if collections.any? %>

  <% collections.each do |collection| %>
    <% url = "t/fabric/collection/#{collection.name}".downcase.gsub(/\s+/, "-") %>
    <li id="product_<%= collection.id %>" class="columns three <%= cycle("alpha", "secondary", "", "omega secondary", :name => "classes") %>" data-hook="products_list_item" itemscope itemtype="http://schema.org/Product">

        <%= link_to small_image(collection.products.first, :itemprotp => "image"), url, :itemprop => 'url' %>

      <%= link_to collection.name, url %>

  <% end %>
  <% reset_cycle("classes") %>

<% end %>

<% if collections.any? %>

  <% collections.each do |collection| %>
    <% url = "t/fabric/collection/#{collection.name}".downcase.gsub(/\s+/, "-") %>
    <li id="product_<%= collection.id %>" class="columns three <%= cycle("alpha", "secondary", "", "omega secondary", :name => "classes") %>" data-hook="products_list_item" itemscope itemtype="http://schema.org/Product">

        <%= link_to small_image(collection.products.first, :itemprop => "image"), url, :itemprop => 'url' %>

      <%= link_to collection.name, url %>

  <% end %>
  <% reset_cycle("classes") %>

<% end %>

Add collections controller and view.

Add collections controller and view.


#!/bin/sh
exec 2>&1
<%= render("mount_point_check.erb") %>
umask 077
exec chpst -P -U <%= node['gitlab']['prometheus']['username'] %> -u <%= node['gitlab']['prometheus']['username'] %> /opt/gitlab/embedded/bin/prometheus <%= @options[:flags] %>

#!/bin/sh
exec 2>&1
<%= render("mount_point_check.erb") %>
umask 077
exec chpst -P -U <%= node['gitlab']['prometheus']['username'] %> -u <%= node['gitlab']['prometheus']['username'] %> \
  KUBERNETES_SERVICE_HOST="${KUBERNETES_SERVICE_HOST}" \
  KUBERNETES_SERVICE_PORT="${KUBERNETES_SERVICE_PORT}" \
  /opt/gitlab/embedded/bin/prometheus <%= @options[:flags] %>

Add Kubernetes env vars to prometheus startup

Prometheus requires two ENV vars from Kubernetes for service discovery.
* `KUBERNETES_SERVICE_HOST`
* `KUBERNETES_SERVICE_PORT`

It is harmless if these vars are missing when running outside of Kubernetes.


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

<%= @presenter.title %>

<%= render 'curation_concerns/base/representative_media', work: @presenter %>

<%= @presenter.description %>

<% unless has_collection_search_parameters? %>
  <%= render partial: 'collections/show_actions' %>
  <%= render 'attributes', curation_concern: @presenter %>
<% end %>

<%= render 'search_form' %>
<%= render 'sort_and_per_page', collection: @presenter %>

<% if has_collection_search_parameters? %>

Search Results within this Collection

<% else %>

Items in this Collection

<% end %>
<%= render_document_index @member_docs %>

<%= render partial: 'paginate' %>

<% provide :page_title, "#{@presenter.title} - #{application_name}" %>

<% provide :sidebar do %>
  <%= render 'search_sidebar' %>
<% end %>

<%= @presenter.title %>

  <%= render 'curation_concerns/base/representative_media', work: @presenter %>

<%= @presenter.description %>

  <% unless has_collection_search_parameters? %>
    <%= render partial: 'collections/show_actions' %>
    <%= render 'attributes', curation_concern: @presenter %>
  <% end %>

  <%= render 'search_form' %>
  <%= render 'sort_and_per_page', collection: @presenter %>

  <% if has_collection_search_parameters? %>

Search Results within this Collection

  <% else %>

Items in this Collection

  <% end %>
  <%= render_document_index @member_docs %>

  <%= render partial: 'paginate' %>

Allow faceting to refine collection members


<% content_for :head do %>
  <%= stylesheet_link_tag 'pensions-guidance', media: 'screen' %>

<% end %>

<% content_for :content do %>

    <%= render 'partials/phase_banner' %>
    <%= render 'partials/breadcrumbs' %>

            <%= yield %>

<% end %>

<%= render template: 'layouts/govuk_template' %>

Set content width on article page

Set content width on article page


<% text_for :title do %>
  Find out what you can do if you're struggling bacause of coronavirus (COVID-19)
<% end %>

<% govspeak_for :body do %>
  Use this service to find out what help and advice you can get from the government and other organisations. You can use it for yourself or someone else.

  You can find support with:

  * what to do if you’re feeling unsafe where you live, or if you’re worried about someone else
  * paying bills, rent, or your mortgage
  * getting food
  * being made redundant or unemployed, or not having any work
  * what to do if you’re worried about going in to work
  * having somewhere to live
  * mental health and wellbeing, including information for children

  If you need medical help, [go to NHS 111 online](https://www.nhs.uk/conditions/coronavirus-covid-19/check-if-you-have-coronavirus-symptoms/).

  You will not get direct support from the government or organisations through this service.
<% end %>

<% text_for :title do %>
  Find out what you can do if you’re struggling because of coronavirus (COVID-19)
<% end %>

<% govspeak_for :body do %>
  Use this service to find out what help and advice you can get from the government and other organisations. You can use it for yourself or someone else.

  You can find support with:

  * what to do if you’re feeling unsafe where you live, or if you’re worried about someone else
  * paying bills, rent, or your mortgage
  * getting food
  * being made redundant or unemployed, or not having any work
  * what to do if you’re worried about going in to work
  * having somewhere to live
  * mental health and wellbeing, including information for children

  If you need medical help, [go to NHS 111 online](https://www.nhs.uk/conditions/coronavirus-covid-19/check-if-you-have-coronavirus-symptoms/).

  You will not get direct support from the government or organisations through this service.
<% end %>

Fix typo and change quote type

Fix typo and change quote type

Fix typo.  Also, change quote back to the original curly quote.


---
- scm:
    name: govuk-terraform-provisioning_Deploy_Terraform_Project
    scm:
        - git:
            url: git@github.com:alphagov/govuk-terraform-provisioning.git
            branches:
                - master
- job:
    name: Deploy_Terraform_Project
    display-name: Deploy_Terraform_Project
    project-type: freestyle
    description: |
      Deploy a specific Terraform project in <%= @environment -%>.
    properties:
        - github:
            url: https://github.com/alphagov/govuk-terraform-provisioning/
        - inject:
            properties-content: |
              DEPLOY_ENV=${ENVIRONMENT}
              PROJECT_NAME=${PROJECT_NAME}
    scm:
        - govuk-terraform-provisioning_Deploy_Terraform_Project
    builders:
        - shell: |
            bundle install --path "${HOME}/bundles/${JOB_NAME}"
            bundle exec rake ${ACTION}

    parameters:
        - string:
            name: AWS_ACCESS_KEY_ID
            description: Your AWS access key ID
            default: false
        - password:
            name: AWS_SECRET_ACCESS_KEY
            description: Your AWS secret access key
            default: false
        - choice:
            name: ACTION
            description: Choose whether to plan (default) or apply
            choices:
                - plan
                - apply
        - choice:
            name: PROJECT_NAME
            description: Name of the project you wish to deploy
            choices: <%= ['-- Choose a project'] + @projects %>

---
- scm:
    name: govuk-terraform-provisioning_Deploy_Terraform_Project
    scm:
        - git:
            url: git@github.com:alphagov/govuk-terraform-provisioning.git
            branches:
                - master
- job:
    name: Deploy_Terraform_Project
    display-name: Deploy_Terraform_Project
    project-type: freestyle
    description: |
      Deploy a specific Terraform project in <%= @environment -%>.
    properties:
        - github:
            url: https://github.com/alphagov/govuk-terraform-provisioning/
        - inject:
            properties-content: |
              DEPLOY_ENV=<%= @environment %>
    scm:
        - govuk-terraform-provisioning_Deploy_Terraform_Project
    builders:
        - shell: |
            bundle install --path "${HOME}/bundles/${JOB_NAME}"
            bundle exec rake ${ACTION}

    parameters:
        - string:
            name: AWS_ACCESS_KEY_ID
            description: Your AWS access key ID
            default: false
        - password:
            name: AWS_SECRET_ACCESS_KEY
            description: Your AWS secret access key
            default: false
        - choice:
            name: ACTION
            description: Choose whether to plan (default) or apply
            choices:
                - plan
                - apply
        - choice:
            name: PROJECT_NAME
            description: Name of the project you wish to deploy
            choices: <%= ['-- Choose a project'] + @projects %>

Update properties for Terraform Jenkins job

- `ENVIRONMENT` isn't set as an environment variable
- `PROJECT_NAME` doesn't need to be set because it is already


[Unit]
Description=Jenkins agent
Documentation=https://wiki.jenkins.io/display/JENKINS/Distributed+builds
After=network.target

[Service]
EnvironmentFile=/etc/default/jenkins-agent
ExecStart=/usr/bin/java -jar <%= @jenkins_agent_jar %> -jnlpUrl $JNLP_URL -secret $JNLP_SECRET -workDir $AGENT_WORKDIR
UnsetEnvironment=JNLP_URL JNLP_SECRET AGENT_WORKDIR

User=jenkins
Group=jenkins

KillMode=process

Restart=always
RestartSec=5s

[Install]
WantedBy=multi-user.target

[Unit]
Description=Jenkins agent
Documentation=https://wiki.jenkins.io/display/JENKINS/Distributed+builds
After=network.target

[Service]
EnvironmentFile=/etc/default/jenkins-agent
ExecStart=/usr/bin/java -jar <%= @jenkins_agent_jar %> -jnlpUrl $JNLP_URL -secret $JNLP_SECRET -workDir $AGENT_WORKDIR

User=jenkins
Group=jenkins

KillMode=process

Restart=always
RestartSec=5s

[Install]
WantedBy=multi-user.target

Remove UnsetEnvironment, which is now applied before systemd builds its command line


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

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

Add suitable mantra to tail the Squid logs


Acquire {
  http {
    Timeout "<%= node.travis_build_environment.apt.timeout %>"
  }
}

Acquire {
  http {
    // So that dead slow or timing out repositories do not stall the update process
    // for everybody. MK.
    Timeout "<%= node.travis_build_environment.apt.timeout %>"
  }
}

Add a comment, do not disable HTTP pipelining yet

A couple of repositories, like the Google Chrome one, will benefit from this (they do not handle HTTP
pipelining very well) but the majority will suffer. So we won't not use Pipeline-Depth "0", at least not
yet.


--enable-intl
--with-openssl
--without-pear
--with-gd
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-freetype-dir=/usr
--with-freetype
--enable-exif
--enable-zip
--with-zlib
--with-zlib-dir=/usr
--with-mcrypt=/usr
--with-pdo-sqlite
--enable-soap
--enable-xmlreader
--with-xsl
--enable-ftp
--with-curl=/usr
--with-tidy
--with-xmlrpc
--enable-sysvsem
--enable-sysvshm
--enable-shmop
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
--enable-pcntl
--with-readline
--enable-mbstring
--with-curl
--with-pgsql
--with-pdo-pgsql
--with-gettext
--enable-sockets
--with-bz2
--enable-bcmath
--enable-calendar
--with-libdir=lib

Fix libdir for building PHP on Ubuntu 64 bits.


Total usage includes page views and downloads from PLOS and PMC.
{{#if axis.key }}
   Bubble size correlates with {{axis.display}} and bubble color with the journal.
{{/if}}

Select an additional source: {{view "select" content=axes selection=axis optionValuePath="content.key" optionLabelPath="content.display"}}

SOURCE: {{size}} published articles from {{minDate}} to {{maxDate}}

Total usage includes page views and downloads from PLOS and PubMed Central Usage Stats.
{{#if axis.key }}
   Bubble size correlates with {{axis.display}} and bubble color with the journal.
{{/if}}

Select an additional source: {{view "select" content=axes selection=axis optionValuePath="content.key" optionLabelPath="content.display"}}

SOURCE: {{size}} published articles from {{minDate}} to {{maxDate}}

Change PMC to PubMed Central Usage Stats


<%= @incident.short_summary %>

Service: <%= @incident.check.name %>
URL: <%= @incident.check.uri %>

Type: <%= @incident.assertion.subject %>
Condition: <%= @incident.assertion.condition %>
Match: <%= @incident.assertion.operand %>

Add br tag to mailer

Add br tag to mailer


<html>

   <head>
      <meta content = 'text/html; charset = UTF-8' http-equiv = 'Content-Type' />
   </head>

   <body>
       <=% @body %>
   </body>
</html>

Add new team mailer template

Add new team mailer template

Signed-off-by: Colin Schoen <a3acbfc9b5a4c75eeeb7c33280348e7f320f1240@gmail.com>


  <% issue.valence_issue_explanations.order(:priority).each do |valence| %>

        <% valence.parties.each do |party| %>
          <%= image_tag party.logo.versions[:medium] %>
        <% end %>

<%= valence.title %>

        <%= valence.parties.map(&:name).to_sentence %>
        <%= valence.explanation.downcase %>.

  <% end %>

  <% issue.valence_issue_explanations.order(:priority).each do |valence| %>

        <% valence.parties.each do |party| %>
          <%= image_tag party.logo.versions[:medium] %>
        <% end %>

<%= valence.title %>

        <%= valence.explanation %>.

  <% end %>

Remove party names + don't downcase the explanation (EU -> eu etc.)


<Plugin amqp>
  <Publish "graphite">
    Host "<%= @amqphost %>"
    Port "<%= @amqpport %>"
    VHost "<%= @amqpvhost%>"
    User "<%= @amqpuser %>"
    Password "<%= @amqppass %>"
    Format "<%= @amqpformat %>"
<% if @amqpstorerates and @amqformat == 'JSON' -%>
    StoreRates true
<% else -%>
    StoreRates false
<% end -%>
    Exchange "<%= @amqpexchange %>"
    Persistent <%= @amqppersistent %>
    GraphitePrefix "<%= @graphiteprefix %>"
    GraphiteEscapeChar "<%= @escapecharacter %>"
<% if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.4']) >= 0) -%>
<%   if @graphiteseparateinstances -%>
    GraphiteSeparateInstances <%= @graphiteseparateinstances %>
<%   end -%>
<%   if @graphitealwaysappendds -%>
    GraphiteAlwaysAppendDS <%= @graphitealwaysappendds %>
<%   end -%>
<% end -%>
  </Publish>
</Plugin>

<Plugin amqp>
  <Publish "graphite">
    Host "<%= @amqphost %>"
    Port "<%= @amqpport %>"
    VHost "<%= @amqpvhost%>"
    User "<%= @amqpuser %>"
    Password "<%= @amqppass %>"
    Format "<%= @amqpformat %>"
<% if @amqpstorerates and @amqpformat == 'JSON' -%>
    StoreRates true
<% else -%>
    StoreRates false
<% end -%>
    Exchange "<%= @amqpexchange %>"
    Persistent <%= @amqppersistent %>
    GraphitePrefix "<%= @graphiteprefix %>"
    GraphiteEscapeChar "<%= @escapecharacter %>"
<% if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.4']) >= 0) -%>
<%   if @graphiteseparateinstances -%>
    GraphiteSeparateInstances <%= @graphiteseparateinstances %>
<%   end -%>
<%   if @graphitealwaysappendds -%>
    GraphiteAlwaysAppendDS <%= @graphitealwaysappendds %>
<%   end -%>
<% end -%>
  </Publish>
</Plugin>

Fix a bug in the template found by the new spec tests


# Triggering Notifications

- you can trigger build notifications to several different services
- can filter by pipeline events like build status

<%= toc %>

- add notifications to your pipeline with the `notify` attribute
- at the same level as `steps` in your pipeline yaml

```yaml
steps:
  - command: "tests.sh"
  - wait
  - command: "build.sh"

notify:
  - email: "dev@acmeinc.com"
```

- can trigger notifications as emails or basecamp campfire messages

## Conditional notifications

- You can choose to only trigger notifications when x evaluates to true using the `if` attribute
- in the below example the email notification will only be triggered if the build passes:

```yaml
notify:
  - email: "dev@acmeinc.com"
    if: "build.status == passed"
```

## Email

- add an email notification to your pipeline using the `email` attribute of the `notify` yaml block

```yaml
notify:
  - email: "dev@acmeinc.com"
```

- the `email` attribute accepts a single email address as a string

## Basecamp Campfire Message

- add a basecamp notification to your pipeline using the `basecamp_campfire` attribute of the `notify` yaml block

```yaml
notify:
  - basecamp_campfire: URL
```

- the `basecamp_campfire` attribute accepts a single URL as a string
- the URL for your Basecamp Campfire can be created using the 'Generate a public link' button in Basecamp

Add notification page and outline

Add notification page and outline


source "https://rubygems.org"

gem "lita"<% if node['lita']['version'] -%>, "<%= node['lita']['version_constraint'] -%> <%= node['lita']['version'] %>"<% end -%>

<% node['lita']['adapters'].each do |adapter| -%>
<% if adapter != :shell && adapter != 'shell' -%>
gem "lita-<%= stringify(adapter) %>"<% if node['lita']['adapter_versions'][adapter] -%>, "<%= node['lita']['adapter_versions'][adapter] %>"<% end -%>
<% end -%>
<% end -%>

<% node['lita']['plugins'].each do |plugin| -%>
<% if plugin.is_a?(Hash) -%>
gem "lita-<%= plugin.keys.first %>", <%= plugin[plugin.keys.first] %>
<% else -%>
gem "lita-<%= plugin %>"
<% end -%>
<% end -%>

<% node['lita']['gems'].each do |gem| -%>
<% if gem.is_a?(Hash) -%>
gem "<%= gem.keys.first %>", <%= gem[gem.keys.first] %>
<% else -%>
gem "<%= gem %>"
<% end -%>
<% end -%>

source "<% node['lita']['gem_primary_source'] %>"

gem "lita"<% if node['lita']['version'] -%>, "<%= node['lita']['version_constraint'] -%> <%= node['lita']['version'] %>"<% end -%>

<% node['lita']['adapters'].each do |adapter| -%>
<% if adapter != :shell && adapter != 'shell' -%>
gem "lita-<%= stringify(adapter) %>"<% if node['lita']['adapter_versions'][adapter] -%>, "<%= node['lita']['adapter_versions'][adapter] %>"<% end -%>
<% end -%>
<% end -%>

<% node['lita']['plugins'].each do |plugin| -%>
<% if plugin.is_a?(Hash) -%>
gem "lita-<%= plugin.keys.first %>", <%= plugin[plugin.keys.first] %>
<% else -%>
gem "lita-<%= plugin %>"
<% end -%>
<% end -%>

<% node['lita']['gems'].each do |gem| -%>
<% if gem.is_a?(Hash) -%>
gem "<%= gem.keys.first %>", <%= gem[gem.keys.first] %>
<% else -%>
gem "<%= gem %>"
<% end -%>
<% end -%>

Add node attribute for managing Gem source URL


# InSpec test for recipe <%= cookbook_name %>::<%= recipe_name %>

# The InSpec reference, with examples and extensive documentation, can be
# found at http://inspec.io/docs/reference/resources/

unless os.windows?
  # This is an example test, replace with your own test.
  describe user('root'), :skip do
    it { should exist }
  end
end

# This is an example test, replace it with your own test.
describe port(80), :skip do
  it { should_not be_listening }
end

# InSpec test for recipe <%= cookbook_name %>::<%= recipe_name %>

# The InSpec reference, with examples and extensive documentation, can be
# found at https://www.inspec.io/docs/reference/resources/

unless os.windows?
  # This is an example test, replace with your own test.
  describe user('root'), :skip do
    it { should exist }
  end
end

# This is an example test, replace it with your own test.
describe port(80), :skip do
  it { should_not be_listening }
end

Update link to InSpec docs

Update link to InSpec docs

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>