---
layout: post
title:  "Welcome to Jekyll!"
date:   <%= Time.now.strftime('%Y-%m-%d %H:%M:%S') %>
categories: jekyll update
---
You’ll find this post in your `_posts` directory – edit it and re-build (or run with the `--watch` switch) to see your changes.

To add new posts, simply add a file in the `_posts` directory that follows the convention YYYY-MM-DD-name-of-post.ext and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.

Jekyll also offers powerful support for code snippets:

{% highlight ruby %}
def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh].

[jekyll-gh]: https://github.com/jekyll/jekyll
[jekyll]:    http://jekyllrb.com

---
layout: post
title:  "Welcome to Jekyll!"
date:   <%= Time.now.strftime('%Y-%m-%d %H:%M:%S') %>
categories: jekyll update
---
You’ll find this post in your `_posts` directory – edit it and re-build (or run with the `--watch` switch) to see your changes.

To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.

Jekyll also offers powerful support for code snippets:

{% highlight ruby %}
def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll’s dedicated Help repository][jekyll-help].

[jekyll]:      http://jekyllrb.com
[jekyll-gh]:   https://github.com/jekyll/jekyll
[jekyll-help]: https://github.com/jekyll/jekyll-help

Add sentence about jekyll-help repo

Add sentence about jekyll-help repo


<%= notice %>

Question Sets

            Activity
            Prompt
            Order

          <% @question_sets.each do |question_set| %>

              <%= link_to question_set.activity&.title, activity_path(question_set.activity_id) %>
              <%= question_set.prompt %>
              <%= question_set.order %>
              <%= link_to 'Show', question_set %>
              <%= link_to 'Edit', edit_question_set_path(question_set) %>
              <%= link_to 'Destroy', question_set, method: :delete, data: { confirm: 'Are you sure?' } %>

          <% end %>

  <%= link_to 'New Question Set', new_question_set_path %>

<%= notice %>

Question Sets

            Activity
            Prompt
            Questions
            Order

          <% @question_sets.each do |question_set| %>

              <%= link_to question_set.activity&.title, activity_path(question_set.activity_id) %>
              <%= question_set.prompt %>
              <%= question_set.questions.count %>
              <%= question_set.order %>
              <%= link_to 'Show', question_set %>
              <%= link_to 'Edit', edit_question_set_path(question_set) %>
              <%= link_to 'Destroy', question_set, method: :delete, data: { confirm: 'Are you sure?' } %>

          <% end %>

  <%= link_to 'New Question Set', new_question_set_path %>

Add number of questions to question set index


<tr id="search-result-<%= search_result[:id] %>"
  class="search-result <%= 'fresh' if search_result.fresh? %>"
  data-get-url="<%= name_path(search_result[:id]) %>"
  data-edit-url="<%= name_path(search_result[:id]) %>"
  data-base-url="<%= name_path(search_result[:id]) %>"
  data-record-id="<%= search_result[:id] %>"
  data-record-type="name"
  tabindex="<%= increment_tab_index(100) %>"
    >

    <div
      tabindex="<%= increment_tab_index %>"
      class="stylish-checkbox acts-as-checkbox nsl-inline-block stylish-checkbox-unchecked"
      dir="ltr"
      role="checkbox"
      data-checked="false">

  <%= record_icon('name') %>
  <td class="text takes-focus abbrev main-content width-95-percent <%= ' give-me-focus' if give_me_focus %>">
    <a href="#"
       class="show-details-link"
       tabindex="<%= increment_tab_index %>"
       id="name-<%= search_result[:id] %>">
       <%= render partial: 'name_link_text', locals: {search_result: search_result} %>

<tr id="search-result-<%= search_result[:id] %>"
  class="search-result <%= 'fresh' if search_result.fresh? %>"
  data-get-url="<%= name_path(search_result[:id]) %>"
  data-edit-url="<%= name_path(search_result[:id]) %>"
  data-base-url="<%= name_path(search_result[:id]) %>"
  data-record-id="<%= search_result[:id] %>"
  data-record-type="name"
  tabindex="<%= increment_tab_index(100) %>"
    >

    <div
      tabindex="<%= increment_tab_index %>"
      class="stylish-checkbox acts-as-checkbox nsl-inline-block stylish-checkbox-unchecked"
      dir="ltr"
      role="checkbox"
      data-checked="false">

  <%= record_icon('name') %>
  <td colspan="2" class="text takes-focus abbrev main-content width-95-percent <%= ' give-me-focus' if give_me_focus %>">
    <a href="#"
       class="show-details-link"
       tabindex="<%= increment_tab_index %>"
       id="name-<%= search_result[:id] %>">
       <%= render partial: 'name_link_text', locals: {search_result: search_result} %>

Add colspan of 2 to name record so it plays nicely with author records e.g. after new name created when authors in search results.


Sign up

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

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

                    <%= f.label :password %>
                    <%= f.password_field :password, class: 'form-control' %>

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

            <% end %>

Sign up

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

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

                    <%= f.label :password %>
                    <%= f.password_field :password, class: 'form-control' %>

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

                <%= f.submit 'Sign up', class: 'btn btn-primary' %>
            <% end %>

Add missing submit button in sign up form.


server {
  listen 80;
  server_name deploy.<%= @app_domain %>;

  location / {
    proxy_pass http://localhost:8080;
  }
}

server {
  listen 80;
  server_name puppetdb.<%= @app_domain %>;

  location / {
    proxy_pass http://puppet-1.management.production/;
  }
}

server {
  listen 80;
  server_name deploy.*;

  location / {
    proxy_pass http://localhost:8080;
  }
}

server {
  listen 80;
  server_name puppetdb.*;

  location / {
    proxy_pass http://puppet-1.management.production/;
  }
}

Use wildcards for the app domain on jenkins

This is so that we don't have to fudge around with the @app_domain being
production on all of: preview, staging, and production.


# Generated by Chef
$ModLoad omrelp
$ActionQueueType LinkedList # use asynchronous processing
$ActionQueueFileName srvrfwd # set file name, also enables disk mode
$ActionResumeRetryCount -1 # infinite retries on insert failure
$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down

<% @servers.each do |server| -%>
<%= node['rsyslog']['logs_to_forward'] %> :omrelp:<%= "#{server['server']}:#{node['rsyslog']['relp_port']}" %><%= node['rsyslog']['default_remote_template'] ? ';' + node['rsyslog']['default_remote_template'] : nil %>
<% end -%>

# Generated by Chef
$ModLoad omrelp
$ActionQueueType LinkedList # use asynchronous processing
$ActionQueueFileName srvrfwd # set file name, also enables disk mode
$ActionResumeRetryCount -1 # infinite retries on insert failure
$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down

<% @servers.each do |server| -%>
<%= node['rsyslog']['logs_to_forward'] %> :omrelp:<%= "#{server['server']}:#{node['rsyslog']['relp_port']}" %><% if server['remote_template'] -%>;<%= server['remote_template'] %> <% elsif node['rsyslog']['default_remote_template'] -%>;<%= node['rsyslog']['default_remote_template'] %><% end -%>
<% end -%>

Fix remote_templates in in the relp template


        <%= link_to inbox_account_conversations_path(@account), class: "#{'active' if current_page?(inbox_account_conversations_path(@account)) }" do %>
          Inbox
          <%= @inbox_count %>
        <% end %>

        <%= link_to archived_account_conversations_path(@account), class: "#{'active' if current_page?(archived_account_conversations_path(@account)) }" do %>
          Archive
          <%= @archive_count %>
        <% end %>

Recent

Remove recent toggle for now

Remove recent toggle for now


<% content_for :page_title, "New #{@edition.type.titleize}" %>
<% content_for :back_link, (render "govuk_publishing_components/components/back_link", {
    href: admin_editions_path
  })
%>
<% content_for :error_summary, render('shared/error_summary', object: @edition, parent_class: "edition", class_name: @edition.format_name) %>

    <%= render "govuk_publishing_components/components/title", {
      title: "New #{@edition.format_name}"
    } %>

    <%= render "form", edition: @edition %>

<% content_for :page_title, "New #{@edition.type.titleize}" %>
<% content_for :back_link, (render "govuk_publishing_components/components/back_link", {
    href: admin_editions_path
  })
%>
<% content_for :error_summary, render('shared/error_summary', object: @edition, parent_class: "edition", class_name: @edition.format_name) %>

  <%= render "govuk_publishing_components/components/title", {
    title: "New #{@edition.format_name}"
  } %>

  <%= render "components/secondary_navigation", {
    aria_label: "Document navigation tabs",
    items: secondary_navigation_tabs_items(@edition, request.path)
  } %>

    <%= render "form", edition: @edition %>

Add secondary nav component to the new editions page


<div class="<%= item.extra_wide? ? 'span6': 'span3' %> item">

    <%= link_to image_tag(item.file.url(item.extra_wide ? :full : :small)), item, class: 'image' %>

        <%= link_to item.footer, item %>

        © <%= link_to item.copyright, item.source %>

      <%= render 'shared/show_admin_links', :item => item %>

<div class="<%= item.extra_wide? ? 'span6': 'span3' %> item">

    <%= link_to image_tag(item.file.url(item.extra_wide ? :full : :small)), item, class: 'image' %>

        <%= link_to item.footer, item %>

         <%= link_to item.copyright, item.source %>

      <%= render 'shared/show_admin_links', :item => item %>

Change photo copyright icon to arrow

Change photo copyright icon to arrow


    <a href="/profile/<%= auth_current_user.id %>" class="brand-logo right">
      <%= auth_current_user.username %>

Home

Login

Register

      <% if auth_logged_in? %>

<a href="/profile/<%= auth_current_user.id %>/edit">Edit

Logout

      <% end %>

Home

      <% if auth_logged_in? === false %>

Login

Register

      <% end %>

      <% if auth_logged_in? %>
        <a href="/profile/<%= auth_current_user.id %>" class="brand-logo right">
          <%= auth_current_user.username %>

<a href="/profile/<%= auth_current_user.id %>/edit">Edit

Logout

      <% else %>
        <a href="/profile/<%= auth_current_user.id %>" class="brand-logo right">
          Basic

      <% end %>

Fix header views using partials for current user logged in


<form action="/events/<%= event.id %>/collaborators/<%= collaborator_id %>" method="post">
	<input type="hidden" name="_method" value="delete">
	<input type="submit" value="delete">
</form>

<form action="/events/<%= event.id %>/collaborators/<%= collaborator_id %>" method="post">
	<input type="hidden" name="_method" value="delete">
	<button class="ex"><i class="fa fa-times"></i></button>
</form>

Change submit button to link

Change submit button to link


<%#
Locals:
* events => Array of Event objects
* description => String description of events, e.g. "current"
%>

Viewing  <%= pluralize events.size, "#{description} event" %>
  matching “<%= @query || @tag %>”
  <%= events_sort_label(params[:order]) %>

  <%= render :partial => 'events/table', :locals => { :events => events, :scores => true } %>

<%#
Locals:
* events => Array of Event objects
* description => String description of events, e.g. "current"
%>

Viewing  <%= pluralize events.size, "#{description} event" %>
  matching “<%= @query || @tag %>”
  <%= events_sort_label(params[:order]) %>

  <%= render :partial => 'events/table', :locals => { :events => events, :scores => @query.present? } %>

