<% text_for :title do %>
  You’ll need a visa to come to the UK
<% end %>

<% govspeak_for :body do %>
  The visa you need depends on your partner or family member’s situation.

  ## They’re a British citizen

  In most cases, you should apply for a [Standard Visitor visa](/standard-visitor-visa).

  You should [apply for a ‘Surinder Singh’ EEA family permit](/family-permit/surinder-singh) instead if you’ve been living with them in an EEA country other than the UK and they’ve been working, self-employed, self-sufficient or studying there.

  ## They’re from elsewhere in the EEA

  Apply for a [family permit](/family-permit).

  ## They’re from outside the EEA

  Apply for a [Standard Visitor visa](/standard-visitor-visa).
<% end %>

<% text_for :title do %>
  You’ll usually need a visa to come to the UK
<% end %>

<% govspeak_for :body do %>
  In most cases, you must apply for a [Standard Visitor visa](/standard-visitor-visa).

  ##When you might not need a visa

  You may be able to apply to come to the UK for free instead of paying for a visa if your partner or family member is a British citizen or from another European country.

  ###If your family member is a British citizen

  If you’ve been living with your British partner or family member in another European country, you may be able to apply for a free [‘Surinder Singh’ EEA family permit](/family-permit/surinder-singh). Eligible countries are [countries in the EU](/eu-eea), Switzerland, Norway, Iceland and Liechtenstein.

  ###If your family member is from another European country

  You can apply for a free [family permit](/family-permit) if your partner or family member is from the EU, Switzerland, Norway, Iceland or Liechtenstein.

  Or if they were living in the UK before 31 December 2020, you may be able to apply to the free [EU Settlement Scheme](/settled-status-eu-citizens-families). You get more rights than with a visa or family permit -  you can live, work and study in the UK for as long as you like.
<% end %>

Clarify tourism options for visa nationals with family & no Article 10/20

Adds information about the EU Settlement Scheme.


<% unless flash.empty? %>

    <% flash.each do |key, value| %>
      <div class="<%= flash_class(key) %> alert-dismissable">

          <button type="button" class="close" data-dismiss="alert" data-target=".alert-dismissable">×</button>
          <i class="<%= flash_icon_class(key) %> icon">
          <%= value %>

    <% end %>

<% end %>

<% unless flash.empty? %>

    <% flash.each do |key, value| %>
      <div class="<%= flash_class(key) %> alert-dismissable">

          <button type="button" class="close" data-dismiss="alert" data-target=".alert-dismissable">×</button>
          <span class="<%= flash_icon_class(key) %>">
          <%= value %>

    <% end %>

<% end %>

Update icons in notification code

Update icons in notification code


  <%= link_to '← Back', submissions_path, class: "link-return" %>
  <%= render 'form', { settings: settings } %>

Add arrow moving user to submissions list in settings


<%= @issue.title %>

  <% @parties.each do |party| %>

<%= @issue.stats.text_for(party) %>

  <% end %>

<%= @issue.title %>

<%= @issue.description %>

  <% @parties.each do |party| %>

<%= @issue.stats.text_for(party) %>

  <% end %>

Add description to issue widget.

Add description to issue widget.


var _id = '#<%= @answer.class.to_s.underscore %>-<%= @answer.id %>';

<% if @error -%>
  Util.alert('<%= @msg %>', _id + " > div:first")
<% else -%>
  $("#edit_answer_form_modal").hide();
  $(_id).find(".answer-content").html('<%= escape_javascript(markdown(@answer.body)) %>')
  Util.notice('<%= @msg %>', _id + " > div:first");
<% end -%>

var _id = '#<%= @answer.class.to_s.underscore %>-<%= @answer.id %>';

<% if @error -%>
  Util.alert('<%= @msg %>', _id + " > div:first")
<% else -%>
  $("#edit_answer_form_modal").modal('hide');
  $(_id).find(".answer-content").html('<%= escape_javascript(markdown(@answer.body)) %>');
  $(_id).find(".edit-answer-form").find('textarea.answers_editor').text('<%=raw escape_javascript(@answer.body) %>');
  Util.notice('<%= @msg %>', _id + " > div:first");
<% end -%>

Fix bugs of modal content not keep the latest answer content.


  <%= render 'previous_next_doc' %>

  <% @page_title = t('blacklight.search.show.title', :document_title => document_show_html_title, :application_name => application_name).html_safe -%>
  <% content_for(:head) { render_link_rel_alternates } -%>
  <%# this should be in a partial -%>

  <div id="document" class="document <%= render_document_class %>" itemscope  itemtype="<%= @document.itemtype %>">
    <div id="doc_<%= @document.id.to_s.parameterize %>">
      <% # bookmark/folder functions -%>
      <%= render_document_partials @document, blacklight_config.view_config(:show).partials %>

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

  <%= render_document_sidebar_partial %>

Move COInS element inside document element on show page


Editing friend

  <%= form_for :friend, url: friend_path(@friend), method: :put do |f| %>

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

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

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

<%= msg %>

      <% end %>

  <% end %>

    <%= form_for :friend do |f| %>

        <%= f.label :first_name, 'First Name' %>

        <%= f.text_field :first_name, autofocus: true %>

        <%= f.label :last_name, 'Last Name' %>

        <%= f.text_field :last_name %>

        <%= f.label :phone_number, 'Phone number' %>

        <%= f.text_field :phone_number %>

        <%= f.label :email %>

        <%= f.email_field :email %>

          <%= f.submit "Save changes" %>

    <% end %>

  <% end %>

  <%= link_to 'Back', friends_path %>

Add edit friend and route in controller

Add edit friend and route in controller


#!/usr/bin/env puma

# start puma with:
# RAILS_ENV=production bundle exec puma -C ./config/puma.rb

application_path = "<%= current_path %>"
railsenv = "<%= rails_env %>"
directory application_path
environment railsenv
daemonize true
pidfile "#{application_path}/tmp/pids/puma-#{railsenv}.pid"
state_path "#{application_path}/tmp/pids/puma-#{railsenv}.state"
stdout_redirect
"#{application_path}/log/puma-#{railsenv}.stdout.log"
"#{application_path}/log/puma-#{railsenv}.stderr.log"
threads 0, 16
bind "unix:///tmp/puma-#{railsenv}.sock"

#!/usr/bin/env puma

# start puma with:
# RAILS_ENV=production bundle exec puma -C ./config/puma.rb

application_path = "<%= current_path %>"
railsenv = "<%= rails_env %>"
directory application_path
environment railsenv
daemonize true
pidfile "#{application_path}/tmp/pids/puma.pid"
state_path "#{application_path}/tmp/pids/puma.state"
stdout_redirect
"#{application_path}/log/puma-#{railsenv}.stdout.log"
"#{application_path}/log/puma-#{railsenv}.stderr.log"
threads 0, 16
bind "unix:///tmp/puma-#{railsenv}.sock"

Remove rails_env from puma pid & state file names


<%= @question.title %>

<%= @question.content %>

    asked on @question.created_at
    last updated on @question.updated_at
    @question.user.first_name + " " + @question.user.last_name

  <form action="/questions/<%= @question.id %>" method="post" class="question_delete" </form>
  <input type="hidden" name="_method" value="delete">
  <input type="submit" value="Delete Question!">

<%= @question.title %>

<%= @question.content %>

    asked on <%= @question.created_at %>
    last updated on <%= @question.updated_at %>
    @question.user.first_name + " " + @question.user.last_name

Comments

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

<%= comment.content %>

      <% end %>

Create a New Comment

  <form class='comment-form' action='/questions/<%= @question.id %>/comments/new' method='post'>
    <textarea name='content' placeholder='Sample Comment'></textarea>
    <input type='submit'></input>
  </form>

  <form action="/questions/<%= @question.id %>" method="post" class="question_delete" </form>
  <input type="hidden" name="_method" value="delete">
  <input type="submit" value="Delete Question!">

Add comments to question view

Add comments to question view


  <% if current_user %>
  <%= @current_user.errors.messages if @current_user.errors.messages.any? %>
  <% end %>

Sign your copy of the book

<%= form_for users_path do |f| %>

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

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

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

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

 <%= f.submit %>

<% end %>

Build signup form with error handling.

Build signup form with error handling.


<%= @page.name %>

<%= link_to "Edit Page", edit_context_admin_page_path(@page) %>
<%= @page.body %>

<%= @page.name %>

<%= page_url(@page) %>

<%= link_to "Edit Page", edit_context_admin_page_path(@page) %>

<%= @page.body %>

Add linebreak after edit page link

Add linebreak after edit page link


Sign up

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

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

                    <%= f.label :email %>
                    <%= f.email_field :email, 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 %>

Sign up

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

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

                    <%= f.label :email %>
                    <%= f.email_field :email, 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' %>
                <%= link_to 'Or sign in', new_user_session_path %>
            <% end %>

Add sign in link to sign up form.

Add sign in link to sign up form.


<%= @challenger.name %> has challenged you on <%= @tournament.name %>. Failure to respond within 7 days will result in losing by default. Once you have played your game, follow the link to log your response:

<%= @challenger.name %> on <%= @tournament.name %>
<%= challenge_url @challenge %>

<%= @challenger.name %> has challenged you on <%= @tournament.name %><% if @challenge.message.present? %>:

===
<%= @challenge.message %>
===
<% else %>.<% end %>

Failure to respond within 7 days will result in losing by default. Once you have played your game, follow the link to log your response:

<%= @challenger.name %> on <%= @tournament.name %>
<%= challenge_url @challenge %>

Add challenge message to email

Add challenge message to email


  <% tags2 = my_module.tags[0..3] %>
  <% tags2.each do |tag| %>
    <div style="color: <%= tag.color %>"
         class="<%= "last" if tag == tags2[-1] %> help_tooltips"
         data-tooltiplink="<%= I18n.t('tooltips.link.task.color_tag') %>"
         data-tooltipcontent="<%= I18n.t('tooltips.text.task.color_tag') %>"
         title="<%= tag.name %>">

  <% end %>
  <% if tags2.count == 0 %>

  <% end %>
  <% if my_module.tags.count > 0 %>

      <%= my_module.tags.count %>

  <% else %>
    <span class="badge badge-indicator <%= "invisible" unless can_manage_module?(my_module) %>">
      +

  <% end %>

<div
  class="tags-container pull-right help_tooltips"
  data-tooltiplink="<%= I18n.t('tooltips.link.task.color_tag') %>"
  data-tooltipcontent="<%= I18n.t('tooltips.text.task.color_tag') %>"
>
  <% tags2 = my_module.tags[0..3] %>
  <% tags2.each do |tag| %>
    <div style="color: <%= tag.color %>"
         class="<%= "last" if tag == tags2[-1] %>"
         title="<%= tag.name %>">

  <% end %>
  <% if tags2.count == 0 %>

  <% end %>
  <% if my_module.tags.count > 0 %>

      <%= my_module.tags.count %>

  <% else %>
    <span class="badge badge-indicator <%= "invisible" unless can_manage_module?(my_module) %>">
      +

  <% end %>

Fix the tooltips positioning on canvas

Fix the tooltips positioning on canvas


<%= t("welcome.cards.title") %>

  <% @cards.find_each do |card| %>
    <%= render "card", card: card %>
  <% end %>

Remove unnecessary title on page cards

Remove unnecessary title on page cards


<div class="panel" id="<%= panel.id %>">

      <a data-toggle="collapse" data-parent="#accordion" href="#collapse<%= panel.id %>">Panel <%= index + 1 %>

  <div id="collapse<%= panel.id %>" class="panel-collapse collapse">

      <% panel.assets.each do |asset| %>
        <div class="draggable-image-box" id="<%= asset.id %>">
          <img class="draggable-image" src="<%= asset.direct_upload_url %>">

      <% end %>

        <%= panel_methods[panel.panel_type][0] %>

        <% panel_methods.each do |method, value_array| %>
          <p class="dropdown-option" id="method" data-images="<%= value_array[1] %>"><%= value_array[0] %>

        <% end %>

    <button class="panel-submit">Save Panel</button>

