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

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

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

    <%= stylesheet_link_tag "normalize", "all" %>
    <script src="//use.typekit.net/zww2dfy.js"></script>
    <script>try{Typekit.load();}catch(e){}</script>
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css">
    <%= javascript_include_tag  "all" %>
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  </head>
  <body class="<%= page_classes %>">
    <%= partial "header" %>

    <%= yield %>

    <%= partial 'footer' %>
  </body>
</html>

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

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

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

    <%= stylesheet_link_tag "normalize", "all" %>
    <script src="//use.typekit.net/ngv2xmw.js"></script>
    <script>try{Typekit.load();}catch(e){}</script>
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css">
    <%= javascript_include_tag  "all" %>
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  </head>
  <body class="<%= page_classes %>">
    <%= partial "header" %>

    <%= yield %>

    <%= partial 'footer' %>
  </body>
</html>

Update to use donations app typekit

Update to use donations app typekit


© Copyright no one at all. Go to town.

Map

Link 2

Link 3

Link 4

Remove code for footer, only have map div - will like delete this view completely


<%= t :javascript_required, "You need to have JavaScript enabled in order to access this site." %>

<% if session.has_key? :brand_config_md5 && !params[:previewing_from_themeeditor] %>

    <% if params[:editing_brand_config] %>
      <%= t("You're editing your Canvas Theme! The changes have not been applied yet.") %>
    <% else %>
      <%= t do %>
        You're editing your Canvas Theme! Apply or cancel changes from within the.
        <%= link_to("Theme Editor", account_theme_editor_path(::Context.get_account(@context || @domain_root_account))) %>.
      <% end %>

 <%= t do %> Note: sub-account themes are not active during this preview. <% end %>
    <% end %>

<% end %>

<% if @current_user.try(:show_bouncing_channel_message?) %>

  <%= t(:bouncing_communication_channels, "There appears to be a problem with one of your contact methods. Please check your *Settings Page*.", wrapper: link_to('\1', settings_profile_path)) %>

<% end %>

<%= t :javascript_required, "You need to have JavaScript enabled in order to access this site." %>

<% unless params[:previewing_from_themeeditor] || !session.has_key?(:brand_config_md5) %>

    <% if params[:editing_brand_config] %>
      <%= t("You're editing your Canvas Theme! The changes have not been applied yet.") %>
    <% else %>
      <% current_account = ::Context.get_account(@context, @domain_root_account) %>
      <%= t do %>
        You're editing your Canvas Theme! Apply or cancel changes from within the
        <%= link_to "Theme Editor", account_theme_editor_path(current_account), target: "_top" %>.
      <% end %>
      <% if current_account.settings[:sub_account_includes] %>

        <%= t "Note: sub-account themes are not active during this preview. " %>
      <% end %>
    <% end %>

<% end %>

<% if @current_user.try(:show_bouncing_channel_message?) %>

  <%= t(:bouncing_communication_channels, "There appears to be a problem with one of your contact methods. Please check your *Settings Page*.", wrapper: link_to('\1', settings_profile_path)) %>

<% end %>

Fix theme editor preview and flash notices

fixes CNVS-23167