Hide links to sort by relevance for tag searches (or any other theoretical searches that don't have a @query).


    <%= icon_tag("calendar") %>
    <%= meal.served_at_datetime_no_yr %>

  <% if meal.head_cook.present? %>

      <%= image_tag("chef-hat.png") %>
      <%= meal.head_cook.decorate.link %>

  <% end %>

    <%= icon_tag("calendar") %>
    <%= meal.served_at_datetime %>

  <% if meal.head_cook.present? %>

      <%= image_tag("chef-hat.png") %>
      <%= meal.head_cook.decorate.link %>

  <% end %>

Include year in time_cook partial

233: Include year in time_cook partial


		<%= form_for(@post, url: posts_path, remote: true) do |f| %>

				New post

				<%= f.text_area :text %>

				<%= f.submit %>

		<% end %>

		<%= render @posts %>

		<%= form_for(@post, url: posts_path, remote: true) do |f| %>

				<%= f.text_area :text %>

				<%= f.submit "Write post" %>

		<% end %>

		<%= render @posts %>

Clean up new post form

Clean up new post form


<%- if MySociety::Config.get("DOMAIN", '127.0.0.1:3000') == 'www.fixmytransport.com' %>
    <script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-24232514-1']);
      <% if content_for?(:tracking) %>
      _gaq.push(['_trackPageview', <%= yield(:tracking) %>]);
      <%- else %>
      _gaq.push(['_trackPageview']);
      <%- end %>
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
<%- end %>

<%- if MySociety::Config.get("DOMAIN", '127.0.0.1:3000') == 'www.fixmytransport.com' %>
    <script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-24232514-1']);
      <% if content_for?(:tracking) %>
      _gaq.push(['_trackPageview', <%= yield(:tracking) %>]);
      <%- else %>
      _gaq.push(['_trackPageview']);
      <%- end %>
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
<%- else %>
<script type="text/javascript">
  var _gaq = _gaq || [];
</script>

<%- end %>

Add _gaq var in non-prod sites.

Add _gaq var in non-prod sites.


/* DO NOT EDIT: File is auto-generated */
package <%= to_package(data_module.sync.qualified_master_sync_service_test_name) %>;

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public abstract class <%= data_module.sync.master_sync_service_test_name %>
  extends <%= data_module.repository.ejb.qualified_base_service_test_name %>
{
  private iris.rose.server.service.master.SyncTempFactory $syncTempFactory;

  @org.testng.annotations.BeforeMethod
  @java.lang.Override
  public void preTest()
    throws java.lang.Exception
  {
    super.preTest();
    $syncTempFactory = new <%= data_module.sync.qualified_sync_temp_factory_name %>( em() );
  }

  protected iris.rose.server.service.master.SyncTempFactory getSyncTempFactory()
  {
    return $syncTempFactory;
  }

  @javax.annotation.Nonnull
  protected final iris.syncrecord.server.entity.Synchronization doSyncAndLoadResults( @javax.annotation.Nonnull final String dataSource, @javax.annotation.Nonnull final String statusCode )
  {
    return iris.syncrecord.server.test.util.SyncAssert.ensureSynchronization( doSync( dataSource ), dataSource, statusCode, s( iris.syncrecord.server.service.SyncRecordService.class ) );
  }

  @javax.annotation.Nonnull
  protected abstract iris.syncrecord.server.data_type.SyncStatusDTO doSync( @javax.annotation.Nonnull String dataSource );
}

/* DO NOT EDIT: File is auto-generated */
package <%= to_package(data_module.sync.qualified_master_sync_service_test_name) %>;

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public abstract class <%= data_module.sync.master_sync_service_test_name %>
  extends <%= data_module.repository.ejb.qualified_base_service_test_name %>
{
  private <%= data_module.sync.qualified_sync_temp_factory_name %> $syncTempFactory;

  @org.testng.annotations.BeforeMethod
  @java.lang.Override
  public void preTest()
    throws java.lang.Exception
  {
    super.preTest();
    $syncTempFactory = new <%= data_module.sync.qualified_sync_temp_factory_name %>( em() );
  }

  protected <%= data_module.sync.qualified_sync_temp_factory_name %> getSyncTempFactory()
  {
    return $syncTempFactory;
  }

  @javax.annotation.Nonnull
  protected final iris.syncrecord.server.entity.Synchronization doSyncAndLoadResults( @javax.annotation.Nonnull final String dataSource, @javax.annotation.Nonnull final String statusCode )
  {
    return iris.syncrecord.server.test.util.SyncAssert.ensureSynchronization( doSync( dataSource ), dataSource, statusCode, s( iris.syncrecord.server.service.SyncRecordService.class ) );
  }

  @javax.annotation.Nonnull
  protected abstract iris.syncrecord.server.data_type.SyncStatusDTO doSync( @javax.annotation.Nonnull String dataSource );
}

Make sure the reference to correct SyncTempFactory is used


Thank You!

You are done registering.  Be on the lookout for a confirmation email.

Step 3 of 3

Your request was submitted. You will receive an email asking you to verify your email address, and then provide you with the next steps in the process.

What is next?

<% if APP_CONFIG['is_sandbox']%><% else %>1) <% end %>We require that you confirm your email address for security reasons.  You should receive an email shortly.  Simply click on the link in the email to confirm your email address.

      <% if APP_CONFIG['is_sandbox']%><% else %>
2) After you have confirmed your email address, your account must be approved by an Shared Learning Collaborative Administrator.

      <% end %>
I haven't received my link.  What should I do?

It is possible that your confirmation email has landed in your spam folder.  To ensure this does not happen, please add <%= APP_CONFIG['support_email'] %> to your list of trusted email contacts

For other questions:

If any other support related questions should arise, feel free to contact customer support at <%= APP_CONFIG['support_email'] %>

Thank You!

You are done registering.  Be on the lookout for a confirmation email.

Step 3 of 3

Your request was submitted. You will receive an email asking you to verify your email address, and then provide you with the next steps in the process.

What is next?

<% if APP_CONFIG['is_sandbox']%><% else %>1) <% end %>We require that you confirm your email address for security reasons.  You should receive an email shortly.  Simply click on the link in the email to confirm your email address.

      <% if APP_CONFIG['is_sandbox']%><% else %>
2) After you have confirmed your email address, your account must be approved by an Shared Learning Collaborative Administrator.

      <% end %>
I haven't received my link.  What should I do?

It is possible that your confirmation email has landed in your spam folder.  To ensure this does not happen, please add <%= APP_CONFIG['email_sender_address_user_reg_app'] %> to your list of trusted email contacts

For other questions:

If any other support related questions should arise, feel free to contact customer support at <%= APP_CONFIG['support_email'] %>

DE1061: Change email address text to match the sender.


<% initialise_script "GOVUK.DocumentShareLinks", el: '.document-share-links' %>

Share this page

      <%= link_to "https://www.facebook.com/sharer/sharer.php?u=#{url_encode(public_document_url(document))}",
          target: "_blank",
          class: "facebook" do %>
        Share on Facebook
      <% end %>

      <%= link_to "https://twitter.com/share?url=#{url_encode(public_document_url(document))}&text=#{url_encode(document.title)}",
          target: "_blank",
          class: "twitter" do %>
        Share on Twitter
      <% end %>

<% initialise_script "GOVUK.DocumentShareLinks", el: '.document-share-links' %>

Share this page

      <%= link_to "https://www.facebook.com/sharer/sharer.php?u=#{url_encode(public_document_url(document))}",
          target: "_blank",
          rel: "noopener noreferrer",
          class: "facebook" do %>
        Share on Facebook
      <% end %>

      <%= link_to "https://twitter.com/share?url=#{url_encode(public_document_url(document))}&text=#{url_encode(document.title)}",
          target: "_blank",
          rel: "noopener noreferrer",
          class: "twitter" do %>
        Share on Twitter
      <% end %>

Add noopener and noreferrer to sharing links


Get Access To the Product

Can't access YOUR product? Please, use secret URL we emailed to you!

Get Access To the Product

Can't access YOUR product? Please, use secret URL we showed to you!

Update text for restore view

Update text for restore view


<%- locals = {:f => f} %>

  <%= f.field_container :title do %>
    <%= f.label :title, t("title") %>

    <%= f.text_field :title  %>
    <%= error_message_on :page, :title %>
  <% end %>

  <%= f.field_container :meta_keywords do %>
    <%= f.label :meta_keywords, t("meta_keywords") %>

    <%= f.text_area :meta_keywords %>
    <%= error_message_on :page, :meta_keywords %>
  <% end %>

  <%= f.field_container :meta_description do %>
    <%= f.label :meta_description, t("meta_description") %>

    <%= f.text_area :meta_description %>
    <%= error_message_on :page, :meta_description %>
  <% end %>

  <%= f.field_container :body do %>
    <%= f.label :body, t("body") %>

    <%= f.text_area :body %>
    <%= error_message_on :page, :body %>
  <% end %>

  <%= f.field_container :permalink do %>
    <%= f.label :permalink, t("permalink") %>

    <%= f.text_field :permalink  %>
    <%= error_message_on :page, :permalink %>
  <% end %>

  <%= f.field_container :published do %>
    <%= f.label :published, t("published") %>

    <%= f.check_box :published  %>
    <%= error_message_on :page, :published %>
  <% end %>

<%- locals = {:f => f} %>

  <%= f.field_container :title do %>
    <%= f.label :title, t("title") %>

    <%= f.text_field :title  %>
    <%= error_message_on :page, :title %>
  <% end %>

  <%= f.field_container :meta_keywords do %>
    <%= f.label :meta_keywords, t("meta_keywords") %>

    <%= f.text_area :meta_keywords, rows: 2 %>
    <%= error_message_on :page, :meta_keywords %>
  <% end %>

  <%= f.field_container :meta_description do %>
    <%= f.label :meta_description, t("meta_description") %>

    <%= f.text_area :meta_description, rows: 2 %>
    <%= error_message_on :page, :meta_description %>
  <% end %>

  <%= f.field_container :body do %>
    <%= f.label :body, t("body") %>

    <%= f.text_area :body %>
    <%= error_message_on :page, :body %>
  <% end %>

  <%= f.field_container :permalink do %>
    <%= f.label :permalink, t("permalink") %>

    <%= f.text_field :permalink  %>
    <%= error_message_on :page, :permalink %>
  <% end %>

  <%= f.field_container :published do %>
    <%= f.label :published, t("published") %>

    <%= f.check_box :published  %>
    <%= error_message_on :page, :published %>
  <% end %>

Set rows in fields: meta and description


<%= @inviter.display_name %> has invited you to join the <%= @team.name %> team on Open HQ

<%= link_to "Join #{@team.name}", edit_team_invite_url(id: @team_invite.invitation_code, subdomain: @team.subdomain) %>

<%= @inviter.display_name %> has invited you to join the <%= @team.name %> team on Open HQ

        <%= link_to "Join #{@team.name}", edit_team_invite_url(id: @team_invite.invitation_code, subdomain: @team.subdomain), class: "button button--green" %>

Thanks,
The Open HQ Team

If you’re having trouble clicking the confirm account button, copy and paste the URL below into your web browser.

<%= edit_team_invite_url(id: @team_invite.invitation_code, subdomain: @team.subdomain) %>

Work on email styles for team invite mailer


<head>
  <meta charset='<%= ::Rails.application.config.encoding %>' />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <%= yield :meta %>
  <title><%= Refinery::Core.site_name -%> - Refinery</title>
  <%= csrf_meta_tags %>
  <%= stylesheet_link_tag 'refinery/refinery' %>
  <% visual_editor_stylesheets.each do |css| %>
    <%= stylesheet_link_tag css.path, { skip_pipeline: true }.merge(css.options) %>
  <% end %>
  <% custom_stylesheets.each do |css| %>
    <%= stylesheet_link_tag css.path, { skip_pipeline: true }.merge(css.options) %>
  <% end %>
  <%= yield :stylesheets %>
  <%= render 'refinery/admin/javascripts' %>
</head>