<div class="panel" id="<%= panel.id %>">

      <a data-toggle="collapse" data-parent="#accordion" href="#collapse<%= panel.id %>">Panel <%= index + 1 %>

  <div id="collapse<%= panel.id %>" class="panel-collapse collapse">

      <% panel.assets.each do |asset| %>
        <div class="draggable-image-box" id="<%= asset.id %>">
          <img class="draggable-image" src="<%= asset.direct_upload_url %>">

      <% end %>

        <%= panel_methods[panel.panel_type][0] %>

        <% panel_methods.each do |method, value_array| %>
          <p class="dropdown-option" id="<%= method %>" data-images="<%= value_array[1] %>"><%= value_array[0] %>

        <% end %>

    <button class="panel-submit">Save Panel</button>

Fix bug on method submission

Fix bug on method submission


Recipes

<% @recipes.each do |recipe| %>
  <%= link_to recipe.name, view_recipe_path(recipe.id) %>

<% end %>

<%= link_to 'Add New Recipe', new_recipe_path %>

Add a link to create a new recipe

Add a link to create a new recipe


<% content_for :title, @calendar.title %>
<% content_for :head do %>
  <meta name="description" content="<%= @calendar.description %>">

  <link rel="alternate" type="application/json" href="<%= calendar_path(@calendar, :format => :json) %>" />
  <% @calendar.divisions.each do |division| %>
    <link rel="alternate" type="application/json" href="<%= division_path(@calendar, division, :format => :json) %>" />
    <link rel="alternate" type="text/calendar" href="<%= division_path(@calendar, division, :format => :ics) %>" />
  <% end %>
<% end %>

<% content_for :title, @calendar.title %>
<% content_for :head do %>
  <meta name="description" content="<%= @calendar.description %>">

  <link rel="alternate" type="application/json" href="<%= calendar_path(@calendar, :format => :json) %>" />
  <% @calendar.divisions.each do |division| %>
    <link rel="alternate" type="application/json" href="<%= division_path(@calendar, division, :format => :json) %>" />
    <link rel="alternate" type="text/calendar" href="<%= division_path(@calendar, division, :format => :ics) %>" />
  <% end %>

  <%= render 'govuk_publishing_components/components/machine_readable_metadata',
    schema: :article,
    content_item: @content_item %>
<% end %>

Add schema.org data via the new component

This uses the new component built in
https://github.com/alphagov/govuk_publishing_components/pull/318.

https://trello.com/c/RLQI1IUV


<%= @user.username %>

<%= @user.description %>

        <%= avatar_for @user, size: 100 %>

      <%= @user.following.size %> Following
      <%= highlight(pluralize(@user.followers.size, "Follower"), /\d+/, highlighter: '\1') %>

    <% if user_signed_in? && current_user?(@user) %>
      <%= link_to "Edit", edit_user_path(@user), class: 'button green-border-button' %>
    <% end %>

    <%= follow_button_for(@user) %>

Recommended by <%= @user.username %>

    <%= render @recommended_posts %>

  <%= will_paginate @recommended_posts %>

Add animation recommended posts page

Add animation recommended posts page


<% if node[:platform] != "windows" -%>
#!/bin/bash
<% end -%>
<% @params["recipes"].each do |recipe| -%>
rs_run_recipe -n <%= recipe["recipe"] %> <%= if recipe["json_file"] != "" then "-j #{recipe["json_file"]}" end %>
<% end -%>

<% if node[:platform] != "windows" -%>
#!/bin/bash
<% end -%>
<% @params["recipes"].each do |recipe| -%>
rs_run_recipe -n <%= recipe["recipe"] %> <%= if recipe["json_file"] then "-j #{recipe["json_file"]}" end %>
<% end -%>

Check for nil rather than empty string

Check for nil rather than empty string


---
- job:
    name: check-content-store
    display-name: Check content-store content
    project-type: freestyle
    description: |
      This job checks for invalid content in the content-store
    logrotate:
      numToKeep: 30
      artifactDaysToKeep: 3
    triggers:
        - timed: '40 * * * *'
    builders:
      - shell: |
          #!/bin/bash
          set -eu

          cd "${WORKSPACE}"

          CONTENT_STORE=$(govuk_node_list --single-node -c content_store)

          ssh deploy@$CONTENT_STORE "rm -rf /tmp/govuk-content-schemas; git clone https://github.com/alphagov/govuk-content-schemas.git /tmp/govuk-content-schemas && cd /var/apps/content-store && GOVUK_CONTENT_SCHEMAS_PATH=/tmp/govuk-content-schemas govuk_setenv content-store bundle exec rake validate_content_against_schema"

---
- job:
    name: check-content-store
    display-name: Check content-store content
    project-type: freestyle
    description: |
      This job checks for invalid content in the content-store
    logrotate:
      numToKeep: 30
      artifactDaysToKeep: 3
    triggers:
        - timed: '40 * * * *'
    builders:
      - shell: |
          #!/bin/bash
          set -eu

          cd "${WORKSPACE}"

          CONTENT_STORE=$(govuk_node_list --single-node -c content_store)

          ssh deploy@$CONTENT_STORE "rm -rf /tmp/govuk-content-schemas; git clone https://github.com/alphagov/govuk-content-schemas.git /tmp/govuk-content-schemas --depth=1 && cd /var/apps/content-store && GOVUK_CONTENT_SCHEMAS_PATH=/tmp/govuk-content-schemas govuk_setenv content-store bundle exec rake validate_content_against_schema"

Use shallow clone for content schemas in consistency task

This makes cloning the repo a lot faster, because it has a lot of
history.

https://trello.com/c/FesP8XSc


<% case leave_type %>
<% when 'paternity' %>

  The latest date for them to [claim SPP](/employers-paternity-pay-leave/notice-period) is usually 15 days before they want it to start.
<% when 'paternity_adoption' %>

  The latest date for them to [claim SPP](/employers-paternity-pay-leave/adoption) is usually 15 days before they want it to start.
<% end %>

<% case leave_type %>
<% when 'paternity' %>

  The latest date for them to [claim SPP](/employers-paternity-pay-leave/notice-period) is usually 15 days before they want it to start.
<% when 'paternity_adoption' %>

  The latest date for them to [claim SPP](/employers-paternity-pay-leave/adoption) is usually 15 days before they want it to start.
<% when 'adoption' %>

  The latest date for them to [claim SAP](/employers-adoption-pay-leave/entitlement) is usually 15 days before they want it to start.
<% end %>

Add missing phrase for maternity-paternity-calculator

The text was supplied by @lutgendorff.

This adds a useful phrase when `leave_type == 'adoption'`.

Before converting to ERB, a `leave_type` of 'adoption' resulted in the
"adoption_spp_claim_link" placeholder appearing in the outcome page.

See the following URL for an example of the placeholder appearing incorrectly
(NOTE. This will no longer be visible once the switch to ERB has been deployed):
 https://www.gov.uk/maternity-paternity-calculator/y/adoption/no/2015-04-05/2015-04-06/yes/no/yes/2015-04-06/2015-01-01/2014-11-01/every_4_weeks/3000.0/usual_paydates/2015-01-01


    <%= link_to 'Customer support', '#', class: 'chat-start' %>
    <%= link_to '×'.html_safe, '#', class: 'chat-stop' %>

    <%= form_tag nil, class: 'chat-message-form' do %>
      <%= text_field_tag 'content', nil, class: 'chat-message-input' %>
    <% end %>

    <%= link_to t(:customer_service), '#', class: 'chat-start' %>
    <%= link_to '×'.html_safe, '#', class: 'chat-stop' %>

    <%= form_tag nil, class: 'chat-message-form' do %>
      <%= text_field_tag 'content', nil, class: 'chat-message-input' %>
    <% end %>

Change customer service text to i18n in partial


#!/bin/sh
exec 2>&1

umask 077
ulimit -n 65536
ulimit -l unlimited
sysctl -w vm.max_map_count=262144

export ES_HOME=<%= @options[:install_directory] %>/elasticsearch
export ES_JAVA_OPTS="
  -server
  -Xms<%= @options[:max_memory] %> -Xmx<%= @options[:max_memory] %>
  -Djava.net.preferIPv4Stack=true
  -XX:+UseParNewGC
  -XX:+UseConcMarkSweepGC
  -XX:+CMSParallelRemarkEnabled
  -XX:SurvivorRatio=8
  -XX:MaxTenuringThreshold=1
  -XX:CMSInitiatingOccupancyFraction=75
  -XX:+UseCMSInitiatingOccupancyOnly
  -XX:+HeapDumpOnOutOfMemoryError"
export JAVA_HOME=<%= @options[:install_directory] %>/embedded/jre

exec chpst -P -U <%= node['graylog']['user']['username'] %> -u <%= node['graylog']['user']['username'] %> $ES_HOME/bin/elasticsearch

#!/bin/sh
exec 2>&1

umask 077
ulimit -n 65536
ulimit -l unlimited
sysctl -w vm.max_map_count=262144

export ES_HOME=<%= @options[:install_directory] %>/elasticsearch
export ES_JAVA_OPTS="
  -server
  -Xms<%= @options[:max_memory] %> -Xmx<%= @options[:max_memory] %>
  -Djava.net.preferIPv4Stack=true
  -Dlog4j2.disable.jmx=true
  -XX:+UseParNewGC
  -XX:+UseConcMarkSweepGC
  -XX:+CMSParallelRemarkEnabled
  -XX:SurvivorRatio=8
  -XX:MaxTenuringThreshold=1
  -XX:CMSInitiatingOccupancyFraction=75
  -XX:+UseCMSInitiatingOccupancyOnly
  -XX:+HeapDumpOnOutOfMemoryError"
export JAVA_HOME=<%= @options[:install_directory] %>/embedded/jre

exec chpst -P -U <%= node['graylog']['user']['username'] %> -u <%= node['graylog']['user']['username'] %> $ES_HOME/bin/elasticsearch

Add back setting to disable JMX in log4j 2

If the setting is missing, Log4j 2 (used in Elasticsearch 5.x) will try to
register MBeans, which fails due to JMX being disabled.

Refs #46
Refs #48


Total Mac Addresses: <%=@events.count%>

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

Mac Address:<%=event.macaddress%>

        RSSI:<%=event.rssi%>

        Visited:<%=event.updates%>

  <%end%>

Add count of mac addresses to view

Add count of mac addresses to view


<%= listing.title %>

Location: <%= listing.location %>

Price: $ <%= listing.price %>

<%= listing.content %>

Contact: <%= listing.owner_email %>

<%= listing.title %>

belongs to <%= listing.category.title %>

Location: <%= listing.location %>

Price: $ <%= listing.price %>

<%= listing.content %>

Contact: <%= listing.owner_email %>

Add category in a single listing view.

Add category in a single listing view.


<div class="form-field answer-field qtype-<%= set.questioning.qtype.name %>
            <%= context.read_only? ? "read-only" : "editable" %>
            <%= set.children.any?(&:lengthy?) ? "lengthy" : "" %>">

  <% unless context.read_only? %>
    <%= hidden_field_tag context.input_name(:id), set.id %>
    <%= hidden_field_tag context.input_name(:type), "AnswerSet" %>
    <%= hidden_field_tag context.input_name(:questioning_id), set.questioning_id %>
    <%= hidden_field_tag context.input_name(:_relevant), "true", class: "relevant" %>
    <%= hidden_field_tag context.input_name(:_destroy), "false" %>
  <% end %>

  <%= render("hierarchical_responses/answers/answer_info", node: set) %>

      <% partial = context.read_only? ? "cascading_read_only" : "cascading_editable" %>
      <%= render("hierarchical_responses/answers/partial", answer_set: set, context: context) %>

<div class="form-field answer-field qtype-<%= set.questioning.qtype.name %>
            <%= context.read_only? ? "read-only" : "editable" %>
            <%= set.children.any?(&:lengthy?) ? "lengthy" : "" %>">

  <% unless context.read_only? %>
    <%= hidden_field_tag context.input_name(:id), set.id %>
    <%= hidden_field_tag context.input_name(:type), "AnswerSet" %>
    <%= hidden_field_tag context.input_name(:questioning_id), set.questioning_id %>
    <%= hidden_field_tag context.input_name(:_relevant), "true", class: "relevant" %>
    <%= hidden_field_tag context.input_name(:_destroy), "false" %>
  <% end %>

  <%= render("hierarchical_responses/answers/answer_info", node: set) %>

      <% partial = context.read_only? ? "cascading_read_only" : "cascading_editable" %>
      <%= render("hierarchical_responses/answers/#{partial}", answer_set: set, context: context) %>