Note: https://gerrit.instructure.com/#/c/61285 caused a bug where
navigating anywhere other than the main theme editor page during
preview results in a blank page
(ArgumentError Exception: wrong number of arguments (1 for 2).

Meanwhile, https://gerrit.instructure.com/#/c/61890/ made it so
that the offending code was never run, but also prevented the flash
notices from appearing in preview mode. This fixes both of these issues.

When navigating to any page (other than the theme editor page) while in theme
preview mode, you should see the following flash notice and the
'Theme Editor' link should take you to the theme editor view for the
current account:

* Within the theme editor: http://cl.ly/image/072l0M3z3R3g
* Outside the theme editor: http://cl.ly/image/1X281e2i3O2W

The theme editor page should display this notice in preview mode:
http://cl.ly/image/3Y3p0b0i091h

Change-Id: I124d722c2b4257c80cf08b20700147799c304f8e
Reviewed-on: https://gerrit.instructure.com/62982
Reviewed-by: Mike Nomitch <74443f6f110b6b7b934c89126258ed3d843d673f@instructure.com>
Reviewed-by: Ryan Shaw <ea3cd978650417470535f3a4725b6b5042a6ab59@instructure.com>
Tested-by: Jenkins
Product-Review: Colleen Palmer <387ba1943871e60965e6b44638a2f2e1ab9b8469@instructure.com>
QA-Review: Myller de Araujo <e5c7c5e1b7f2ce5e9870cc98ec52b20b3006cb48@instructure.com>


It’s not possible to get legal recognition for your same-sex relationship in Peru.

You may be able to get married or register a civil partnership at the British embassy in Peru.

[Make an appointment at the embassy in Lima](https://www.book-consular-appointment.service.gov.uk/TimeSelection?location=125&service=10). You’ll need to have been in Peru for at least 7 full days before your appointment.

##What documents you’ll need

At the appointment, you and your partner will both need to bring:

- proof of residence, such as an employer’s letter or a bank statement
- your passport

If either of you have been divorced, widowed or in a civil partnership before, you’ll also need either:

- a [decree absolute or final order](/copy-decree-absolute-final-order)
- the [death certificate](/order-copy-birth-death-marriage-certificate) for a deceased husband, wife or civil partner

##What you need to do

At the appointment, you and your partner will need to sign a declaration that you’re legally entitled to marry or enter into a civil partnership.

The embassy will then give you a notice of registration. Once you've paid the registration fee, the notice will be displayed publicly for 14 days.

As long as nobody raises an objection, you can then get married or enter into a civil partnership up to 3 months after you gave notice.

You’ll need to bring two witnesses to your ceremony at the embassy. The witnesses will need to bring a photo ID, such as a passport or a driver’s licence.

You’ll need to pay a fee to register your marriage or civil partnership and a fee for your marriage or civil partnership certificate.

##Naturalisation of your partner if they move to the UK

Your partner can apply to [become a British citizen](/becoming-a-british-citizen/if-your-spouse-is-a-british-citizen) once they’ve lived in the UK for 3 years.

## Fees

<%= render partial: 'consular_fees_table_items',
    collection: calculator.services,
    as: :service,
    locals: { calculator: calculator } %>

You normally have to pay fees for consular services in the local currency - these are shown in the list of [consular fees for Peru](/government/publications/peru-consular-fees).

You can pay by cash or credit card, but not by personal cheque.

Update Peru ceremony, local partner 1

Update Peru ceremony, local partner 1


                            <%= display_avatar(@friend, size: 1000, type: :large) %>

<%= @friend.name %>

                        <%= link_to "#{@friend.first_name}'s profile", user_path(@friend),  class: "mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent"%>

                    <% @conversation.receipts_for(current_user).each do |receipt| %>

                            <div class='mdl-card mdl-shadow--2dp card-message card-<%= "#{ receipt.mailbox_type }" %>'>

                                        <%= display_avatar(receipt.message.sender, size: 200, type: :thumb) %>

<%= receipt.message.sender.name %>

<%= receipt.message.body %>

<%= time_ago_in_words(receipt.message.created_at) %> ago

                    <% end %>

<%= form_tag user_conversation_messages_path(current_user, @conversation), method: :post do %>

        <%= text_area_tag :body %>

    <%= submit_tag %>
<% end %>

Create show template for conversations

Create show template for conversations

In this template is where messages between users  for a specific conversation go.


<%= content_for :page_title, "Curated Lists" %>

Curated lists

              Slug
              Section

          <% @curated_lists.each do |cl| %>

              <%= link_to cl.slug, edit_curated_list_path(cl.slug) %>
              <%= cl.sections[0] %>

          <% end %>

<%= content_for :extra_javascript do %>
  <%= javascript_include_tag 'jquery.tablesorter.min.js' %>

<% end %>

<%= content_for :page_title, "Curated Lists" %>

Curated lists

              Slug
              Section

          <% @curated_lists.each do |cl| %>

              <%= link_to cl.slug, edit_curated_list_path(cl.slug) %>
              <%= cl.sections[0] %>

          <% end %>

<%= content_for :extra_javascript do %>

<% end %>

Remove a dangling direct reference to a JS file

Suspect it got merged in after the asset cleanup.


<%-
  state_options = options_for_select(options_for_available_states, params[:state_id])
  city_options  = options_for_select(options_for_available_cities(params[:state_id]), params[:city_id])
-%>

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

    <%= form_tag(root_path, method: :get) do %>
      <%= t('.state') %>
      <%= select_tag :state_id, state_options, include_blank: true, data: { 'filter-select' => '{"target": "#city_id", "filterParam":"state_id", "filter": "city", "data": {  "open_jobs": "1"} }' } %>

      <%= t('.city') %>
      <%= select_tag :city_id, city_options, prompt: t('.select_state') %>
      <button class="expand secondary"> <%= icon('page-search') %> <%= t('.submit') %> </button>
    <% end %>

<%-
  state_options = options_for_select(options_for_available_states, params[:state_id])
  city_options  = options_for_select(options_for_available_cities(params[:state_id]), params[:city_id])
-%>

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

    <%= form_tag(root_path, method: :get) do %>
      <%= t('.state') %>
      <%= select_tag :state_id, state_options, prompt: t('.select_state'), include_blank: true, data: { 'filter-select' => '{"target": "#city_id", "filterParam":"state_id", "filter": "city", "data": {  "open_jobs": "1"} }' } %>

      <%= t('.city') %>
      <%= select_tag :city_id, city_options, prompt: t('.select_city') %>
      <button class="expand secondary"> <%= icon('page-search') %> <%= t('.submit') %> </button>
    <% end %>

Change in messages from combobox city and state


Performance

      <%= link_to summary_site_hits_path(@site) do %>

Analytics

      <% end %>

        Graphs and tables charting
        hits
        to www.attorneygeneral.gov.uk. Use analytics to see how many users
        are visiting old URLs and what proportion of them are being
        redirected, seeing archives or finding errors.

Move data-original-title attr to title

Move data-original-title attr to title


Teacher <%= @teacher.full_name %>'s Courses

  <% @teacher.courses.each do |course| %>
    <% if course.title == nil %>
      <% course.title = 'Untitled' %>
    <% end %>

    <% if course.description == nil %>
      <% course.description ='No description' %>
    <% end %>

<%= link_to "#{course.title}", course_path(course) %> | <%= link_to "Edit", edit_course_path(course) %>

      Description: <%= course.description %>

  <% end %>

<%= button_to "Create Course", new_course_path, method: "get" %>

Build out Teacher profile page with button to create course and links to courses


<% if current_user && current_user.admin %>

This is where all of the available items will be visible.  If you'd like to create a new item, <%= link_to "click here", new_item_path %>.

<% end %>

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

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

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

<% end %>

Check out all of our available items!

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

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

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

<% end %>

Remove root_path logic for new_item, replace with message about all available items on display


Plot out your next great adventure

Use our system to map out your short story or novel.

<%= link_to "Learn more", stories_path, class: "btn btn-primary btn-lg" %>

Plot out your next great adventure

Use our system to map out your short story or novel.

<%= link_to "Explore", stories_path, class: "btn btn-primary btn-lg" %>

Stories

Explore stories currently being written.

  <%= render partial: "stories/story", collection: @stories %>

Writers

Meet some of our writers.

  <%= render partial: "writers/writer", collection: @writers %>

Characters

See some of the characters that drive our writers' stories.

  <%= render partial: "characters/character", collection: @characters %>

<% if !user_signed_in? %>

<%= link_to "Get Started Today!", new_user_registration_path, class: "btn btn-primary btn-lg" %>

<% end %>

Add stories, writers, and characters to home index page


<%= @topic.name %>

<% if policy( @topic ).update? %>
  <%= link_to "Edit Topic", edit_topic_path, class: 'btn btn-primary btn-mini' %>
<% end %>

<%= @topic.description %>

    <%= render @posts %>
    <%= will_paginate @posts %>

    <% if policy( current_user.posts.build ).create? %>
      <%= link_to "New Post", new_topic_post_path(@topic), class: 'btn btn-large btn-block' %>
    <% end %>
    <% if policy( @topic ).destroy? %>
      <%= link_to "Delete Topic", @topic, method: :delete, class: 'btn btn-large btn-block btn-danger', confirm: 'Are you sure you want to delete this topic?' %>
    <% end %>

<%= @topic.name %>

<% if policy( @topic ).update? %>
  <%= link_to "Edit Topic", edit_topic_path, class: 'btn btn-primary btn-mini' %>
<% end %>

<%= @topic.description %>

    <%= render @posts %>
    <%= will_paginate @posts %>

    <% if policy( Post.new ).create? %>
      <%= link_to "New Post", new_topic_post_path(@topic), class: 'btn btn-large btn-block' %>
    <% end %>
    <% if policy( @topic ).destroy? %>
      <%= link_to "Delete Topic", @topic, method: :delete, class: 'btn btn-large btn-block btn-danger', confirm: 'Are you sure you want to delete this topic?' %>
    <% end %>

Fix topics/show for guest users

Fix topics/show for guest users


    Warning

    Unpublish a page from GOV.UK. This can’t be undone.

  <%= form_tag("/editions/#{@resource.id}/process_unpublish", method: "post") do %>

Unpublish

        Redirect to

          For example: https://www.gov.uk/redirect-to-replacement-page

        <%= text_field_tag 'redirect_url', '', class: "form-control input-md-12" %>

      <%= button_tag 'Unpublish',
      "data-module" => 'confirm',
      "data-message" => "This will remove ‘#{@artefact.name}’ from the website.\n\n Are you sure?",
      :class => "btn btn-danger" %>

  <% end %>

Remove stray closing div tag from unpublish form


<%= content_tag :p, I18n.t(:buy_declaration) %>
<%= submit_tag I18n.t(:buy), :class => 'continue button primary' %>
<script>Spree.disableSaveOnClick();</script>

<%= content_tag :p, I18n.t(:buy_declaration) %>
<%= submit_tag I18n.t(:buy), class: 'btn btn-lg btn-success primary' %>
<script>Spree.disableSaveOnClick();</script>

Update Buy button CSS classes

Update Buy button CSS classes


<script type="text/javascript">
//<![CDATA[
  if (Styx.Initializers.<%=klass%> && Styx.Initializers.<%=klass%>.initialize)
  {
    Styx.Initializers.<%=klass%>.initialize(<%=data.to_json.html_safe%>)
  }
  if (Styx.Initializers.<%=klass%> && Styx.Initializers.<%=klass%>.<%=method%>)
  {
    Styx.Initializers.<%=klass%>.<%=method%>(<%=data.to_json.html_safe%>)
  }
//]]>
</script>

<script type="text/javascript">
//<![CDATA[
  if (Styx.Initializers.<%=klass%> && Styx.Initializers.<%=klass%>.initialize)
  {
    Styx.Initializers.<%=klass%>.initialize(<%=data.to_json.html_safe%>)
  }
  if (Styx.Initializers.<%=klass%> && Styx.Initializers.<%=klass%>['<%=method%>'])
  {
    Styx.Initializers.<%=klass%>['<%=method%>'](<%=data.to_json.html_safe%>)
  }
//]]>
</script>

Access initializer's action methods by string name.

Fixes syntax errors for the cases when controller action's name
coincides with one of the JavaScript keywords, e.g. 'new'.


      Talk to a guidance specialist

      Who the service is for

      The State Pension

Add State Pension to quick links

Add State Pension to quick links


<%= form_for [@localization_key, @localization], :html=>{:remote=>true} do |f| %>
  <%- f.label :translated_value %>
  <% if @localization.translated_value.is_a?(Array) %>

      <% @localization.translated_value.each do |l| %>

<%= text_field_tag 'localization[translated_value][]', l, :class=>"form-control input-xlarge" %>

      <% end %>

  <% else %>
    <%= f.text_area :translated_value, :size=>"40x2", :class=>"form-control input-xxlarge" %>
    <% if allow_wysiwyg_editor?(@localization_key.localization_key) %>

        <input type="checkbox" class="wysiwyg_switch" /> use wysiwyg editor

    <% end %>
  <% end %>

  <button class="btn btn-primary btn-sm" type="submit"><%= t('lit.common.update', :default=>"Update") %></button>
  <button class="btn btn-default btn-sm"><%= t('lit.common.cancel', :default=>'Cancel') %></button>
<% end %>

<%= form_for [@localization_key, @localization], :html=>{:remote=>true} do |f| %>
  <%- f.label :translated_value %>
  <% if @localization.translated_value.is_a?(Array) %>

      <% @localization.translated_value.each do |l| %>

<%= text_field_tag 'localization[translated_value][]', l, :class=>"form-control input-xlarge" %>

      <% end %>

  <% else %>
    <%= f.text_area :translated_value, :size=>"40x2", :class=>"form-control input-xxlarge" %>
    <% if allow_wysiwyg_editor?(@localization_key.localization_key) %>

        <input type="checkbox" class="wysiwyg_switch" /> use wysiwyg editor

    <% end %>
  <% end %>

  <button class="btn btn-primary btn-sm" type="submit"><%= t('lit.common.update', :default=>"Update") %></button>
  <button class="btn btn-default btn-sm cancel" type="reset"><%= t('lit.common.cancel', :default=>'Cancel') %></button>
<% end %>

Fix behaviour of "Cancel" button

Fix behaviour of "Cancel" button


<% provide :title, "页面找不到了" %>
<script type="text/javascript" src="http://www.qq.com/404/search_children.js" charset="utf-8"></script>
<%= render 'shared/ga' %>

<% provide :title, "页面找不到了" %>
<script type="text/javascript" src="http://www.qq.com/404/search_children.js" charset="utf-8" homePageUrl="http://starzhou.com" homePageName="回到首页"></script>
<%= render 'shared/ga' %>

Add return home page to 404 errors page

Add return home page to 404 errors page


<% cache [:team, User.all_cache_key] do %>

    <% present_collection(@team_members).each do |user| %>
      <li class="<%= user.display_role %>">
        <%= user.avatar %>

          <%= link_to_if can?(:edit, user.user), user.display_name, edit_team_path(user.user) %>
          (<%= user.display_role %>)

    <% end %>

      <a href="<%= new_team_path %>">
        <%= image_tag "default-avatar.jpg", width: 100, class: "avatar" %>

Invite someone new

<% end %>

Remove fragment caching for team page

Remove fragment caching for team page


<%= @user.email %>

Email: <%= @user.email %>

Resume: <a href="<%= @user.resume.url %>" target="_blank"> <%= @user.resume_file_name %>

<%= @user.email %>

Email: <%= @user.email %>

Resume:
<% if !@user.resume_file_name.nil? %>
  <a href="<%= @user.resume.url %>" target="_blank"> <%= @user.resume_file_name %>

<% else %>
  (none uploaded)
<% end %>

Fix behavior on user show page if no resume


#!/bin/sh

export rvm_dir=<%= @options[:rvm_dir] %>
export RUBY_BIN=<%= @options[:ruby_bin] %>
export RAILS_ENV=production  # by default

<%= @options[:env_vars].map { |name, value| "export #{name}=#{value}" }.join("\n") %>

# While app is not installed, wait. Unfortunately, Chef will
# get errors if the app just isn't here, but we try to run it,
# so it won't initially run successfully. This avoids that
# problem by hanging until Capistrano is run, then finally
# running the app.

#i="0"
while ! [ -h <%= @options[:app_dir] %>/releases/current ]
do
  sleep 5
  #i=$[$i+1]
done

cd <%= @options[:app_dir] %>/releases/current

<%= @options[:extra_code] %>

export rvm_ignore_rvmrc=1
exec 2>&1
exec chpst -v -u <%= @options[:user] %>:<%= @options[:group] %> <%= @options[:chpst_arguments] %> <%= @options[:wrapper_dir] %>/bundle exec unicorn <%= @options[:unicorn_arguments] %>

#!/bin/sh

export rvm_dir=<%= @options[:rvm_dir] %>
export RUBY_BIN=<%= @options[:ruby_bin] %>
export RAILS_ENV=production  # by default

<%= @options[:env_vars].map { |name, value| "export #{name}=#{value}" }.join("\n") %>

# While app is not installed, wait. Unfortunately, Chef will
# get errors if the app just isn't here, but we try to run it,
# so it won't initially run successfully. This avoids that
# problem by hanging until Capistrano is run, then finally
# running the app.

#i="0"
while ! [ -h <%= @options[:app_dir] %>/current ]
do
  sleep 5
  #i=$[$i+1]
done

cd <%= @options[:app_dir] %>/current

<%= @options[:extra_code] %>

export rvm_ignore_rvmrc=1
exec 2>&1
exec chpst -v -u <%= @options[:user] %>:<%= @options[:group] %> <%= @options[:chpst_arguments] %> <%= @options[:wrapper_dir] %>/bundle exec unicorn <%= @options[:unicorn_arguments] %>

Fix path to correct Capistrano current release.


    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" href="main.css">

    <title>Mako for <%= today %></title>

🥛 Mako

<%= today %>

    <%= yield %>

Made with Mako

Last updated: <%= last_updated %>

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" href="main.css">

    <title>Mako for <%= today %></title>

🥛 Mako

<%= today %>

      <% feeds.each do |feed| %>
        <% if feed.articles.size > 0 %>

<a href="<%= feed.url %>"><%= h(feed.title) %>

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

<a href="<%= article.url %>"><%= h(article.title) %>

<%= article.formatted_published %>

                <%= article.summary %>

            <% end %>

        <% end %>
      <% end %>

Made with Mako

Last updated: <%= last_updated %>

Add feed container back into simple template (for now)


directory   '<%= current_path %>'
environment '<%= fetch(:rack_env, fetch(:rails_env, "production")) %>'
daemonize false
quiet
pidfile '<%= fetch(:runit_puma_pid)%>'
state_path '<%= fetch(:runit_puma_state)%>'
stdout_redirect '<%= fetch(:runit_puma_log)%>', '<%= fetch(:runit_puma_log)%>', true

workers <%= fetch(:runit_puma_workers, 1) %>
threads <%= fetch(:runit_puma_threads_min, 0) %>, <%= fetch(:runit_puma_threads_max, 16) %>
bind "<%= fetch(:runit_puma_bind) %>"

<% if fetch(:runit_puma_preload_app) %>
preload_app!
<% end %>

on_restart do
  puts 'Refreshing Gemfile'
  ENV["BUNDLE_GEMFILE"] = "<%= fetch(:bundle_gemfile, "#{current_path}/Gemfile") %>"
end

on_worker_boot do
  <% if fetch(:runit_puma_init_active_record) %>
  ActiveSupport.on_load(:active_record) do
    ActiveRecord::Base.establish_connection
  end
  <% end %>
end

directory   '<%= current_path %>'
environment '<%= fetch(:rack_env, fetch(:rails_env, "production")) %>'
daemonize false
quiet
pidfile '<%= fetch(:runit_puma_pid)%>'
state_path '<%= fetch(:runit_puma_state)%>'
stdout_redirect '<%= fetch(:runit_puma_log)%>', '<%= fetch(:runit_puma_log)%>', true

workers <%= fetch(:runit_puma_workers, 1) %>
threads <%= fetch(:runit_puma_threads_min, 0) %>, <%= fetch(:runit_puma_threads_max, 16) %>
bind "<%= fetch(:runit_puma_bind) %>"

<% if fetch(:runit_puma_preload_app) %>
preload_app!
<% end %>

on_restart do
  puts 'Refreshing Gemfile'
  ENV["BUNDLE_GEMFILE"] = "<%= fetch(:bundle_gemfile, "#{current_path}/Gemfile") %>"
end

on_worker_boot do
  <% if fetch(:runit_puma_init_active_record) %>
  ::ActiveSupport.on_load(:active_record) do
    ::ActiveRecord::Base.establish_connection
  end
  <% end %>
end

Fix bug: use absolute module names in on_worker_boot ActiveRecord hook.


# This file is managed by puppet.
# https://git.openstack.org/cgit/openstack-infra/system-config

[gerrit]
defaultForceUpdate = <%= @replication_force_update %>

<% @replication.each do |replication| -%>
[remote "<%= replication['name'] %>"]
	url = <%= replication['url'] %>${name}.git
<% if replication['replicationDelay'] != nil -%>
	replicationDelay = <%= replication['replicationDelay'] %>
<% end -%>
<% if replication['threads'] != nil -%>
	threads = <%= replication['threads'] %>
<% end -%>
<% if replication['authGroup'] != nil -%>
	authGroup = <%= replication['authGroup'] %>
<% end -%>
<% if replication['replicatePermissions'] != nil -%>
	replicatePermissions = <%= replication['replicatePermissions'] %>
<% end -%>
<% if replication['mirror'] != nil -%>
	mirror = <%= replication['mirror'] %>
<% end -%>
<% end -%>

# This file is managed by puppet.
# https://git.openstack.org/cgit/openstack-infra/system-config

[gerrit]
defaultForceUpdate = <%= @replication_force_update %>

<% @replication.each do |replication| -%>
[remote "<%= replication['name'] %>"]
	url = <%= replication['url'] %>${name}.git
<% if replication['replicationDelay'] != nil -%>
	replicationDelay = <%= replication['replicationDelay'] %>
<% end -%>
<% if replication['threads'] != nil -%>
	threads = <%= replication['threads'] %>
<% end -%>
<% if replication['authGroup'] != nil -%>
	authGroup = <%= replication['authGroup'] %>
<% end -%>
<% if replication['replicatePermissions'] != nil -%>
	replicatePermissions = <%= replication['replicatePermissions'] %>
<% end -%>
<% if replication['mirror'] != nil -%>
	mirror = <%= replication['mirror'] %>
<% end -%>
<% if replication['projects'] != nil -%>
<% replication['projects'].each do |project| -%>
	projects = <%= project %>
<% end -%>
<% end -%>
<% end -%>

Add support for 'projects' keyword

Add support for 'projects' keyword

To replicate only specific projects, the 'projects' keyword can be used
(multiple times if needed) in each remote section of the
replication.config.

Change-Id: I0f66120a7c9c8f849c03c87e621ae1c46a343297
Co-Authored-By: Spencer Krum <9f0bf2adee05513e15363471857cce616f4c4b2c@spencerkrum.com>


<!DOCTYPE html>
<html>
<head>
  <title>Intermediate action</title>

  <% if current_user %>
  <%= javascript_include_tag "#{jslib_url_for(current_user.username)}/easyXDM/easyXDM.min.js" %>
  <% else %>
  <%= javascript_include_tag "#{FactlinkUI::Application.config.static_url}/lib/dist/easyXDM/easyXDM.min.js" %>
  <% end %>
  <style type="text/css">
    html, body {
      height: 100%;
      width: 100%;
      margin: 0 auto;
      padding: 0;
      overflow: hidden;
    }

    iframe {
      height: 100%;
      width: 100%;
      border: 0;
      z-index: 2147483646;
    }

    iframe.overlay {
      background: transparent;
    }

    form {
      display: none;
    }
  </style>

  <%= csrf_meta_tag %>
</head>
<body>
  <iframe src="" name="frame" id="frame"></iframe>

  <%= javascript_include_tag "intermediate" %>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>Intermediate action</title>

  <% if current_user %>
  <%= javascript_include_tag "#{jslib_url_for(current_user.username)}/easyXDM/easyXDM.min.js" %>
  <% else %>
  <%= javascript_include_tag "#{FactlinkUI::Application.config.static_url}/public/easyXDM.min.js" %>
  <% end %>
  <style type="text/css">
    html, body {
      height: 100%;
      width: 100%;
      margin: 0 auto;
      padding: 0;
      overflow: hidden;
    }

    iframe {
      height: 100%;
      width: 100%;
      border: 0;
      z-index: 2147483646;
    }

    iframe.overlay {
      background: transparent;
    }

    form {
      display: none;
    }
  </style>

  <%= csrf_meta_tag %>
</head>
<body>
  <iframe src="" name="frame" id="frame"></iframe>

  <%= javascript_include_tag "intermediate" %>
</body>
</html>

Load easyXDM for non-logged in users from static-server/public

Signed-off-by: tomdev <96835dd8bfa718bd6447ccc87af89ae1675daeca@codigy.nl>


Contact the [relevant local authorities](http://www.dha.gov.za/index.php/civic-services/marriage-certificates) in South Africa to find out about local marriage laws, including what documents you’ll need.

^You should [get legal advice](/government/collections/list-of-lawyers) and check the [travel advice for South Africa](/foreign-travel-advice/south-africa) before making any plans.^

The UK doesn’t issue certificates of no impediment (CNIs) for marriages in Commonwealth countries. The British High Commission in Pretoria or the Consulate General in Cape Town can provide a letter to explain this if you’re asked to provide a CNI or a similar document to prove you’re allowed to marry.

Contact the High Commission and Consulate General to arrange to collect a letter.

$C
<southafrica.consulate@fco.gov.uk>
$C

The letter must be signed and stamped by a member of the consular staff.

##Naturalisation of your partner if they move to the UK

Your partner can apply to [become a British citizen](/becoming-a-british-citizen/if-your-spouse-is-a-british-citizen) once they’ve lived in the UK for 3 years.

Contact the [relevant local authorities](http://www.dha.gov.za/index.php/civic-services/marriage-certificates) in South Africa to find out about local marriage laws, including what documents you’ll need.

^You should [get legal advice](/government/collections/list-of-lawyers) and check the [travel advice for South Africa](/foreign-travel-advice/south-africa) before making any plans.^

The UK doesn’t issue certificates of no impediment (CNIs) for marriages in Commonwealth countries. You can get a letter to explain this if you’re asked to provide a CNI or a similar document to prove you’re allowed to marry.

Book an appointment to collect a letter at the [British Consulate General in Cape Town](https://www.consular-appointments.service.gov.uk/fco/#!/british-consulate-general-cape-town/providing-an-informative-note/slot_picker) or the [British High Commission in Pretoria](https://www.consular-appointments.service.gov.uk/fco/#!/british-high-commission-pretoria/providing-an-informative-note/slot_picker).

The letter is free. If you can't go to an appointment, you can ask a friend or family member to make an appointment and collect it for you.

##Naturalisation of your partner if they move to the UK

Your partner can apply to [become a British citizen](/becoming-a-british-citizen/if-your-spouse-is-a-british-citizen) once they’ve lived in the UK for 3 years.

Add appointment link for explanatory letter


<%%= notice %>

Listing <%= plural_table_name.titleize %>

<% attributes.reject(&:password_digest?).each do |attribute| -%>
      <%= attribute.human_name %>
<% end -%>

    <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>

<% attributes.reject(&:password_digest?).each do |attribute| -%>
        <%%= <%= singular_table_name %>.<%= attribute.name %> %>
<% end -%>
        <%%= link_to 'Show', <%= singular_table_name %> %>
        <%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %>
        <%%= link_to 'Destroy', <%= singular_table_name %>, method: :delete, data: { confirm: 'Are you sure?' } %>

    <%% end %>

<%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path %>

<%%= notice %>

<%= plural_table_name.titleize %>

<% attributes.reject(&:password_digest?).each do |attribute| -%>
      <%= attribute.human_name %>
<% end -%>

    <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>

<% attributes.reject(&:password_digest?).each do |attribute| -%>
        <%%= <%= singular_table_name %>.<%= attribute.name %> %>
<% end -%>
        <%%= link_to 'Show', <%= singular_table_name %> %>
        <%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %>
        <%%= link_to 'Destroy', <%= singular_table_name %>, method: :delete, data: { confirm: 'Are you sure?' } %>

    <%% end %>

<%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path %>

Clean up grammar in scaffold index view, by removing the word 'Listing' from list title.


# Setting Up a Ring

## Bastion Ring / Permanent Peers

A “Bastion Ring” is a pattern for preventing rumor loss and a split brain in a network of Habitat Supervisors - it is highly recommended for any real environment use case. Create a minimum of 3 Supervisors and join them together. They should not run any services and they should be marked as permanent peers - their only job is to spread rumors to each other. Then, when you provision additional Supervisors pass the network address of each Supervisor running in the Bastion Ring to use as a list of “initial peers”. It’s recommended to create a Bastion Ring in any network zones which may become partitioned due to a hardware failure. For example, if you have a Habitat ring spanning multiple datacenters and clouds, each should have a bastion ring of a minimum of 3 Supervisors in addition to the Supervisors running your services.

## Initial peer(s)

The initial peer(s) is a requirement of any distributed system. In Habitat, a new Supervisor that is starting up looks for an initial peer(s) to join to begin sharing information about the health and status of peers and other services, to increase the health of the overall Ring.

Add information about setting up a ring

Add information about setting up a ring

Add information about setting up a Habitat ring, permanent peers, Bastion ring, and initial peers.

Signed-off-by: Tasha Drew <428a8f4391ea71add99cf4c8f8df7a5b6006c196@gmail.com>


My Results

<% @user_scores.each do |id, score| %>

Wine <%= id %>:

Correct categories:

      <% score[:correct].each do |category| %>

<%= category.to_s.sub("_"," ").split.map(&:capitalize).join(' ') %>

      <% end %>

Incorrect categories:

      <% score[:incorrect].each do |category| %>

<%= category.to_s.sub("_"," ").split.map(&:capitalize).join(' ') %>

      <% end %>

Score: <%= score[:score] %>

<% end %>

My Results

<% @user_scores.each do |id, score| %>

Wine <%= id %>:

Correct categories:

      <% score[:correct].each do |category| %>

<%= category.to_s.sub("red_","").sub("white_","").sub("_"," ").split.map(&:capitalize).join(' ') %>

      <% end %>

Incorrect categories:

      <% score[:incorrect].each do |category| %>

<%= category.to_s.sub("red_","").sub("white_","").sub("_"," ").split.map(&:capitalize).join(' ') %>

      <% end %>

Score: <%= score[:score] %>

<% end %>

Add regex sub for redundant adjectives

Add regex sub for redundant adjectives


    Use the file input, below, to test uploading a few images directly to
    S3. Either click the button to choose one or more files (multi-select
    is enabled), or try dropping some files on it.

    Please Note You may only upload JPEG-formatted images, and only up
    to 3MB in size

  <form class="well">
    <legend>
    <input type="file" id="files" name="files" multiple>
  </form>

    Use the file input, below, to test uploading a few images directly to
    S3. Either click the button to choose one or more files (multi-select
    is enabled), or try dropping some files on it.

    Please Note You may only upload JPEG-formatted images, and only up
    to 3MB in size

  <form>
    <legend>
    <input type="file" id="files" name="files" multiple>
  </form>

Remove the stupid "well" style

Remove the stupid "well" style


<!DOCTYPE html>
<html>

  <head>
    <title>Fetch4 Devise Layout</title>

    <!-- Shim to handle versions of IE before IE 9 -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
    <![endif]-->

    <%= stylesheet_link_tag    'application', media: 'all' %>
    <%= javascript_include_tag 'application' %>
    <%= csrf_meta_tags %>
    <!-- Responsive  -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <%= favicon_link_tag 'favicon.png' %>
  </head>

  <body class="container devise-bg">
    <% if notice.present? %>
      <aside class="alert alert-info">
        <%= notice %>
      </aside>
    <% end %>
    <% if alert.present? %>
      <aside class="alert alert-danger">
        <%= alert %></p>
      </aside>
    <% end %>

    <%= yield %>

  </body>

</html>

<!DOCTYPE html>
<html>

  <head>
    <title>Fetch4</title>

    <!-- Shim to handle versions of IE before IE 9 -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
    <![endif]-->

    <%= stylesheet_link_tag    'application', media: 'all' %>
    <%= javascript_include_tag 'application' %>
    <%= csrf_meta_tags %>
    <!-- Responsive  -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <%= favicon_link_tag 'favicon.png' %>
  </head>

  <body class="container devise-bg">
    <% if notice.present? %>
      <aside class="alert alert-info">
        <%= notice %>
      </aside>
    <% end %>
    <% if alert.present? %>
      <aside class="alert alert-danger">
        <%= alert %></p>
      </aside>
    <% end %>

    <%= yield %>

  </body>

</html>

Change title because it shows up in tab

Change title because it shows up in tab


  <title></title>

  <% if current_user.orders.any? %>

MY LEADS:

      <% @ordered_leads.each do |lead| %>
        Business Type: <%= lead.business_type %>

        Location: <%= lead.location %>

        Time: <%= lead.time %>

        Description: <%= lead.description %>

        ZIP: <%= lead.zip %>

        Customer contact information:

        Name: <%= lead.name %>

        Phone: <%= lead.phone %>

        E-mail: <%= lead.email %>

        <% if lead.notes != nil %>
          <%= form_for (lead) do |l| %>
            <%= l.label :notes %>
            <%= text_area(:lead, :notes, :size => 20, :value => "#{lead.notes}") %>
            <%= l.submit "Save" %>
          <% end %>
        <% end %>

      <% end %>
  <% end %>

  <title></title>

  <% if current_user.orders.any? %>

MY LEADS:

      <% @ordered_leads.each do |lead| %>
        Business Type: <%= lead.business_type %>

        Location: <%= lead.location %>

        Time: <%= lead.time %>

        Description: <%= lead.description %>

        ZIP: <%= lead.zip %>

        Customer contact information:

        Name: <%= lead.name %>

        Phone: <%= lead.phone %>

        E-mail: <%= lead.email %>

        <%= form_for (lead) do |l| %>
          <%= text_area(:lead, :notes, :size => 20, :value => "#{lead.notes}") %>
          <%= l.submit "Save" %>
        <% end %>

      <% end %>
  <% end %>

Modify notes on my_leads page

Modify notes on my_leads page


<%= navigation true %>

<%= link_to "Witchifier", witchifier_path %>

Void

A Year At LinkedIn

Move void under my domain

Move void under my domain


<%= @lesson.title %>

Posted  on: <%= @lesson.created_at.to_s[0..10]%>

Posted by: <%= @lesson.user.username %>

  Title:

    <%=@lesson.title%>

  Objective:

    <%=@lesson.objective%>

  Warmup:

    <%=@lesson.warmup%>

  Main Lesson:

    <%=@lesson.main%>

  Homework:

    <%=@lesson.homework%>

<%= @lesson.title %>

Posted  on: <%= @lesson.created_at.to_s[0..10]%>

Posted by: <%= @lesson.user.username %>

Category: <%=@lesson.category.category%>

Grade Level: <%=@lesson.grade_level.level%>

  Title:

    <%=@lesson.title%>

  Objective:

    <%=@lesson.objective%>

  Warmup:

    <%=@lesson.warmup%>

  Main Lesson:

    <%=@lesson.main%>

  Homework:

    <%=@lesson.homework%>

Add category and grade level display

Add category and grade level display


<meta charset="utf-8">
<link rel="shortcut icon" href="/images/favicon.ico">
<title><%= @title %> - unRAID</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">

<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">

<%= css :application %>

<!--[if lt IE 9]>
  <script src='//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'></script>
<![endif]-->
<!--[if gte IE 9]><!-->
  <script src='//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js'></script>
<!--<![endif]-->

<%= js :application %>

<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
  (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
  function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
  e=o.createElement(i);r=o.getElementsByTagName(i)[0];
  e.src='//www.google-analytics.com/analytics.js';
  r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
  ga('create','UA-XXXXX-X');ga('send','pageview');
</script>

<meta charset="utf-8">
<link rel="shortcut icon" href="/images/favicon.ico">
<title><%= @title %> - <%= @system.hostname %></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">

<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">

<%= css :application %>

<!--[if lt IE 9]>
  <script src='//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'></script>
<![endif]-->
<!--[if gte IE 9]><!-->
  <script src='//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js'></script>
<!--<![endif]-->

<%= js :application %>

<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
  (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
  function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
  e=o.createElement(i);r=o.getElementsByTagName(i)[0];
  e.src='//www.google-analytics.com/analytics.js';
  r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
  ga('create','UA-XXXXX-X');ga('send','pageview');
</script>

Use hostname in browser title

Use hostname in browser title


#!/bin/sh
exec /opt/chef/embedded/bin/ruby <<EOH
require 'etc'
IO.write("<%= @pid_file %>", Process.pid)
Dir.chdir("<%= @directory %>")
ent = Etc.getpwnam("<%= @user %>")
if Process.euid != ent.uid || Process.egid != ent.gid
  Process.initgroups(ent.name, ent.gid)
  Process::GID.change_privilege(ent.gid) if Process.egid != ent.gid
  Process::UID.change_privilege(ent.uid) if Process.euid != ent.uid
end
(ENV["HOME"] = Dir.home("<%= @user %>")) rescue nil
<%= @environment.map {|key, value| "ENV[\"#{key}\"] = \"#{value}\"" }.join("; ") %>
exec(*<%= Shellwords.split(@command).inspect %>)
EOH

#!/bin/sh
exec /opt/chef/embedded/bin/ruby <<EOH
require 'etc'
IO.write("<%= @pid_file %>", Process.pid)
Dir.chdir("<%= @directory %>")
ent = Etc.getpwnam("<%= @user %>")
if Process.euid != ent.uid || Process.egid != ent.gid
  Process.initgroups(ent.name, ent.gid)
  Process::GID.change_privilege(ent.gid) if Process.egid != ent.gid
  Process::UID.change_privilege(ent.uid) if Process.euid != ent.uid
end
(ENV["HOME"] = Dir.home("<%= @user %>")) rescue nil
<%= @environment.map {|key, value| "ENV[#{key.inspect}] = #{value.inspect}" }.join("; ") %>
exec(*<%= Shellwords.split(@command).inspect %>)
EOH

Use inspect for better quoting.

Use inspect for better quoting.


<%if @user%>

Hello, <%= @user.first_name %>!

<%end%>

Weeker will keep you accountable.

Make something you want to share on the internet— take a photo, write a story, make a website, draw in a sketchbook. Place it in your Dropbox, and Weeker will post it on your preferred social networks.

If you don't contribute anything new by the end of the week, Weeker will post a message for that too!

Sign up today and start making stuff.

Add sign up link to summary

Add sign up link to summary


    Manage Platform

      <%= link_to 'Create Position', new_admin_issue_path, class: 'btn btn-primary' %>

Title

Position

  <%- @issues.all.each do |issue| %>

      <%= issue.title %>

      <%= issue.opinion %>

      <%= link_to "Edit", edit_admin_issue_path(issue.id) %> / <%= link_to "Delete", admin_issue_path(issue.id), method: :delete %>

  <%- end %>

Fix admin view bootstrap display problem for issues


  <%= semantic_form_for @application do |f| %>
    <%= f.semantic_errors %>

    <%= f.inputs do %>
      <%= f.input :name, label: "Name", input_html: { class: 'input-md-6' } %>
      <%= f.input :repo, label: "GitHub repository path", hint: "eg alphagov/publisher", input_html: { class: 'input-md-6' } %>
      <%= f.input :domain, label: "GitHub domain", hint: "eg github.gds", input_html: { class: 'input-md-6' } %>
      <%= f.input :shortname, label: "Short name", hint: "for use in graphite metrics, eg whitehall",
                              input_html: { placeholder: @application.fallback_shortname, class: 'input-md-6' } %>
      <%= f.input :archived, label: "Archived?" %>
    <% end %>

    <%= f.actions do %>
      <%= f.action :submit, :as => :button, button_html: { class: 'btn btn-success' } %>
    <% end %>
  <% end %>

  <%= semantic_form_for @application do |f| %>
    <%= f.semantic_errors %>

    <%= f.inputs do %>
      <%= f.input :name, label: "Name", input_html: { class: 'input-md-6' } %>
      <%= f.input :repo, label: "GitHub repository path", hint: "eg alphagov/publisher", input_html: { class: 'input-md-6' } %>
      <%= f.input :domain, label: "GitHub domain", hint: "eg github.digital.cabinet-office.gov.uk", input_html: { class: 'input-md-6' } %>
      <%= f.input :shortname, label: "Short name", hint: "for use in graphite metrics, eg whitehall",
                              input_html: { placeholder: @application.fallback_shortname, class: 'input-md-6' } %>
      <%= f.input :archived, label: "Archived?" %>
    <% end %>

    <%= f.actions do %>
      <%= f.action :submit, :as => :button, button_html: { class: 'btn btn-success' } %>
    <% end %>
  <% end %>

Change example GHE domain name

Change example GHE domain name

This commit changes the example GHE domain name that is displayed when an app is added/edited to change it from `github.gds` to `github.digital.cabinet-office.gov.uk`.


<% if resource.errors.any? -%>
  $("#modal-for-nav-item").html("<%= escape_javascript render( "modal_nav_item") %>");
<% else %>
  $("#modal-for-nav-item").modal('hide');

  var $parent = $("#nav-item-<%= resource.parent.id %>");
  var $children = $parent.find (".children");
  if (! $children.length) $children = $parent.append ("<ol class='children'>").slideDown ();
  $children.append ("<%= escape_javascript render("nav_item", nav_item: resource, level: resource.parent.level + 1) %>")
  $("#nav-item-<%= resource.id %>").slideDown ().effect("highlight", {}, 3000);
<% end %>

<% if resource.errors.any? -%>

  $ ("#modal-for-nav-item").html ("<%= escape_javascript render ("modal_nav_item") %>");

<% else %>

  $ ("#modal-for-nav-item").modal ('hide');

  var rendered = "<%= escape_javascript render ("nav_item", nav_item: resource, level: resource.level) %>";

  var $parent = $ ("#nav-item-<%= resource.parent.id %>");
  var $children = $parent.component (".children");

  if (! $children.length) $children = $parent.append ("<ol class='children'>").slideDown ();

  $children.append (rendered);

  $ ("#nav-item-<%= resource.id %>").slideDown ().effect ("highlight", {}, 3000);

<% end %>

Fix for site-tree node creation.

Fix for site-tree node creation.


  <button type="button" class="close" data-dismiss="alert">×</button>
  Estamos trabajando para ampliar la información de esta página.

Remove close button from needs work partial, not needed


#!/bin/sh

#
# This file was generated by Chef.
# Do NOT modify this file by hand.
#

<% groups = ([node['jenkins']['master']['user']] + node['jenkins']['master']['runit']['groups']).join(':') %>
exec 2>&1
cd <%= node['jenkins']['master']['home'] %>
touch jenkins.start
<% limits = node['jenkins']['master']['ulimits'] %>
<% if limits && !limits.empty? %>
ulimit <% limits.each { |option, value| %>-<%= option %> <%= value %> <% } %>
<% end %>
exec chpst -u <%= groups %> -U <%= groups %> \
  env HOME=<%= node['jenkins']['master']['home'] %> \
  JENKINS_HOME=<%= node['jenkins']['master']['home'] %> \
  <%= node['jenkins']['java'] %> <%= node['jenkins']['master']['jvm_options'] %> -jar jenkins.war \
  --httpPort=<%= node['jenkins']['master']['port'] %> \
  --httpListenAddress=<%= node['jenkins']['master']['listen_address'] %> \
  <%= node['jenkins']['master']['jenkins_args'] %>

#!/bin/sh

#
# This file was generated by Chef.
# Do NOT modify this file by hand.
#

[ -r /etc/profile ] && . /etc/profile

<% groups = ([node['jenkins']['master']['user']] + node['jenkins']['master']['runit']['groups']).join(':') %>
exec 2>&1
cd <%= node['jenkins']['master']['home'] %>
touch jenkins.start
<% limits = node['jenkins']['master']['ulimits'] %>
<% if limits && !limits.empty? %>
ulimit <% limits.each { |option, value| %>-<%= option %> <%= value %> <% } %>
<% end %>
exec chpst -u <%= groups %> -U <%= groups %> \
  env HOME=<%= node['jenkins']['master']['home'] %> \
  JENKINS_HOME=<%= node['jenkins']['master']['home'] %> \
  <%= node['jenkins']['java'] %> <%= node['jenkins']['master']['jvm_options'] %> -jar jenkins.war \
  --httpPort=<%= node['jenkins']['master']['port'] %> \
  --httpListenAddress=<%= node['jenkins']['master']['listen_address'] %> \
  <%= node['jenkins']['master']['jenkins_args'] %>

Allow Jenkins to read system environment variables

Without the proposed change, we cannot read user-defined variables. This is particularly useful to define passwords (/etc/profile.d/mypasswords.sh), for example, and read them on jenkins jobs.


# DO NOT EDIT - This file is being maintained by Chef

SSLHonorCipherOrder On
SSLCipherSuite aRSA+HIGH:+kEDH:+kRSA:!kSRP:!kPSK:+3DES:!MD5

SSLCertificateFile /etc/ssl/certs/<%= @certificate %>.pem
SSLCertificateKeyFile /etc/ssl/private/<%= @certificate %>.key
SSLCertificateChainFile /etc/ssl/certs/rapidssl.pem
<% if node[:lsb][:release].to_f >= 14.04 -%>

SSLUseStapling On
SSLStaplingCache shmcb:${APACHE_RUN_DIR}/ssl_ocspcache(512000)
<% end -%>

Enable OCSP stapling on 14.04 machines

Enable OCSP stapling on 14.04 machines


<%= @qualification.name %>

    Name
    Colour

  <% @subjects.each do |subject| %>

    <%= subject.name  %>
    <%= subject.colour %>

  <% end %>

<%= link_to "Back", qualifications_path %>

Create show view for qualifications

Create show view for qualifications


# This file is managed by puppet
# Any changes will be overwritten

Defaults    <% unless @requiretty_real -%><%= "!" %><% end -%>requiretty
Defaults    <% unless @visiblepw_real -%><%= "!" %><% end -%>visiblepw
Defaults    <% unless @always_set_home_real -%><%= "!" %><% end -%>always_set_home
Defaults    <% unless @envreset_real -%><%= "!" %><% end -%>env_reset
<% if @envkeep -%>
Defaults    env_keep = "<%= @envkeep.join(" ") %>"
<% end -%>
Defaults    secure_path = <%= @secure_path %>
<% if @include_libsudo_vas_real -%>
Defaults    group_plugin="<%= @libsudo_vas_location_real %>"
<% end -%>
<% if @root_allow_all_real -%>
root  ALL=(ALL)   ALL
<% end -%>
<% if @includedir_real -%>
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir <%= @config_dir %>
<% end -%>

# This file is being maintained by Puppet.
# DO NOT EDIT

Defaults    <% unless @requiretty_real -%><%= "!" %><% end -%>requiretty
Defaults    <% unless @visiblepw_real -%><%= "!" %><% end -%>visiblepw
Defaults    <% unless @always_set_home_real -%><%= "!" %><% end -%>always_set_home
Defaults    <% unless @envreset_real -%><%= "!" %><% end -%>env_reset
<% if @envkeep -%>
Defaults    env_keep = "<%= @envkeep.join(" ") %>"
<% end -%>
Defaults    secure_path = <%= @secure_path %>
<% if @include_libsudo_vas_real -%>
Defaults    group_plugin="<%= @libsudo_vas_location_real %>"
<% end -%>
<% if @root_allow_all_real -%>
root  ALL=(ALL)   ALL
<% end -%>
<% if @includedir_real -%>
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir <%= @config_dir %>
<% end -%>

Use standard header in template

Use standard header in template


 New Event

<%= form_for @event, role: 'form' do |f| %>

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

    <%= f.label :description %>
    <%= f.text_area :description, class: 'form-control' %>

  <% 5.times do |i| %>

      <%= f.label :name, "Outcome #{i + 1}" %>
      <%= f.text_field :name, name: 'event[outcomes_attributes][][name]', class: 'form-control' %>
      <%= f.hidden_field :id, name: 'event[outcomes_attributes][][event_id]', class: 'form-control' %>

  <% end %>

  <%= f.submit "Create" %>
<% end %>

 New Event

<%= form_for @event, role: 'form' do |f| %>

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

    <%= f.label :description %>
    <%= f.text_area :description, class: 'form-control' %>

  <% 5.times do |i| %>

      <%= f.label :name, "Outcome #{i + 1}" %>
      <%= f.text_field :name, name: 'event[outcomes_attributes][][name]', class: 'form-control', placeholder: 'Fill in as many outcomes as needed' %>
      <%= f.hidden_field :id, name: 'event[outcomes_attributes][][event_id]', class: 'form-control' %>

  <% end %>

  <%= f.submit "Create" %>
<% end %>

Add placeholder text for outcome fields.


<!DOCTYPE html>

  <meta charset="utf-8">
  <link rel="stylesheet" href="/vendor/qunit.css">
  <meta name="viewport" content="initial-scale=1.0,width=device-width">

Reduce test timeout for faster feedback when a test is broken


 YourComments

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

 <%= comment.content %>

  <% end %>

Add view for user comments

Add view for user comments


<server description="<%= @description %>">

    <!-- Enable features -->
    <featureManager>
<% @features.each do |feature| -%>
        <feature><%= feature %></feature>
<% end -%>
    </featureManager>

<% @httpendpoints.each do |httpendpoint| -%>
    <httpEndpoint id="<%= httpendpoint["id"] %>"
                  host="<%= httpendpoint["host"] %>"
                  httpPort="<%= httpendpoint["httpport"] %>"
                  httpsPort="<%= httpendpoint["httpsport"] %>"
    />
<% end -%>

<% if @includes != nil && @includes.size > 0 -%>
  <% @includes.each do |include| -%>
    <include location="<%= include %>" />
  <% end -%>
<% end -%>

</server>

<server description="<%= @description %>">

    <!-- Enable features -->
<% if @features != nil && @features.size > 0 -%>
    <featureManager>
  <% @features.each do |feature| -%>
        <feature><%= feature %></feature>
  <% end -%>
    </featureManager>
<% end -%>

<% if @httpendpoints != nil && @httpendpoints.size > 0 -%>
  <% @httpendpoints.each do |httpendpoint| -%>
    <httpEndpoint id="<%= httpendpoint["id"] -%>"
      <% if httpendpoint["host"] != nil -%> host="<%= httpendpoint["host"] %>" <% end -%>
      <% if httpendpoint["httpport"] != nil -%> httpPort="<%= httpendpoint["httpport"] %>" <% end -%>
      <% if httpendpoint["httpsport"] != nil -%> httpsPort="<%= httpendpoint["httpsport"] %>" <% end -%>
    />
  <% end -%>
<% end -%>

<% if @includes != nil && @includes.size > 0 -%>
  <% @includes.each do |include| -%>
    <include location="<%= include %>" />
  <% end -%>
<% end -%>

</server>

Update template to make elements and attributes optional.


Project List

<% if 0 < @projects.size %>

    <% @projects.each do |project| %>

<%= link_to project.title, project %>

<%= project.description %>

      <% if current_user.is_admin %>

<%= link_to 'Edit', edit_project_path(project) %>
 |

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

      <% end %>
    <% end %>

<% else %>

There are no currently no projects available for you.

<% end %>

<% if current_user.is_admin %>

<%= link_to 'New Project', new_project_path %>

<% end %>

Project List

<% if 0 < @projects.size %>

       Project
       Description
       <% if current_user.is_admin %>
         Actions
       <% end %>

       <% @projects.each do |project| %>

           <%= link_to project.title, project %>
           <%= simple_format(project.description) %>
           <% if current_user.is_admin %>

<%= link_to 'Edit', edit_project_path(project) %>
 |

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

           <% end %>

       <% end %>

<% else %>

There are currently no projects available for you.

<% end %>

<% if current_user.is_admin %>

<%= link_to 'New Project', new_project_path %>

<% end %>

Convert project list to table format

Convert project list to table format


Listen <%= @puppet_passenger_port %>

<VirtualHost *:<%= @puppet_passenger_port %>>
  ServerName <%= @puppet_site %>

  SSLProtocol -ALL +SSLv3 +TLSv1
  SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP
  SSLVerifyClient         optional
  SSLVerifyDepth          1
  SSLOptions              +StdEnvVars

  RequestHeader unset X-Forwarded-For

  RequestHeader set X-SSL-Subject %{SSL_CLIENT_S_DN}e
  RequestHeader set X-Client-DN %{SSL_CLIENT_S_DN}e
  RequestHeader set X-Client-Verify %{SSL_CLIENT_VERIFY}e

  DocumentRoot <%= puppet_docroot %>
  RackBaseURI /
  <Directory /etc/puppet/rack/>
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>
<% if @puppet_central_ca -%>

  ProxyRequests Off
  <Proxy *>
    Order allow,deny
<% @proxy_allow_from.each do |host| -%>
    Allow from <%= host %>
<% end -%>
  </Proxy>

  ProxyVia On

  ProxyPassMatch ^/([^/]+/certificate.*)$ <%= @puppet_central_ca %>/$1
<% end -%>
</VirtualHost>

  SSLProtocol -ALL +SSLv3 +TLSv1
  SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP
  SSLVerifyClient         optional
  SSLVerifyDepth          1
  SSLOptions              +StdEnvVars

  RequestHeader unset X-Forwarded-For

  RequestHeader set X-SSL-Subject %{SSL_CLIENT_S_DN}e
  RequestHeader set X-Client-DN %{SSL_CLIENT_S_DN}e
  RequestHeader set X-Client-Verify %{SSL_CLIENT_VERIFY}e

  RackBaseURI /
  <Directory /etc/puppet/rack/>
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>
<% if @puppet_central_ca -%>

  ProxyRequests Off
  <Proxy *>
    Order allow,deny
<% @proxy_allow_from.each do |host| -%>
    Allow from <%= host %>
<% end -%>
  </Proxy>

  ProxyVia On

  ProxyPassMatch ^/([^/]+/certificate.*)$ <%= @puppet_central_ca %>/$1
<% end -%>

Remove servername, listen, documentroot directives and virtual host declerations.


Response: <%= response.data.status %>

  <% if response.data? %>

      <%# This is kind of fancy for no reason but whatever %>
      <% if response.data.headers %>

Headers

<%= JSON.pretty_generate(response.data.headers) %>

      <% end %>

      <% if response.data.body %>

Body

<%= JSON.pretty_generate(response.data.body) %>

      <% end %>

  <% end %>

Fix headers panel for response view

Fix headers panel for response view


$(document).ready(function() {
  const CLIENT_ID = '<%= ENV['CLIENT_ID'] %>';

  axios.get(`https://api.soundcloud.com/users/14533601/tracks?client_id=${CLIENT_ID}`)
    .then(function (response) {
      // Store the length of the tracks
      const trackLength = response.data.length;

      // Pick a random number
      const randomNumber = Math.floor((Math.random() * trackLength) + 1);

      // Return track id of random track
      track = response.data[randomNumber]
      console.log(track)
      trackId = response.data[randomNumber].id
      trackName = response.data[randomNumber].title
      trackUrl = response.data[randomNumber].permalink_url
    })
    .then(function() {
      SC.initialize({
        client_id: '<%= ENV['CLIENT_ID'] %>'
      });

      SC.stream('/tracks/' + trackId, function(sound) {
        let playing = false;

        $('.track-name').html(trackName)

        $('.radio').on('click', '#start', function(event) {
          event.preventDefault();
          if (playing === true) {
            sound.pause();
            playing = false;
          } else {
            sound.play()
            playing = true;
          }
        });

        $('.radio').on('click', '#stop', function(event) {
          event.preventDefault();
          sound.pause();
          playing = false;
        });
      });
    })
});

$(document).ready(function() {
  const CLIENT_ID = '<%= ENV['CLIENT_ID'] %>';

  axios.get(`https://api.soundcloud.com/users/14533601/tracks?client_id=${CLIENT_ID}`)
    .then(function (response) {
      // Store the length of the tracks
      const trackLength = response.data.length;

      // Pick a random number
      const randomNumber = Math.floor((Math.random() * trackLength) + 1);

      // Return track id of random track
      track = response.data[randomNumber]
      console.log(track)
      trackId = response.data[randomNumber].id
      trackName = response.data[randomNumber].title
      trackUrl = response.data[randomNumber].permalink_url
    })
    .then(function() {
      SC.initialize({
        client_id: '<%= ENV['CLIENT_ID'] %>'
      });

      SC.stream('/tracks/' + trackId, function(sound) {
        let playing = false;

        $('.track-name').html(trackName);
        $('.track-name').attr('href', trackUrl);

        $('.radio').on('click', '#start', function(event) {
          event.preventDefault();
          if (playing === true) {
            sound.pause();
            playing = false;
          } else {
            sound.play()
            playing = true;
          }
        });

        $('.radio').on('click', '#stop', function(event) {
          event.preventDefault();
          sound.pause();
          playing = false;
        });
      });
    })
});

Update radio to include url for playing track


    HOMEBASE
    <button type="button" class="btn btn-default btn-xs pull-right" data-toggle="collapse" data-target="#about">About</button>

Created by Code for America and the City of San Antonio

Read more about the project on our promo page.

Do you need help? Send us an email with your issue

Please send us an email at sanantonio@codeforamerica.org

Add clearfix to clean up collapsible about section


<%= page_title 'hub_variant_c.select_documents.title' %>
<% content_for :feedback_source, 'PROVE_YOUR_IDENTITY_ANOTHER_WAY_PAGE' %>

<%= t("hub_variant_c.prove_your_identity_another_way.heading") %>

<%= t("hub_variant_c.prove_your_identity_another_way.sub_heading", service_name: @service_name) %>

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

<%= page_title 'hub_variant_c.select_documents.title' %>
<% content_for :feedback_source, 'PROVE_YOUR_IDENTITY_ANOTHER_WAY_PAGE' %>

<%= t("hub_variant_c.prove_your_identity_another_way.heading") %>

<%= t("hub_variant_c.prove_your_identity_another_way.sub_heading", service_name: @service_name) %>

        <%= raw @other_ways_text %>

Remove extra h2 heading on otherways

HUB-636: Remove extra h2 heading on otherways

- The ‘other ways' page includes the 'Other ways' h2 which should not be there, like the
  design: https://docs.google.com/drawings/d/1zCBOKqsLQSJQl5NNqWUzs5FhlY0EXoy6JOxfRtv--qM/edit
- The 'other ways page needs full stop after the service name in the first sentence.


<%= title("Sequences ‧ #{@current_workspace.name}") %>

  <% if @sequences.empty? %>

This workspace is empty.

          <%= link_to "Import", new_workspace_sequence_path, class: "btn btn-primary", role: "button" %>

  <% else %>

<%= @current_workspace.name %>

      <%= render "shared/pager" %>

    <% @sequences.each do |sequence| %>

          <%= sequence.type %>

          <%= link_to sequence.name, workspace_sequence_path(name: sequence.name) %>

          <%= pluralize sequence.children.length, "subsequence" %>, <%= pluralize sequence.parents.length, "parents" %>

    <% end %>

      <%= render "shared/pager" %>

  <% end %>

  <% unless @sequences.empty? %>
    <%= link_to fa_icon("upload lg", text: "Import sequences"), new_workspace_sequence_path, class: "btn btn-default"%>
  <% end %>

Add an import sequences button to the list sequences page


<%= link_to "+ New #{@model.name}".html_safe, polymorphic_url([:admin, @model], :action => "new"), :class => "new_document" %>

<%= @model.name.pluralize %>

<%= will_paginate @items %>

      <% @list_fields.each do |field| %>
        <%= field.humanize %>
      <% end %>

    <% @items.each do |item| %>
      <tr<%= ' class="draft"'.html_safe if item.draft rescue nil %>>
        <% @list_fields.each_with_index do |field, index|%>
        <%= list_field item, field %> <%= "draft".html_safe if (item.draft? rescue nil) && index == 0 %>
        <% end %>
        <%= render :partial => "admin/default/list_actions", :locals => { :item => item } %>

    <% end %>

<% if @model.all.size > 15 %>
  <%= link_to "+ New #{@model.name}".html_safe, polymorphic_url([:admin, @model], :action => "new"), :class => "new_document" %>
  <%= will_paginate @items %>
<% end %>

<%= link_to "+ New #{@model.name}".html_safe, polymorphic_url([:admin, @model], :action => "new"), :class => "new_document" %>

<%= @model.name.pluralize %>

<%= will_paginate @items %>

      <% @list_fields.each do |field| %>
        <%= field.humanize %>
      <% end %>

    <% @items.each do |item| %>
      <tr<%= ' class="draft"'.html_safe if item.draft rescue nil %>>
        <% @list_fields.each_with_index do |field, index|%>
        <%= list_field item, field %> <%= "draft".html_safe if (item.draft? rescue nil) && index == 0 %>
        <% end %>
        <%= render :partial => find_partial("list_actions"), :locals => { :item => item } %>

    <% end %>

<% if @model.all.size > 15 %>
  <%= link_to "+ New #{@model.name}".html_safe, polymorphic_url([:admin, @model], :action => "new"), :class => "new_document" %>
  <%= will_paginate @items %>
<% end %>

Use find_partial for list actions so they can be overridden


			<%= nav_item 'Home', root_path %>
		    <%= nav_item 'Links', links_path %>

		  <% if current_user %>
		    <%= nav_item 'Sign out', signout_path, id: 'sign_out' %>
		  <% end %>

			<% if current_user %>

				  <button class="btn"><%= link_to current_user.name, current_user %></button>
				  <button class="btn dropdown-toggle" data-toggle="dropdown">

				  </button>

<%= link_to 'Sign out', signout_path %>

			<% else %>
				<%= link_to 'Sign in', '/signin', id: 'sign_in', class: 'btn btn-primary' %>
			<% end %>

			<%= nav_item 'Home', root_path %>
		    <%= nav_item 'Links', links_path %>

		  <% if current_user %>
		    <%= nav_item 'Sign out', signout_path, id: 'sign_out' %>
		  <% end %>

			<% if current_user %>

				  <button class="btn">

				  	<%= link_to current_user.name, current_user %>
				  </button>
				  <button class="btn dropdown-toggle" data-toggle="dropdown">

				  </button>

<%= link_to 'Sign out', signout_path %>

			<% else %>
				<%= link_to 'Sign in', '/signin', id: 'sign_in', class: 'btn btn-primary' %>
			<% end %>

Add a user icon to current user dropdown


<!DOCTYPE html>

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

    <% if user_signed_in? %>

      <%= link_to "Profile", user_path(current_user) %>

    |

Signed in as <%= current_user.username %>. Not you?

    |

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

    <% else %>

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

    |

      <%= link_to "Sign in", new_user_session_path %>

    <% end %>

<%= yield %>

<!DOCTYPE html>

  <title>CommunityMessageHub</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>

    <% if user_signed_in? %>

      <%= link_to "Profile", user_path(current_user) %>

    |

Signed in as <%= current_user.username %>. Not you?

    |

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

    <% else %>

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

    |

      <%= link_to "Sign in", new_user_session_path %>

    <% end %>

<%= yield %>

Remove bootstrap classes from navbar

Remove bootstrap classes from navbar


    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title>HueIT</title>

    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "application" %>
    <%= csrf_meta_tags %>
    <meta name="theme-color" content="#09cdda">

    <%= yield :headJavascript %>

hueIT Digital light picker

    <% flash.each do |name, msg| %>
      <%= content_tag :div, class: "#{name.to_s} callout", data: {:closable => ""} do %>
        <%= content_tag :h5, msg, class: "flash-heading" %>
        <button class="close-button" aria-label="Dismiss alert" type="button" data-close>
          ×
        </button>
      <% end %>
    <% end %>
    <%= yield %>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title>HueIT</title>

    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "application" %>
    <%= csrf_meta_tags %>
    <meta name="theme-color" content="#09cdda">

    <%= yield :headJavascript %>

hueIT Digital light picker

        <%= link_to root_url do %>

        <% end %>

    <% flash.each do |name, msg| %>
      <%= content_tag :div, class: "#{name.to_s} callout", data: {:closable => ""} do %>
        <%= content_tag :h5, msg, class: "flash-heading" %>
        <button class="close-button" aria-label="Dismiss alert" type="button" data-close>
          ×
        </button>
      <% end %>
    <% end %>
    <%= yield %>

Add link on cthit logo to root path

Add link on cthit logo to root path


<% if @user %>
  <% content_for("subnavbar") do %>

<%= link_to "Add", :action => "create", :user_id => @user.id %>

<%= link_to "List for user", :action => "index", :user_id => @user.id %>

<%= link_to "List for all", :action => "index", :user_id => nil %>

  <% end %>
<% end %>

<% if @user %>
  <% content_for :subnavbar do %>

<%= link_to "Add", :action => "create", :user_id => @user.id %>

<%= link_to "List for user", :action => "index", :user_id => @user.id %>

<%= link_to "List for all", :action => "index", :user_id => nil %>

  <% end %>
<% end %>

Use symbol for content_for instead of string.

--HG--
extra : rebase_source : 15b340c7c1ecb6297fc5d4721c04711b7fb62ca7


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

@java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public interface <%= repository.imit.gwt_data_loader_service_interface_name %>
  extends org.realityforge.replicant.client.transport.DataLoaderService
{
  @javax.annotation.Nullable
  <%= repository.imit.qualified_gwt_client_session_interface_name %> getSession();

  @javax.annotation.Nonnull
  <%= repository.imit.qualified_gwt_client_session_interface_name %> ensureSession();
}

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

@java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public interface <%= repository.imit.gwt_data_loader_service_interface_name %>
  extends org.realityforge.replicant.client.transport.DataLoaderService<<%= repository.imit.qualified_graph_enum_name %>>
{
  @javax.annotation.Nullable
  <%= repository.imit.qualified_gwt_client_session_interface_name %> getSession();

  @javax.annotation.Nonnull
  <%= repository.imit.qualified_gwt_client_session_interface_name %> ensureSession();
}

Update to the latest version of replicant


<%= render "admin/header" -%>

    <%= render 'admin/nav_tabs' -%>

            Topics are used to pre-fill reasonable defaults for the e-mail tool.  You can assign a topic category to e-mail actions to make it quicker and easier for end users to e-mail their reps.  Dragging a row up or down changes the priority or "tier" for the topics.

        <%= react_component("TopicCategoryTables",
              topicCategories: TopicCategory.order(:id).map{ |x| topic_category_props(x) }) %>

<%= render "admin/header" -%>

    <%= render 'admin/nav_tabs' -%>

            Congress topics are used to pre-fill reasonable defaults for the e-mail tool.  You can assign a topic category to e-mail actions to make it quicker and easier for end users to e-mail their reps.  Dragging a row up or down changes the priority or "tier" for the topics.

        <%= react_component("TopicCategoryTables",
              topicCategories: TopicCategory.order(:id).map{ |x| topic_category_props(x) }) %>

Change language to "congress topics"

Change language to "congress topics"


    Applications
    add

        You dont have any application.

        Wana like create your first application?

    Applications
    add

 <% if current_subject.applications.blank? %>

        You dont have any application.

        Wana like create your first application?

 <% else %>
    <%= render partial: 'site/clients/list',
               object: current_subject.applications %>
 <% end %>

Remove comments from application list

Remove comments from application list


Manage reservations

    <% if @reservations.approved.size > 0 %>

Approved reservations

      <%= render "reservations/reservations", reservations: @reservations.approved, form: false %>
    <% end %>

Pending reservations

    <%= render "reservations/reservations", reservations: @reservations.not_approved, form: true %>

<%= render partial: 'reservations/info_modal' %>

Manage reservations

    <% if @reservations.approved.size > 0 %>

Approved reservations

      <%= render "reservations/reservations", reservations: @reservations.approved, form: false %>
    <% end %>

Pending reservations

    <%= render "reservations/reservations", reservations: @reservations.not_approved, form: true %>

Special requests? <%= mail_to "info@12urenloop.be", "Let us know" %>!
<%= render partial: 'reservations/info_modal' %>

Add link to ask for special requests, this will be automized later on


---
title: "Project Stories"

project_stories:
  - image: ""
    client: "Contiki Holidays"
    title: "Powerful offshore partnership creates 47% increase in bookings for Contiki Holidays"
    link: "project-stories/contiki-holidays"
  - image: ""
    client: "Naturejobs"
    title: "Recruitment site revitalisation for major scientific publishing group"
    link: "project-stories/naturejobs"
  - image: ""
    client: "Plymouth University"
    title: "Unboxed leads Agile overhaul of Plymouth University website"
    link: "project-stories/plymouth-university"
  - image: ""
    client: "SH:24"
    title: "Unboxed transform NHS sexual health clinics to a digital service in 8 weeks"
    link: "project-stories/sh24"
  - image: ""
    client: "Plymouth University Gets Agile"
    title: "Embedding Agile methodology at a major university"
    link: "project-stories/plymouth-university-gets-agile"
  - image: ""
    client: "Channel 5"
    title: "Unboxed redevelopment of Channel5.com attracts more users, driving advertising revenue"
    link: "project-stories/channel-5"
---

      <%= current_page.data.title %>

Add project stories grid content and a page header


<%=repomans[:package_id]%>

		<a class="btn btn-default <%="disabled" if repomans[:current_log].nil?%>" href="#current_log">Current Ruby Target(s)
		<a class="btn btn-default <%="disabled" if repomans[:next_log].nil?%>" href="#next_log">Next Ruby Target

<%unless repomans[:current_log].nil?%>

Current Ruby Target(s)

<%=repomans[:current_log]%>

<%end%>

<%unless repomans[:next_log].nil?%>

Next Ruby Target

<%=repomans[:next_log]%>

<%end%>

<%=repomans[:package_id]%>

<%=Time.at(repomans[:time].to_i).strftime('%Y-%m-%d')%>

		<a class="btn btn-default <%="disabled" if repomans[:current_log].nil?%>" href="#current_log">Current Ruby Target(s)
		<a class="btn btn-default <%="disabled" if repomans[:next_log].nil?%>" href="#next_log">Next Ruby Target

<%unless repomans[:current_log].nil?%>

Current Ruby Target(s)

<%=repomans[:current_log]%>

<%end%>

<%unless repomans[:next_log].nil?%>

Next Ruby Target

<%=repomans[:next_log]%>

<%end%>

Add timestamps to log pages

Add timestamps to log pages


---
title: "The £50k Springboard"
subtitle: "How to use the first £50k of a digital product to build the business case for the next £500k"

who_should_attend_title: "Who should attend?"
who_should_attend:
  - CTOs
  - Product Owners
  - Product Managers

date: "Monday 30th November"
time: "9am for 9.30am – 12.00pm"
location: "Adam House, 7-10 Adam Street, London, WC2N 6AA"
cta_text: "Get my place"
cta_price: "for £95.00 + VAT"

content:
  introduction: "How do you prove the concept for a large, new digital product and unlock a full budget, with just the first signed-off £50k... especially when you’re using Agile? Hear from those who have tried, tested and succeeded in doing so - Reed Learning, NHS SH:24 and BBC."

  find_out_title: "Find out how to"
  find_out:
    - "Build a business case for a new digital product or the overhaul of an existing one, using the first £50k as a springboard"
    - "Structure the Agile phases of work to demonstrate value and unlock the rest of the budget"
    - "Build trust with stakeholders at high risk product phases"
    - "Communicate value, learning, risk and progress clearly to people unfamiliar with Agile"
    - "Work with dev partners to nail the first phase to build trust"
    - "Use the psychology of ‘the money’ to avoid classic Agile stakeholder pitfalls"

  responsible_for_title: "This event is for those responsible for"
  responsible_for:
    - "Getting a major new software application off the ground"
    - "Or.. planning a major overhaul an existing online software product"
    - "Creating the business case for a significant development budget"

speakers:
  - name: ""
    role: ""
    twitter: ""
    bio: ""
---

<% content_for(:title) { "Event - #{current_page.data.title}" } %>

Add content for latest event

Add content for latest event


[handler:storage.content.new]
<% if @quarantine or @replication -%>
pipeline =<% if @quarantine %> quarantine<% end %><% if @replication %> replication<% end %>
<% end -%>

[handler:storage.content.deleted]
pipeline = content_cleaner<% if @replication %> replication<% end %>

[handler:storage.container.new]
pipeline = account_update

[handler:storage.container.deleted]
pipeline = account_update

[handler:storage.container.state]
pipeline = account_update

[handler:storage.chunk.new]
pipeline = volume_index

[handler:storage.chunk.deleted]
pipeline = volume_index

[filter:content_cleaner]
use = egg:oio#content_cleaner

[filter:account_update]
use = egg:oio#account_update

[filter:volume_index]
use = egg:oio#volume_index

<% if @quarantine -%>
[filter:quarantine]
use = egg:oio#notify
tube = vrc-quarantine
queue_url = <%= @quarantine_queue_url %>
<% end -%>

<% if @replication -%>
[handler:storage.content.append]
pipeline = replication

[filter:replication]
use = egg:oio#notify
tube = oio-repli
queue_url = <%= @replication_queue_url %>
<% end -%>

[handler:storage.content.new]
<% if @quarantine or @replication -%>
pipeline =<% if @quarantine %> quarantine<% end %><% if @replication %> replication<% end %>
<% end -%>

[handler:storage.content.deleted]
pipeline = content_cleaner<% if @quarantine %> quarantine<% end %><% if @replication %> replication<% end %>

[handler:storage.container.new]
pipeline = account_update

[handler:storage.container.deleted]
pipeline = account_update

[handler:storage.container.state]
pipeline = account_update

[handler:storage.chunk.new]
pipeline = volume_index

[handler:storage.chunk.deleted]
pipeline = volume_index

[filter:content_cleaner]
use = egg:oio#content_cleaner

[filter:account_update]
use = egg:oio#account_update

[filter:volume_index]
use = egg:oio#volume_index

<% if @quarantine -%>
[filter:quarantine]
use = egg:oio#notify
tube = vrc-quarantine
queue_url = <%= @quarantine_queue_url %>
<% end -%>

<% if @replication -%>
[handler:storage.content.append]
pipeline = replication

[filter:replication]
use = egg:oio#notify
tube = oio-repli
queue_url = <%= @replication_queue_url %>
<% end -%>

Add quarantine in delete event handlers

Add quarantine in delete event handlers


<%= render :partial => "common_documents/home", :collection => actor_documents(subject), :locals => { :div_class => 'row' }, :as => :document %>

<%= render :partial => "common_documents/home", :collection => subject_documents(subject), :locals => { :div_class => 'row' }, :as => :document %>

Fix actor_documents to subject_documents change


<%= content_for :breadcrumbs do %>
  <%= breadcrumbs_for_my_account %>
<% end %>

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

<%= t(:activity) %>

        <%= render partial: 'activity_indicator',
                   locals: {
                     title: t(:exercises),
                     stats: exercises_activity_stats
                   } %>

        <%= render partial: 'activity_indicator',
                   locals: {
                     title: t(:forum),
                     stats: messages_activity_stats
                   } %>

          <%= link_to t(:total), activity_user_path, class: "mu-user-activity-week-selector #{mark_period_if_active(nil)}" %>
          <% activity_selector_week_range_for.each do |(week_start, week_end)| %>
            <%= link_to t(:week_of, date: l(week_start)), activity_user_path(date_from: week_start, date_to: week_end),
                        class: "mu-user-activity-week-selector #{mark_period_if_active(week_start)}" %>
          <% end %>

<%= content_for :breadcrumbs do %>
  <%= breadcrumbs_for_my_account %>
<% end %>

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

<%= t(:activity) %>

        <%= render partial: 'activity_indicator',
                   locals: {
                     title: t(:exercises),
                     stats: exercises_activity_stats
                   } %>

        <% if Organization.current.forum_enabled? %>
          <%= render partial: 'activity_indicator',
                     locals: {
                       title: t(:forum),
                       stats: messages_activity_stats
                     } %>
          <% end %>

          <%= link_to t(:total), activity_user_path, class: "mu-user-activity-week-selector #{mark_period_if_active(nil)}" %>
          <% activity_selector_week_range_for.each do |(week_start, week_end)| %>
            <%= link_to t(:week_of, date: l(week_start)), activity_user_path(date_from: week_start, date_to: week_end),
                        class: "mu-user-activity-week-selector #{mark_period_if_active(week_start)}" %>
          <% end %>

Hide messages count from Activity view if organization doesn't have forum


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

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

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

<%= msg %>

      <% end %>

  <% end %>

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

    <%= f.label :scrum_master %>:
	  <%= f.collection_select :scrum_master_id, @team.members, :id, :name, { :include_blank => true } %>

    <%= f.label :product_owner %>:
	  <%= f.collection_select :product_owner_id, User.all, :id, :name, { :include_blank => true } %>

    <%= f.submit %>

<% end %>

Tidy up the team form

Tidy up the team form


---
- scm:
    name: smokey_Smokey
    scm:
      - git:
          url: git@github.com:alphagov/smokey.git
          branches: [master]

- job:
    name: Smokey
    description: Task to run the smoke tests after each deploy.
    display-name: Smokey
    project-type: freestyle
    scm:
      - smokey_Smokey
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    publishers:
      - trigger-parameterized-builds:
          - project: Success_Passive_Check
            condition: SUCCESS
            predefined-parameters: |
                NSCA_CHECK_DESCRIPTION=<%= @service_description %>
                NSCA_OUTPUT=<%= @service_description %> success
          - project: Failure_Passive_Check
            condition: FAILED
            predefined-parameters: |
                NSCA_CHECK_DESCRIPTION=<%= @service_description %>
                NSCA_OUTPUT=<%= @service_description %> failed
    builders:
      - shell: |
          set +x
          export TARGET_PLATFORM=<%= @environment %>
          set -x
          ./jenkins.sh
    wrappers:
      - ansicolor:
          colormap: xterm

---
- scm:
    name: smokey_Smokey
    scm:
      - git:
          url: git@github.com:alphagov/smokey.git
          branches: [master]

- job:
    name: Smokey
    description: Task to run the smoke tests after each deploy.
    display-name: Smokey
    project-type: freestyle
    scm:
      - smokey_Smokey
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    publishers:
      - trigger-parameterized-builds:
          - project: Success_Passive_Check
            condition: SUCCESS
            predefined-parameters: |
                NSCA_CHECK_DESCRIPTION=<%= @service_description %>
                NSCA_OUTPUT=<%= @service_description %> success
          - project: Failure_Passive_Check
            condition: FAILED
            predefined-parameters: |
                NSCA_CHECK_DESCRIPTION=<%= @service_description %>
                NSCA_OUTPUT=<%= @service_description %> failed
    parameters:
      - string:
          name: TARGET_APPLICATION
          description: Application to target (optional).
    builders:
      - shell: |
          set +x
          export TARGET_PLATFORM=<%= @environment %>
          set -x
          ./jenkins.sh
    wrappers:
      - ansicolor:
          colormap: xterm

Support running only app-specific scenarios

This adds an optional string parameter that will be used by the
'jenkins.sh' script in Smokey to only run scenarios with a tag
that matches, noting that many scenarios are not relevant to a
given app. We need this feature to support Continuous Deployment,
so that deploys are not blocked by unrelated failures. The name
'TARGET_APPLICATION' makes this job triggerable by 'Deploy_App',
since the parameter names match.


//Load the requirejs optimizer
var requirejs = require('<%= rjs_path %>'),
  //Set up basic config, include config that is
  //common to all the optimize() calls.
  baseConfig = <%=
    modifiedHash = build_config.select {|k, _| k != "modules"}
    pathsHash = modifiedHash["paths"]
    modifiedHash["dir"] = self.target_dir
    modifiedHash["paths"] = pathsHash.select {|_, v| !v.is_a?(Array)} if !pathsHash.nil?

    JSON.pretty_generate(modifiedHash)
  %>;

baseConfig.modules = [
<% build_config['modules'].each do |m| %>
<%= JSON.pretty_generate(m) %>,
<% end %>
];

requirejs.optimize(baseConfig);

//Load the requirejs optimizer
var requirejs = require('<%= rjs_path %>'),
  //Set up basic config, include config that is
  //common to all the optimize() calls.
  baseConfig = <%=
    modifiedHash = build_config.select {|k, _| k != "modules"}
    pathsHash = modifiedHash["paths"]
    modifiedHash["dir"] = self.target_dir.to_s
    modifiedHash["paths"] = pathsHash.select {|_, v| !v.is_a?(Array)} if !pathsHash.nil?

    JSON.pretty_generate(modifiedHash)
  %>;

baseConfig.modules = [
<% build_config['modules'].each do |m| %>
<%= JSON.pretty_generate(m) %>,
<% end %>
];

requirejs.optimize(baseConfig);

Fix invalid dir value in build config.

Fix invalid dir value in build config.

Convert target_dir path config to a string to ensure json structure is
valid. Closes #165.


<% if calculator.partner_is_same_sex? %>
  Civil partnership in Russia
<% else %>
  Marriage in Russia
<% end %>

<% if calculator.partner_is_same_sex? %>
  Same-sex marriage in Russia
<% else %>
  Marriage in Russia
<% end %>

Update outcome partials for Russia

Update outcome partials for Russia

"Same-sex marriage" instead of "Civil partnership"


<!DOCTYPE html>
<html>
<head>
  <title><%= full_title(yield(:title)) %></title>
  <%= stylesheet_link_tag    "application",
                             media: "all",
                             "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application",
                             "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
  <%= render 'layouts/shim' %>
</head>
<body>
  <%= render 'layouts/header' %>
  <div class="container">
    <%= yield %>
    <%= render 'layouts/footer' %>
  </div>
</body>
</html>

<!DOCTYPE html>

  <title><%= full_title(yield(:title)) %></title>
  <%= stylesheet_link_tag    "application",
                             media: "all",
                             "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application",
                             "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
  <%= render 'layouts/shim' %>

  <%= render 'layouts/header' %>

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

    <% end %>
    <%= yield %>
    <%= render 'layouts/footer' %>

Add a 'flash' variable to the web page

Add a 'flash' variable to the web page

A 'flash' variable is an object that flashes the first time
someone visits the page and then does no longer show up.


<% if @events.empty? %>

We currently have no events lined up.

But we'll add new ones soon!

You can <%=link_to 'submit your own conference', new_event_path %> now or browse through <%= link_to 'past events', past_events_path if @past_events.any? %>.

<% else %>

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

<%= link_to event.name, event_path(:id => event.id) %>

<%= event.description %>

      <% if event.open? %>
        <% if event.application_process == 'application_by_organizer' %>
          <%= link_to "Apply at #{event.name}", event.application_link, class:'btn btn-save btn-external' %>
        <% else %>
          <%= link_to 'Apply', new_event_application_path(:event_id => event.id), class:'btn btn-save' %>
        <% end %>
      <% end %>

  <% end %>

<% end %>

<%= link_to 'Show past events', past_events_path if @past_events.any? %>

<% if @events.empty? %>

We currently have no events lined up.

But we'll add new ones soon!

You can <%=link_to 'submit your own conference', new_event_path %> now or browse through <%= link_to 'past events', past_events_path if @past_events.any? %>.

<% else %>

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

<%= link_to event.name, event_path(:id => event.id) %>

<%= event.description %>

      <% if event.open? %>
        <% if event.application_process == 'application_by_organizer' %>
          <%= link_to "Apply at #{event.name}", event.application_link, class:'btn btn-save btn-external' %>
        <% else %>
          <%= link_to 'Apply', new_event_application_path(:event_id => event.id), class:'btn btn-save' %>
        <% end %>
      <% end %>

  <% end %>

  <%= link_to 'Show past events', past_events_path if @past_events.any? %>
<% end %>

Move show past events link back in appropriate place


    <%= link_to project.title, project_path(project)%>
    (
Location: <%= project.creator.city %>, <%= project.creator.state %>
)

<%= project.description %>

Project Lead: <%= project.creator.username %>

      <% project.tags.each do |tag| %>

<%= link_to tag.name, tag_path(tag), class: "tag"%>

  <% end %>

    <%= link_to project.title, project_path(project)%>
    (Location: <%= project.creator.city %>, <%= project.creator.state %>)

<%= project.description %>

Project Lead: <%= project.creator.username %>

      <% project.tags.each do |tag| %>

<%= link_to tag.name, tag_path(tag), class: "tag"%>

  <% end %>

Fix new line for location display

Fix new line for location display


<% provide :title, 'Login' %>

Login

<%= form_for(:session, url: login_path) do |f| %>
  <%= f.label :email %>
  <%= f.email_field :email %>

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

  <%= f.submit 'Login' %>
<% end %>

<% provide :title, 'Login' %>

Login

<%= form_for(:session, url: login_path) do |f| %>
  <%= f.label :email %>
  <%= f.email_field :email %>

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

  <%= f.submit 'Login' %>

New here? <%= link_to 'Signup', signup_path %>

<% end %>

Add signup link to login page

Add signup link to login page


<%- serializer_name = [@namespace, class_name].compact.join('::') -%>
class <%= serializer_name %>Serializer < SimpleJsonApi::ResourceSerializer
  serializes :<%= class_name.underscore.pluralize %>, model: <%= @model %>, primary_key: :<%= @model.constantize.primary_key %>

  <%- @model.constantize.column_names.each do |col| -%>
  attribute :<%= col %>
  <%- end -%>

  <%- @model.constantize.reflect_on_all_associations.each do |assoc| -%>
  <%= assoc.macro %> :<%= assoc.name %>
  <%- end -%>
end

<%- serializer_name = [@namespace, class_name].compact.join('::') -%>
class <%= serializer_name %>Serializer < SimpleJsonApi::ResourceSerializer
  serializes :<%= class_name.underscore.pluralize %>, model: <%= @model %>, primary_key: :<%= @model.constantize.primary_key %>

  <%- @model.constantize.column_names.each do |col| -%>
  attribute :<%= col %>
  <%- end -%>

  <%- @model.constantize.reflect_on_all_associations.each do |assoc| -%>
  <%= assoc.macro %> :<%= assoc.name %><%= ', polymorphic: true' if assoc.options[:polymorphic] %>
  <%- end -%>
end

Include flag for polymorphic associations


An error occurred during we were trying to import your sha: <%= @sha %>.

<%= t("mailer.commit.notify_import_errors_in_commit_creator.not_found_in_repo_message", sha: @sha) if @err.is_a? Git::CommitNotFoundError %>

Details of the Error:

Project:       <%= @project.name %>
SHA:           <%= @sha %>
Error Class:   <%= @err.class %>
Error Message: <%= @err.message %>

Please email shuttle-engineering@squareup.com for questions.

Sincerely,
The Shuttle Automated Mailer

An error occurred during we were trying to import your sha: <%= @sha %>.

<%= t("mailer.commit.notify_import_errors_in_commit_creator.not_found_in_repo_message", sha: @sha) if @err.is_a? Git::CommitNotFoundError %>

Details of the Error:

Project:       <%= @project.name %>
SHA:           <%= @sha %>
Error Class:   <%= @err.class %>
Error Message: <%= @err.message %>

Please email <%= Shuttle::Configuration.mailer.from %> for questions.

Sincerely,
The Shuttle Automated Mailer

Send emails from shuttle-engineering@ instead of shuttle@


<%= link_to "Home", "#{base_url}" %>

<%= link_to "Use agora", "#{base_url}/documentacao/introducao/" %>

<%= link_to "Changelog", "#{base_url}/changelog" %>

<%= link_to "Documentação V1", "http://locaweb.github.io/locawebstyle-v1/" %>

<%= link_to "Documentação V2", "http://locaweb.github.io/locawebstyle-v2/" %>

<%= link_to "Home", "#{base_url}" %>

<%= link_to "Documentação", "#{base_url}/documentacao/introducao/" %>

<%= link_to "Changelog", "#{base_url}/changelog" %>

<%= link_to "Documentação V1", "http://locaweb.github.io/locawebstyle-v1/" %>

<%= link_to "Documentação V2", "http://locaweb.github.io/locawebstyle-v2/" %>

Change 'Use agora' to 'Documentação'

Change 'Use agora' to 'Documentação'


<!-- Google Analytics Content Experiment code -->
<script>function utmx_section(){}function utmx(){}(function(){var
k='48388638-0',d=document,l=d.location,c=d.cookie;
if(l.search.indexOf('utm_expid='+k)>0)return;
function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.
indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.
length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write(
'<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl':
'://www')+'.google-analytics.com/ga_exp.js?'+'utmxkey='+k+
'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().
valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
'" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})();
</script><script>utmx('url','A/B');</script>
<!-- End of Google Analytics Content Experiment code -->

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

Add google analytics A/B test code.

Add google analytics A/B test code.

We'll be testing the responsive design.


<%-
if overseas_passports_embassies.any?
  overseas_passports_embassies.each do |embassy|
-%>

$A
<%= embassy.title %>
<%= embassy.address.label.value %>
$A

$C
<%- embassy.contact_numbers.each do |contact| -%>
<%# Some labels have a trailing :, some don't %>
<%= contact.label.sub(/:\s*\z/, '') %>: <%= contact.number %>
<%- end -%>

<%- if embassy.details.email.present? -%>
Email: <<%= embassy.details.email.strip %>>
<%- end -%>

<%- if embassy.web_url.present? -%>
[<%= embassy.title %> - opening hours](<%= embassy.web_url %>)
<%- end -%>
$C
<%-
  end
-%>
<%- else -%>

No embassy details found
<%- end -%>

<%
if overseas_passports_embassies.any?
  overseas_passports_embassies.each do |embassy|
%>

$A
<%= embassy.title %>
<%= embassy.address.label.value %>
$A

$C
<% embassy.contact_numbers.each do |contact| %>
<%# Some labels have a trailing :, some don't %>
<%= contact.label.sub(/:\s*\z/, '') %>: <%= contact.number %>
<% end %>

<% if embassy.details.email.present? %>
Email: <<%= embassy.details.email.strip %>>
<% end %>

<% if embassy.web_url.present? %>
[<%= embassy.title %> - opening hours](<%= embassy.web_url %>)
<% end %>
$C
<%
  end
%>
<% else %>

No embassy details found
<% end %>

Remove space-stripping ERB tags from shared partials

The use of `<%- -%>` has no effect[1].

[1]: "When on a line that only contains whitespaces except for the tag, <% %>
suppress leading and trailing whitespace, including the trailing newline. <% %>
and <%- -%> are the same. Note however that <%= %> and <%= -%> are different:
only the latter removes trailing whitespaces." from
http://api.rubyonrails.org/classes/ActionView/Base.html