<head>
  <meta charset='<%= ::Rails.application.config.encoding %>' />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <%= yield :meta %>
  <title><%= Refinery::Core.site_name -%> - Refinery</title>
  <%= csrf_meta_tags %>
  <%= stylesheet_link_tag 'refinery/refinery' %>
  <% visual_editor_stylesheets.each do |css| %>
    <%= stylesheet_link_tag css.path, css.options %>
  <% end %>
  <% custom_stylesheets.each do |css| %>
    <%= stylesheet_link_tag css.path, css.options %>
  <% end %>
  <%= yield :stylesheets %>
  <%= render 'refinery/admin/javascripts' %>
</head>

Remove skip_pipeline option for visual_editor_stylesheets and custom_stylesheets


      IziTSM

        <%if current_user -%>

Logged in as <%= current_user.login %>

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

        <%end -%>

      IziTSM

      <form class="navbar-form navbar-left" role="search">

          <input type="text" class="form-control" placeholder="Search node">

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

        <%if current_user -%>

Logged in as <%= current_user.login %>

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

        <%end -%>

Add search field to navbar. Customize logged in infos


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

JOB_NAME=route-registrar

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

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

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

export HOME=/var/vcap

case $1 in

start)

  mkdir -p $RUN_DIR
  mkdir -p $LOG_DIR

  pid_guard $PIDFILE $JOB_NAME

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

stop)
  kill_and_wait $PIDFILE
;;

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

esac
exit 0

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

JOB_NAME=route-registrar

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

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

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

case $1 in

start)

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

  pid_guard $PIDFILE $JOB_NAME

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

stop)
  kill_and_wait $PIDFILE
;;

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

esac
exit 0

Make route-registrar run as vcap

Make route-registrar run as vcap

- We removed the export of HOME as it did not appear to be necessary