Fix bug in answer set partial

8540: Fix bug in answer set partial


/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.ejb.qualified_abstract_service_test_name) %>;

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public abstract class <%= repository.ejb.abstract_service_test_name %>
  extends <%= repository.jpa? ? repository.jpa.qualified_base_entity_test_name : 'org.realityforge.guiceyloops.server.AbstractServerTest' %>
{
  @java.lang.Override
  protected com.google.inject.Module getDefaultTestModule()
  {
    return new <%= repository.ejb.qualified_services_module_name %>( this );
  }

  @java.lang.Override
  protected com.google.inject.Module[] getModules()
  {
    final java.util.ArrayList<com.google.inject.Module> modules = new java.util.ArrayList<>();
    java.util.Collections.addAll( modules, super.getModules() );
<% repository.ejb.extra_test_modules.each do |test_module| -%>
    modules.add( new <%= test_module %>() );
<% end -%>
    return modules.toArray( new com.google.inject.Module[ modules.size() ] );
  }
}

/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.ejb.qualified_abstract_service_test_name) %>;

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public abstract class <%= repository.ejb.abstract_service_test_name %>
  extends <%= repository.jpa? ? repository.jpa.qualified_base_entity_test_name : 'org.realityforge.guiceyloops.server.AbstractServerTest' %>
{
  @javax.annotation.Nullable
  protected com.google.inject.Module new<%= repository.name %>ServicesModule()
  {
    return new <%= repository.ejb.qualified_services_module_name %>( this );
  }

  @java.lang.Override
  protected com.google.inject.Module getDefaultTestModule()
  {
    return null;
  }

  @java.lang.Override
  protected com.google.inject.Module[] getModules()
  {
    final java.util.ArrayList<com.google.inject.Module> modules = new java.util.ArrayList<>();
    java.util.Collections.addAll( modules, super.getModules() );
<% repository.ejb.extra_test_modules.each do |test_module| -%>
    modules.add( new <%= test_module %>() );
<% end -%>
    addModule( modules, new<%= repository.name %>ServicesModule() );
    return modules.toArray( new com.google.inject.Module[ modules.size() ] );
  }
}

Make it easy to customize the services module in same way it is easy to customize entity modules


[OPTIONS]
Compatibility=1.1 or later
Compiled file="<%=FileUtils.win_path @chm_path%>"
Contents file="<%=FileUtils.win_path @hhc%>"
Index file="<%=FileUtils.win_path @hhk%>"
<%if @default_topic%>Default topic=<%=FileUtils.win_path(File.basename(@html_path)/@default_topic.html_path)%>
<%end%>Display compile progress=No
Full-text search=Yes
Language=0x409 English (United States)
Title=<%=@global.title%>

[FILES]
<%@bundle.pages.each do |page|
	%><%=FileUtils.win_path( @html_path/page.html_path) %>
<%end
@bundle.extras.each do |file|
	%><%=FileUtils.win_path @html_path/file%>
<%end%>

[INFOTYPES]

[OPTIONS]
Compatibility=1.1 or later
Compiled file="<%=FileUtils.win_path @chm_path%>"
Contents file="<%=FileUtils.win_path @hhc%>"
Index file="<%=FileUtils.win_path @hhk%>"
<%if @default_topic%>Default topic=<%=FileUtils.win_path(File.basename(@html_path)/@default_topic.page.html_path)%>
<%end%>Display compile progress=No
Full-text search=Yes
Language=0x409 English (United States)
Title=<%=@global.title%>

[FILES]
<%@bundle.pages.each do |page|
	%><%=FileUtils.win_path( @html_path/page.html_path) %>
<%end
@bundle.extras.each do |file|
	%><%=FileUtils.win_path @html_path/file%>
<%end%>

[INFOTYPES]

Fix HHP generation for default topics.

Fix HHP generation for default topics.


<a target="_blank" href="https://sentry.io/govuk/app-<%= @app_name %>/">Errors for for <%= @app_name %> (Sentry)

<a target="_blank" href="https://errbit.<%= @app_domain %>/">Errbit

<a target="_blank" href="https://alert.<%= @app_domain %>/">Icinga

<a target="_blank" href="https://docs.publishing.service.gov.uk/apps/<%= @docs_name %>.html"><%= @app_name %> documentation

Dashboard feedback

Useful links

<a target="_blank" href="https://sentry.io/govuk/app-<%= @app_name %>/">Errors for <%= @app_name %> (Sentry)

<a target="_blank" href="https://errbit.<%= @app_domain %>/">Errbit

<a target="_blank" href="https://alert.<%= @app_domain %>/">Icinga

<a target="_blank" href="https://docs.publishing.service.gov.uk/apps/<%= @docs_name %>.html"><%= @app_name %> documentation

Dashboard feedback

Useful links

Fix Sentry link in Grafana dashboards

Fix Sentry link in Grafana dashboards

Removes duplicate 'for'.


class <%= migration_name %> < ActiveRecord::Migration
  def change
<% attachments.each do |attachment| -%>
    add_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_file_name, :string
    add_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_content_type, :string
    add_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_file_size, :integer
    add_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_updated_at, :datetime
    add_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_fingerprint, :string, length: 32
<% end -%>
  end
end

class <%= migration_name %> < ActiveRecord::Migration
  def self.up
<% attachments.each do |attachment| -%>
    add_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_file_name, :string
    add_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_content_type, :string
    add_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_file_size, :integer
    add_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_updated_at, :datetime
<% end -%>
  end

  def self.down
<% attachments.each do |attachment| -%>
    remove_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_file_name
    remove_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_content_type
    remove_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_file_size
    remove_column :<%= class_name.underscore.camelize.tableize %>, :<%= attachment %>_updated_at
<% end -%>
  end
end

Revert "Updated migration generator template."

Rails 3.0.x doesn't support new migration style

This reverts commit b7bfdec3b07cb348431510a3b400a40c110088c0.


Hey <%= @application.first_name %>!

Thanks for applying to Hack Club. We've received your application and you
can expect to hear from us shortly. If you have any questions, please
don't hesitate to email me at zach@hackclub.com. Below is a copy of your
application for your records.

<%= render "club_application/club_application" %>

Hey <%= @application.first_name %>!

Thanks for applying to Hack Club. We've received your application and you
can expect to hear from us shortly. If you have any questions, please
don't hesitate to email the team at team@hackclub.com. Below is a copy of your
application for your records.

<%= render "club_application/club_application" %>

Change Zach's email to the team@ email

Change Zach's email to the team@ email


<!DOCTYPE html>
<html>
<head>
  <title>WickedContacts</title>
  <%= stylesheet_link_tag    "application", media: "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>Ember Appkit Rails</title>
  <%= stylesheet_link_tag    "application", media: "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

Fix title on Ember Appkit Rails welcome page * Change title from WickedContacts to Ember Appkit Rails


class <%= migration_class_name %> < ActiveRecord::Migration

  def self.up
<% counter_cache_columns.each do |column| %>
    add_column :<%= table_name %>, :<%= column %>, :integer, :null => false, :default => 0
<% end %>
  end

  def self.down
<% counter_cache_columns.each do |column| %>
    remove_column :<%= table_name %>, :<%= column %>
<% end %>
  end

end

class <%= migration_class_name %> < ActiveRecord::Migration
  def self.up<% counter_cache_columns.each do |column| %>
    add_column :<%= table_name %>, :<%= column %>, :integer, null: false, default:  0
<% end %>  end

  def self.down<% counter_cache_columns.each do |column| %>
    remove_column :<%= table_name %>, :<%= column %>
<% end %>  end
end

Change generated migration files to use new hash syntax

Because it's almost 2018. Fixes #203


<% if spree_current_user %>

<%= Spree.t(:logged_in_as) %>: <%= spree_current_user.email %>

<%= link_to Spree.t(:account), spree.edit_user_path(spree_current_user) %>

<%= link_to Spree.t(:logout), spree.logout_path %>

    <% if spree.respond_to? :root_path %>

         <%= link_to Spree.t(:back_to_store), spree.root_path, :target => '_blank' %>

    <% end %>

<% end %>

<% if spree_current_user %>

<%= Spree.t(:logged_in_as) %>: <%= spree_current_user.email %>

<%= link_to Spree.t(:account), spree.edit_user_path(spree_current_user) %>

<%= link_to Spree.t(:logout), spree.admin_logout_path %>

    <% if spree.respond_to? :root_path %>

         <%= link_to Spree.t(:back_to_store), spree.root_path, :target => '_blank' %>

    <% end %>

<% end %>

Change admin logout path to use the admin namespaced logout path


<% content_for(:page_title, "#{@location.name} - Pension Wise") %>
<% content_for(:meta_description, "Find out the address, booking hours and how to book a Pension Wise appointment at the #{@location.name}") %>

<%= @location.name %>

Address

<%= @location.address %>

How to book

Call <%= @location.phone %>.

Tell the operator that you want to book a Pension Wise appointment at <%= @location.name %>.

You can also book in person by visiting a Citizens Advice bureau near you.

<% unless @location.hours.blank? %>

Booking hours

<%= simple_format(@location.hours) %>

<% end %>

We can’t answer specific questions about your pension on this number.

What you need to know for your face-to-face appointment.

<% content_for(:page_title, "#{@location.name} - Pension Wise") %>
<% content_for(:meta_description, "Find out the address, booking hours and how to book a Pension Wise appointment at the #{@location.name}") %>

<%= @location.name %>

Address

<%= simple_format(@location.address) %>

How to book

Call <%= @location.phone %>.

Tell the operator that you want to book a Pension Wise appointment at <%= @location.name %>.

You can also book in person by visiting a Citizens Advice bureau near you.

<% unless @location.hours.blank? %>

Booking hours

<%= simple_format(@location.hours) %>

<% end %>

We can’t answer specific questions about your pension on this number.

What you need to know for your face-to-face appointment.

Format location address over multiple lines


<header class="header">
  <div class="l-container">
    <%= image_tag('mas-logo.svg', size: "216x36", alt: "the Money Advice Service") %>
  </div>
</header>

<header class="header">
  <div class="l-container">
    <%= image_tag('mas-logo.png', size: "216x36", alt: "the Money Advice Service") %>
  </div>
</header>

Replace svg logo with png logo.

Replace svg logo with png logo.


<%= f.label t("fb_app_plugin.views.myprofile.catalogs.profile_chooser_label") %>
<%= f.text_field :profile_ids, "data-placeholder" => t('fb_app_plugin.views.page_tab.profile.placeholder'), onchange: 'fb_app.page_tab.config.profile.onchange($(this))' %>

<%= javascript_tag do %>
  jQuery(document).ready(function() {
    var selector = '#page-tab-<%= page_tab.id || 'new' %> #config-type-profile #page_tab_profile_ids'

    fb_app.page_tab.config.profile.onchange($(selector))

    open_graph.autocomplete.init(
      <%= url_for(controller: :fb_app_plugin_page_tab, action: :enterprise_search).to_json %>,
      selector,
      <%= [page_tab.profile].compact.map{ |p| {value: p.id, label: render('open_graph_plugin_myprofile/ac_profile', profile: p), } }.to_json %>,
      {tokenfield: {limit: 1}}
    )
  })
<% end %>

Add labels for catalog settings 2

Add labels for catalog settings 2


BOOK TITLE - CHAPTER TITLE

<%= render_elements(@chapter.elements) %>

<%= @chapter.book.title %>

<%= @chapter.title %>

<%= render_elements(@chapter.elements) %>

Add real book and chapter title to show page


  Start time changed by Phil Carrillo 2 days ago.
  Not all events would show up, e.g. reminder events wouldn't be shown.
  And we may actually want to show events that we don't currently generate events for.

<li class="event event-<%= event.id -%>">
  <%= event.text %>

    <%= distance_of_time_in_words(event.created_at,
          Time.zone.now,
          options = {include_seconds: true }) %> ago

Make events work with no testing.

Make events work with no testing.


    <% if @origins %>
      <% @origins.each do |origin| %>

        <%= link_to origin_defined_words_path(origin) do %>
          <%= image_tag("origin-flags/Mexico", class: "flag") %>

          <%= origin.country %>
        <% end %>

      <% end %>
    <% end %>

    <% if @origins %>
      <% @origins.each do |origin| %>

        <%= link_to origin_defined_words_path(origin) do %>
          <%= image_tag("origin-flags/Mexico.png", class: "flag") %>

          <%= origin.country %>
        <% end %>

      <% end %>
    <% end %>

Add extensions to image paths

Add extensions to image paths


Comments

    <textarea id="comments" class="form-control" rows="10" readonly="readonly"><%= @map_note.comment %></textarea>

    <button class="pull-left btn btn-default hideComments">Close Comments</button>

Add extra parsing step for safety

Add extra parsing step for safety


<%= notice %>

<%= @event.name %>

<%= @event.location %>

<%= @event.start.to_formatted_s(:long) %> to <%= @event.end.to_formatted_s(:long) %>

    GM Name
    GM Email
    GM Forum Name
    Scenario
    Session/Time Slot
    Table Assignment

  <% @game_masters.each do |gm| %>

        <%= gm.user_event.user.name %>
        <%= gm.user_event.user.email %>
        <%= gm.user_event.user.forum_username %>
        <%= gm.table.scenario.long_name %>
        <%= gm.table.session.name %>
        <%= gm.table_number %>

  <% end %>

<%= notice %>

<%= @event.name %>

<%= @event.location %>

<%= @event.start.to_formatted_s(:long) %> to <%= @event.end.to_formatted_s(:long) %>

    GM Name
    GM Email
    GM Forum Name
    Scenario
    Session/Time Slot
    Table Type
    Table Assignment

  <% @game_masters.each do |gm| %>

      <%= gm.user_event.user.name %>
      <%= gm.user_event.user.email %>
      <%= gm.user_event.user.forum_username %>
      <%= gm.table.scenario.long_name %>
      <%= gm.table.session.name %>
      <%= gm.table.online? ? 'Online' : 'In Person' %>
      <%= gm.table_number %>

  <% end %>

Add table type to gm_list

Add table type to gm_list


<%= @title -%>

<% unless parent_object %>

crantastic users have written <%= pluralize Review.count, "review" %>.  These are the most recent reviews:

<% end %>

<% for review in @reviews %>

<%= link_to review.user.login, review.user  %>
    <% if review.rating %>gave
    <%= package_version(review.package, review.version) %>
    a <%=h review.rating %>, and <% end %> says
    "<%= link_to(truncate(review.description, :length => 50),
                 package_review_path(review.package, review)) %>"

<% end %>

<%= @title -%>

<% unless parent_object %>

crantastic users have written <%= pluralize Review.count, "review" %>.
    These are the most recent reviews:

<% end %>

  <% for review in @reviews %>

<%= link_to review.user.login, review.user -%>
      <% if review.rating %>
        gave <%= package_version(review.package, review.version) -%> a
        <%=h review.rating %>,
      <% else %>
        reviewed <%= package_version(review.package, review.version) -%>,
      <% end %>and says
      "<%= link_to(truncate(review.description, :length => 50),
                   package_review_path(review.package, review)) %>"

  <% end %>

Package link was missing from the review index if no vote was given. Fixed.


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

  <a class="item other-hiker" id="hikers<%= user.id %>" href="/users/<%= user.id %>">

        <%= user.firstname %> <%= user.lastname %>

        <%= user.city %>, <%= user.state %>

<% end %>

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

  <a class="item other-hiker" id="hikers<%= user.id %>" href="/users/<%= user.id %>">
	 <img class="ui avatar image" src="<%= avatar_url(user)%>">

        <%= user.firstname %> <%= user.lastname %>

        <%= user.city %>, <%= user.state %>

<% end %>

Add gravatar to other hikers on all hikers page


<% provide(:title, 'Propiedades::Registrar') %>
<% Cities.data_path = Rails.root.join('config', 'extras', 'cities') %>

Registro de Propiedad

   	<%= form_for @property, url: {action: "create"} do |f| %>
    	<%@countries = CountriesWithCitiesGrouper.new('Americas')%>
    	<%= f.label :city, "Ciudad" %>
      <%= f.select :city, @countries.cities_for('Colombia'),
               { include_blank: true },
               { class: 'chosen-select' } %>

      <%= f.label :neighbor, "Barrio:" %>
      <%= f.text_field :neighbor %>

      <%= f.label :address, "Ubicación:" %>
      <%= f.text_field :address %>

      <%= f.label :area, "Área:" %>
      <%= f.text_field :area %>

      <%= f.label :building_name, "Urbanización:" %>
      <%= f.text_field :building_name %>

      <%= f.label :floors_number, "# Pisos:" %>
      <%= f.text_field :floor %>

			<%= f.label :floors, "Piso:" %>
      <%= f.text_field :floor %>

      <%= f.submit "Registrar", class: "btn btn-primary" %>
    <% end %>

<% provide(:title, 'Propiedades::Registrar') %>
<% Cities.data_path = Rails.root.join('config', 'extras', 'cities') %>

Registro de Propiedad

   	<%= form_for @property, url: {action: "create"} do |f| %>
    	<%@countries = CountriesWithCitiesGrouper.new('Americas')%>
    	<%= f.label :city, "Ciudad" %>
      <%= f.select :city, @countries.cities_for('Colombia'),
               { include_blank: true },
               { class: 'chosen-select' } %>

      <%= f.label :neighbor, "Barrio:" %>
      <%= f.text_field :neighbor %>

      <%= f.label :location, "Dirección:" %>
      <%= f.text_field :location %>

      <%= f.label :area, "Área del Inmueble*:" %>
      <%= f.text_field :area %>

      <%= f.label :building_name, "Urbanización:" %>
      <%= f.text_field :building_name %>

      <%= f.label :floors_number, "# Pisos:" %>
      <%= f.text_field :floor %>

			<%= f.label :floors, "Piso:" %>
      <%= f.text_field :floor %>

      <%= f.submit "Registrar", class: "btn btn-primary" %>
    <% end %>

Add location field to new property form.


<% require 'ext/float' %>
<?xml version="1.0" encoding="UTF-8"?>
<Run>
  <GameIcon />
  <GameName>
  </GameName>
  <CategoryName><%= @run.name %></CategoryName>
  <Offset><%= Time.at(@run.offset || 0).utc.strftime("%H:%M:%S").strip %></Offset>
  <AttemptCount><%= @run.attempts || 0 %></AttemptCount>
  <RunHistory />
  <Segments>
  <% @run.splits.each do |split| %>
    <Segment>
      <Icon />
      <Name><%= split.name %></Name>
      <PersonalBestSplitTime><%= Time.at(split.finish_time || 0).utc.strftime("%H:%M:%S.%7N").strip %></PersonalBestSplitTime>
      <BestSegmentTime><%= Time.at(split.best.duration || 0).utc.strftime("%H:%M:%S.%7N").strip %></BestSegmentTime>
      <SegmentHistory />
    </Segment>
  <% end %>
  </Segments>
</Run>

Fix a 500 when downloading encoded LiveSplit files


<%
  @title = :sequence_edit_title.t(name: @sequence.unique_format_name)

  tabs = [
    link_with_query(:cancel_and_show.t(type: @back_object.type_tag),
                    @back_object.show_link_args)
  ]

  @tabsets = { right: draw_tab_set(tabs) }
%>

<%= render(partial: "observation_title",
           locals: { observation: @sequence.observation }) %>

<%= form_for(:sequence, url: add_query_param(action: :edit, back: @back)) do |form| %>
  <%= render(partial: "form", locals: {form: form}) %>
<% end %>

  <%= :CREATED_BY.t %>:
  <%= user_link(@sequence.user) %>

<%= show_object_footer(@sequence) %>

<%
  @title = :sequence_edit_title.t(name: @sequence.unique_format_name)

  tabs = [
    link_with_query(:cancel_and_show.t(type: @back_object.type_tag),
                    @back_object.show_link_args)
  ]

  @tabsets = { right: draw_tab_set(tabs) }
%>

<%= render(partial: "observation_title",
           locals: { observation: @sequence.observation }) %>

<%= form_for(:sequence, url: add_query_param(action: :update, back: @back)) do |form| %>
  <%= render(partial: "form", locals: {form: form}) %>
<% end %>

  <%= :CREATED_BY.t %>:
  <%= user_link(@sequence.user) %>

<%= show_object_footer(@sequence) %>

Make edit form submit to update action

Make edit form submit to update action

Fixes bug exposed by test_edit_redirect


<% skills_by_cat.each_slice(3) do |slice| %>

    <% slice.each_with_index do |skill_cat, index| %>

<%= skill_cat.name %>

        <% skill_cat.skills.each do |skill| %>

<%= skill.name %>

        <% end %>

    <% end %>

<% end %>

Use xs instead of sm columns in skills partial

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


# /etc/cron.d/fr2_data: crontab fragment for
# retrieving the xml data, etc from the gpo
00 11 	* * 1-5	<%=@run_user%>	cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/local/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH data:daily >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log  2>&1

# /etc/cron.d/fr2_data: crontab fragment for
# retrieving the xml data, etc from the gpo
0,5,10,15,20,25,30,35,40,45,50,55 8-23 	* * 1-5	<%=@run_user%>	cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH data:daily >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log  2>&1

Update crontab for retrying data download when updating fr2 data each morning if data is not present.


<% text_for :title do %>
  The estate is shared equally between the brothers or sisters.
<% end %>

<% govspeak_for :body do %>
  If a brother or sister has already died, their children (nieces and nephews of the deceased) inherit in their place.
<% end %>

<% govspeak_for :next_steps do %>
  <%= render partial: 'next_step_links', locals: { next_steps: calculator.next_steps } %>
<% end %>

<% text_for :title do %>
  The estate is shared equally between the brothers or sisters.
<% end %>

<% govspeak_for :body do %>
  If a brother or sister has died before the deceased died, their children (nieces and nephews of the deceased) inherit in their place.
<% end %>

<% govspeak_for :next_steps do %>
  <%= render partial: 'next_step_links', locals: { next_steps: calculator.next_steps } %>
<% end %>

Update to inheritance sentence - outcome 4


#!/bin/bash

RUN_DIR=/var/vcap/sys/run/apiserver
PIDFILE=$RUN_DIR/apiserver.pid
JOB_DIR=/var/vcap/jobs/apiserver

source /var/vcap/packages/common/utils.sh

case $1 in

  start)
    pid_guard $PIDFILE "apiserver"

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

    echo $$ > $PIDFILE

    exec chpst -u vcap:vcap /var/vcap/packages/kubernetes/kube-apiserver \
--address=0.0.0.0 \
--portal_net=10.247.0.0/16 \
--port=8080 \
--etcd_servers=http://127.0.0.1:4001 \
--logtostderr=true
    ;;

  stop)
    kill_and_wait $PIDFILE

    ;;

  *)
    echo "Usage: apiserver_ctl {start|stop}"

    ;;

esac

#!/bin/bash

RUN_DIR=/var/vcap/sys/run/apiserver
PIDFILE=$RUN_DIR/apiserver.pid
JOB_DIR=/var/vcap/jobs/apiserver

source /var/vcap/packages/common/utils.sh

case $1 in

  start)
    pid_guard $PIDFILE "apiserver"

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

    echo $$ > $PIDFILE

    exec chpst -u vcap:vcap /var/vcap/packages/kubernetes/kube-apiserver \
--address=0.0.0.0 \
--portal_net=10.100.0.0/16 \
--port=8080 \
--etcd_servers=http://127.0.0.1:4001 \
--logtostderr=true
    ;;

  stop)
    kill_and_wait $PIDFILE

    ;;

  *)
    echo "Usage: apiserver_ctl {start|stop}"

    ;;

esac

Change apiserver portal_net to 10.100.0.0/16


<%= @article.title %>

<%= render partial:'favorites/favorite_form' %>

<%= link_to 'Back to Group',
  		@group %>

<%= @article.body %>

Added by:

<%= link_to @article.writer.username,
		 user_path(@article.writer_id) %>