[#115623381]

Signed-off-by: Andrew Crump <bad96bc28586e95c5d7da81c13d926ea5028b22f@pivotal.io>


<%= notice %>

<% if !@corral.images.empty? %>
  <% @corral.images.each do |img| %>
    <%= image_tag img.image_url %>
  <% end %>
<% else %>
  <%= image_tag "corral", width: "200" %>
<% end %>

  Location:
  <%= @corral.location %>

  Racks:
  <%= @corral.racks %>

  Borough:
  <%= @corral.borough.name %>

  Latitude:
  <%= @corral.latitude %>

  Longitude:
  <%= @corral.longitude %>

<%= link_to 'Edit', edit_corral_path(@corral) %> |
<%= link_to 'Back', corrals_path %>

<%= notice %>

  <% if !@corral.images.empty? %>
    <% @corral.images.each do |img| %>
      <%= image_tag img.image_url %>
    <% end %>
  <% else %>
    <%= image_tag "corral", width: "200" %>
  <% end %>

    Location:
    <%= @corral.location %>

    Racks:
    <%= @corral.racks %>

    Borough:
    <%= @corral.borough.name %>

    Latitude:
    <%= @corral.latitude %>

    Longitude:
    <%= @corral.longitude %>

  <%= link_to "Check In", user_path, class: "btn btn-primary" %>

  <%= link_to 'Edit', edit_corral_path(@corral) %> |
  <%= link_to 'Back', corrals_path %>

Add (nonfunctional) checkin button to corral show page


<% avatar_url = if user.thumbnail.exists?
                  user.thumbnail(:medium)
                else
                  asset_path('staff/staff-default-avatar.png')
                end %>

  <%= link_to staff_path(user) do %>
    <div class="staff-pic" style="background-image: url('<%= avatar_url %>')">

<%= user.display_name %>

<%= user.current_position %>

  <% end %>

<% avatar_url = if user.thumbnail.present?
                  user.thumbnail(:medium)
                else
                  asset_path('staff/staff-default-avatar.png')
                end %>

  <%= link_to staff_path(user) do %>
    <div class="staff-pic" style="background-image: url('<%= avatar_url %>')">

<%= user.display_name %>

<%= user.current_position %>

  <% end %>

Use present instead of exists

Use present instead of exists


<!DOCTYPE html>

    <title>Getit | <%= @page_title %></title>
    <%= render 'common/google_tag_manager_script' %>
    <%= meta %>
    <%= resolve_stylesheets %>
    <%= resolve_javascripts %>
    <%= render_umlaut_head_content %>

    <%= render 'common/google_tag_manager_noscript' %>
    <%= render :partial => "umlaut/header" %>

    <%= render "common/deprecation_msg" %>

      <div class="umlaut-main-container-fluid container-fluid <%= "umlaut-#{params[:controller]}-container" %>">
        <%= yield %>

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

<!DOCTYPE html>

    <title>GetIt | <%= @page_title %></title>
    <meta name="onlyfortesting" content="onlyfortesting">
    <%= render 'common/google_tag_manager_script' %>
    <%= meta %>
    <%= resolve_stylesheets %>
    <%= resolve_javascripts %>
    <%= render_umlaut_head_content %>

    <%= render 'common/google_tag_manager_noscript' %>
    <%= render :partial => "umlaut/header" %>

    <%= render "common/deprecation_msg" %>

      <div class="umlaut-main-container-fluid container-fluid <%= "umlaut-#{params[:controller]}-container" %>">
        <%= yield %>

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

Revert title; add meta tag for testing

Revert title; add meta tag for testing


<% cache(cache_key_for_reviews(@reviews)) do %>
  <% @reviews.each do |review| %>
    <% cache(review) do %>
      <% if !review.user_id.nil? %>

            <%= review.review %>

            Rating: <%= review.rating %>

            <%= render 'users/avatar', user: review.user %> - <%= review.user.first_name + ' ' + review.user.last_name%>

            posted <%= time_ago_in_words(review.created_at) %> ago.

          <% if can? :manage, review %>
            <%= link_to "Edit", edit_review_path(review) %> |
            <%= link_to "Delete", review, method: :delete, data: { confirm: 'Are you sure?' } %>
          <% end %>

            <%= link_to review_path(review) do %>
                <%= pluralize(review.comments.count, 'comment') %>
            <% end %>

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

<% cache(cache_key_for_reviews(@reviews)) do %>
  <% @reviews.each do |review| %>
    <% if !review.user_id.nil? %>

        <% cache(review) do %>

            <%= review.review %>

            Rating: <%= review.rating %>

            <%= render 'users/avatar', user: review.user %> - <%= review.user.first_name + ' ' + review.user.last_name%>

            posted <%= time_ago_in_words(review.created_at) %> ago.

            <%= link_to review_path(review) do %>
                <%= pluralize(review.comments.count, 'comment') %>
            <% end %>

        <% end %>
        <% if can? :manage, review %>
          <%= link_to "Edit", edit_review_path(review) %> |
          <%= link_to "Delete", review, method: :delete, data: { confirm: 'Are you sure?' } %>
        <% end %>

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

Test: Move permission-based links outside of inner-cache


<% content_for :breadcrumbs do %>

<a href="<%= new_scrapbook_search_path(current_scrapbook) %>">Search

Saved roles

<% end %>

Your saved roles

Now, you can use this information to:

tailor your CV

look for training

search for jobs online

You can talk to your work coach about these roles too.

  <% current_scrapbook.occupations.each do |occupation| %>
    <section id="occupation-<%= occupation.soc_code %>">
      <%= render "occupations/details", occupation: occupation %>
      <%= form_tag(scrapbook_saved_occupation_path(current_scrapbook, occupation), remote: true, method: "DELETE",
            id: "remove-occupation-#{occupation.soc_code}-form", class: "remove-occupation-form") do |f| %>
        <input type="submit" id="remove-occupation-<%= occupation.soc_code %>" class="link-button" value="Remove role">
      <% end %>

  <% end %>

<a href="<%= new_scrapbook_search_path(current_scrapbook) %>" class="link-back">Search again

Tweak horizontal lines on scrapbook page


<nav id="main-nav-menu" class="fade">
  <div class="inner-box">
    <%= link_to 'Room', rooms_path %>
    <%= link_to 'Notes', notes_path %>
    <%= link_to 'Pictures', pictures_path %>
    <%= link_to 'Lists', lists_path %>
    <%= link_to 'Polls', poll_lists_path %>
    <%= link_to 'Bills', lists_path %>
    <%= link_to 'Chores', lists_path %>
    <%= link_to "Sign Out", :destroy_user_session, :method => :delete %>
  </div>
</nav>

<nav id="main-nav-menu" class="fade">
  <div class="inner-box">
    <%= link_to 'Room', rooms_path %>
    <%= link_to 'Notes', notes_path %>
    <%= link_to 'Pictures', pictures_path %>
    <%= link_to 'Lists', check_lists_path %>
    <%= link_to 'Polls', poll_lists_path %>
    <%= link_to 'Bills', bill_lists_path %>
    <%= link_to 'Chores', chore_lists_path %>
    <%= link_to "Sign Out", :destroy_user_session, :method => :delete %>
  </div>
</nav>

Update navmenu for new lists

Update navmenu for new lists


      20.2 MPG

      321 miles

      Oct 3rd, 2016

      Jim's Autocare

      Oil change, tire rotation

      Sep 20th, 2016

      20.2 MPG

      321 miles

      Oct 3rd, 2016

      <button class="btn btn-link">

      </button>
      <button class="btn btn-link">

      </button>

      Jim's Autocare

      Oil change, tire rotation

      Sep 20th, 2016

Add edit buttons to table

Add edit buttons to table


FROM java:8

RUN mkdir /opt/app  && \
  mkdir /opt/src

ENV SCALA_VERSION 2.11.7
ENV SBT_VERSION 0.13.8

# Install Scala
RUN \
  cd /root && \
  curl -o scala-$SCALA_VERSION.tgz http://downloads.typesafe.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz && \
  tar -xf scala-$SCALA_VERSION.tgz && \
  rm scala-$SCALA_VERSION.tgz && \
  echo >> /root/.bashrc && \
  echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> /root/.bashrc

# Install sbt
RUN \
  curl -L -o sbt-$SBT_VERSION.deb https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb && \
  dpkg -i sbt-$SBT_VERSION.deb && \
  rm sbt-$SBT_VERSION.deb && \
  apt-get update && \
  apt-get install sbt && \
  sbt version

ADD . /opt/app/

RUN \
  cd /opt/app && \
  sbt compile

RUN echo '<%= start %>' > /opt/start && \
  chmod +x /opt/start

RUN echo <%= sha %> > /opt/app/sha

CMD /opt/start

Remove space from sbt dockerfile

Remove space from sbt dockerfile


define command {
  command_name check_mapit
  command_line /usr/lib/nagios/plugins/check_http -H mapit.<%= @app_domain %> -u /postcode/W54XA -w1 -c2 -s 'E14000676'
}

define command {
  command_name check_mapit
  command_line /usr/lib/nagios/plugins/check_http -H mapit.<%= @app_domain %> -u /postcode/W54XA -w1 -c2 -s 'E14000676' --ssl
}

Make Icinga check Mapit over HTTPS

Make Icinga check Mapit over HTTPS

Most requests against Mapit are made over HTTPS, so that's what
Icinga should check.


<% provide(:title, 'Anchor Link Help') %>
<% provide(:jumbotron_class, 'jumbotron-resources') %>

<%= render 'layouts/jumbotron' %>

          <%= render partial: 'layouts/topic', collection: @anchor_link_topics %>

<%= render 'layouts/footer' %>

<% provide(:title, 'Anchor Link Help') %>
<% provide(:jumbotron_class, 'resources') %>

<%= render 'layouts/jumbotron' %>

          <%= render partial: 'layouts/topic', collection: @anchor_link_topics %>

<%= render 'layouts/footer' %>

Fix bug in Anchor Link page's jumbotron partial


Sign up

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

    <%= f.label :email %>

    <%= f.email_field :email, autofocus: true %>

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

    <%= f.password_field :password, autocomplete: "off" %>

    <%= f.label :password_confirmation %>

    <%= f.password_field :password_confirmation, autocomplete: "off" %>

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

<% end %>

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

Sign up

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

          <%= f.label :email %>
          <%= f.email_field :email, autofocus: true %>

          <%= f.label :password, "Password (#{@minimum_password_length.to_s + ' character minimum' if @minimum_password_length})" %>
          <%= f.password_field :password, autocomplete: "off" %>

          <%= f.label :password_confirmation %>
          <%= f.password_field :password_confirmation, autocomplete: "off" %>

          <%= f.submit "Sign up", class: "button expanded" %>

      <% end %>

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

Format account creation page with columns.


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

 Register:

              <%= f.email_field :email, class: "form-control", id: "form2" %>
              Your email

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

              <button class="btn btn-indigo">Sign up</button>

              <fieldset class="form-group">
                  <input type="checkbox" id="checkbox1">
                  Subscribe me to the newsletter
              </fieldset>

<% end %>

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

 Register:

              <%= f.email_field :email, class: "form-control", id: "form2" %>
              Your email

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

              <button class="btn btn-indigo">Sign up</button>

              <fieldset class="form-group">
                  <input type="checkbox" id="checkbox1">
                  Subscribe me to the newsletter
              </fieldset>

<% end %>

Add remote:true to sign_up form

Add remote:true to sign_up form


Editing Registration Table

<%= render 'form' %>

<%= link_to 'Show', @registration_table %> |
<%= link_to 'Back', registration_tables_path %>

Editing Registration Table

<%= render 'form' %>

<%= link_to 'Show', @registration_table %> |
<%= link_to 'Back', registration_tables_path (@event, @session, @table) %>

Add proper objects for registration table


<%= form_for [@trip,@review] do |f| %>
  <%= f.label :rating%>:
  <%= f.text_field :rating %>

  <%= f.label :content %>:
  <%= f.text_area :content %>

  <%= f.hidden_field :trip_id, :value => @trip.id %>
  <%= f.hidden_field :reviewee_id, :value => @trip.driver_id %>
  <%= f.submit %>
<% end %>

<%= form_for [@trip,@review] do |f| %>
  <%= f.label :rating%>:
  <%= f.text_field :rating %>

  <%= f.label :content %>:
  <%= f.text_area :content %>

  <%= f.hidden_field :reviewee_id, :value => @trip.driver_id %>
  <%= f.submit %>
<% end %>

Remove trip id hidden field from new trip review form


<!DOCTYPE html>

    <title>Chef Ken</title>
    <%= csrf_meta_tags %>

    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <%= stylesheet_link_tag    'application', media: 'all' %>
    <%= javascript_include_tag 'application' %>

      <% if !!logged_in %>
        <% if admin? %>
          <%= link_to "Admin tools" %>

        <% end %>
        <%= link_to "Profile"%>

      <% else %>
        <%= link_to("Register", signup_path)%>
      <% end %>

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

      <% if logged_in %>
        <%= link_to 'Logout', logout_path, method: :delete %>
      <% else %>
        <%= link_to "Login", login_path  %>
      <% end %>

    <%= yield %>

<!DOCTYPE html>

    <title>Chef Ken</title>
    <%= csrf_meta_tags %>

    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <%= stylesheet_link_tag    'application', media: 'all' %>
    <%= javascript_include_tag 'application' %>

      <% if !!logged_in %>
        <% if admin? %>
          <%= link_to "Admin tools" %>

        <% end %>
        <%= link_to "Profile", profile_path %>

      <% else %>
        <%= link_to("Register", signup_path)%>
      <% end %>

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

      <% if logged_in %>
        <%= link_to 'Logout', logout_path, method: :delete %>
      <% else %>
        <%= link_to "Login", login_path  %>
      <% end %>

    <%= yield %>

Fix link_to route for 'profile' in nav bar for to go to user profile


<!DOCTYPE html>

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

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

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

<%= javascript_include_tag "application.js" %>

Remove redundant tag for removing breadcrumb

This app uses the GOV.UK Component to render the breadcrumb. The tag
removed in this was previously necessary to instruct Slimmer to hide
the old breadcrumb. We no longer need it because the CSS and HTML have
been completely removed from static in
https://github.com/alphagov/static/pull/879.

https://trello.com/c/7wohUbyo


<!DOCTYPE html>

  <title>SimpleBarTab</title>
  <%= stylesheet_link_tag    "application", media: "all" %>
  <%= javascript_include_tag "application" %>
  <%= yield :head %>
  <%= csrf_meta_tags %>

<%= link_to 'Sibata', tabs_path%>

<%= yield %>

  <%= link_to('Logout', destroy_user_session_path, :method => :delete) %>

<!DOCTYPE html>

  <title>SimpleBarTab</title>
  <%= stylesheet_link_tag    "application", media: "all" %>
  <%= javascript_include_tag "application" %>
  <%= yield :head %>
  <%= csrf_meta_tags %>

<%= link_to 'Home', tabs_path%>

<%= yield %>

  <%= link_to('Logout', destroy_user_session_path, :method => :delete) %>

Change Sibata link to read Home

Change Sibata link to read Home


<!DOCTYPE html>

    <title><%= yield :title %> | GOV.UK</title>
    <%= stylesheet_link_tag 'calendar' %>
    <%= csrf_meta_tags %>
    <%= yield :head %>

      <%= yield %>

<!DOCTYPE html>

    <title><%= yield :title %> | GOV.UK</title>
    <%= stylesheet_link_tag 'calendar' %>
    <%= csrf_meta_tags %>
    <%= yield :head %>

  <%# The citizen class is going to be deprecated, to be replaced with mainstream. %>
  <%# Added the mainstream class in preparation for the change. %>

      <%= yield %>

Add mainstream class to body

Add mainstream class to body

In preparation for replacing the citizen class.


<!DOCTYPE html>
<html>
  <head>
    <%= render "layouts/partials/head" %>
  </head>

  <body>
    <div id="v-app">
      <!-- <main class="body-container <%= controller_name %>-parent">
        <header class="js-expandable-section">
          <%#= render 'layouts/partials/navbar' %>
          <%#= yield :header %>
        </header> -->

      <%= render "layouts/partials/topbar" %>

      <%= yield %>

      <%= render "layouts/partials/footer" %>
    </div>

    <%= render 'partials/download_modal' %>

    <%#= javascript_include_tag controller_name %>

    <% if Rails.env == 'production' %>
      <%= render 'partials/hotjar' %>
      <%= render 'partials/mouseflow' %>
      <%= render 'partials/uservoice' %>
    <% end %>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <%= render "layouts/partials/head" %>
  </head>

  <body>
    <div id="v-app">
      <%= render "layouts/partials/topbar" %>

      <%= yield %>

      <%= render "layouts/partials/footer" %>
    </div>

    <%= render 'partials/download_modal' %>
  </body>
</html>

Tidy up application layout file

Tidy up application layout file


Import Bundle

<%= bootstrap_form_tag url: admin_bundles_url, html: {id: "add_bundle_form"} do |f| %>

    <%= f.file_field :file, label: 'Bundle', accept: 'application/zip' %>

    <%= f.submit 'Import Bundle', :class => "btn btn-success", :id => "submit_button", data: { disable_with: "Please wait..." } %>
    <%= submit_tag "Cancel", :class => "btn btn-default", :type => "button", :onclick => "history.back()" %>

<% end %>

Import Bundle

<%= bootstrap_form_tag url: admin_bundles_path, html: {id: "add_bundle_form"} do |f| %>

    <%= f.file_field :file, label: 'Bundle', accept: 'application/zip' %>

    <%= f.submit 'Import Bundle', :class => "btn btn-success", :id => "submit_button", data: { disable_with: "Please wait..." } %>
    <%= submit_tag "Cancel", :class => "btn btn-default", :type => "button", :onclick => "history.back()" %>

<% end %>

Fix uploading when behind an web server such as nginx

Currently when you attempt to upload a new bundle to the application when behind a proxy server such as nginx the upload fails. This is due to the fact that the admin_bundles_url returns the absolute url which is incorrect when behind a proxy server. If we use admin_bundles_path instead then it returns a relative url which does not encounter this problem.


HELLO WORLD!

<%= link_to "Here's the actual website! GO CLICK!", movies_path %>

	<%= link_to image_tag("movie-theater.jpg"), movies_path %>

Tariq's Movie Manager gives you the lowdown on all movies, real and fictional.

<a class="btn btn-default btn-lg" href=<%= movies_path %> role="button">Visit Now.

Add photo and button to splash page

Add photo and button to splash page


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

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

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

      <%= contact_brief(contact.receiver_subject) %>

    <div class="link" id="contact_link<%= dom_id(contact.receiver_subject)%>">
      <%= contact_link(contact) %>

<%= link_to 'X', contact, :method => :delete, :remote => true %>

<% end %>

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

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

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

      <%= contact_brief(contact.receiver_subject) %>

    <div class="link" id="contact_link<%= dom_id(contact.receiver_subject)%>">
      <%= contact_link(contact) %>

<%= link_to 'X', contact, :method => :delete, :remote => true %>

<% end %>

Truncate name for suggestions and pending requests


<% @current_tab = current_tab %>

      <%= @exercise.title %>
       - <%= @exercise.language %>

    <%= yield %>

      <li <%= active_if :exercise %>>
        <%= link_to t(:exercise), exercise_path(@exercise) %>

      <li <%= active_if :status %>>
        <% @last_submission = @exercise.last_submission(current_user) if current_user? %>
        <%= link_to t(:status), exercise_submission_path(@exercise, @last_submission) if @last_submission %>

      <li <%= active_if :my_submissions %>>
        <%= link_to t(:my_submissions), exercise_submissions_path(@exercise) %>

      <% restricted_to_author @exercise do %>
        <li <%= active_if :edit %>>
          <%= link_to t(:edit), edit_exercise_path(@exercise) if @exercise.can_edit? %>

      <% end %>

<% @current_tab = current_tab %>

      <%= @exercise.title %>
       - <%= @exercise.language %>
      <%= exercise_status_icon(@exercise)%>

    <%= yield %>

      <li <%= active_if :exercise %>>
        <%= link_to t(:exercise), exercise_path(@exercise) %>

      <li <%= active_if :status %>>
        <% @last_submission = @exercise.last_submission(current_user) if current_user? %>
        <%= link_to t(:status), exercise_submission_path(@exercise, @last_submission) if @last_submission %>

      <li <%= active_if :my_submissions %>>
        <%= link_to t(:my_submissions), exercise_submissions_path(@exercise) %>

      <% restricted_to_author @exercise do %>
        <li <%= active_if :edit %>>
          <%= link_to t(:edit), edit_exercise_path(@exercise) if @exercise.can_edit? %>

      <% end %>

Add submission status on exercise show

Add submission status on exercise show


<%= render "layouts/navbar", page: "Mentorship" %>

    She's Coding Mentorship Program

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

<%= render "layouts/navbar", page: "Mentorship" %>

    She's Coding Mentorship Program

      You want to advance your career while meeting extraordinary, inspiring people? Get advice and help
      on how to succeed in the fast-paced tech environments? You want to help close the gender gap
      by encouraging and helping women and minorities to get into or stay in tech? You want to help
      shape the next generation of bright young professionals in this industry?

      Launched!

      We are super thrilled about the launch of the She's Coding Mentorship Program. For a while
      now we thought about how to best share this network of amazing technical women, minorities and
      allies that we are building. This mentorship program is our first attempt into a direction of
      direct enablement and empowerment through matching based on their career goals, their background,
      their interests and their expertise.

      Although our mentorship program primarily targets individuals identifying as female, and other
      minorities in tech, we are open to applicants from all walks of life and more than welcome a
      diverse group! We believe that everyone has the potential to become a mentor to another person,
      with valuable knowledge and experience to share. Please consider becoming a mentor and help other
      motivated, bright people reach their goals.

      We are looking forward to finding extraordinary people to match you up with, but please keep in
      mind that the program is in an early stage, and that we cannot promise a match within any
      specific time frame.

      <%= link_to "Sign Up Now", "http://www.instant.ly/s/RDciy", target: "_blank" %>

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

Add content to mentorship page; add link to survey


<%= @record.to_label.nil? ? active_scaffold_config.show.label : as_(:show_model, :model => clean_column_value(@record.to_label)) %>

<%= render :partial => 'show_columns', :locals => {:columns => active_scaffold_config.show.columns} -%>

  <%= link_to as_(:close), main_path_to_return, :class => 'cancel' %>
  <%= loading_indicator_tag(:action => :create, :id => params[:id]) %>

<%= active_scaffold_config.show.label(@record.to_label.nil? ? nil : clean_column_value(@record.to_label)) %>

<%= render :partial => 'show_columns', :locals => {:columns => active_scaffold_config.show.columns} -%>

  <%= link_to as_(:close), main_path_to_return, :class => 'cancel' %>
  <%= loading_indicator_tag(:action => :create, :id => params[:id]) %>

Use label defined in show

Use label defined in show


<%= form_tag({:action => "signup"}, {:id => "signup_form"}) do %>
    <%= foi_error_messages_for :user_signup %>

        <%= _('Your e-mail:')%>
        <%= text_field 'user_signup', 'email', { :size => 20, :tabindex => 60 } %>

        <%= _('We will not reveal your email address to anybody unless you or
        the law tell us to (details). ', :url => help_privacy_path) %>

         <%= _('Your name:')%>
        <%= text_field 'user_signup', 'name', { :size => 20, :tabindex => 70, :autocomplete => "off" } %>

         <%= _('Your name will appear publicly
        (why?)
        on this website and in search engines. If you
        are thinking of using a pseudonym, please
        read this first.', :why_url => (help_privacy_path+"#public_request").html_safe, :help_url => (help_privacy_path+"#real_name").html_safe) %>

        <%= check_box 'user_signup', 'user_agreement', { :tabindex => 95 } %>
        <%= _('I agree with the user agreement.')%>

         <%= _('Password:')%>
        <%= password_field 'user_signup', 'password', { :size => 15, :tabindex => 80, :autocomplete => "off" } %>

         <%= _('Password: (again)')%>
        <%= password_field 'user_signup', 'password_confirmation', { :size => 15, :tabindex => 90, :autocomplete => "off" } %>

    <% if @request_from_foreign_country %>
    <%= recaptcha_tags %>
    <% end %>

        <%= hidden_field_tag 'token', params[:token], {:id => 'signup_token' } %>
        <%= hidden_field_tag :modal, params[:modal], {:id => 'signup_modal' } %>
        <%= submit_tag _('Sign up'), :tabindex => 100 %>

<% end %>

Add user agreement checkbox on signup.

Add user agreement checkbox on signup.


---
init_config:
  check_path: <%= check_path %>
  temp_file_path: <%= temp_file_path %>

instances:

---
init_config:
  check_path: <%= @check_path %>
  temp_file_path: <%= @temp_file_path %>

instances:

Fix variable access in nagios wrapper config

Without this puppet issues warning.

Change-Id: I69d1f48d360073caa1b04b30ca304966cbd7fac5


  <%= simple_form_for content_item, url: project_content_item_path(content_item.project, content_item), remote: true, html: { data: { ref: content_item.id }, class: 'js-content-item-form' } do |f| %>
    <%= token_tag %>
    <%= link_to content_item.title, content_item.url, data: {proxy_iframe: 'enabled', modal_url: content_item.proxied_url, toggle: 'modal', target: '#iframe_modal_id'} %>
    <%= f.input :taxons,
      placeholder: 'Choose one...',
      label: false,
      input_html: {
        class: [:select2, :tagging_project, :js_bulk_tagger_input],
        autocomplete: 'off',
        data: { taxons: content_item.taxons }
      } %>
  <% end %>

  <%= simple_form_for content_item, url: project_content_item_path(content_item.project, content_item), remote: true, html: { data: { ref: content_item.id }, class: 'js-content-item-form' } do |f| %>
    <%= token_tag %>
    <%= link_to content_item.title, content_item.url, data: {proxy_iframe: 'enabled', modal_url: content_item.proxied_url, toggle: 'modal', target: '#iframe_modal_id'} %>

<%= content_item.description %>

    <%= f.input :taxons,
      placeholder: 'Choose one...',
      label: false,
      input_html: {
        class: [:select2, :tagging_project, :js_bulk_tagger_input],
        autocomplete: 'off',
        data: { taxons: content_item.taxons }
      } %>
  <% end %>

Add content description into Project tagging view


        <li class="<%= 'selected' if params[:controller] == 'request' and ['new', 'select_authority'].include?(params[:action]) %>">
          <%= link_to _("Make a request"), select_authority_path, :id => 'make-request-link' %>

        <li class="<%= 'selected' if params[:controller] == 'request' and !['new', 'select_authority'].include?(params[:action]) %>">
          <%= link_to _("View requests"), request_list_all_path %>

        <li class="<%= 'selected' if params[:controller] == 'public_body' %>">
          <%= link_to _("View authorities"), list_public_bodies_default_path %>

        <% unless AlaveteliConfiguration::blog_feed.empty? %>
          <li class="<%= 'selected' if params[:controller] == 'general' and params[:action] == 'blog' %>"><%= link_to _("Read blog"), "https://www.openaustraliafoundation.org.au/category/projects/righttoknow-org-au/" %>

        <% end %>
        <li class="<%= 'selected' if params[:controller] == 'help' %>">
          <%= link_to _("Help"), help_about_path %>

        <li class="<%= 'selected' if params[:controller] == 'request' and ['new', 'select_authority'].include?(params[:action]) %>">
          <%= link_to _("Make a request"), select_authority_path, :id => 'make-request-link' %>

        <li class="<%= 'selected' if params[:controller] == 'request' and !['new', 'select_authority'].include?(params[:action]) %>">
          <%= link_to _("View requests"), request_list_all_path %>

        <li class="<%= 'selected' if params[:controller] == 'public_body' %>">
          <%= link_to _("View authorities"), list_public_bodies_default_path %>

        <% unless AlaveteliConfiguration::blog_feed.empty? %>
          <li class="<%= 'selected' if params[:controller] == 'general' and params[:action] == 'blog' %>"><%= link_to _("Read blog"), blog_path %>

        <% end %>
        <li class="<%= 'selected' if params[:controller] == 'help' %>">
          <%= link_to _("Help"), help_about_path %>

Revert "Change blog link in to go directly to OAF site"

This reverts commit 674b9c88af05c7301f1229c9fe74991963bac296.


#!/bin/bash

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PUPPET_OPTS="--detailed-exitcodes --color=false --confdir=<%= @conf_dir %>"
PUPPET_MANIFEST="<%= @manifest_file %>"
LOG_FILE="<%= @log_file %>"
TEMP_FILE=$(mktemp tmp.puppet-XXXXXXXXXX)

if [ "$EUID" -ne "0" ]; then
  echo "This script must be run as root." 1>&2
  exit 1
fi

chmod 600 $TEMP_FILE
apt-get -qq update
puppet apply $PUPPET_OPTS $PUPPET_MANIFEST 2>&1 \
  | gawk '{ print strftime("%Y-%m-%d %H:%M:%S"), $0; fflush(); }' \
  | tee -a $LOG_FILE \
  > $TEMP_FILE

<% if !@mail_to.nil? && !@mail_to.empty? -%>
if [ "${PIPESTATUS[0]}" -gt 0 ]; then
  cat $TEMP_FILE | mail -s "<%= @mail_subject %>" <%= @mail_to %>
fi
<% end -%>

rm $TEMP_FILE

#!/bin/bash

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PUPPET_OPTS="--detailed-exitcodes --color=false"
PUPPET_MANIFEST="<%= @manifest_file %>"
LOG_FILE="<%= @log_file %>"
TEMP_FILE=$(mktemp tmp.puppet-XXXXXXXXXX)

if [ "$EUID" -ne "0" ]; then
  echo "This script must be run as root." 1>&2
  exit 1
fi

chmod 600 $TEMP_FILE
apt-get -qq update
cd "<%= @conf_dir %>"
puppet apply $PUPPET_OPTS $PUPPET_MANIFEST 2>&1 \
  | gawk '{ print strftime("%Y-%m-%d %H:%M:%S"), $0; fflush(); }' \
  | tee -a $LOG_FILE \
  > $TEMP_FILE

<% if !@mail_to.nil? && !@mail_to.empty? -%>
if [ "${PIPESTATUS[0]}" -gt 0 ]; then
  cat $TEMP_FILE | mail -s "<%= @mail_subject %>" <%= @mail_to %>
fi
<% end -%>

rm $TEMP_FILE

Change working directory to better support hiera


Sign up

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

<%= f.label :email %>

  <%= f.email_field :email, :autofocus => true %>

<%= f.label :password %>

  <%= f.password_field :password %>

<%= f.label :password_confirmation %>

  <%= f.password_field :password_confirmation %>

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

<% end %>

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

Register

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

<%= f.label :email %>

  <%= f.email_field :email, :autofocus => true %>

<%= f.label :password %>

  <%= f.password_field :password %>

<%= f.label :password_confirmation %>

  <%= f.password_field :password_confirmation %>

<%= f.submit "Register" %>

<% end %>

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

Change Sign Up to Register

Change Sign Up to Register


  <li class="<%= params[:controller].eql?('admin/dashboard') ? 'active' : 'inactive' %>">
    <%= link_to admin_dashboard_index_path do %>

      <%= Typus::I18n.t("Dashboard") %>
    <% end %>

  <% admin_user.applications.each do |application| %>

    <%
      app_id, apps = application.parameterize, admin_user.application(application)
      if (params[:application] == app_id) || (@resource && apps.include?(@resource.model_name))
        klass = 'active'
      end
    %>

    <li class="<%= klass %> dropdown" data-dropdown="dropdown">
      <%= link_to "#", :class => "dropdown-toggle", "data-toggle" => "dropdown" do %>
        <%= Typus::I18n.t(application) %>

      <% end %>

        <% admin_user.application(application).map(&:constantize).each do |klass| %>
          <% if klass.typus_options_for(:hide_from_dashboard) == false %>

                <%= link_to klass.model_name.human.pluralize, :controller => "/admin/#{klass.to_resource}" %>

          <% end %>
        <% end %>

  <% end %>

  <li class="<%= params[:controller].eql?('admin/dashboard') ? 'active' : 'inactive' %>">
    <%= link_to admin_dashboard_index_path do %>

      <%= Typus::I18n.t("Dashboard") %>
    <% end %>

  <% admin_user.applications.each do |application| %>

    <%
      app_id, apps = application.parameterize, admin_user.application(application)
      if (params[:application] == app_id) || (@resource && apps.include?(@resource.model_name))
        klass = 'active'
      end
    %>

    <li class="<%= klass %> dropdown" data-dropdown="dropdown">
      <%= link_to "#", :class => "dropdown-toggle", "data-toggle" => "dropdown" do %>
        <%= Typus::I18n.t(application) %>

      <% end %>

        <% admin_user.application(application).map(&:constantize).each do |klass| %>
          <% if klass.typus_options_for(:hide_from_dashboard) == false %>

                <%= link_to klass.model_name.human(count: 2), :controller => "/admin/#{klass.to_resource}" %>

          <% end %>
        <% end %>

  <% end %>

Fix navigation translation („Inhalts“ becomes „Inhalte“ again)


<a href="<%= new_scrapbook_search_path %>">Search

<a href="<%= scrapbook_search_path(query: @query) %>">Results

<a href="<%= scrapbook_occupation_path(soc_code: @occupation.soc_code, query: @query) %>"><%= @occupation.title %>

Saved

<%= render "saved_occupations/confirmation_box", occupation: @occupation %>

  <a href="<%= scrapbook_occupation_path(soc_code: @occupation.soc_code, query: @query) %>" id="back-to-occupation" class="link-back">Back to "<%= @occupation.title %>"

  <a href="<%= scrapbook_search_path(query: @query) %>" id="back-to-search-results" class="link-back">Back to search results

<% content_for :breadcrumbs do %>

<a href="<%= new_scrapbook_search_path %>">Search

<a href="<%= scrapbook_search_path(query: @query) %>">Results

<a href="<%= scrapbook_occupation_path(soc_code: @occupation.soc_code, query: @query) %>"><%= @occupation.title %>

Saved

<% end %>

<%= render "saved_occupations/confirmation_box", occupation: @occupation %>

  <a href="<%= scrapbook_occupation_path(soc_code: @occupation.soc_code, query: @query) %>" id="back-to-occupation" class="link-back">Back to "<%= @occupation.title %>"

  <a href="<%= scrapbook_search_path(query: @query) %>" id="back-to-search-results" class="link-back">Back to search results

Fix breadcrumbs on non-JS save occupations


A list of my Cats

<% @cats.each do |cat| %>
  <%=cat.name%> is <%=cat.age%> years old!

<% end %>

Add multiple states in catfriends view

Add multiple states in catfriends view


Information about Jarvice

avg:bosh.healthmonitor.system.cpu.user{ deployment: <%= deployment %> } by {job,index}

<%= environment %>: Jarvice CPU (%)

avg:bosh.healthmonitor.system.mem.percent{ deployment: <%= deployment %> } by {job,index}

<%= environment %>: Jarvice Memory (%)

<%= environment %> Jarvice Information

Information about Jarvice

avg:bosh.healthmonitor.system.cpu.user{ deployment: <%= jarvice_deployment %> } by {job,index}

<%= environment %>: Jarvice CPU (%)

avg:bosh.healthmonitor.system.mem.percent{ deployment: <%= jarvice_deployment %> } by {job,index}

<%= environment %>: Jarvice Memory (%)

<%= environment %> Jarvice Information

Update jarvice dashboard to use the jarvice deployment

[#101778802]

Signed-off-by: Kira Combs <327dac51f3a5158dc1dbf428a088e367dce1ec10@pivotal.io>


        <%= render partial: "sessions/form" %>

      <% if flash[:notice] %>
        <% flash[:notice].each do |msg| %>

 <%= msg %>

        <% end %>
      <% end %>

 Welcome To Speak It!

      <%= link_to 'Sign Up', new_user_path, class: 'btn btn-lg btn-primary' %>

 Language is the key to unlocking a new culture

 Level up and master your language

        <%= render partial: "sessions/form" %>

 Welcome To Speak It!

      <%= link_to 'Sign Up', new_user_path, class: 'btn btn-lg btn-primary' %>

 Language is the key to unlocking a new culture

 Level up and master your language

Remove flash message, already have it elsewhere


<%= render partial: "layouts/sidebar", locals: {cur_step: 4} %>

Sorry, something went wrong when generating your permit.

You may want to go back and click on the "Download then print" button again, as sometimes it took a bit longer to generate your permit.

If that still doesn't work, please email us at sanantonio@codeforamerica.org

<%= render partial: "layouts/sidebar", locals: {cur_step: 4} %>

Sorry, something isn't working correctly.

We weren't able to fill out your permit application.

Try hitting the back button then clicking on the "Download then print" button again. That might fix the problem for you.

If you're still having problems, please let us know by email at sanantonio@codeforamerica.org.

Update custom error page for pdf generate failure


<% unless @setting.should_validate %>
  <% if comment.parent_id.nil? %>
    $('.comments').prepend("<%= j render partial: 'comments/comment', locals: { comment: comment } %>");
  <% else %>
    $("#comment-<%= comment.parent_id %>").after("
<%= j render partial: 'comments/comment', locals: { comment: comment } %>
");
  <% end %>
<% end %>

$('#comment_username').val('');
$('#comment_email').val('');
$('#comment_comment').val('');

NProgress.done();

<% # render 'elements/alert' %>
<% # render 'elements/scroll_to' %>

Remove flash and scroll top after creating a comment


<% provide(:title, 'Your diaries') %>

Your Diaries

<% if @diaries.any? %>

      <% @diaries.each do |d| %>
          <%= link_to user_diary_url(d.user_id, d.id), class:'list-group-item' do %>
          <%= d.title %>
          <% if d.entries.any? %>
            <%= d.entries.count %>
          <% end %>
          <% end %>
      <% end %>

<% else %>

You don't have any diaries

<% end %>

    <%= link_to 'Create a diary', new_user_diary_path, class: 'btn btn-primary' %>

<% provide(:title, 'Your diaries') %>

Your Diaries

    <% if @diaries.any? %>

      <% @diaries.each do |d| %>
          <%= link_to user_diary_url(d.user_id, d.id), class:'list-group-item' do %>
          <%= d.title %>
          <% if d.entries.any? %>
            <%= d.entries.count %>
          <% end %>
          <% end %>
      <% end %>

    <% else %>

You don't have any diaries. Why not
      <%= link_to 'make a start', new_user_diary_path(@user) %>?

    <% end %>

    <%= link_to 'Create a diary', new_user_diary_path, class: 'btn btn-primary' %>

Fix styling when no diaries are found

Fix styling when no diaries are found


<%= Settings.name.split.first %> is a <%= age %>-year-old

web developer

sysadmin-in-training

Mac addict

<acronym title="Computer Information Systems">CIS</acronym> major at <%= link_to "ASU", "http://www.asu.edu", rel: :external %>

blogger

writer

<%= link_to "undead rogue", "http://us.battle.net/wow/en/character/earthen-ring/Adarystus/", rel: :external %>

<%= link_to "Mormon", "http://www.mormon.org", rel: :external %>

geek-of-all-trades

who lives with his <%= link_to "cat", "http://www.flickr.com/photos/jbhannah/sets/72157626784508774/", rel: :external %> in Tempe, AZ.

<%= Settings.name.split.first %> is a <%= age %>-year-old

web developer

sysadmin-in-training

Mac addict

CIS major at <%= link_to "ASU", "http://www.asu.edu", rel: :external %>

blogger

writer

<%= link_to "undead rogue", "http://us.battle.net/wow/en/character/earthen-ring/Adarystus/", rel: :external %>

<%= link_to "Mormon", "http://www.mormon.org", rel: :external %>

geek-of-all-trades

who lives with his <%= link_to "cat", "http://www.flickr.com/photos/jbhannah/sets/72157626784508774/", rel: :external %> in Tempe, AZ.

Replace outdated acronym tag with abbr

Replace outdated acronym tag with abbr


Edit Account

Jemurai Triage

Making it easy to manage application security.

Edit <%= resource_name.to_s.humanize %>

<%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
  <%= f.error_notification %>

    <%= f.input :email, :required => true, :autofocus => true %>
    <%= f.input :password, :autocomplete => "off", :hint => "leave it blank if you don't want to change it", :required => false %>
    <%= f.input :password_confirmation, :required => false %>
    <%= f.input :current_password, :hint => "we need your current password to confirm your changes", :required => true %>

    <%= f.submit "Update", :class=>"btn btn-inverse btn-large" %>

<% end %>

Cancel my account

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

<%= link_to "Back", :back %>

Fix layout of account edit.

Fix layout of account edit.


Is there anything wrong with this page?

Help us improve GOV.UK by telling us:

  <form accept-charset="UTF-8" action="/feedback" method="post">

<input name="utf8" type="hidden" value="✓">

    <input id="url" name="url" type="hidden" value="<%= h request_url %>">

      What you were doing
      <input id="what_doing" name="what_doing" type="text" />

      What went wrong
      <input id="what_wrong" name="what_wrong" type="text" />

<button name="commit" type="submit" class="button">Send</button>

  </form>

Is there anything wrong with this page?

Help us improve GOV.UK by telling us:

  <form accept-charset="UTF-8" action="/feedback" method="post">

<input name="utf8" type="hidden" value="✓">

    <input id="url" name="url" type="hidden" value="<%= h request_url %>">
    <input id="source" name="source" type="hidden" value="<%= source %>">

      What you were doing
      <input id="what_doing" name="what_doing" type="text" />

      What went wrong
      <input id="what_wrong" name="what_wrong" type="text" />

<button name="commit" type="submit" class="button">Send</button>

  </form>

Add source param to report a problem form

This relies on slimmer being able to provide the new source local.


<% @title = "#{@doc_instance.full_name} " %>

<%= include "partials/title", :object => @doc_instance %>

<%= layout_section('Description') %>
  <%= htmlize(@doc_instance.description) %>
<%= end_layout_section %>

<% # Iterate over the items in this section. %>

<% unless @doc_instance.respond_to?(:utilities) && @doc_instance.utilities? %>
  <%= layout_section('Utilities') %>

      <% @doc_instance.utilities.each do |utility| %>

<%= auto_link_code(utility) %>

      <% end %>

  <%= end_layout_section %>
<% end %>

<%= include "partials/namespaces", :object => @doc_instance %>
<%= include "partials/classes", :object => @doc_instance %>

<% @title = "#{@doc_instance.full_name} " %>

<%= include "partials/title", :object => @doc_instance %>

<%= layout_section('Description') %>
  <%= htmlize(@doc_instance.description) %>
<%= end_layout_section %>

<% # Iterate over the items in this section. %>

<% if @doc_instance.respond_to?(:utilities) && @doc_instance.utilities? %>
  <%= layout_section('Utilities') %>

      <% @doc_instance.utilities.each do |utility| %>

<%= auto_link_code(utility) %>

      <% end %>

  <%= end_layout_section %>
<% end %>

<%= include "partials/namespaces", :object => @doc_instance %>
<%= include "partials/classes", :object => @doc_instance %>

Fix conditional display of utilities.

Fix conditional display of utilities.


Pricing for <%= @group.name %>

<% curr_product = '' %>

<%= form_for @group do |form| %>
	<% Variant.order(:product_id).each do |v|%>
	<% if curr_product != v.product_id%>
		<% curr_product = v.product_id %>

<%= v.product.name %>

	<% end %>

	<% ugv = UserGroupsVariant.where(:user_group_id => @group).where(:variant_id => v).first%>

<%= variant_options(v) %> (<%= v.sku %>)	<input name="price[<%= @group.id %>][<%= v.id %>]" value="<%= ugv.price if ugv %>">

	<% end %>

	<%= form.submit %>
<% end %>

Pricing for <%= @group.name %>

<% curr_product = '' %>

	<%= form_for @group do |form| %>
	<% Variant.order(:product_id).each do |v|%>
	<% if curr_product != v.product_id%>
	<% curr_product = v.product_id %>

<%= v.product.name %>

	<% end %>

	<% ugv = UserGroupsVariant.where(:user_group_id => @group).where(:variant_id => v).first%>

			<%= variant_options(v) %> (<%= v.sku %>)

			Master Price <%= variant_options(v) %> (<%= v.price %>)

			<input name="price[<%= @group.id %>][<%= v.id %>]" value="<%= ugv.price if ugv %>">

	<% end %>

<%= form.submit %>
<% end %>

Add column for master price in group pricing page


<%= content_for :page_title, "Management information for #{@school.name}" %>

Management information for <%= @school.name %>

Annual use

<% if @overview_table %>
  <%= render 'overview_table', overview_table: @overview_table %>
<% end %>

<% @overview_charts.each_with_index do |(energy, chart_config), index| %>

Annual <%= energy.to_s.humanize.downcase %> overview

  <%= chart_tag(@school, chart_config[:chart].last, show_advice: false, no_zoom: true, chart_config: {y_axis_units: chart_config[:units]}) %>
<% end %>

<% unless @management_priorities.empty? %>
  <%= render 'management/management_priorities/list', management_priorities: @management_priorities, school: @school, show_more: false %>
<% end %>

Recent use

  <%= render 'shared/dashboard_energy_charts', charts: @charts, school: @school %>

<%= render 'shared/dashboard_alerts', dashboard_alerts: @dashboard_alerts, school: @school, content_field: :management_dashboard_title, title: 'Recent energy use alerts'%>

<%= render 'shared/dashboard_timeline', school: @school, observations: @observations %>

<%= content_for :page_title, "Energy Management information for #{@school.name}" %>

Energy Sparks

Energy Management information for <%= @school.name %>

Annual use

<% if @overview_table %>
  <%= render 'overview_table', overview_table: @overview_table %>
<% end %>

<% @overview_charts.each_with_index do |(energy, chart_config), index| %>

Annual <%= energy.to_s.humanize.downcase %> overview

  <%= chart_tag(@school, chart_config[:chart].last, show_advice: false, no_zoom: true, chart_config: {y_axis_units: chart_config[:units]}) %>
<% end %>

<% unless @management_priorities.empty? %>
  <%= render 'management/management_priorities/list', management_priorities: @management_priorities, school: @school, show_more: false %>
<% end %>

Recent use

  <%= render 'shared/dashboard_energy_charts', charts: @charts, school: @school %>

<%= render 'shared/dashboard_alerts', dashboard_alerts: @dashboard_alerts, school: @school, content_field: :management_dashboard_title, title: 'Recent energy use alerts'%>

<%= render 'shared/dashboard_timeline', school: @school, observations: @observations %>

Update titles for management report page


	Owner options:

      Change State

     <% Question.states.each do |state| %>

<%= link_to state.humanize, question_path(@question, :question => {:state => state}), :method => :put, :confirm => t('question.change_state.confirm') %>

     <% end %>

<%= form_for @question, :html => {:style => 'display:inline', :class => 'form-inline'} do |f| %>
  <%= f.collection_select :tag_ids, Tag.all, :id, :name, {}, :multiple => true, :prompt => 'Tag question:', :class => 'select2' %>
<% end %>

Remove tagging from owner controls

Remove tagging from owner controls


<h1> Create question. </h1>

<form action = '/questions' method = 'post'>
  <label for='question[text]'>Question</label>
  <input type = 'text' name = 'question[text]'>

  <input type='hidden' name='question[survey_id]' value='<%=@survey.id%>'>

  <input type = 'submit' value = 'Add Question'>
</form>

 Create question.

<form action = '/questions' method = 'post'>
  Question
  <input type = 'text' name = 'question[text]'>

  <input type='hidden' name='question[survey_id]' value='<%=@survey.id%>'>

  <input type = 'submit' value = 'Add Question'>
</form>

<button><a href = "/surveys/<%=@survey.id%>">I'm done with my survey</button>

Add done with survey button

Add done with survey button


<% if variant.product.add_ons.any? %>

<%= Spree::AddOn.model_name.human(count: :many) %>

    <% variant.product.add_ons.each do |add_on| %>

          <%= hidden_field_tag(
            "#{item_form.object_name}[add_on_ids][]",
            nil,
            id: "#{"#{item_form.object_name}[add_on_ids][]".parameterize(sep='_')}_#{add_on.id}_hidden"
          ) %>
          <%= check_box_tag(
            "#{item_form.object_name}[add_on_ids][]",
            add_on.id,
            item_form.object.add_on_ids.include?(add_on.id),
            id: "#{"#{item_form.object_name}[add_on_ids][]".parameterize(sep='_')}_#{add_on.id}"
          ) %>
          <%= add_on.display_name %>

        (<%= add_on.price_in(current_currency).display_amount %>)
        <%= render 'spree/add_ons/add_on_description_modal', add_on: add_on %>

    <% end %>

<% end %>

<% if variant.product.add_ons.any? %>

<%= Spree::AddOn.model_name.human(count: :many) %>

    <% variant.product.add_ons.each do |add_on| %>
      <div class='line-item-add-on line-item-add-on-<%= add_on.class.to_s.split('::').last %>'>

          <%= hidden_field_tag(
            "#{item_form.object_name}[add_on_ids][]",
            nil,
            id: "#{"#{item_form.object_name}[add_on_ids][]".parameterize(sep='_')}_#{add_on.id}_hidden"
          ) %>
          <%= check_box_tag(
            "#{item_form.object_name}[add_on_ids][]",
            add_on.id,
            item_form.object.add_on_ids.include?(add_on.id),
            id: "#{"#{item_form.object_name}[add_on_ids][]".parameterize(sep='_')}_#{add_on.id}"
          ) %>
          <%= add_on.display_name %>

        (<%= add_on.price_in(current_currency).display_amount %>)
        <%= render 'spree/add_ons/add_on_description_modal', add_on: add_on %>

    <% end %>

<% end %>

Add addon-class name to class

Add addon-class name to class

Now we use add-on as backup cd, but not show its description.
While we do not want to show description of backup cd, we want to show
description of others.


Sign in

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

<%= f.label :email %>

  <%= f.email_field :email, autofocus: true %>

<%= f.label :password %>

    <%= f.password_field :password, autocomplete: "off" %>

  <% if devise_mapping.rememberable? -%>

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

  <% end -%>

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

<% end %>

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

Sign in

Sign up

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

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

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

                <%= f.submit 'Sign in', class: 'btn btn-primary' %>
            <% end %>

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

Update devise sign in page to use Twitter Bootstrap.


description "TeamCity Agent"

start on runlevel [2345]
stop on runlevel [06]

# TeamCity can take a while to shutdown
kill timeout 30

respawn
respawn limit 15 5

setuid <%= @user %>
setgid <%= @group %>

script
  export TEAMCITY_DATA_PATH=<%= @data_dir %>

  exec <%= @root_dir %>/agents/buildAgent/bin/agent.sh run
end script

description "TeamCity Agent"

start on runlevel [2345]
stop on runlevel [06]

# TeamCity can take a while to shutdown
kill timeout 30

respawn
respawn limit 15 5

setuid <%= @user %>
setgid <%= @group %>

script
  export TEAMCITY_DATA_PATH=<%= @data_dir %>
  if [ -f ~<%= @user %>/.bashrc ]; then
    . ~<%= @user %>/.bashrc
  fi
  exec <%= @root_dir %>/agents/buildAgent/bin/agent.sh run
end script

Load the users bashrc to pull in any environmental variables.


      <%= render partial: "status_buttons", locals: { order: order } %>

      <% if order.pending? || order.approved? || order.shipped? %>
        <button class="btn btn-primary">Save</button>
      <% end %>

      <%= link_to "Cancel", orders_path, type: "button", class: "btn btn-default" %>

      <% if current_user.can_cancel_order? order.organization %>
        <button type="submit" name="order[status]" value="cancel" class="btn btn-danger pull-right"
          data="<%= confirm(title: "Cancel this order?") %>">

          Cancel Order
        </button>
      <% end %>

      <%= render partial: "status_buttons", locals: { order: order } %>

      <% if order.pending? || order.approved? || order.shipped? %>
        <button class="btn btn-primary">Save</button>
      <% end %>

      <%= link_to "Cancel", orders_path, type: "button", class: "btn btn-default" %>

      <% if !order.canceled? && current_user.can_cancel_order?(order.organization) %>
        <%= button_tag name: "order[status]", value: "cancel", type: :submit,
            class: 'btn btn-danger pull-right', data: confirm(title: "Canceling Order") do %>
          Cancel Order

        <% end %>
      <% end %>

Fix cancel button confirmation logic

Fix cancel button confirmation logic


<%= (params[:repository].present?) ? "#{params[:repository]}" : t('application_title') %>

<% if maintenance_mode? %>

Alert! <%= t('maintenance_alert') %>

<% end %>

<% if params[:repository].present? %>

  <% if current_repository_home_text? %>
  <%= t("repositories.#{current_repository_url}.home_text") %>
  <% end %>

  <%= link_to "#{fa_icon('globe')} Website".html_safe, t("repositories.#{current_repository_url}.url"), target: '_blank' %>

<% end %>

<% unless request.path == advanced_search_path %>

  <%= render_search_bar %>
  <%= link_to t('search.advanced.link_text'), advanced_search_path(sanitize_search_params(params)), class: 'advanced_search'%>

<% else %>
<%= link_to t('search.simple.link_text').html_safe, search_catalog_path(sanitize_search_params(params)) %>
<% end %>
<% unless Rails.env.test? %>

<% end %>

Exclude statuspage embed from tests

Exclude statuspage embed from tests


<% content_for :sidebar do %>
  <%= render 'related_items' %>
<% end %>

<% start_node = @presenter.start_node %>

<% if start_node.meta_description.present? %>
  <% content_for :head do %>
    <meta name="description" content="<%= start_node.meta_description %>">
  <% end %>
<% end %>

<%= render partial: 'page_title', locals: { title: start_node.title } %>

  <article role="article" class="group" data-debug-template-path="<%= start_node.relative_erb_template_path %>">

        <%= start_node.body %>

          <a rel="nofollow" href="<%= smart_answer_path(@name.to_s, started: "y") %>" class="big button"><%= start_node.start_button_text %>

      <% unless start_node.post_body.blank? %>

Before you start

          <%= start_node.post_body %>

      <% end %>

<% content_for :sidebar do %>
  <%= render 'related_items' %>
<% end %>

<% start_node = @presenter.start_node %>

<% if start_node.meta_description.present? %>
  <% content_for :head do %>
    <meta name="description" content="<%= start_node.meta_description %>">
  <% end %>
<% end %>

  <%= render partial: 'page_title', locals: { title: start_node.title } %>

    <article role="article" class="group" data-debug-template-path="<%= start_node.relative_erb_template_path %>">

          <%= start_node.body %>

            <a rel="nofollow" href="<%= smart_answer_path(@name.to_s, started: "y") %>" class="big button" role="button"><%= start_node.start_button_text %>

          <% unless start_node.post_body.blank? %>

Before you start

              <%= start_node.post_body %>

          <% end %>

Fix the "Start now" button appearance in preview

Update the div and link classes to be consistent with the equivalent
template in the frontend app
(https://github.com/alphagov/frontend/blob/master/app/views/simple_smart_answers/show.html.erb).

Frontend is normally used to render smart answer start pages. The
template updated here is used to preview the page, either in dev or on
branch deployments.

This change adds the missing '>' arrow to the "Start now" button.


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

      <%= event.title %>

  <% end %>

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

<%= event.title %>

      (<%= event.start_date %>)

  <% end %>

Add start date to page

Add start date to page


<%= menu_item :comments, :new_discussion_message, url_for([target.item, target]), { title: target.title.truncate_words(3) } %>

<%= menu_item :comments, :new_discussion_message, url_for([target.item, target]), { title: target.item.name.truncate_words(3) } %>

Use exercise name because title is not being used


<% if transaction.transaction_type == 'request' %>
  <%= transaction.request.requester.first_name %> has made a request.
<% elsif transaction.type == 'response' %>
  ><%= transaction.request.responder.first_name %> has responded to <%= transaction.request.requester.first_name %>'s request!
<% elsif transaction.type == 'fulfillment' %>
  <%= transaction.request.responder.first_name %> has fulfilled <%= transaction.request.requester.first_name %>'s request!
<% else %>
  Poop
<% end %>

<% if transaction.transaction_type == 'request' %>
  <%= transaction.request.requester.first_name %> has made a request.
<% elsif transaction.transaction_type == 'response' %>
  <%= transaction.request.responder.first_name %> has responded to <%= transaction.request.requester.first_name %>'s request!
<% elsif transaction.transaction_type == 'fulfillment' %>
  <%= transaction.request.responder.first_name %> has fulfilled <%= transaction.request.requester.first_name %>'s request!
<% else %>
  Poop
<% end %>

Fix var type to transaction_type

Fix var type to transaction_type


$DefaultNetstreamDriverCAFile /etc/rsyslog-root-certs-bundle.pem
$ActionSendStreamDriver gtls # use gtls netstream driver
$ActionSendStreamDriverMode 1 # require TLS
$ActionSendStreamDriverAuthMode x509/name # authenticate by hostname
$ActionSendStreamDriverPermittedPeer <%= permitted_peer %>

*.*          @@<%= syslog_drain %>

$DefaultNetstreamDriverCAFile /etc/rsyslog-root-certs-bundle.pem
$ActionSendStreamDriver gtls # use gtls netstream driver
$ActionSendStreamDriverMode 1 # require TLS
$ActionSendStreamDriverAuthMode x509/name # authenticate by hostname
$ActionSendStreamDriverPermittedPeer <%= permitted_peer %>

template(name="ForwardFormatWithLogLevel" type="list") {
    constant(value="<")
    property(name="pri")
    constant(value=">")
    property(name="timestamp" dateFormat="rfc3339")
    constant(value=" ")
    property(name="hostname")
    constant(value=" ")
    property(name="syslogtag" position.from="1" position.to="32")
    constant(value=" ")
    property(name="syslogseverity-text" caseConversion="upper")
    constant(value=":")
    property(name="msg" spifno1stsp="on" )
    property(name="msg")
}

*.*          @@<%= syslog_drain %>;ForwardFormatWithLogLevel

Add log level to rsyslog for Papertrail filtering


<%= template_header %>

node_name        '<%= node['fqdn'] %>'

chef_server_url  '<%= @server_url %>'
client_key       "<%= @client_key %>"

<% if @trusted_certs_dir -%>
trusted_certs_dir "<%= @trusted_certs_dir %>"
<% end -%>
<%- if @verify_ssl == 'all' -%>
# Verify all HTTPS connections
ssl_verify_mode :verify_peer
<%- elsif @verify_ssl == 'chef-server' -%>
# Verify only connections to chef-server
verify_api_cert true
<%- end -%>

validation_client_name "<%= @validation_client_name %>"
validation_key   "<%= @validation_key %>"

log_level        <%= @log_level %>
log_location     <%= @use_syslog?'SyslogLogger.new("chef-client")':'STDOUT' %>

file_backup_path "/var/backups/chef"
file_cache_path  "/var/cache/chef"
pid_file         "/var/run/chef/client.pid"

# configuration for Ohai:
<%- unless @odisable.empty? -%>
<%#   Make sure to write symbols into the configuration file %>
<%-   plugins = @odisable.map { |p| p.capitalize.to_sym } -%>
Ohai::Config[:disabled_plugins] =  <%= plugins %>
<%- end %>
Ohai::Config[:plugin_path]      << "<%= @opath %>"

<%= @custom_config %>

<%= template_header %>

node_name        '<%= node['fqdn'] %>'

chef_server_url  '<%= @server_url %>'
client_key       "<%= @client_key %>"

<% if @trusted_certs_dir -%>
trusted_certs_dir "<%= @trusted_certs_dir %>"
<% end -%>
<%- if @verify_ssl == 'all' -%>
# Verify all HTTPS connections
ssl_verify_mode :verify_peer
<%- elsif @verify_ssl == 'chef-server' -%>
# Verify only connections to chef-server
verify_api_cert true
<%- end -%>

validation_client_name "<%= @validation_client_name %>"
validation_key   "<%= @validation_key %>"

log_level        <%= @log_level %>
log_location     <%= @use_syslog?'SyslogLogger.new("chef-client")':'STDOUT' %>

file_backup_path "/var/backups/chef"
file_cache_path  "/var/cache/chef"
pid_file         "/var/run/chef/client.pid"

# configuration for Ohai:
<%- unless @odisable.empty? -%>
<%#   Make sure to write symbols into the configuration file %>
<%-   plugins = @odisable.map { |p| p.capitalize.to_sym } -%>
ohai.disabled_plugins =  <%= plugins %>
<%- end %>
ohai.plugin_path      << "<%= @opath %>"

<%= @custom_config %>

Replace outdated config params with current ones


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

<%= article.title %>

<%= article.text %>

<%= link_to 'Show', article_path(article) %>

<% end %>

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

		<%= article.title %>

		<%= article.text %>

		<%= link_to 'Show', article_path(article) %> |
		<%= link_to 'Edit', edit_article_path(article) %>

<% end %>

Add links to edit posts in '/articles/index' view


<li id="<%= dom_id(comment) %>">

    <a href="<%= comment.user.github_url  %>"><img src="<%= comment.user.avatar_url %>">

<%= comment.comment %>

    <%= timeago_tag comment.created_at, :nojs => true, :limit => 100.days.ago %> ago
    by <%= link_to comment.user.username, comment.user.github_url %>
    <%= link_to "delete", repo_comment_path(repo_id: @repo.fullname, id: comment.id), method: :delete, remote: true if comment.user == current_user %>

<li id="<%= dom_id(comment) %>">

    <a href="<%= comment.user.github_url  %>"><img src="<%= comment.user.avatar_url %>">

<%= comment.comment %>

    <%= timeago_tag comment.created_at, :nojs => true, :limit => 100.days.ago %>
    by <%= link_to comment.user.username, comment.user.github_url %>
    <%= link_to "delete", repo_comment_path(repo_id: @repo.fullname, id: comment.id), method: :delete, remote: true if comment.user == current_user %>

Fix duplicate ago on comment partial

Fix duplicate ago on comment partial


<%= form_tag :rubygems, method: :get, remote: true, class: "well form-search", id: "gems-search" do %>
  <%= text_field_tag :query, nil, placeholder: "Type the name of a gem", autofocus: true, autocomplete: "off", class: "input-medium search-query" %>
  <%= submit_tag 'Search', class: "btn btn-primary" %>
  <%= link_to "Register new gem", new_rubygem_path, class: "btn btn-success pull-right" %>
<% end %>

<%= paginate @gems, remote: true %>

    Name
    Status
    Notes

    <%= render 'gems' %>

<%= form_tag :rubygems, method: :get, remote: true, class: "well form-search", id: "gems-search" do %>
  <%= text_field_tag :query, nil, placeholder: "Type the name of a gem", autofocus: true, autocomplete: "off", class: "input-medium search-query" %>
  <%= link_to "Register new gem", new_rubygem_path, class: "btn btn-success pull-right" %>
<% end %>

<%= paginate @gems, remote: true %>

    Name
    Status
    Notes

    <%= render 'gems' %>

Remove 'Search' button, it is not used actually


404

No manual entry for <%= @name %> in section <%= @section || 1 %> of the manual.

404

No entry for <%= @name %> in section <%= @section || 1 %> of the manual.

Improve wording of new 404 page

Improve wording of new 404 page


CKEDITOR.editorConfig = function (config) {
  config.filebrowserImageBrowseLinkUrl = '/admin/ckeditor/pictures';
  config.filebrowserImageBrowseUrl = '/admin/ckeditor/pictures';
  config.filebrowserImageUploadUrl = '/admin/ckeditor/pictures';
  config.filebrowserBrowseUrl = 'admin/ckeditor/attachment_files';
  config.filebrowserUploadUrl = 'admin/ckeditor/attachment_files';
  config.extraPlugins = 'sourcedialog';
  config.allowedContent = true;
  config.contentsCss = '/assets/ckeditor/editor.css';
  config.toolbar =
  [
    {
      name: 'styles',
      items: ['Format']
    },
    {
      name: 'basicstyles',
      items: ['Bold', 'Italic', 'Underline', '-', 'RemoveFormat']
    },
    {
      name: 'paragraph',
      items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-']
    },
    {
      name: 'links',
      items: ['Link', 'Unlink']
    },
    {
      name: 'insert',
      items: ['Image', 'Sourcedialog']
    }
  ];
};

CKEDITOR.editorConfig = function (config) {
  config.filebrowserImageBrowseLinkUrl = '/blog/admin/ckeditor/pictures';
  config.filebrowserImageBrowseUrl = '/blog/admin/ckeditor/pictures';
  config.filebrowserImageUploadUrl = '/blog/admin/ckeditor/pictures';
  config.filebrowserBrowseUrl = '/blog/admin/ckeditor/attachment_files';
  config.filebrowserUploadUrl = '/blog/admin/ckeditor/attachment_files';
  config.extraPlugins = 'sourcedialog';
  config.allowedContent = true;
  config.contentsCss = '/blog/assets/ckeditor/editor.css';
  config.toolbar =
  [
    {
      name: 'styles',
      items: ['Format']
    },
    {
      name: 'basicstyles',
      items: ['Bold', 'Italic', 'Underline', '-', 'RemoveFormat']
    },
    {
      name: 'paragraph',
      items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-']
    },
    {
      name: 'links',
      items: ['Link', 'Unlink']
    },
    {
      name: 'insert',
      items: ['Image', 'Sourcedialog']
    }
  ];
};

Update CKEDITOR image uploading and browsing paths


  <% if answers.present? %>

<%= t('checklists_results.answers.list_context') %>

      <% answers.each do |answer| %>

<%= answer[:readable_text] %>

      <% end %>

  <% else %>

<%= t('checklists_results.answers.no_answers') %>

  <% end %>

    <a href="<%= checklist_questions_path(filtered_params) %>" class="govuk-link">
      <%= t('checklists_results.answers.change_answers') %>

  <% if answers.present? %>

<%= t('checklists_results.answers.list_context') %>

      <% answers.each do |answer| %>

<%= answer[:readable_text] %>

      <% end %>

  <% else %>

<%= t('checklists_results.answers.no_answers') %>

  <% end %>

    <a
      class="govuk-link"
      data-module="track-click"
      data-track-action="ChangeAnswers"
      data-track-category="ChangeAnswersClicked"
      data-track-label="<%= checklist_questions_path(filtered_params) %>"
      href="<%= checklist_questions_path(filtered_params) %>"
    >
      <%= t('checklists_results.answers.change_answers') %>

Add tracking for change answers link on results page


    <%= render "govuk_publishing_components/components/heading", {
        text: "Links",
        font_size: "m",
        margin_bottom: 4
      } %>

        <%= link_to 'Add list',
          new_tag_list_path(tag),
          class: %w(govuk-link govuk-link--no-visited-state)
        %>

      <% if tag.lists.count > 1 %>

          <%= link_to 'Reorder list',
            tag_manage_list_ordering_path(tag),
            class: %w(govuk-link govuk-link--no-visited-state)
          %>

      <% end %>

<% if tag.tagged_documents.empty? %>

There are no documents tagged to this item.

<% elsif tag.display_curated_links? %>
  <%= render 'shared/tags/curated_links_preview', tag_object: tag %>
<% else %>
  <%= render 'shared/tags/uncurated_links_preview', tag: tag %>
<% end %>

    <%= render "govuk_publishing_components/components/heading", {
        text: "Lists",
        font_size: "m",
        margin_bottom: 4
      } %>

        <%= link_to 'Add list',
          new_tag_list_path(tag),
          class: %w(govuk-link govuk-link--no-visited-state)
        %>

      <% if tag.lists.count > 1 %>

          <%= link_to 'Reorder list',
            tag_manage_list_ordering_path(tag),
            class: %w(govuk-link govuk-link--no-visited-state)
          %>

      <% end %>

<% if tag.tagged_documents.empty? %>

There are no documents tagged to this item.

<% elsif tag.display_curated_links? %>
  <%= render 'shared/tags/curated_links_preview', tag_object: tag %>
<% else %>
  <%= render 'shared/tags/uncurated_links_preview', tag: tag %>
<% end %>

Use correct heading on tag show page

Use correct heading on tag show page