<% if  current_user.id == @article.writer_id %>
    <%= link_to 'Destroy',
    	group_article_path(@group, @article),
    	method: :delete,
		data: { confirm: 'Last chance, still want to delete?'} %>
  | <%= link_to 'Edit',
  		edit_group_article_path(@group, @article) %>
<%end%>

  <%= render '/tags/new_tag' %>
  <%= render '/tags/tags' %>

<%= @article.title %>

<%= render partial:'favorites/favorite_form' %>

<%= link_to 'Back to Group',
  		@group %>

<%= @article.body %>

Added by:

<%= link_to @article.writer.username,
		 user_path(@article.writer_id) %>

<% if logged_in? %>
<% if  current_user.id == @article.writer_id %>
    <%= link_to 'Destroy',
    	group_article_path(@group, @article),
    	method: :delete,
		data: { confirm: 'Last chance, still want to delete?'} %>
  | <%= link_to 'Edit',
  		edit_group_article_path(@group, @article) %>
<% end %>
<% end %>

  <%= render '/tags/new_tag' %>
  <%= render '/tags/tags' %>

Add missing logged in method

Add missing logged in method


    <%= @issue.title %>

    <%= @issue.description %>

        <% @issue.position_groups.each do |label, parties| %>

            <div class="canvas parties_<%= parties.count %>"><%=  %>
              <% parties.each do |party| %>
                <a class="issue-graph-party" href="<%= party_url(party) %>">
                  <%= image_tag party.logo.versions[:medium], alt: "#{party.name}s logo" %>

              <% end %>

              <%= image_tag label.icon, class: "icon" %>

                <%= label.text %>

        <% end %>

        <% @issue.position_groups.each do |label, parties| %>

            <%= image_tag label.icon, class: "icon" %>
            <%= label.text %>

        <% end %>

<%= @issue.explanation %>

    <%= @issue.title %>

    <%= @issue.description %>

        <% @issue.position_groups.each do |label, parties| %>

            <div class="canvas parties_<%= parties.count %>"><%=  %>
              <% parties.each do |party| %>
                <%= link_to issue_url(@issue, anchor: party.slug), class: 'issue-graph-party' do %>
                  <%= image_tag party.logo.versions[:medium], alt: "#{party.name}s logo" %>
                <% end %>

              <% end %>

              <%= image_tag label.icon, class: "icon" %>

                <%= label.text %>

        <% end %>

        <% @issue.position_groups.each do |label, parties| %>

            <%= image_tag label.icon, class: "icon" %>
            <%= label.text %>

        <% end %>

<%= @issue.explanation %>

Widgets: Replace party link with anchored issue link.


---
pageable: true
---

Archive for
  <% case page_type
     when 'day' %>
    <%= Date.new(year, month, day).strftime('%b %e %Y') %>
  <% when 'month' %>
    <%= Date.new(year, month, 1).strftime('%b %Y') %>
  <% when 'year' %>
    <%= year %>
  <% end %>

<% if paginate && num_pages > 1 %>

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

  <% if prev_page %>

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

  <% end %>
<% end %>

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

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

  <% end %>

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

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

  <% end %>
<% end %>

---
pageable: true
---

Archive for
  <% case page_type
     when 'day' %>
    <%= Date.new(year, month, day).strftime('%e %B %Y') %>
  <% when 'month' %>
    <%= Date.new(year, month, 1).strftime('%B %Y') %>
  <% when 'year' %>
    <%= year %>
  <% end %>

<% if paginate && num_pages > 1 %>

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

  <% if prev_page %>

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

  <% end %>
<% end %>

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

<%= link_to article.title, article %> - <%= article.date.strftime('%d/%m/%y') %>

  <% end %>

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

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

  <% end %>
<% end %>

Update date formats for calendar pages.

Update date formats for calendar pages.


<%= flash.alert %>
<%= form_for :question, url: {action: "create"} do |f| %>

<%= label :title, "Title: " %>
<%= f.text_field :title %>

<%= f.hidden_field :user_id, value: current_user.id %>

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

<%= f.text_area :body %>

<%= f.submit "Submit Question" %>

<% end %>

Remove flash alert from new question view.


Add div map-container to surround map-canvas in index view


<%= button_to 'match' %>

<%= parcel.description %>

<%= parcel.destination_address.city %>

    <%= parcel.deliver_by %>

    <%= form_for parcel, :method => :delete do  %>
      <%= submit_tag "Delete" %>
    <% end %>

Fix indents in parcel partial

Fix indents in parcel partial


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

<a href="/invites/accept/<%= @team_invite.invitation_code %>">Join <%= @team.name %>

<%= @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) %>

Update invite URL in email

Update invite URL in email


module Admin
  class <%= class_name.pluralize %>Controller < Admin::ApplicationController
    # To customize the behavior of this controller,
    # simply overwrite any of the RESTful actions. For example:
    #
    # def index
    #   super
    #   @resources = <%= class_name %>.all.paginate(10, params[:page])
    # end

    # Define a custom finder by overriding the `find_resource` method:
    # def find_resource(param)
    #   <%= class_name %>.find_by!(slug: param)
    # end

    # See https://administrate-prototype.herokuapp.com/customizing_controller_actions
    # for more information
  end
end

module Admin
  class <%= class_name.pluralize %>Controller < Admin::ApplicationController
    # To customize the behavior of this controller,
    # simply overwrite any of the RESTful actions. For example:
    #
    # def index
    #   super
    #   @resources = <%= class_name %>.
    #     page(params[:page]).
    #     per(10)
    # end

    # Define a custom finder by overriding the `find_resource` method:
    # def find_resource(param)
    #   <%= class_name %>.find_by!(slug: param)
    # end

    # See https://administrate-prototype.herokuapp.com/customizing_controller_actions
    # for more information
  end
end

Use Kaminari syntax in controller's comment hint

Wrap the method chain onto multiple lines because it's likely
the developer will want to add some `order` details or other scopes
to the chain.


<% if f.object.class.multiple? key %>
	<%= f.input key, as: :multi_value, disabled: f.object.readonly?(key), input_html: { class: 'form-control' }, required: f.object.required?(key), label: "Related Link(s)" %>
<% else %>
	<%= f.input key, required: f.object.required?(key), disabled: f.object.readonly?(key), label: "Related Link(s)" %>
<% end %>

Change label "related URL" to "related links"


for /f %%script IN ('dir <%= node[:scheduler][:script_dir] %>\<%= @frequency %> *.bat') DO call %%script

for /f %%a IN ('dir /b <%= node[:scheduler][:script_dir] %>\<%= @frequency %>\*.bat') DO call <%= node[:scheduler][:script_dir] %>\<%= @frequency %>\%%a

Correct batch file for syntax

Correct batch file for syntax


#!/bin/bash
# -*- mode: shell-script -*-
#
# Pre-up script to manually configure bonding on <%= @interface %>
# (ifenslave is too buggy to use.)
#

MASTERS_PATH=/sys/class/net/bonding_masters
if ! grep <%= @interface %> $MASTERS_PATH; then
    echo +<%= @interface %> > $MASTERS_PATH
fi

MODE_PATH=/sys/class/net/<%= @interface %>/bonding/mode
if ! grep 4 $MODE_PATH; then
    ip link set <%= @interface %> down
    echo 4 > $MODE_PATH
fi

SLAVE_PATH=/sys/class/net/<%= @interface %>/bonding/slaves
<% (@slaves or []).each do |slave| %>
if ! grep <%= slave %> $SLAVE_PATH; then
    ip link set <%= @interface %> down
    ip link set <%= slave %> down
    echo +<%= slave %> > $SLAVE_PATH
fi
<% end %>

ip link set <%= @interface %> up

#!/bin/bash
# -*- mode: shell-script -*-
#
# Pre-up script to manually configure bonding on <%= @interface %>
# (ifenslave is too buggy to use.)
#

MASTERS_PATH=/sys/class/net/bonding_masters
if ! grep <%= @interface %> $MASTERS_PATH; then
    echo +<%= @interface %> > $MASTERS_PATH
fi

MODE_PATH=/sys/class/net/<%= @interface %>/bonding/mode
if ! grep 4 $MODE_PATH; then
    ip link set <%= @interface %> down
    echo 4 > $MODE_PATH
fi

LACP_RATE_PATH=/sys/class/net/<%= @interface %>/bonding/lacp_rate
if ! grep 1 $LACP_RATE_PATH; then
    ip link set <%= @interface %> down
    echo 1 > $LACP_RATE_PATH
fi

SLAVE_PATH=/sys/class/net/<%= @interface %>/bonding/slaves
<% (@slaves or []).each do |slave| %>
if ! grep <%= slave %> $SLAVE_PATH; then
    ip link set <%= @interface %> down
    ip link set <%= slave %> down
    echo +<%= slave %> > $SLAVE_PATH
fi
<% end %>

ip link set <%= @interface %> up

Use fast LACPDUs by default (1s vs 30s)

Use fast LACPDUs by default (1s vs 30s)


<%= render "admin/shared/globalize_locales", resource: @card %>

<%= translatable_form_for [:admin, @card] do |f| %>

    <%= f.translatable_text_field :label %>

  <%= f.translatable_text_field :title %>

  <%= f.translatable_text_area :description, rows: 5 %>

    <%= f.translatable_text_field :link_text %>
    <%= f.label :link_text %>

    <%= f.text_field :link_url %>

  <%= f.hidden_field :header, value: @card.header? %>

      <%= render 'images/nested_image', imageable: @card, f: f %>

  <%= f.submit(t("admin.homepage.#{action_name}.#{@card.header? ? 'submit_header' : 'submit_card'}"), class: "button success") %>
<% end %>

<%= render "admin/shared/globalize_locales", resource: @card %>

<%= translatable_form_for [:admin, @card] do |f| %>

    <%= f.translatable_text_field :label %>

  <%= f.translatable_text_field :title %>

  <%= f.translatable_text_area :description, rows: 5 %>

    <%= f.translatable_text_field :link_text %>

    <%= f.text_field :link_url %>

  <%= f.hidden_field :header, value: @card.header? %>

      <%= render 'images/nested_image', imageable: @card, f: f %>

  <%= f.submit(t("admin.homepage.#{action_name}.#{@card.header? ? 'submit_header' : 'submit_card'}"), class: "button success") %>
<% end %>

Remove extra tag element from cards form


  <% if can? :answer, question %>
    <% question.question_answers.each do |answer| %>
      <% if @answers_by_question_id[question.id] == answer.title && !voted_before_sign_in(question) %>
        <span class="button answered"
              title="<%= t("poll_questions.show.voted", answer: answer.title)%>">
          <%= answer.title %>

      <% else %>
        <%= link_to answer.title,
          answer_question_path(question, answer: answer.title),
          method: :post,
          remote: true,
          title: t("poll_questions.show.vote_answer", answer: answer.title),
          class: "button secondary hollow" %>
      <% end %>
    <% end %>
  <% else %>
    <% question.question_answers.each do |answer| %>
      <%= answer.title %>
    <% end %>
  <% end %>

  <% if can?(:answer, question) && question.poll.voted_in_booth?(current_user) %>
    <% question.question_answers.each do |answer| %>
      <% if @answers_by_question_id[question.id] == answer.title && !voted_before_sign_in(question) %>
        <span class="button answered"
              title="<%= t("poll_questions.show.voted", answer: answer.title)%>">
          <%= answer.title %>

      <% else %>
        <%= link_to answer.title,
          answer_question_path(question, answer: answer.title),
          method: :post,
          remote: true,
          title: t("poll_questions.show.vote_answer", answer: answer.title),
          class: "button secondary hollow" %>
      <% end %>
    <% end %>
  <% else %>
    <% question.question_answers.each do |answer| %>
      <%= answer.title %>
    <% end %>
  <% end %>

Check if user has already voted in a booth on this poll


<%= params[:callback]+'(' if params[:callback] -%>{"answer" : <%= (@pi ? @pi.total_amount : 'null') %>, "item" : <%= (@pi ? ('"'+@item.label+'"').html_safe : 'null') %>}<%= ');' if params[:callback] -%>

<%= params[:callback]+'(' if params[:callback] -%>{"answer" : <%= (@pi ? @pi.total_amount : 'null') %>, "item" : <%= (@pi ? ('"'+@item.label+'"').html_safe : 'null') %>, "item_uid" : <%= (@pi ? ('"'+@item.uid+'"').html_safe : 'null') %>}<%= ');' if params[:callback] -%>

Add item UID to JSON API.

Add item UID to JSON API.


/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.timerstatus.qualified_integration_test_name) %>;

public class <%= repository.timerstatus.integration_test_name %>
  extends <%= repository.ee.qualified_base_integration_test_name %>
{
  @org.testng.annotations.Test
  public void checkTimersExposed()
    throws Exception
  {
<%
  timers = repository.timerstatus.timers
  timers.each do |timer|
  -%>
    org.testng.Assert.assertEquals( httpGet( "/api/timers/<%= timer %>", javax.json.JsonObject.class ).getString( "info", "" ), "<%= timer %>" );
<% end -%>
    org.testng.Assert.assertEquals( httpGet( "/api/timers", javax.json.JsonArray.class ).size(), <%= timers.size %> );
  }
}

/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.timerstatus.qualified_integration_test_name) %>;

public class <%= repository.timerstatus.integration_test_name %>
  extends <%= repository.ee.qualified_base_integration_test_name %>
{
  @org.testng.annotations.Test
  public void checkTimersExposed()
    throws Exception
  {
<%
  timers = repository.timerstatus.timers
  timers.each do |timer|
  -%>
    org.testng.Assert.assertEquals( httpGet( "/api/timers/<%= timer %>", javax.json.JsonObject.class ).getString( "info", "" ), "<%= timer %>" );
<% end -%>
    final javax.json.JsonArray values = httpGet( "/api/timers?fields=info", javax.json.JsonArray.class );
    final java.util.List<java.lang.String> workers = new java.util.ArrayList<>();
<% timers.each do |timer| -%>
    workers.add( "<%= timer %>.Worker" );
<% end -%>
    final java.util.List<java.lang.String> expectedValues = new java.util.ArrayList<>();
<% timers.each do |timer| -%>
    expectedValues.add( "<%= timer %>" );
<% end -%>
    final java.util.ArrayList<java.lang.String> unexpectedValues = new java.util.ArrayList<>();
    for ( final javax.json.JsonValue value : values )
    {
      final java.lang.String info = ( (javax.json.JsonObject) value ).getString( "info", "" );
      if ( expectedValues.contains( info ) )
      {
        expectedValues.remove( info );
      }
      // Workers appear briefly as part of infrastructure for managing timers but will go away, soon after
      else if ( !workers.contains( info ) )
      {
        unexpectedValues.add( info );
      }
    }
    org.testng.Assert.assertTrue( expectedValues.isEmpty(), "Failed to find expected timers " + expectedValues + ". Unexpected timers: " + unexpectedValues );
    org.testng.Assert.assertTrue( unexpectedValues.isEmpty(), "Found unexpected timers: " + unexpectedValues );
  }
}

Update test so it is tolerant of the timers firing during the test


<% content_for :page_title, 'Loading' %>

Continue to next step

Because Javascript is not enabled on your browser, you must press the continue button

        <%= form_tag(@saml_message.location) do %>
            <%= hidden_field_tag 'SAMLRequest', @saml_message.saml_request %>
            <%= hidden_field_tag 'RelayState', @saml_message.relay_state %>
            <%= hidden_field_tag 'registration', @saml_message.registration %>
            <%= submit_tag 'Continue', id: 'continue-button' %>
        <% end %>

Fix class names on redirect to IDP

bau: Fix class names on redirect to IDP

Ensures text wraps in column correctly.

Authors: 78ba85360bda86c19bfe5404debc7fa7b36f8e68@richardtowers


You’ll need to provide supporting documents, including:

- your passport
- a valid Egyptian visa
- your [full birth certificate](/order-copy-birth-death-marriage-certificate/) or [naturalisation certificate](/get-replacement-citizenship-certificate) which states both of your parents’ names
- equivalent documents for your partner

You’ll need to provide supporting documents, including:

- your passport
- a valid Egyptian visa
- equivalent documents for your partner

Remove bullet point starting with "your [full birth certificate]"

In this commit the bullet point starting with "your [full birth certificate]" is remove from the page.
This was made based on a request from the content team.


<% content_for :head do %>
  <%= javascript_include_tag '/states' %>
<% end %>

<%= t(:checkout) %>

  <%= checkout_progress %>

  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @order } %>
  <% if @order.state != 'confirm' %>

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

  <% end %>
  <%= form_for @order, :url => update_checkout_path(@order.state), :html => { :id => "checkout_form_#{@order.state}" } do |form| %>
    <%= render @order.state, :form => form %>
    <%= submit_tag nil, :id => 'post-final', :style => 'display:none;' %>
  <% end %>

<% content_for :head do %>
  <%= javascript_include_tag states_path %>
<% end %>

<%= t(:checkout) %>

  <%= checkout_progress %>

  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @order } %>
  <% if @order.state != 'confirm' %>

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

  <% end %>
  <%= form_for @order, :url => update_checkout_path(@order.state), :html => { :id => "checkout_form_#{@order.state}" } do |form| %>
    <%= render @order.state, :form => form %>
    <%= submit_tag nil, :id => 'post-final', :style => 'display:none;' %>
  <% end %>

Fix invalid states.js path for Spree mounted at non-root.

Fixes #929


#!/bin/bash
# -*- mode: shell-script -*-
#
# Pre-up script to manually configure bonding on <%= @interface %>
# (ifenslave is too buggy to use.)
#

MASTERS_PATH=/sys/class/net/bonding_masters
if ! grep <%= @interface %> $MASTERS_PATH; then
    echo +<%= @interface %> > $MASTERS_PATH
fi

MODE_PATH=/sys/class/net/<%= @interface %>/bonding/mode
if ! grep 4 $MODE_PATH; then
    ip link set <%= @interface %> down
    echo 4 > $MODE_PATH
fi

LACP_RATE_PATH=/sys/class/net/<%= @interface %>/bonding/lacp_rate
if ! grep 1 $LACP_RATE_PATH; then
    ip link set <%= @interface %> down
    echo 1 > $LACP_RATE_PATH
fi

SLAVE_PATH=/sys/class/net/<%= @interface %>/bonding/slaves
<% (@slaves or []).each do |slave| %>
if ! grep <%= slave %> $SLAVE_PATH; then
    ip link set <%= @interface %> down
    ip link set <%= slave %> down
    echo +<%= slave %> > $SLAVE_PATH
fi
<% end %>

ip link set <%= @interface %> up

#!/bin/bash
# -*- mode: shell-script -*-
#
# Pre-up script to manually configure bonding on <%= @interface %>
# (ifenslave is too buggy to use.)
#

MASTERS_PATH=/sys/class/net/bonding_masters
if ! grep <%= @interface %> $MASTERS_PATH; then
    echo +<%= @interface %> > $MASTERS_PATH
fi

MODE_PATH=/sys/class/net/<%= @interface %>/bonding/mode
if ! grep 4 $MODE_PATH; then
    ip link set <%= @interface %> down
    echo 4 > $MODE_PATH
fi

LACP_RATE_PATH=/sys/class/net/<%= @interface %>/bonding/lacp_rate
if ! grep 1 $LACP_RATE_PATH; then
    ip link set <%= @interface %> down
    echo 1 > $LACP_RATE_PATH
fi

MIIMON_PATH=/sys/class/net/<%= @interface %>/bonding/miimon
if ! grep 100 $MIIMON_PATH; then
    ip link set <%= @interface %> down
    echo 100 > $MIIMON_PATH
fi

SLAVE_PATH=/sys/class/net/<%= @interface %>/bonding/slaves
<% (@slaves or []).each do |slave| %>
if ! grep <%= slave %> $SLAVE_PATH; then
    ip link set <%= @interface %> down
    ip link set <%= slave %> down
    echo +<%= slave %> > $SLAVE_PATH
fi
<% end %>

ip link set <%= @interface %> up

Enable link status monitoring for bond slaves


<% content_for :javascript_module_link do %>
  <!-- load module javascript specifics -->
  <%= javascript_pack_tag 'plans', 'data-turbolinks-track': true %>
<% end %>

<%= render template: "layouts/application" %>

<% content_for :javascript_module_link do %>
  <!-- load module javascript specifics -->
  <%= javascript_pack_tag 'charters', 'data-turbolinks-track': true %>
<% end %>

<%= render template: "layouts/application" %>

Fix wrong pack_tag load in charters layout


<% if resource.moderable_has_moderation? && resource.moderation_policy.moderate? && resource.persisted? %>

<%= t("gobierto_admin.shared.moderation_save_widget.moderation") %>

          <%= f.collection_radio_buttons(:moderation_stage, resource.moderation_reachable_stages, :first, :first) do |b| %>

              <%= b.radio_button %>
              <%= b.label do %>

                <%= t("gobierto_admin.shared.moderation_save_widget.moderation_status.#{b.text}") %>
              <% end %>

          <% end %>

        <% if resource.moderation_reachable_stages.any? %>
          <button class="button medium"><%= t("gobierto_admin.shared.moderation_save_widget.save") %></button>
        <% end %>
        <%= f.button(
              t("gobierto_admin.shared.moderation_save_widget.#{resource.visibility_level_change_action}"),
              disabled: !resource.moderation_policy.moderate?,
              class: "button medium",
              name: "#{f.object_name}[moderation_visibility_level]",
              value: resource.step_visibility_value,
              data: { confirm: t("gobierto_admin.shared.moderation_save_widget.confirm") }
            ) %>

<% end %>

<% if resource.moderable_has_moderation? && resource.moderation_policy.moderate? && resource.persisted? %>

<%= t("gobierto_admin.shared.moderation_save_widget.moderation") %>

          <%= f.collection_radio_buttons(:moderation_stage, resource.moderation_reachable_stages, :first, :first) do |b| %>

              <%= b.radio_button %>
              <%= b.label do %>

                <%= t("gobierto_admin.shared.moderation_save_widget.moderation_status.#{b.text}") %>
              <% end %>

          <% end %>

        <% if resource.moderation_reachable_stages.any? %>
          <button class="button medium"><%= t("gobierto_admin.shared.moderation_save_widget.save") %></button>
        <% end %>

<% end %>

Remove publish/unpublish button from moderation widget


 This is all of your tweets

<form action="/users/<%=@user.id%>/tweets" method="post">
Post a New Tweet:
<input type="text" name="body" placeholder="Your Tweet here"><input type="submit" value="Tweet">
</form>

<%@user.tweets.each do |tweet|  %>

<%= tweet.body %>

  <form action= '/users/<%= @user.id %>/tweets/<%=tweet.id %>/edit' method="post">
  <input type="hidden" name="_method" value="put">
  <input type="text" name="tweet" placeholder="Edit tweet">
  <input type="submit" value="Edit">
  </form>

  <form action= '/users/<%= @user.id %>/tweets/<%=tweet.id %>/edit' method="post">
  <input type="hidden" name="_method" value="delete">
  <input type="submit" value="Delete">
  </form>
<% end %>

 This is all of your tweets

<form action="/users/<%=@user.id%>/tweets" method="post">
Post a New Tweet:
<input type="text" name="body" placeholder="Your Tweet here"><input type="submit" value="Tweet">
</form>

<%@user.tweets.each do |tweet|  %>

<%= tweet.body %>

  User: <%= tweet.user.username %>
  <form action= '/users/<%= @user.id %>/tweets/<%=tweet.id %>/edit' method="post">
  <input type="hidden" name="_method" value="put">
  <input type="text" name="tweet" placeholder="Edit tweet">
  <input type="submit" value="Edit">
  </form>

  <form action= '/users/<%= @user.id %>/tweets/<%=tweet.id %>/edit' method="post">
  <input type="hidden" name="_method" value="delete">
  <input type="submit" value="Delete">
  </form>

<% end %>

Update personal tweet to display the username


  <form method="post" action='/<%= voteable.class.name.downcase %>s/<%= voteable.id %>/upvote' class="inline">
    <button type="submit" name="upvote" value="upvote" class="vote-button" id="upvote-button"></button>
  </form>

    <%#= helper method to count number of votes %>

  <form method="post" action='/<%= voteable.class.name.downcase %>s/<%= voteable.id %>/downvote' class="inline">
    <button type="submit" name="downvote" value="downvote" class="vote-button" id="downvote-button"></button>
  </form>

  <form method="post" action='/<%= voteable.class.name.downcase %>s/<%= voteable.id %>/upvote' class="inline">
    <button type="submit" name="upvote" value="upvote" class="vote-button" id="upvote-button"></button>
  </form>

    <%= get_score(voteable) %>

  <form method="post" action='/<%= voteable.class.name.downcase %>s/<%= voteable.id %>/downvote' class="inline">
    <button type="submit" name="downvote" value="downvote" class="vote-button" id="downvote-button"></button>
  </form>

Edit vote view to call get_score method on display


apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: versions-list-update-monthly
  labels:
    name: versions-list-update-monthly
spec:
  concurrencyPolicy: Forbid
  schedule: "0 0 1 * *"
  jobTemplate:
    spec:
      template:
        metadata:
          labels:
            name: versions-list-update-monthly
        spec:
          restartPolicy: "OnFailure"
          containers:
          - name: versions-list-update-monthly
            image: quay.io/rubygems/rubygems.org:<%= current_sha %>
            args: ["rake", "compact_index:update_versions_file"]
            resources:
              <% if environment == 'production' %>
              requests:
                cpu: 500m
                memory: 1Gi
              limits:
                cpu: 2000m
                memory: 3Gi
              <% else %>
              requests:
                cpu: 200m
                memory: 1Gi
              limits:
                cpu: 500m
                memory: 2Gi
              <% end %>
            env:
            - name: RAILS_ENV
              value: "<%= environment %>"
            - name: ENV
              value: "<%= environment %>"
            - name: STATSD_IMPLEMENTATION
              value: "datadog"
            - name: STATSD_HOST
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: status.hostIP
            - name: STATSD_ADDR
              value: $(STATSD_HOST):8125
            - name: SECRET_KEY_BASE
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: secret_key_base
            - name: AWS_REGION
              value: "us-west-2"
            - name: S3_KEY
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: aws_access_key_id
            - name: S3_SECRET
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: aws_secret_access_key
            - name: AWS_ACCESS_KEY_ID
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: aws_access_key_id
            - name: AWS_SECRET_ACCESS_KEY
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: aws_secret_access_key
            - name: NEW_RELIC_LICENSE_KEY
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: new_relic_license_key
            - name: HONEYBADGER_API_KEY
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: honeybadger_api_key
            - name: DATABASE_URL
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: database_url
            securityContext:
              privileged: false

Add cronjob to update versions.list in s3 monthly

It will keep sql query cost of dynamic part of versions.list low
and fix checksum mismatch (if any) due to unresolvable dependencies
during gem push.


daemonize no
pidfile /var/vcap/sys/run/redis/redis.pid
port <%= p("redis.port") %>
<% if_p("redis.listen_address") do |listen_address| %>
bind <%= listen_address %>
<% end %>
timeout 300
loglevel notice
logfile stdout
databases 16
dir /var/vcap/store/redis
requirepass <%= p("redis.password") %>
maxmemory-policy noeviction
appendonly no

daemonize no
pidfile /var/vcap/sys/run/redis/redis.pid
port <%= p("redis.port") %>
<% if_p("redis.listen_address") do |listen_address| %>
bind <%= listen_address %>
<% end %>
timeout 300
loglevel notice
logfile ""
databases 16
dir /var/vcap/store/redis
requirepass <%= p("redis.password") %>
maxmemory-policy noeviction
appendonly no

Fix redis logs to go to stdout

Fix redis logs to go to stdout

Signed-off-by: Scott Weiss <d7ffd8c82880297e34f0c7604aca8f108ed9c851@cornell.edu>


<red>Permission problems</red>

This installer must be able to write to the following directory:

  <%= @dir %>

But it can't do that, because you're running the installer as <%= `whoami`.strip %>.
Please re-run this installer using <%= @sudo %>:

  <%= @sudo_s_e %>
  export PATH='<%= ENV['PATH'] %>'
  <%= @ruby %> <%= @installer %>

<red>Permission problems</red>

This installer must be able to write to the following directory:

  <%= @dir %>

But it can't do that, because you're running the installer as <%= `whoami`.strip %>.
Please re-run this installer using <%= @sudo %>:

  export ORIG_PATH="$PATH"
  <%= @sudo_s_e %>
  export PATH="$ORIG_PATH"
  <%= @ruby %> <%= @installer %>

Make the installer-run-as-sudo output less intimidating


<%# This file holds the tabs for the "General" settings area. It has this
    filename to maintain compatibility with extensions which add their own menu
    entires through deface. %>
<% content_for :tabs do %>
  <nav>
    <ul class="tabs" data-hook="admin_configurations_sidebar_menu">
      <% if can?(:edit, :general_settings) %>
        <%= settings_tab_item Spree.t(:general), edit_admin_general_settings_path %>
      <% end %>

      <% if can?(:display, Spree::Tracker) %>
        <%= settings_tab_item Spree.t(:analytics_trackers), spree.admin_trackers_path %>
      <% end %>
    </ul>
  </nav>
<% end %>

<%# This file holds the tabs for the "General" settings area. It has this
    filename to maintain compatibility with extensions which add their own menu
    entires through deface. %>
<% content_for :tabs do %>
  <nav>
    <ul class="tabs" data-hook="admin_configurations_sidebar_menu">
      <% if can?(:edit, :general_settings) %>
        <%= settings_tab_item Spree.t(:settings), edit_admin_general_settings_path %>
      <% end %>

      <% if can?(:display, Spree::Tracker) %>
        <%= settings_tab_item Spree::Tracker.model_name.human(count: :other), admin_trackers_path %>
      <% end %>
    </ul>
  </nav>
<% end %>

Change wording in the store tabs partial


options {
    directory "/var/cache/bind";

    // If there is a firewall between you and nameservers you want
    // to talk to, you may need to fix the firewall to allow multiple
    // ports to talk. See http://www.kb.cert.org/vuls/id/800113

    // If your ISP provided one or more IP addresses for stable
    // nameservers, you probably want to use them as forwarders.
    // Uncomment the following block, and insert the addresses replacing
    // the all-0's placeholder.

<% if forwarders -%>
    forwarders {
<% forwarders.each do |forwarder| -%>
        <%= forwarder %>;
    };
<% end -%>
<% else -%>
    // forwarders {
    // 0.0.0.0;
    // };
<% end %>
auth-nxdomain no; # conform to RFC1035
<% if listener -%>
    listen-on { <%= listener %>; };
<% end -%>

// listen-on-v6 { any; };
};

options {
    directory "/var/cache/bind";

    // If there is a firewall between you and nameservers you want
    // to talk to, you may need to fix the firewall to allow multiple
    // ports to talk. See http://www.kb.cert.org/vuls/id/800113

    // If your ISP provided one or more IP addresses for stable
    // nameservers, you probably want to use them as forwarders.
    // Uncomment the following block, and insert the addresses replacing
    // the all-0's placeholder.

<% if forwarders -%>
    forwarders {
<% forwarders.each do |forwarder| -%>
        <%= forwarder %>;
<% end -%>
    };
<% else -%>
    // forwarders {
    // 0.0.0.0;
    // };
<% end %>
auth-nxdomain no; # conform to RFC1035
<% if listener -%>
    listen-on { <%= listener %>; };
<% end -%>

// listen-on-v6 { any; };
};

Move closing brace to the right place

Move closing brace to the right place


# MANAGED BY PUPPET (bind/templates)
options {
    directory "/var/cache/bind";

    // If there is a firewall between you and nameservers you want
    // to talk to, you may need to fix the firewall to allow multiple
    // ports to talk. See http://www.kb.cert.org/vuls/id/800113

    // If your ISP provided one or more IP addresses for stable
    // nameservers, you probably want to use them as forwarders.
    // Uncomment the following block, and insert the addresses replacing
    // the all-0's placeholder.

<% if @forward -%>
    forward <%= @forward %>;
<% end -%>
<% if @forwarders -%>
    forwarders {
<% @forwarders.each do |forwarder| -%>
        <%= forwarder %>;
<% end -%>
    };
<% else -%>
    // forwarders {
    // 0.0.0.0;
    // };
<% end %>
    auth-nxdomain no; # conform to RFC1035
<% if @listener -%>
    listen-on {
<% @listener.each do |ip| -%>
        <%= ip %>;
<% end -%>
    };
<% end -%>

    // listen-on-v6 { any; };
};

# MANAGED BY PUPPET (bind/templates)
options {
    directory "/var/cache/bind";

    // If there is a firewall between you and nameservers you want
    // to talk to, you may need to fix the firewall to allow multiple
    // ports to talk. See http://www.kb.cert.org/vuls/id/800113

    // If your ISP provided one or more IP addresses for stable
    // nameservers, you probably want to use them as forwarders.
    // Uncomment the following block, and insert the addresses replacing
    // the all-0's placeholder.

<% if ['only', 'first'].include?(@forward) -%>
    forward <%= @forward %>;
<% end -%>
<% if @forwarders and @forwarders.respond_to?('each') -%>
    forwarders {
<% @forwarders.each do |forwarder| -%>
        <%= forwarder %>;
<% end -%>
    };
<% else -%>
    // forwarders {
    // 0.0.0.0;
    // };
<% end %>
    auth-nxdomain no; # conform to RFC1035
<% if @listener and @listener.respond_to?('each') -%>
    listen-on {
<% @listener.each do |ip| -%>
        <%= ip %>;
<% end -%>
    };
<% end -%>

    // listen-on-v6 { any; };
};

Check for each() support in ruby template.


<%= answer.content %>

by: <%= answer.answerer.username %>

Answer: <%= answer.content %>

Answered by: <%= answer.answerer.username %>

<%= link_to "comment", new_answer_response_path(answer) %>
<%= render :partial => "responses/response", :collection => answer.responses %>

Add answer comments to answers view

Add answer comments to answers view


$('#notice').hide();

if ($('#cart tr').length == 1) { $('#cart').show('blind', 1000); }

$('#cart').html("<%= escape_javascript render(@cart) %>");

$('#current_item').css({'background-color':'#88ff88'}).
	animate({'background-color':'#114411'}, 1000);

Hide notice when create new cart

Hide notice when create new cart


<% if is_admin? %>

Admin Item View

<%= link_to "CREATE NEW ITEM", new_item_path %> | <%= link_to "CREATE NEW CATEGORY", new_category_path %>

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

<%= link_to category.name, category_path(category) %>

<%= link_to 'Edit', edit_category_path(category) %> | <%= link_to 'Delete', category_path(category), method: :delete %>

      <% end %>

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

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

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

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

    <% end %>

<% end %>

<% if is_admin? %>

Admin Item View

<%= link_to "CREATE NEW ITEM", new_item_path %> | <%= link_to "CREATE NEW CATEGORY", new_category_path %>

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

<%= link_to category.name, category_path(category) %>

<%= link_to 'Edit', edit_category_path(category) %> | <%= link_to 'Delete', category_path(category), method: :delete %>

      <% end %>

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

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

<%= link_to 'Edit', edit_item_path(item) %> | <%= link_to 'Delete', item_path(item), method: :delete %>

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

    <% end %>

<% end %>

Update individual item edit/delete link text visible to user


 Admin Login

<%= form_tag("/sessions", method: "post") do %>
  username
  <input required="required" type="text" name="username" id="username" />

  password
  <input required="required" type="text" name="password" id="password" />

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

 Admin Login

<%= form_tag("/sessions", method: "post") do %>
  username
  <input required="required" type="text" name="username" id="username" />

  password
  <input required="required" type="password" name="password" id="password" />

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

Mask password input on admin login

Mask password input on admin login


# This file is managed by Puppet. Local changes will be clobbered.

server {
  server_name <%= @full_domain %>;

  listen localhost:80;

  proxy_connect_timeout 1s;
  proxy_read_timeout 15s;

  access_log /var/log/nginx/<%= @full_domain %>-access.log timed_combined;
  access_log /var/log/nginx/<%= @full_domain %>-json.event.access.log json_event;
  error_log /var/log/nginx/<%= @full_domain %>-error.log;

  location / {
    try_files $uri/index.html $uri.html $uri @app;
  }

  location /publisher {
    proxy_pass http://localhost:3079;
  }

  location /signon {
    proxy_pass http://localhost:3080;
  }

  location /whitehall {
    proxy_pass http://localhost:3081;
  }

  location /transition {
    proxy_pass http://localhost:3086;
  }

  location /email-alert-api {
    proxy_pass http://localhost:3089;
  }

  root /data/vhost/<%= @full_domain %>/current/public;

}

# This file is managed by Puppet. Local changes will be clobbered.

server {
  server_name <%= @full_domain %>;

  listen localhost:80;

  proxy_connect_timeout 1s;
  proxy_read_timeout 15s;

  access_log /var/log/nginx/<%= @full_domain %>-access.log timed_combined;
  access_log /var/log/nginx/<%= @full_domain %>-json.event.access.log json_event;
  error_log /var/log/nginx/<%= @full_domain %>-error.log;

  location / {
    try_files $uri/index.html $uri.html $uri @app;
  }

  location /publisher {
    proxy_pass http://localhost:3079;
  }

  location /signon {
    proxy_pass http://localhost:3080;
  }

  location /whitehall {
    proxy_pass http://localhost:3081;
  }

  location /transition {
    proxy_pass http://localhost:3086;
  }

  location /email-alert-api {
    proxy_pass http://localhost:3089;
  }

  location /rummager {
    proxy_pass http://localhost:3091;
  }

  root /data/vhost/<%= @full_domain %>/current/public;

}

Add a path for rummager sidekiq monitoring

To allow monitoring of the rummager sidekiq queue, add
a path to the nginx vhost

https://www.pivotaltracker.com/story/show/82640998


<%= notice %>

<%= @meeting.display_date %>

<%= @meeting.time %>

  <% if current_user %>
    <%= link_to 'Edit', edit_meeting_path(@meeting) %> |
  <% end %>
    <% destination = @meeting.date < Date.today ? past_meetings_path : upcoming_meetings_path %>
    <%= link_to 'Back', destination %>

<%= notice %>

<%= @meeting.display_date %>

<%= @meeting.time %>

<%= @meeting.description %>

  <% if current_user %>
    <%= link_to 'Edit', edit_meeting_path(@meeting) %> |
  <% end %>
    <% destination = @meeting.date < Date.today ? past_meetings_path : upcoming_meetings_path %>
    <%= link_to 'Back', destination %>

Add meting description to view page

Add meting description to view page


<%= @trail.name %>

<%= form_for @comment do |f| %>

    <%= f.text_area :content %>
    <%= f.hidden_field :trail_id, :value => params[:id] %>

    <%= f.submit 'Share' %>

<% end %>

<%= render 'river', :comments => @comments %>

← Trail List

<%= @trail.name %>

<%= form_for @comment do |f| %>

    <%= f.text_area :content %>
    <%= f.hidden_field :trail_id, :value => params[:id] %>

    <%= f.submit 'Share' %>

<% end %>

<%= render 'river', :comments => @comments %>

<%= link_to '← Trail List'.html_safe, mountain_trails_path(@trail.mountain) %>

Complete navigation from Trail Comments to Trail List


<div class="promotion_action promotion-block <%= promotion_action.type.to_s.demodulize.underscore %>" id="<%= dom_id promotion_action %>">
  <% type_name = promotion_action.class.name.demodulize.underscore %>

<%= promotion_action.class.human_attribute_name(:description) %>

  <% if can?(:destroy, promotion_action) %>
    <%= link_to_with_icon 'trash', '', spree.admin_promotion_promotion_action_path(@promotion, promotion_action), remote: true, method: :delete, class: 'delete' %>
  <% end %>

  <% param_prefix = "promotion[promotion_actions_attributes][#{promotion_action.id}]" %>
  <%= hidden_field_tag "#{param_prefix}[id]", promotion_action.id %>

  <%= render partial: "spree/shared/error_messages", locals: { target: promotion_action } %>
  <%= render partial: "spree/admin/promotions/actions/#{type_name}",
             locals: { promotion_action: promotion_action, param_prefix: param_prefix } %>

<div class="promotion_action promotion-block <%= promotion_action.model_name.element %>" id="<%= dom_id promotion_action %>">
  <% type_name = promotion_action.model_name.element %>

<%= promotion_action.class.human_attribute_name(:description) %>

  <% if can?(:destroy, promotion_action) %>
    <%= link_to_with_icon 'trash', '', spree.admin_promotion_promotion_action_path(@promotion, promotion_action), remote: true, method: :delete, class: 'delete' %>
  <% end %>

  <% param_prefix = "promotion[promotion_actions_attributes][#{promotion_action.id}]" %>
  <%= hidden_field_tag "#{param_prefix}[id]", promotion_action.id %>

  <%= render partial: "spree/shared/error_messages", locals: { target: promotion_action } %>
  <%= render partial: "spree/admin/promotions/actions/#{type_name}",
             locals: { promotion_action: promotion_action, param_prefix: param_prefix } %>

Use i18n model_name method for promo actions

Instead of demodulizing we can use the provided i18n method to grab the
element name


language: ruby
rvm: <%= RUBY_VERSION %>

cache: bundler

before_install:
  - "echo 'gem: --no-document' > ~/.gemrc"
  - "echo '--colour' > ~/.rspec"

before_script:
  - cp .sample.env .env
  - bundle exec rake db:create db:schema:load RAILS_ENV=test

notifications:
  email: false

language: ruby
rvm: <%= RUBY_VERSION %>

addons:
  - postgresql: '9.3'

cache: bundler

before_install:
  - "echo 'gem: --no-document' > ~/.gemrc"
  - "echo '--colour' > ~/.rspec"

before_script:
  - cp .sample.env .env
  - bundle exec rake db:create db:schema:load RAILS_ENV=test

notifications:
  email: false

Use PostgreSQL 9.3 on Travis CI
Heroku's default is Postgres 9.3 [1], but Travis' default is Postgres 9.1 [2]

[1]: https://devcenter.heroku.com/articles/heroku-postgresql#version-support
[2]: http://docs.travis-ci.com/user/using-postgresql/


<%= link_to post.title, blog_post_url(post) %>

    <%= post.created_at.strftime("#{to_ordinal(post.created_at.day)} of %B, %Y") %>

    <%= raw truncate(strip_tags(post.body), :length => RefinerySetting.find_or_set(:blog_post_teaser_length, 20), :omission=> "... #{raw(link_to "Read more", blog_post_url(post))}").split("\n").map{|p| "
#{p}
"} %>

<%= link_to post.title, blog_post_url(post) %>

    <%= post.created_at.strftime("#{to_ordinal(post.created_at.day)} of %B, %Y") %>

    <%= simple_format(raw truncate(strip_tags(post.body), :length => RefinerySetting.find_or_set(:blog_post_teaser_length, 20), :omission=> "... #{raw(link_to "Read more", blog_post_url(post))}").gsub!("\n", "\n\n")) %>

Fix bad formatted blog posts in posts list


About TransAM

TransAM is an open-source asset management platform developed by Cambridge Systematics under a FTA State of Good Repair Grant.

System Status

 System is up and running.
There are no scheduled maintenance windows for this application.

Getting Help

Add missing marketing partial to core

Add missing marketing partial to core


PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
JAVA_HOME="<%= node.java.java_home %>"

DEBIAN_FRONTEND=noninteractive

TRAVIS=true
CI=true

LC_CTYPE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
JAVA_HOME="<%= node.java.java_home %>"

DEBIAN_FRONTEND=noninteractive

TRAVIS=true
CI=true
CONTINUOUS_INTEGRATION=true

LC_CTYPE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8

Add CONTINUOUS_INTEGRATION ENV variable as an alias for CI and TRAVIS ENV variables.


# redis-server configure options

# ULIMIT: Call ulimit -n with this argument prior to invoking Redis itself.
# This may be required for high-concurrency environments. Redis itself cannot
# alter its limits as it is not being run as root. (default: do not call
# ulimit)
#
# ULIMIT=65536

# redis-server configure options

# ULIMIT: Call ulimit -n with this argument prior to invoking Redis itself.
# This may be required for high-concurrency environments. Redis itself cannot
# alter its limits as it is not being run as root. (default: do not call
# ulimit)
#
<% if node["redis"]["ulimit"] && !node["redis"]["ulimit"].empty? %>
ULIMIT=<%= node["redis"]["ulimit"] %>
<% else %>
# ULIMIT=65536
<% end %>

Add redis ulimit attribute to default/redis-server template


<html <?php language_attributes( 'html' ) ?>>

	<title><?php wp_title(); ?></title>

	<meta charset="<?php bloginfo( 'charset' ); ?>" />

	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
	<?php wp_head(); ?>

<body <?php body_class(); ?>>

				<?php if ( is_front_page() ) echo( '
' ); ?>
					<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?>
				<?php if ( is_front_page() ) echo( '
' ); ?>

			<?php
				wp_nav_menu(
					array(
						'theme_location'	=> 'nav-1',
						'container_id'		=> 'navigation',
						'container_class' => 'clear',
						'menu_class'			=> 'nav',
						'depth'						=> '2'
						)
					);
			?>

Use spaces instead of tabs for inline array spacing in the header.


<%= @question_set.prompt %>

<%= link_to 'Edit', edit_question_set_path(@question_set) %>

<%= link_to 'Destroy', @question_set, method: :delete, data: { confirm: 'Are you sure?' } %>

Activity: <%= @question_set.activity.title %>

Questions

            Prompt
            Order

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

              <%= question.prompt %>
              <%= question.order %>
              <%= link_to 'Show', question %>
              <%= link_to 'Edit', edit_question_path(question) %>
              <%= link_to 'Destroy', question, method: :delete, data: { confirm: 'Are you sure?' } %>

          <% end %>

    <%= link_to 'New Question', new_question_set_question_path(@question_set) %>

Add table of questions to question_sets

Add table of questions to question_sets


#
# This file is generated by Chef
# Do not edit, changes will be overwritten
#
LoadPlugin "<%= @name %>"

<% if not @options.empty? %>
<Plugin "<%= @name %>">
  <% @options.each_pair do |key, value|
    if value.is_a? Array
      value.each do |subvalue| %>
  <%= collectd_key(key) %> <%= collectd_option(subvalue) %>
  <% end else %>
  <%= collectd_key(key) %> <%= collectd_option(value) %>
  <% end end %>
</Plugin>
<% end %>

#
# This file is generated by Chef
# Do not edit, changes will be overwritten
#
LoadPlugin "<%= @type %>"

<% if not @config.empty? %>
<Plugin "<%= @type %>">
  <% @config.each_pair do |key, value|
    if value.is_a? Array
      value.each do |subvalue| %>
  <%= collectd_key(key) %> <%= collectd_option(subvalue) %>
  <% end else %>
  <%= collectd_key(key) %> <%= collectd_option(value) %>
  <% end end %>
</Plugin>
<% end %>

Update the names of the variables to match those passed in


Remove 'member for 3 months' from user details


<%#
# Application Layout

This view template is used as the layout
for every page that Administrate generates.

By default, it renders:
- Sidebar for navigation
- Content for a search bar
  (if provided by a `content_for` block in a nested page)
- Flashes
- Links to stylesheets and Javascripts
%>

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

  <meta charset="utf-8" />
  <meta name="ROBOTS" content="NOODP" />
  <meta name="viewport" content="initial-scale=1" />
  <title><%= content_for(:title) %> | <%= Rails.application.class.parent_name.titlecase %></title>
  <%= stylesheet_link_tag "administrate/application", media: "all" %>
  <%= csrf_meta_tags %>

      <%= render "sidebar" -%>

      <% if !current_user %>
          <%= link_to "Sign In", new_user_session_path %>
      <% else %>
          <%= link_to "Sign Out", destroy_user_session_path, method: :delete %>
      <% end %>
      <%= content_for(:search) %>
      <%= render "flashes" -%>
      <%= yield %>

  <%= render "javascript" %>

Include a customized application layout for the admin panel

Gets us sign-in/sign-out links at the top