<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

<dict>
  <key>Label</key>
  <string>com.opscode.chef-client</string>
<%- if @launchd_mode == "interval" %>
  <key>Program</key>
  <string><%= @client_bin %></string>
  <key>StartInterval</key>
  <integer><%= node["chef_client"]["interval"] %></integer>
  <key>RunAtLoad</key>
  <true/>
<%- else %>
  <key>ProgramArguments</key>
  <array>
    <string><%= @client_bin %></string>
    <string>-i <%= node["chef_client"]["interval"] %></string>
    <string>-s <%= node["chef_client"]["splay"] %></string>
    <% node["chef_client"]["daemon_options"].each do |option| -%>
    <string><%= option %></string>
    <% end -%>
  </array>
<%- end %>
  <key>UserName</key>
  <string>root</string>
  <key>StandardOutPath</key>
  <string><%= node["chef_client"]["log_dir"] %>/client.log</string>
</dict>

</plist>

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

<dict>
  <key>Label</key>
  <string>com.opscode.chef-client</string>
<%- if @launchd_mode == "interval" %>
  <key>Program</key>
  <string><%= @client_bin %></string>
  <key>StartInterval</key>
  <integer><%= node["chef_client"]["interval"] %></integer>
  <key>RunAtLoad</key>
  <true/>
<%- else %>
  <key>ProgramArguments</key>
  <array>
    <string><%= @client_bin %></string>
    <string>-i <%= node["chef_client"]["interval"] %></string>
    <string>-s <%= node["chef_client"]["splay"] %></string>
    <% node["chef_client"]["daemon_options"].each do |option| -%>
    <string><%= option %></string>
    <% end -%>
  </array>
  <key>KeepAlive</key>
  <true/>
<%- end %>
  <key>StandardOutPath</key>
  <string><%= node["chef_client"]["log_dir"] %>/client.log</string>
</dict>

</plist>

[COOK-4092] Add KeepAlive so that launchd will "daemonize" chef-client for us.

Signed-off-by: Sean OMeara <4025b808ec3cf11e3d5c9a1a3bd1e7c4003cb3a1@opscode.com>


<% if attr_listing.size > 0 %>

Attribute Details

    <% attr_listing.each_with_index do |meth, i| %>
      <% rw = meth.namespace.attributes[meth.scope][meth.name] %>
      <span id="<%= anchor_for(rw[:write]) %>">
      <span id="<%= anchor_for(rw[:read]) %>">
      <%= yieldall :object => meth, :index => i %>
    <% end %>

<% end %>

<% if attr_listing.size > 0 %>

Attribute Details

    <% attr_listing.each_with_index do |meth, i| %>
      <% rw = meth.namespace.attributes[meth.scope][meth.name.to_s.gsub(/=$/, '').to_sym] %>
      <span id="<%= anchor_for(rw[:write]) %>">
      <span id="<%= anchor_for(rw[:read]) %>">
      <%= yieldall :object => meth, :index => i %>
    <% end %>

<% end %>

Fix issue with writeonly attributes

Fix issue with writeonly attributes


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

<%= javascript_include_tag "application", debug: Rails.env.development? && params[:debug_assets] %>

<%- unless(Rails.env.test?) %>
  <%= javascript_include_tag *webpack_assets_service.getAssetPathsFor("single_page_apps/notification_center", "single_page_apps/version_update_checker_for_rails") %>
<%- end %>

<![if !IE]>
    <%= javascript_include_tag 'lib/d3-3.1.5.min' %>
<![endif]>
<!--[if gt IE 8]><!-->
    <%= javascript_include_tag 'lib/d3-3.1.5.min' %>
<!--<![endif]-->

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

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

<%= javascript_include_tag "application", debug: Rails.env.development? && params[:debug_assets] %>

<%- unless(Rails.env.test?) %>
  <%= javascript_include_tag *webpack_assets_service.getJSAssetPathsFor("single_page_apps/notification_center", "single_page_apps/version_update_checker_for_rails") %>
  <%= stylesheet_link_tag *webpack_assets_service.getCSSAssetPathsFor("single_page_apps/base") %>
<%- end %>

<![if !IE]>
    <%= javascript_include_tag 'lib/d3-3.1.5.min' %>
<![endif]>
<!--[if gt IE 8]><!-->
    <%= javascript_include_tag 'lib/d3-3.1.5.min' %>
<!--<![endif]-->

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

Fix notifications style on old rails pages


  <%= link_to raw(''), "https://twitter.com/share?text=Check out this lesson: #{@lesson.title}", :data => {toggle: 'tooltip'}, title: "Tweet this lesson" %>

  <%= link_to raw(''),
    "https://www.facebook.com/dialog/share?app_id=498294266938114&href=#{request.original_url}&redirect_uri=#{request.original_url}", :data => {toggle: 'tooltip'}, title: "Share on Facebook" %>

  <a data-toggle="tooltip" title="Share on Google+" href=<%="https://plus.google.com/share?url=#{request.original_url}"%>>

  <a data-toggle="tooltip" title="Pin this lesson" href=<%="//www.pinterest.com/pin/create/button/?url=#{request.original_url}&media=#{image_url('odin_big_silhouette.gif')}&description=#{url_format(@lesson.title)}"%> target="__blank">

  <%= link_to raw(''), "https://twitter.com/share?text=Check out this lesson: #{@lesson.title}", :data => {toggle: 'tooltip'}, title: "Tweet this lesson" %>

  <%= link_to raw(''),
    "https://www.facebook.com/dialog/share?app_id=498292990271575&href=#{request.original_url}&redirect_uri=#{request.original_url}", :data => {toggle: 'tooltip'}, title: "Share on Facebook" %>

  <a data-toggle="tooltip" title="Share on Google+" href=<%="https://plus.google.com/share?url=#{request.original_url}"%>>

  <a data-toggle="tooltip" title="Pin this lesson" href=<%="//www.pinterest.com/pin/create/button/?url=#{request.original_url}&media=#{image_url('odin_big_silhouette.gif')}&description=#{url_format(@lesson.title)}"%> target="__blank">

Switch facebook app id to main app

Switch facebook app id to main app


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

    <%= devise_error_messages! %>

      <%= f.select :role, User.roles, :prompt => true %>

This is your role withing the startup community.

      <%= f.text_field :full_name, :placeholder => 'Full Name' %>

      <%= f.text_field :username, :placeholder => 'Username' %>

      <%= f.email_field :email, :placeholder => 'Email' %>

      <%= f.password_field :password, :placeholder => 'Password' %>

<%= f.submit "Sign up for SOPR", :class => 'blue-btn signup-btn main-btn' %>

<% end %>

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

    <%= devise_error_messages! %>

      <%= f.select :role, User.roles, :prompt => true %>

This is your role within the startup community.

      <%= f.text_field :full_name, :placeholder => 'Full Name' %>

      <%= f.text_field :username, :placeholder => 'Username' %>

      <%= f.email_field :email, :placeholder => 'Email' %>

      <%= f.password_field :password, :placeholder => 'Password' %>

<%= f.submit "Sign up for SOPR", :class => 'blue-btn signup-btn main-btn' %>

<% end %>

Fix typo in the homeform registration partial


<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<%= csrf_meta_tags %>
<title><%= "Spree #{t('administration')}: " %>
<%= t(controller.controller_name, :default => controller.controller_name.titleize) %></title>

<%= javascript_tag do %>
  ajax_urls = <%== {
    :product_search_json       => spree.admin_products_path(:format => 'json'),
    :product_search_basic_json => spree.admin_products_path(:format => 'json', :json_format => 'basic', :limit => 10),
    :user_search_basic_json    => spree.admin_users_path(:format => 'json', :json_format => 'basic', :limit => 10)
  }.to_json %>;

  strings = <%==
    [:no_results, :type_to_search, :searching].
    inject({}){|memo, item| {item => t(item) }}.to_json
  %>
<% end %>

<%= stylesheet_link_tag 'admin/all' %>
<%= javascript_include_tag 'admin/all' %>
<%= javascript_tag do -%>
  jQuery.alerts.dialogClass = 'spree';
  <%== "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %>
<% end -%>

<%= yield :head %>

<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<%= csrf_meta_tags %>
<title><%= "Spree #{t('administration')}: " %>
<%= t(controller.controller_name, :default => controller.controller_name.titleize) %></title>

<%= javascript_tag do %>
  ajax_urls = <%== {
    :product_search_json       => spree.admin_products_path(:format => 'json'),
    :product_search_basic_json => spree.admin_products_path(:format => 'json', :json_format => 'basic', :limit => 10),
  }.to_json %>;

  strings = <%==
    [:no_results, :type_to_search, :searching].
    inject({}){|memo, item| {item => t(item) }}.to_json
  %>
<% end %>

<%= stylesheet_link_tag 'admin/all' %>
<%= javascript_include_tag 'admin/all' %>
<%= javascript_tag do -%>
  jQuery.alerts.dialogClass = 'spree';
  <%== "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %>
<% end -%>

<%= yield :head %>

Remove call to spree.admin_users_path in spree/admin/shared/_head


class CustomHook < Pokey::Hook
  def interval
    5
  end

  def http_method
    :post
  end

  def endpoint
    "http://localhost:3000/api/endpoint"
  end

  def data
    {}
  end
end

Add custom hook template for install generator.


class <%= klass %> < ActiveRecord::Base
  attr_accessible :to_state, :metadata, :sort_key
  belongs_to :<%= parent.underscore %>, inverse_of: :<%= table_name %>
  serialize :metadata
end

class <%= klass %> < ActiveRecord::Base
  include Statesman::Adapters::ActiveRecordTransition

  attr_accessible :to_state, :metadata, :sort_key
  belongs_to :<%= parent.underscore %>, inverse_of: :<%= table_name %>
end

Update generator to include transition mixin


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

<%= node[:web][:log_directory] %>/*.log {
  daily
  missingok
  rotate 7
  compress
  delaycompress
  notifempty
  create 0660 rails rails
  sharedscripts
  postrotate
<% if File.directory?("#{node[:web][:base_directory]}/rails") -%>
    /bin/sleep 30
    PASSENGER_INSTANCE_REGISTRY_DIR=<%= node[:passenger][:instance_registry_dir] %> /usr/bin/passenger-config restart-app --ignore-app-not-running --name rails > /dev/null
<% end -%>
<% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%>
    /bin/systemctl try-reload-or-restart gpx-import
<% end -%>
<% if File.directory?("#{node[:web][:base_directory]}/cgimap") -%>
    /bin/systemctl reload cgimap
    /usr/bin/rsync --preallocate <%= node[:web][:log_directory] %>/cgimap.log.2.gz ironbelly::logs/www.openstreetmap.org/cgimap-<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz
<% end -%>
  endscript
}

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

<%= node[:web][:log_directory] %>/*.log {
  daily
  missingok
  rotate 7
  compress
  delaycompress
  notifempty
  create 0660 rails rails
  sharedscripts
  postrotate
<% if node[:recipes].include?("web::rails") -%>
    /bin/sleep 30
    PASSENGER_INSTANCE_REGISTRY_DIR=<%= node[:passenger][:instance_registry_dir] %> /usr/bin/passenger-config restart-app --ignore-app-not-running --name rails > /dev/null
<% end -%>
<% if node[:recipes].include?("web::frontend") -%>
    /bin/systemctl try-reload-or-restart rails-jobs@mailers
    /bin/systemctl try-reload-or-restart rails-jobs@storage
    /bin/systemctl try-reload-or-restart rails-jobs@traces
<% end -%>
<% if node[:recipes].include?("web::cgimap") -%>
    /bin/systemctl reload cgimap
    /usr/bin/rsync --preallocate <%= node[:web][:log_directory] %>/cgimap.log.2.gz ironbelly::logs/www.openstreetmap.org/cgimap-<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz
<% end -%>
  endscript
}

Fix log rollover for frontends

Fix log rollover for frontends


      <%= image_tag asset_path('feed128x128.png'), alt: 'feedbunch', class: 'application-main-icon' %>

        <%= t 'start.welcome' %>

            <%= t 'start.stats', feeds: '{{subscribed_feeds_count}}', entries: '{{total_unread_entries()}}' %>

        <%= t 'start.read' %>

        <%= render 'read/data_import' %>

Hide the big feedbunch icon in the start page for viewports under the xs- breakpoint.


<%= tag_header @topic, 'Edit' %>

<%= form_for @topic, html: { class: 'topic' } do |f| %>
  <%= f.text_field :slug, :disabled => true %>
  <%= f.text_field :title %>
  <%= f.text_field :description %>
  <%= f.check_box :beta %>

  <% if @topic.published? && @topic.dirty? %>

      Warning
      This item has unpublished changes to the curated lists. Saving will publish these changes.

  <% end %>

  <%= f.submit 'Save', class: 'btn-submit' %>
<% end %>

<%= tag_header @topic, 'Edit' %>

<%= form_for @topic, html: { class: 'topic' } do |f| %>
  <%= f.text_field :slug, :disabled => true %>
  <%= f.text_field :title %>
  <%= f.text_field :description %>
  <%= f.check_box :beta %>
  <%= f.submit 'Save', class: 'btn-submit' %>
<% end %>

Remove warning about unpublished changes

When tags are now saved, we send the currently published groups to the
content-store, not the current representation.


<!DOCTYPE html>

    <%= render "head" %>

    <%= render "header" %>

            <%= yield %>

        <%= render "footer" %>

Move Devise forms to middle of page.

Move Devise forms to middle of page.


Change your password

  Your password has been reset. Choose a new password below.

<%= error_messages_for :user %>

<%= form_for(:user,
            :url => user_password_path(@user, :token => @user.confirmation_token),
            :html => { :method => :put }) do |form| %>

    <%= form.label :password, "Choose password" %>
    <%= form.password_field :password %>

    <%= form.label :password_confirmation, "Confirm password" %>
    <%= form.password_field :password_confirmation %>

    <%= form.submit "Save this password", :disable_with => "Please wait..." %>

<% end %>

Change your password

  Your password has been reset. Choose a new password below.

<%= error_messages_for :user %>

<%= form_for(:user,
            :url => user_password_path(@user.id, :token => @user.confirmation_token),
            :html => { :method => :put }) do |form| %>

    <%= form.label :password, "Choose password" %>
    <%= form.password_field :password %>

    <%= form.label :password_confirmation, "Confirm password" %>
    <%= form.password_field :password_confirmation %>

    <%= form.submit "Save this password", :disable_with => "Please wait..." %>

<% end %>

Use ids in path helpers

Use ids in path helpers


<%= @question.title %>

<%= @question.body %>

    <% if session[:user_id] == @question.user_id %>
      <%= button_to 'Edit Question', {action: "edit", id: @question.id}, method: :get %>
      <%= button_to 'Delete Question', {action: "destroy", id: @question.id}, method: :delete %>
    <% end %>

    <% @article = @question %>

 <%= link_to 'Reply', new_question_comment_path(@article) %>

<%= link_to 'View Comments', question_comments_path(@article)%>

    <%= render 'comments/index', locals: {article: @article} %>

 Answers

 <%= link_to 'Post an Answer', new_question_answer_path(@article) %>

    <% @question.answers.each do |answer| %>
      <%= render partial: "answers/show", locals: {answer: answer} %>

    <% end %>

Move question buttons into question wrap.


<%= render 'solr_plugin/search/facet_results', facet: @facet, less_options_limit: 50 %>

<%= render 'solr_plugin/search/facet_results', facet: @facet, less_options_limit: 200 %>

Increase limit of facets to 200

solr: Increase limit of facets to 200


<fieldset id="order_details" data-hook>

  <legend align="center"><%= Spree.t(@order.state, :scope => :order_state).titleize %></legend>
  <%= render :partial => 'spree/shared/order_details', :locals => { :order => @order } %>
</fieldset>

  <%= submit_tag Spree.t(:place_order), :class => 'continue button primary' %>

<fieldset id="order_details" data-hook>

  <legend align="center"><%= Spree.t(:confirm) %></legend>
  <%= render :partial => 'spree/shared/order_details', :locals => { :order => @order } %>
</fieldset>

  <%= submit_tag Spree.t(:place_order), :class => 'continue button primary' %>

Change confirm step label to uniform it with other steps

Fixes #4075


<script id="transaction_cross_domain_analytics">
  if (typeof GOVUK.analytics != "undefined") {
    GOVUK.analytics.addLinkedTrackerDomain('<%= transaction.department_analytics_profile %>', 'transactionTracker', 'service.gov.uk');
  }
</script>

<script id="transaction_cross_domain_analytics">
  if (typeof GOVUK.analytics != "undefined") {
    GOVUK.analytics.addLinkedTrackerDomain('<%= transaction.department_analytics_profile %>', 'transactionTracker', '<%= URI.parse(transaction.link).host %>');
  }
</script>

Support cross-domain tracking for any destination


<% connected = current_user.connected?(student) %>

    <% if student.for_hire? %>

    <% end %>

    <%= render "student_link", locals: {connected: connected, student: student } %>

  <%= student.skills %>

      <% student.courses.each do |course| %>

<%= course.title %>

      <% end %>

  <%= render "student_actions", locals: {connected: connected, student: student } %>

<% connected = current_user.connected?(student) %>

    <% if student.for_hire? %>

    <% end %>

    <%= name_cell student %>

  <%= student.skills %>

      <% student.courses.each do |course| %>

<%= course.title %>

      <% end %>

    <%= action_cell student %>

Use helper methods in views

Use helper methods in views


<% FastGettext.with_locale FastGettext.default_locale do %>
  <%
    recipient_name = @recipient.name(false)
    requestor_name = @user.name(false)
    plan_name = @plan.title
    tool_name = Rails.configuration.branding[:application][:name]
  %>

<%= _('Hello %{user_name},') % {user_name: recipient_name} %>

<%= _('%{requestor} has requested feedback on a plan "%{plan_name}." To add comments, please visit the \'Plans\' page under the Admin menu in %{application_name} and open the plan.') % {requestor: requestor_name, plan_name: plan_name, application_name: tool_name, allow_change_prefs: false} %>

  <%= render partial: 'email_signature' %>
<% end %>

<% FastGettext.with_locale FastGettext.default_locale do %>
  <%
    recipient_name = @recipient.name(false)
    requestor_name = @user.name(false)
    plan_name = @plan.title
    tool_name = Rails.configuration.branding[:application][:name]
  %>

<%= _('Hello %{user_name},') % {user_name: recipient_name} %>

    <%= raw _(%Q{%{requestor} has requested feedback on a plan %{link_html}. To add comments, please visit the 'Plans' page under the Admin menu in %{application_name} and open the plan.}) % {
    requestor: requestor_name,
    plan_name: plan_name,
    application_name: tool_name,
    allow_change_prefs: false,
    link_html: link_to(plan_name, plan_url(@plan))
    } %>

    Alternatively, you can click the link below:

    <%= link_to plan_url(@plan), plan_url(@plan) %>

  <%= render partial: 'email_signature' %>

<% end %>

Add Plan URL to feedback notification email.

Issue #1431


if [ "$E" == "0" ]; then
  NAGIOS_CODE=0
  NAGIOS_MESSAGE="OK: automysqlbackup succeeded"
elif [ -n "$E" ]; then
  NAGIOS_CODE=2
  NAGIOS_MESSAGE="CRITICAL: automysqlbackup encountered errors"
else
  NAGIOS_CODE=2
  NAGIOS_MESSAGE="CRITICAL: unable to determine automysqlbackup status"
fi

printf "<%= @fqdn %>\t<%= @service_desc %>\t$NAGIOS_CODE\t$NAGIOS_MESSAGE\n" \
  | /usr/sbin/send_nsca -H alert.cluster >/dev/null

tar -C /var/lib/automysqlbackup -jcf /var/lib/automysqlbackup/tmp.tbz2 latest/
mv /var/lib/automysqlbackup/tmp.tbz2 /var/lib/automysqlbackup/latest.tbz2
FINISHEPOCH=`date +%s`
TOTALTIME=$(expr $FINISHEPOCH - $STARTEPOCH)
logger -t automysqlbackup "MySQL backed up in T:$TOTALTIME seconds"

# Remove the temporary file added by the prebackup
rm /var/lock/mysql-backup.lock

if [ "$E" == "0" ]; then
  NAGIOS_CODE=0
  NAGIOS_MESSAGE="OK: automysqlbackup succeeded"
elif [ -n "$E" ]; then
  NAGIOS_CODE=2
  NAGIOS_MESSAGE="CRITICAL: automysqlbackup encountered errors"
else
  NAGIOS_CODE=2
  NAGIOS_MESSAGE="CRITICAL: unable to determine automysqlbackup status"
fi

printf "<%= @ipaddress %>\t<%= @service_desc %>\t$NAGIOS_CODE\t$NAGIOS_MESSAGE\n" \
  | /usr/sbin/send_nsca -H alert.cluster >/dev/null

tar -C /var/lib/automysqlbackup -jcf /var/lib/automysqlbackup/tmp.tbz2 latest/
mv /var/lib/automysqlbackup/tmp.tbz2 /var/lib/automysqlbackup/latest.tbz2
FINISHEPOCH=`date +%s`
TOTALTIME=$(expr $FINISHEPOCH - $STARTEPOCH)
logger -t automysqlbackup "MySQL backed up in T:$TOTALTIME seconds"

# Remove the temporary file added by the prebackup
rm /var/lock/mysql-backup.lock

Use IP address for MySQL backup passive check

This passive check was omitted from 6974c81c, where we changed all NSCA
passive checks to use IP addresses rather than FQDNs because our new
naming scheme produces FQDNs longer than the 64 bytes supported by NSCA.


# Migrating to the YAML pipeline editor

- migrating from the UI editor to the YAML editor
- the web-based step editor is deprecated, this guide will get your pipelines running with the new YAML editor

{:toc}

## What changes

- if you've been using the YAML steps editor beta, nothing changes for you
- instead of managing your pipeline steps with the GUI-like editor, your pipeline will be managed in YAML in a code editing window (screenshot)
- after migrating, the web-based step editor will no longer be available

- example YAML code for each step type is available in the reference sidebar

### Compatability issues

## Steps to migrate

- need to be an org admin, can see which pipelines are already migrated on the pipeline management page

Add outline for YAML migration guide

Add outline for YAML migration guide


 This are all of your tweets

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

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

<%= tweet.body %>

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

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

<% end %>

<% if @user.id == session[:user_id] %>

 Welcome, <%=@user.username.upcase %>!

<% else %>

 <%= @user.username.upcase%>'s Profile

<% end %>

<a href="/followers/<%=@user.id%>">Followers <a href="/followees/<%=@user.id%>">Following

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

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

<%= tweet.body %>

  User: <%= tweet.user.username %>

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

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

  <% end %>
  <% end %>

Add logic not allow user to edit/delete/post tweets on behalf of other users and edit welcome message


Forgot your password?

<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %>
  <%= devise_error_messages! %>

<%= f.label :email %>

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

<%= f.submit "Send me reset password instructions" %>

<% end %>

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

Fix Password Reset form style to match other forms


<%utskott = Council.all%>

  <% utskott.each do |u| %>

<%= link_to u.title, council_path u %>

  <% end %>
  <% if (current_user) && (current_user.moderator?(:utskott)) %>

<%= link_to (content_tag(:i, nil, class: 'fa fa-edit') + ' Lägg till utskott'), new_council_path, class: 'btn-u btn-u-small'%>

  <% end %>

<%utskott = Council.all%>

  <% utskott.each do |u| %>

<%= link_to u.title, council_path(u) %>

  <% end %>
  <% if (current_user) && (current_user.moderator?(:utskott)) %>

<%= link_to (content_tag(:i, nil, class: 'fa fa-edit') + ' Lägg till utskott'), new_council_path, class: 'btn-u btn-u-small'%>

  <% end %>

Fix regression bug in utskott menu.

Fix regression bug in utskott menu.


 For development only: select season phase…

… to adjusts all the date dependent settings for current_season.

<%= form_tag switch_phase_path, :method => :patch do %>
    <%= radio_button_tag :option, "Proposals" %>
    <%= label_tag :option_Proposals, "Proposals Phase" %>
    <%= radio_button_tag :option, "Application" %>

<%= label_tag :option_Application, "Application Phase" %>

    <%= radio_button_tag :option, "CodingSummer" %>

    <%= label_tag :option_CodingSummer, "Coding Summer" %>

    <%= radio_button_tag :option, "RealTime" %>
    <%= label_tag :option_RealTime, "Back to Real Time" %>

    <%= submit_tag("Switch phase") %>
  <% end %>

<%=  current_season.inspect %>

For development only: select season phase…

… to adjust all the date-dependent settings for the current season.

<%= form_tag switch_phase_path, :method => :patch do %>
  <%= radio_button_tag :option, "Proposals" %>
  <%= label_tag :option_Proposals, "Proposals Phase" %>
  <%= radio_button_tag :option, "Application" %>
  <%= label_tag :option_Application, "Application Phase" %>

  <%= radio_button_tag :option, "CodingSummer" %>

  <%= label_tag :option_CodingSummer, "Coding Summer" %>

  <%= radio_button_tag :option, "RealTime" %>
  <%= label_tag :option_RealTime, "Back to Real Time" %>
  <%= submit_tag "Switch phase", class: 'btn btn-sm btn-warning' %>
<% end %>

Adjust formatting of the season switch

Adjust formatting of the season switch


  One more step…

  We’ve sent you an email. Please click on the link in the email to confirm your address.

<%= render "notification", message: "Your signature will not be counted until you click the link in the email" %>

  Not received a confirmation email?

      If you haven’t received a confirmation email:

check your spam or junk mail folders

allow up to 24 hours for the email to arrive

      If you still don’t receive a confirmation email, send us an email and we can manually confirm your address for you.

      petitionscommittee@parliament.uk

  One more step…

  We’ve sent you an email. Please click on the link in the email to confirm your address.

<%= render "notification", message: "Your signature will not be counted until you click the link in the email" %>

  Not received a confirmation email?

      If you haven’t received a confirmation email:

check your spam or junk mail folders

allow up to 24 hours for the email to arrive

      If you still don’t receive a confirmation email, please <%= link_to 'contact us', feedback_path %>.

Remove the committee email address from the email help

Due to overloading the committee, we're keen to see if removing the email address and routing through the feedback from helps.

The committee will then contact the requester asking them to reply in order to validate the address.

It's a trial to see if that changes the contact rates etc...


		<%= simple_form_for(@upload, :html => {:multipart => true, :class => 'form-horizontal' }) do |f| %>

			<%= panel_tag('File', {:icon => 'fa fa-upload', :class => "span8 offset2"}) do %>
				<%= f.input :file, :label => 'Select your inventory spreadsheet...' %>
				<%= f.association :file_content_type, :label => 'Spreadsheet content...' %>
				<%= f.input :force_updates %>

					<%= f.button :submit %>
					<%= submit_tag 'Cancel', :name => 'cancel', :class=>"btn" %>

			<% end %>

		 <% end %>

		<%= simple_form_for(@upload, :html => {:multipart => true, :class => 'form-horizontal' }) do |f| %>

			<%= panel_tag('File', {:icon => 'fa fa-upload', :class => "span8 offset2"}) do %>
				<%= f.input :file, :label => 'Select your inventory spreadsheet...' %>
				<%= f.association :file_content_type, :label => 'Spreadsheet content...' %>
				<%= f.input :force_update %>

					<%= f.button :submit %>
					<%= submit_tag 'Cancel', :name => 'cancel', :class=>"btn" %>

			<% end %>

		 <% end %>

Fix bug in upload form

Fix bug in upload form


[user]
  name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
  email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[color]
  ui = auto
[core]
  excludesfile = <%= ENV['HOME'] %>/.gitignore
  editor = mvim -f
[apply]
  whitespace = nowarn
[format]
  ; pretty = %C(yellow)%h%Cred%d %Creset%s
[github]
  user = <%= print("Your github user: "); STDOUT.flush; STDIN.gets.chomp %>
[alias]
  ad = add
  au = add -u
  bl = blame
  br = branch
  ca = commit --amend
  cb = checkout -b
  cl = clone
  cm = commit
  co = checkout
  cp = cherry-pick
  dc = diff --cached
  df = diff
  ft = fetch
  lg = log
  mr = merge
  pl = pull
  ps = push
  rb = rebase
  rm = rm -r
  rs = reset
  rv = revert
  sa = stash apply
  sh = show
  sl = stash list
  sm = submodule
  sp = stash pop
  ss = stash save
  st = status
  sw = stash show

  rmb = !sh -c 'git branch -d $1 && git push origin :$1' -
  commit-count = shortlog -s -n
[branch]
  autosetuprebase = always
[pull]
  rebase = true
[push]
  default = tracking

[user]
  name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
  email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[color]
  ui = auto
[core]
  excludesfile = <%= ENV['HOME'] %>/.gitignore
  editor = mvim -f
[apply]
  whitespace = nowarn
[format]
  ; pretty = %C(yellow)%h%Cred%d %Creset%s
[github]
  user = <%= print("Your github user: "); STDOUT.flush; STDIN.gets.chomp %>
[alias]
  ad = add
  au = add -u
  bl = blame
  br = branch
  ca = commit --amend
  cb = checkout -b
  cl = clone
  cm = commit
  co = checkout
  cp = cherry-pick
  dc = diff --cached
  df = diff
  ft = fetch
  lg = log
  mr = merge
  pl = pull
  ps = push
  rb = rebase
  rm = rm -r
  rs = reset
  rv = revert
  sa = stash apply
  sh = show
  sl = stash list
  sm = submodule
  sp = stash pop
  ss = stash save
  st = status
  sw = stash show

  rmb = !sh -c 'git branch -d $1 && git push origin :$1' -
  commit-count = shortlog -s -n
[branch]
  autosetuprebase = always
[pull]
  rebase = true
[push]
  default = upstream

Change push default from tracking to upstream


Bonjour,

  Un nouvel utilisateur a souhaité s'authentifier sur l'application ApiApp.

  Les informations présentes dans le compte utilisateur Apidae correspondant sont les suivantes :

  Nom : <%= @user.name %>
  Email : <%= @user.email %>
  Téléphone fixe : <%= @user.telephone || 'Non renseigné' %>
  Téléphone mobile : <%= @user.mobilephone || 'Non renseigné' %>

  Ce message a été généré automatiquement par la console d'administration ApiApp.

Send email on failed authentification - Test phase


Hello,

  Trade Tariff successfully applied <%= @count %> update(s) at <%= Time.now %>.

Following updates were applied:

  <% @update_names.each do |update_name| %>

<%= update_name %>

  <% end %>

<% if @conformance_errors.any? %>

        Model
        Primary Key
        Details
        Errors

      <% @conformance_errors.each do |record| %>

            <%= record.class %>

            <%= record.pk.inspect %>

            <%= record.values.inspect %>

            <%= record.inspect %>

              <% record.errors.each do |error_type, error_messages| %>

                  <%= error_type %>

                <% error_messages.each do |error_message| %>

                    <%= error_message %>

                <% end %>
              <% end %>

      <% end %>

<% else %>

    No conformance errors found.

<% end %>

Hello,

  Trade Tariff successfully applied <%= @count %> update(s) at <%= Time.now %>.

Following updates were applied:

  <% @update_names.each do |update_name| %>

<%= update_name %>

  <% end %>

<% if @conformance_errors.any? %>

        Model
        Primary Key
        Details
        Errors

      <% @conformance_errors.each do |record| %>

            <%= record.class %>

            <%= record.pk.inspect %>

            <%= record.values.inspect %>

              <% record.errors.each do |error_type, error_messages| %>

                  <%= error_type %>

                <% error_messages.each do |error_message| %>

                    <%= error_message %>

                <% end %>
              <% end %>

      <% end %>

<% else %>

    No conformance errors found.

<% end %>

Remove one too many columns in update applied email


  <div class="icon believe"    style="background-image: url(<%= root_url + 'images/simple_indicators.png'%>);width:32px; height:32px;">

  <div class="icon disbelieve" style="background-image: url(<%= root_url + 'images/simple_indicators.png'%>);width:32px; height:32px;background-position: -32px 0;">

  <div class="icon doubt"      style="background-image: url(<%= root_url + 'images/simple_indicators.png'%>);width:32px; height:32px;background-position: -64px 0;">

      <img src="<%= root_url + 'images/brains.png'%>">

  <div class="believe"    style="background-image: url(<%= root_url + 'images/simple_indicators.png'%>);width:32px; height:32px;">

  <div class="disbelieve" style="background-image: url(<%= root_url + 'images/simple_indicators.png'%>);width:32px; height:32px;background-position: -32px 0;">

  <div class="doubt"      style="background-image: url(<%= root_url + 'images/simple_indicators.png'%>);width:32px; height:32px;background-position: -64px 0;">

Revert "Styled the new indicator popup"

Revert "Styled the new indicator popup"

This reverts commit b7189bd3bf1976671e8e06f2deb4f4bf1a3312d9.


<%= text.heading %>

  <%= simple_format text.lead %>

  <%= simple_format text.body %>

<%= text.heading %>

<%= image_tag text.image %>

  <%= simple_format text.lead %>

  <%= simple_format text.body %>

Add image to text partial

Add image to text partial


Quiet Place

A map shows quiet palces around.

  <% @places.each do |place| %>

<%= place[:location] %>

  <% end %>

<%= link_to 'New Quiet Place', new_place_path(latitude: 40, longitude: 120) %>

Quiet Place

A map shows quiet palces around.

  <% @places.each do |place| %>

<%= link_to place[:location], place_path(id: place[:id]) %>

  <% end %>

<%= link_to 'New Quiet Place', new_place_path(latitude: 40, longitude: 120) %>

Add link to place detail page.

Add link to place detail page.


Authorize <%= @authorization.client.name %> to use your account?

This application will able to:

Access your public data

  <%= form_tag authorization_path do %>
    <%= hidden_field_tag :client_id, @authorization.client_id %>
    <%= hidden_field_tag :redirect_uri, @authorization.redirect_uri %>
    <%= hidden_field_tag :response_type, @authorization.response_type %>
    <%= submit_tag "Authorize", class: "btn primary" %> or
  <% end %>
  <%= form_tag authorization_path, :method => :delete do %>
    <%= hidden_field_tag :client_id, @authorization.client_id %>
    <%= hidden_field_tag :redirect_uri, @authorization.redirect_uri %>
    <%= hidden_field_tag :response_type, @authorization.response_type %>
    <%= button_tag "Deny", class: "btn" %>
  <% end %>

Authorize <%= @authorization.client.name %> to use your account?

  <%= form_tag authorization_path do %>
    <%= hidden_field_tag :client_id, @authorization.client_id %>
    <%= hidden_field_tag :redirect_uri, @authorization.redirect_uri %>
    <%= hidden_field_tag :response_type, @authorization.response_type %>
    <%= submit_tag "Authorize", class: "btn primary" %> or
  <% end %>
  <%= form_tag authorization_path, :method => :delete do %>
    <%= hidden_field_tag :client_id, @authorization.client_id %>
    <%= hidden_field_tag :redirect_uri, @authorization.redirect_uri %>
    <%= hidden_field_tag :response_type, @authorization.response_type %>
    <%= button_tag "Deny", class: "btn" %>
  <% end %>

Remove scopes text from authorization endpoint.


Xerax

Member Since 18/08/1994

Developer

Halo 4

Halo Reach

Halo 3

			Edit Profile

Xerax

Member Since 18/08/1994

Developer

Halo 4

Halo Reach

Halo 3

		<% if !content_for?(:setting_active) %>

				Edit Profile

		<% end %>

Remove 'edit profile' button on settings pages


<script type="text/javascript">
var Analytical = {
  identify: function(id, options) {
    <%= raw(analytical.javascript_for.identify.gsub(/^/, " " * 4).strip) %>
  },
  event: function(name, options, callback) {
    <%= raw(analytical.javascript_for.event.gsub(/^/, " " * 4).strip) %>
  },
  set: function(properties) {
    <%= raw(analytical.javascript_for.set.gsub(/^/, " " * 4).strip) %>
  },
  alias_identity: function(old_identity, new_identity) {
    <%= raw(analytical.javascript_for.alias_identity.gsub(/^/, " " * 4).strip) %>
  }
};
</script>

<script type="text/javascript">
var Analytical = {
  identify: function(id, options) {
    <%= raw(analytical.javascript_for.identify.gsub(/^/, " " * 4).strip) %>
  },
  track: function(page) {
    <%= raw(analytical.javascript_for.track.gsub(/^/, " " * 4).strip) %>
  },
  event: function(name, options, callback) {
    <%= raw(analytical.javascript_for.event.gsub(/^/, " " * 4).strip) %>
  },
  set: function(properties) {
    <%= raw(analytical.javascript_for.set.gsub(/^/, " " * 4).strip) %>
  },
  alias_identity: function(old_identity, new_identity) {
    <%= raw(analytical.javascript_for.alias_identity.gsub(/^/, " " * 4).strip) %>
  }
};
</script>

Enable track (page-view events) javascript


<!DOCTYPE html>

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

    <% @data.each do |school_hash| %>

<%= school_hash[:name] %>

Absences:

          Student
          Last week
          Total

        <% school_hash[:absences].each do |absences| %>

              <%= link_to absences[2], "https://somerville.studentinsights.org/students/#{(absences[3])}" %>

            <%= absences[0] %>
            <%= absences[1] %>

        <% end %>

    <% end %>

Add borders to table cells

Add borders to table cells


if ( $wmgUseWikibaseRepo ) {
	// Define custom namespaces. Use these exact constant names.
	$wgNamespaceAliases['Item'] = NS_MAIN;
	$wgNamespaceAliases['Item_talk'] = NS_TALK;

	// Tell Wikibase which namespace to use for which kind of entity
	$wgWBRepoSettings['entityNamespaces']['item'] = NS_MAIN;
	define( 'WB_NS_PROPERTY', 122 );
	define( 'WB_NS_PROPERTY_TALK', 123 );
	$wgWBRepoSettings['entityNamespaces']['property'] = WB_NS_PROPERTY;

	// Register extra namespaces.
	$wgWBNamespaces[WB_NS_PROPERTY] = 'Property';
	$wgWBNamespaces[WB_NS_PROPERTY_TALK] = 'Property_talk';
	$wgExtraNamespaces = $wgWBNamespaces + $wgExtraNamespaces;
} else {
	$wgWBClientSettings['siteGlobalID'] = 'enwiki';

	$wgWBClientSettings['changesDatabase'] = 'wikidatawiki';
	$wgWBClientSettings['repoDatabase'] = 'wikidatawiki';
}

$wgWBClientSettings['repoUrl'] = '//wikidata<%= scope['::mediawiki::multiwiki::base_domain'] %><%= scope['::port_fragment'] %>';

define( 'WB_NS_PROPERTY', 122 );
define( 'WB_NS_PROPERTY_TALK', 123 );

// Tell Wikibase which namespace to use for which kind of entity.
// WikibaseClient wikis also need to know how this is configured on
// WikibaseRepo wikis that it accesses, thus these are shared settings.
$wgWBEntityNamespaces = [
	'item' => NS_MAIN,
	'property' => WB_NS_PROPERTY
];

if ( $wmgUseWikibaseRepo ) {
	// Define custom namespaces. Use these exact constant names.
	$wgNamespaceAliases['Item'] = NS_MAIN;
	$wgNamespaceAliases['Item_talk'] = NS_TALK;

	// Register extra namespaces.
	$wgWBNamespaces[WB_NS_PROPERTY] = 'Property';
	$wgWBNamespaces[WB_NS_PROPERTY_TALK] = 'Property_talk';

	$wgWBRepoSettings['entityNamespaces'] = $wgWBEntityNamespaces;
	$wgExtraNamespaces = $wgWBNamespaces + $wgExtraNamespaces;
} else {
	$wgWBClientSettings['siteGlobalID'] = 'enwiki';

	$wgWBClientSettings['changesDatabase'] = 'wikidatawiki';
	$wgWBClientSettings['repoDatabase'] = 'wikidatawiki';

	$wgWBClientSettings['entityNamespaces'] = $wgWBEntityNamespaces;
}

$wgWBClientSettings['repoUrl'] = '//wikidata<%= scope['::mediawiki::multiwiki::base_domain'] %><%= scope['::port_fragment'] %>';

Add entityNamespaces setting for WikibaseClient

This is needed in repo and client, and should be same in both.

Change-Id: I8453166d19f03154e9200d41c1a8a56e222273a1


<% (['development', 'production'] + [@environment]).uniq.each do |env| -%>
<%= env %>:
  sessions:
    default:
      database: fortune_app_<%= env %>
      hosts:
      <%  replicaset_instances.each do |rs| -%>
        - <%= rs %>
      <% end -%>
      options:
        safe: true
        consistency: :eventual
        max_retries: 30
        retry_interval: 1
  options:
<% end %>

<% (['development', 'production'] + [@environment]).uniq.each do |env| -%>
<%= env %>:
  sessions:
    default:
      database: fortune_app_<%= env %>
      hosts:
      <%  @replicaset_instances.each do |rs| -%>
        - <%= rs %>
      <% end -%>
      options:
        safe: true
        consistency: :eventual
        max_retries: 30
        retry_interval: 1
  options:
<% end %>

Make it an instance variable for

Make it an instance variable for


<% numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]; %>
{
    "title": "Map fn + number keys to function keys",
    "rules": [
        {
            "description": "Map fn + number keys to their corresponding function keys",
            "manipulators": [
                <% numbers.each do |number| %>
                    {
                        "type": "basic",
                        "from": <%= from(number.to_s, ["fn"], []) %>,
                        "to": <%= to([["f#{number}"]]) %>
                    },
                <% end %>
                {
                    "type": "basic",
                    "from": <%= from("0", ["fn"], []) %>,
                    "to": <%= to([["f10"]]) %>
                },
                {
                    "type": "basic",
                    "from": <%= from("hyphen", ["fn"], []) %>,
                    "to": <%= to([["f11"]]) %>
                },
                {
                    "type": "basic",
                    "from": <%= from("equal_sign", ["fn"], []) %>,
                    "to": <%= to([["f12"]]) %>
                }
            ]
        }
    ]
}

<%
    remap_source_keys = [
        '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'hyphen', 'equal_sign'
    ];
    remap_dest_keys = [
        'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12'
    ];
    manipulators = each_key(
        source_keys_list: remap_source_keys,
        dest_keys_list: remap_dest_keys,
        from_mandatory_modifiers: ["fn"],
        as_json: true
    );
%>
{
    "title": "Map fn + number keys to function keys",
    "rules": [
        {
            "description": "Map fn + number keys to their corresponding function keys",
            "manipulators": <%= manipulators %>
        }
    ]
}

Use each_key for fn+numbers to function keys


<% if post.title.present? %>

<%= link_to post.title, post %>

<% else %>

<% end %>

<%= post.content %>

<% if post.author.present? %>
  - <%= post.author %>
<% end %>
<% if post.comments.present? %>

    <%= post.comments.size %>

<% end %>

    <%= link_to post, :class => "btn btn-small" do %>

    <% end %>
    <%= link_to post_path(post, :format => :text),
      :class => "btn btn-small"  do %>

    <% end%>
    <%= link_to edit_post_path(post), :class => "btn btn-small"  do %>

      <% end %>
    <%= link_to post, method: :delete,
     data: { confirm: 'Are you sure?' }, :class => "btn btn-small" do %>

    <% end %>

<% if post.title.present? %>

<%= link_to post.title, post %>

<% else %>

<% end %>

<%= truncate(post.content,
                        :length => 800,
                        :omission => "\n\n...") %>

<% if post.author.present? %>
  - <%= post.author %>
<% end %>
<% if post.comments.present? %>

    <%= post.comments.size %>

<% end %>

    <%= link_to post, :class => "btn btn-small" do %>

    <% end %>
    <%= link_to post_path(post, :format => :text),
      :class => "btn btn-small"  do %>

    <% end%>
    <%= link_to edit_post_path(post), :class => "btn btn-small"  do %>

      <% end %>
    <%= link_to post, method: :delete,
     data: { confirm: 'Are you sure?' }, :class => "btn btn-small" do %>

    <% end %>

Truncate posts on the index page

Truncate posts on the index page


<%= notice %>

Listing Talks

      Title
      Description

    <% @talks.each do |talk| %>

        <%= link_to talk.title, talk_url(talk) %>
        <%= talk.speaker.name %>
        <%= talk.description %>
        <%= link_to 'Show', talk %>
        <% if current_user %>
          <%= link_to 'Edit', edit_talk_path(talk) %>
          <%= link_to 'Destroy', talk, method: :delete, data: { confirm: 'Are you sure?' } %>
        <% end %>

    <% end %>

<%= link_to 'New Talk', new_talk_path %>

<%= notice %>

Listing Talks

      Title
      Speaker
      Description

    <% @talks.each do |talk| %>

        <%= link_to talk.title, talk_url(talk) %>

        <% if talk.speaker %>
          <%= talk.speaker.name %>
        <% end %>

        <%= talk.description %>
        <%= link_to 'Show', talk %>
        <% if current_user %>
          <%= link_to 'Edit', edit_talk_path(talk) %>
          <%= link_to 'Destroy', talk, method: :delete, data: { confirm: 'Are you sure?' } %>
        <% end %>

    <% end %>

<%= link_to 'New Talk', new_talk_path %>

Include speaker conditionally so as not to raise error if none is specified


Dear <%= @member.email %>,

We are delighted to have you join us at the Open Data Institute.

We run a free to attend lecture series every Friday highlighting some of the awe inspiring work going on using Open Data - everything from data as art, through to the CTO of the World Bank giving a 'fireside chat' about his experience at the White House. You can register for upcoming talks here: http://www.theodi.org/lunchtime-lectures

Your membership number is <%= @member.membership_number %>. You will need this to log in.

You can set up your account password and change your details through the link below:

<%= link_to 'My account', edit_password_url(@member, :reset_password_token => @member.reset_password_token) %>

Welcome again to the ODI community!

Regards

Richard

Dear <%= @member.contact_name || "member" %>,

We are delighted to have you join us at the Open Data Institute.

We run a free to attend lecture series every Friday highlighting some of the awe inspiring work going on using Open Data - everything from data as art, through to the CTO of the World Bank giving a 'fireside chat' about his experience at the White House. You can register for upcoming talks here: http://www.theodi.org/lunchtime-lectures

Your membership number is <%= @member.membership_number %>. You will need this to log in.

You can set up your account password and change your details through the link below:

<%= link_to 'My account', edit_password_url(@member, :reset_password_token => @member.reset_password_token) %>

Welcome again to the ODI community!

Regards

Richard

Address email to contact name, or "member" if not available.


  <%= content_tag(:label, l(:label_po_settings_stale_num_days)) %>
  <%= text_field_tag("settings[stale_num_days]", Setting.plugin_project_overview[:stale_num_days].to_i) %>

  <%= content_tag(:label, l(:label_po_settings_exclude_projects)) %>
  <%= select_tag("settings[exclude_projects]", options_from_collection_for_select(Project.active.order("name DESC"), :id, :name, Setting.plugin_project_overview[:exclude_projects]), { :multiple=> true, :style => "height: 300px;" }) %>

  <%= content_tag(:label, l(:label_po_settings_stale_num_days)) %>
  <%= text_field_tag("settings[stale_num_days]", Setting.plugin_project_overview[:stale_num_days].to_i) %>

  <%= content_tag(:label, l(:label_po_settings_exclude_projects)) %>
  <%= select_tag("settings[exclude_projects]", options_from_collection_for_select(Project.active.order("name ASC"), :id, :name, Setting.plugin_project_overview[:exclude_projects]), { :multiple=> true, :style => "height: 300px;" }) %>

Make sure settings order of projects matches that of the overview page.


<% if notice %>

<%= notice %>

<% end %>

<%= @situation.title %>

    <%= @situation.sit_rep %>

<% unless @situation.ending %>

  <a href="./<%= @choice_1 %>" class="button" id="choice1">
    <%= @choice_1_label %>

  <a href="./<%= @choice_2 %>" class="button" id="choice2">
    <%= @choice_2_label %>

<% end %>

Remove duplicate notice (moved to application layout).


Welcome to Sorter!

The perfect place to organize all your web resources on anything coding. And see what others are learning.

<% if user_signed_in? %>

Here's what people have been reading:

    <% @resources.by_language.each do |resource| %>

<%= link_to resource.title, resource_path(resource) %> - <%= link_to resource.language_name, language_path(resource.language) %>

        <% resource.topics.each do |topic| %>

<%= link_to "##{topic.name}", topic_path(topic) %>

        <% end %>

    <% end %>

<% end %>

<%= link_to "Sign in with GitHub", user_github_omniauth_authorize_path if !user_signed_in?%>

Add id to unordered list.

Add id to unordered list.


Edit Session

      <%= simple_form_for(@presentation) do |f| %>
        <%= f.input(:title, input_html: { class: 'input-block-level' }) %>
        <%= f.input(:description, input_html: { class: 'input-block-level', rows: 5 }) %>

          <%= f.button(:submit, 'Update Talk', class: 'btn btn-primary btn-large pull-right') %>

      <% end %>

Edit Session

      <%= simple_form_for(@presentation, html: { style: 'margin-bottom: 0;' }) do |f| %>
        <%= f.input(:title, input_html: { class: 'input-block-level' }) %>
        <%= f.input(:description, input_html: { class: 'input-block-level', rows: 5 }) %>

          <%= f.button(:submit, 'Update Presentation', class: 'btn btn-primary btn-large pull-right') %>

      <% end %>

Clean up the edit presentation form

Clean up the edit presentation form


state_file: /store/planet/replication/changesets/state.yaml
db: host=db dbname=openstreetmap user=planetdiff password=<%= @password %>
data_dir: /store/planet/replication/changesets

state_file: /store/planet/replication/changesets/state.yaml
db: host=katla.bm.openstreetmap.org dbname=openstreetmap user=planetdiff password=<%= @password %>
data_dir: /store/planet/replication/changesets

Update database address for changeset replication


<%= link_to c_('View all'), {:profile => profile.identifier, :controller => 'profile', :action => 'members'}, :class => 'view-all' %>

<% if show_join_leave_button %>
  <%= render :partial => 'blocks/profile_info_actions/join_leave_community' %>
<% end %>

<%= link_to c_('View all'), {:profile => profile.identifier, :controller => 'people_block_plugin_profile', :action => 'members', :role_key => role_key}, :class => 'view-all' %>

<% if show_join_leave_button %>
  <%= render :partial => 'blocks/profile_info_actions/join_leave_community' %>
<% end %>

Revert "people_block: do not use buggy view"

This reverts commit 251caccbc384b1c89176233e0820b8db542f9184.


<% @solicitors.each do |solicitor| %>
  $('.solicitor_results_list').append("\

<%= solicitor['name'] %>
\

Firm <%= solicitor['firm']['name'] %>
\

Mob <%= solicitor['mobile'] %>
\

Email <%= solicitor['email'] %>
\
      ");
<% end %>

$('.solicitor_result').each( function() {
  $(this).click(function(e) {
    e.preventDefault();
    $('.solicitor_results_list').html('');
  });
});

Append all the solicitor search results to a solicitor list

- For now, clicking on a result will just clear the list,
when linked up with the defence request form, we will populate
form fields based on the chosen solicitor.


<%= label_tag("#{field.abstract_model.to_param}_#{field.name}", field.label) %>

  <% if field.bindings[:object].send(field.name) %>

      <% if field.bindings[:object].send(field.name).mime_type.include? 'image' %>
        <%= image_tag(field.bindings[:object].send(field.name).url) %>

      <% else %>
        <%= link_to field.bindings[:object].send(field.name).url, field.bindings[:object].send(field.name).url %>
      <% end %>

  <% end %>

    <%= file_field(field.abstract_model.to_param, field.name, :class => "fileUploadField #{field.has_errors? ? "errorField" : nil}") %>

Add field partial which supports dragonfly file attachments


deb http://downloads.mongodb.org/distros/<%= node[:platform] %> <%= node[:platform_version].gsub(/\.0*/, '.') %> 10gen

deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

Update mongo apt install to use upstart

Update mongo apt install to use upstart


Make a new list

<%= form_for :list do |f| %>
  List Name: <%= f.text_field :name  %>
  <%= f.submit  %>
<% end %>

Make a new list

<%= form_for @list do |f| %>
  List Name: <%= f.text_field :name  %>
  <%= f.submit  %>
<% end %>

Use new @list in form

Use new @list in form


Hello, <%= @user %>!

New topic posted in the forum for <%= @course.title %>:

<%= @topic.subject %> by <%= @topic.user %>

<%=raw Forem.formatter.format(@post.text) %>

<%= link_to 'Click here', main_app.course_forum_topic_url(@course, @forum, @topic) %> to view.

Best Regards,

The Coursemology Team

Fix layout in new post email

Fix layout in new post email


[color]
  branch = auto
  diff = auto
  status = auto

[color "branch"]
  current = yellow reverse
  local = yellow
  remote = green

[color "diff"]
  meta = yellow bold
  frag = magenta bold
  old = red bold
  new = green bold

[color "status"]
  added = yellow
  changed = green
  untracked = cyan

[user]
  name = Cristian Stügelmayer
  email = cristian@yellowspot.dev

[core]
  excludesfile = /home/cristian/.gitignore
  editor = vim

[alias]
  co = checkout
  nff = merge --no-ff
  prune-all = remote prune origin
  cleanup = "!git branch --merged | grep  -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"

[mergetool]
  keepBackup = false

[rerere]
  enabled = 1

[push]
  default = tracking

[merge]
  tool = meld

[pull]
  rebase = true

[color]
  branch = auto
  diff = auto
  status = auto

[color "branch"]
  current = yellow reverse
  local = yellow
  remote = green

[color "diff"]
  meta = yellow bold
  frag = magenta bold
  old = red bold
  new = green bold

[color "status"]
  added = yellow
  changed = green
  untracked = cyan

[user]
  name = Cristian Stügelmayer
  email = cristian@yellowspot.dev

[core]
  excludesfile = /home/cristian/.gitignore
  editor = vim

[alias]
  co = checkout
  nff = merge --no-ff
  prune-all = remote prune origin
  cleanup = "!git branch --merged | grep  -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
  pt = !git tag -l | xargs git tag -d && git fetch -t

[mergetool]
  keepBackup = false

[rerere]
  enabled = 1

[push]
  default = tracking

[merge]
  tool = meld

[pull]
  rebase = true

Add git alias to prune tags

Add git alias to prune tags


    Harrow Community Network
    provided by Voluntary Action Harrow&nbsp<%= image_tag("VAHC-Small-Logo.png", :size =>"30x30", alt:"Voluntary Action Harrow") %>

    Harrow Community Network
    provided by Voluntary Action Harrow Co-operative&nbsp<%= image_tag("VAHC-Small-Logo.png", :size =>"30x30", alt:"Voluntary Action Harrow Co-operative") %>

Change name of provider to include new Co-operative branding


#
# Ubuntu <%= @code_name %> - Generated by Chef
#

deb <% if @architectures -%><%= @architectures %><% end -%><%= @archive_url %> <%= @code_name %> main restricted universe multiverse
<% if @include_source_packages -%>deb-src <%= @archive_url%> <%= @code_name %> main restricted universe multiverse<% end -%>

deb <% if @architectures -%><%= @architectures %><% end -%><%= @archive_url %> <%= @code_name %>-updates main restricted universe multiverse
<% if @include_source_packages -%>deb-src <%= @archive_url %> <%= @code_name %>-updates main restricted universe multiverse<% end -%>

#
# Security updates
#
deb <% if @architectures -%><%= @architectures %><% end -%><%= @security_url %> <%= @code_name %>-security main restricted universe multiverse
<% if @include_source_packages -%>deb-src <%= @security_url %> <%= @code_name %>-security main restricted universe multiverse<% end -%>

#
# Ubuntu <%= @code_name %> - Generated by Chef
#

deb <% if @architectures -%><%= @architectures.join(" ") %> <% end -%><%= @archive_url %> <%= @code_name %> main restricted universe multiverse
<% if @include_source_packages -%>deb-src <%= @archive_url%> <%= @code_name %> main restricted universe multiverse<% end -%>

deb <% if @architectures -%><%= @architectures.join(" ") %> <% end -%><%= @archive_url %> <%= @code_name %>-updates main restricted universe multiverse
<% if @include_source_packages -%>deb-src <%= @archive_url %> <%= @code_name %>-updates main restricted universe multiverse<% end -%>

#
# Security updates
#
deb <% if @architectures -%><%= @architectures.join(" ") %> <% end -%><%= @security_url %> <%= @code_name %>-security main restricted universe multiverse
<% if @include_source_packages -%>deb-src <%= @security_url %> <%= @code_name %>-security main restricted universe multiverse<% end -%>

Fix spacing and use a join to support multiple platforms


We received your module proposal!

Hello <%= @proposal.first_name %>,

Thanks for submitting a module proposal. The College STAR team will next meet on September 9th to discuss module production for Fall 2016 and Spring 2017. We will reach out if your topic is selected. Thank you for all of your hard work! If you have any questions, feel free to reach out to us at <%= mail_to "support@collegestar.org" %>.

Sincerely,

The College STAR Team

We received your module proposal!

Hello <%= @proposal.first_name %>,

Thanks for submitting a module proposal. The College STAR team will next meet on December 2nd to discuss module production for Spring and Summer 2017. We will reach out if your topic is selected. Thank you for all of your hard work! If you have any questions, feel free to reach out to us at <%= mail_to "support@collegestar.org" %>.

Sincerely,

The College STAR Team

Update text on module proposal confirmation email


<%= params[:flaggable_type].classify %> Flags

      Feature

    <% @features.each do |feature| %>

        <%= feature %>

    <% end %>

Fix DOM typo in flags/index

Fix DOM typo in flags/index


<div id="<%= dom_id(f.object) %>">

    <%= f.text_field :label, placeholder: t("links.link_fields.label_placeholder") %>

    <%= f.text_field :url, placeholder: t("links.link_fields.url_placeholder") %>

    <%= f.check_box :open_in_new_tab, label: Link.human_attribute_name(:open_in_new_tab) %>

    <%= render_destroy_element_link(f, f.object) %>

<div id="<%= dom_id(f.object) %>" class="nested-fields">

    <%= f.text_field :label, placeholder: t("links.link_fields.label_placeholder") %>

    <%= f.text_field :url, placeholder: t("links.link_fields.url_placeholder") %>

      <%= render_destroy_element_link(f, f.object) %>

Fix cancel action on link fields form

Fix cancel action on link fields form


# Generated by Chef
# host definitions

define host {
  use server
  address <%= node['ipaddress'] %>
  host_name <%= node['hostname'] %>
  hostgroups <%= node['nagios']['server_role'] %>
}

<% @nodes.each do |n| -%>
<% unless n.name == node.name -%>
define host {
  use server
  address <%= n['ipaddress'] %>
  host_name <%= n['hostname'] %>
<% if n.run_list.roles.nil? || n.run_list.roles.length == 0 -%>
  hostgroups all
<% else -%>
  hostgroups <%= n.run_list.roles.to_a.join(",") %>
<% end -%>
}
<% end -%>

<% end -%>

# Generated by Chef
# host definitions

define host {
  use server
  address <%= node['ipaddress'] %>
  host_name <%= node['hostname'] %>
  hostgroups <%= node['nagios']['server_role'] %>
}

<% @nodes.each do |n| -%>
<% unless n.name == node.name -%>
define host {
  use server
  address <%= n['ipaddress'] %>
  host_name <%= n['hostname'] %>
<% if n.run_list.roles.nil? || n.run_list.roles.length == 0 -%>
  hostgroups all
<% elsif node['nagios']['multi_environment_monitoring'] == "true" -%>
  hostgroups <%= n.run_list.roles.to_a.join(",") %>,<%= n.chef_environment %>
<% else -%>
  hostgroups <%= n.run_list.roles.to_a.join(",") %>
<% end -%>
}
<% end -%>

<% end -%>

Add the nodes to the host groups for their chef environment

Former-commit-id: bf99773e90094b43b6b9dbd88136e31a5bb12724 [formerly cc5169fca1b082a2c9abeb85a65501bb7beddf3e] [formerly a9692976509dc15f0363fae115ba1073fb18c395 [formerly 23740035bc192675a46b38ab2de23aa575785b15]]
Former-commit-id: cedfc4d0aa96984bc9f7e4bda21655548ab015fc [formerly da995a897c35f40929201f68eb07e9b71d8a7c56]
Former-commit-id: 2ca533eb6a3e4d9c546fd7edb42e7216dcde78e7


<%
  form = local_assigns[:form]
  errors = form&.errors
%>

Estimate how much you could get

<%= render 'calculators/error_summary', messages: errors&.messages if form&.invalid? %>

<form action="/adjustable-income/estimate#form" method="get">
  <%= render 'calculators/form_input_currency',
             field: :pot,
             value: form&.pot,
             label: 'How much is in your pot?',
             error_messages: errors&.get(:pot) %>

  <%= render 'calculators/form_input_hidden',
             field: :desired_monthly_income,
             value: form&.desired_monthly_income %>

  <%= render 'calculators/form_input_number',
             field: :age,
             css_classes: 'js-scroll-target',
             value: form&.age,
             label: 'What age do you want to retire?',
             error_messages: errors&.get(:age) %>

  <%= render 'calculators/form_input_submit' %>
</form>

<% if form %>

<% end %>

<%
  form = local_assigns[:form]
  errors = form&.errors
%>

Estimate how much you could get

<%= render 'calculators/error_summary', messages: errors&.messages if form&.invalid? %>

<form action="/adjustable-income/estimate#form" method="get">
  <%= render 'calculators/form_input_currency',
             field: :pot,
             value: form&.pot,
             label: 'How much is in your pot?',
             error_messages: errors&.get(:pot) %>

  <%= render 'calculators/form_input_hidden',
             field: :desired_monthly_income,
             value: form&.desired_monthly_income %>

  <%= render 'calculators/form_input_number',
             field: :age,
             css_classes: 'js-scroll-target',
             value: form&.age,
             label: 'What age do you want to take your money?',
             error_messages: errors&.get(:age) %>

  <%= render 'calculators/form_input_submit' %>
</form>

<% if form %>

<% end %>

Update adjustable income calculator copy

Removed retire after guider feedback. Changed to  '...take your money?'


      <%= @prev_winner.name %>
      <%= @prev_winner_score %>

      <%= @prev_loser.name %>
      <%= @prev_loser_score %>

Make partial for previous vote results

Make partial for previous vote results


<% if object.errors.any? %>

      <%= pluralize(object.errors.count, 'error') %> was found

      <% object.errors.full_messages.each do |msg| %>

<%= msg %>

      <% end %>

<% end %>

<% if object.errors.any? %>

      <%= pluralize(object.errors.count, 'error') %> were found

      <% object.errors.full_messages.each do |msg| %>

<%= msg %>

      <% end %>

<% end %>

Replace strong tag with an h3

Replace strong tag with an h3


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

    <%= get_score(voteable) %>

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

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

    <%= voteable.get_score %>

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

Use Voteable module get_score method instead of helper method


<%#
Copyright 2011-2013, The Trustees of Indiana University and Northwestern
  University.  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.

You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  CONDITIONS OF ANY KIND, either express or implied. See the License for the
  specific language governing permissions and limitations under the License.
---  END LICENSE_HEADER BLOCK  ---
%>

  <%= binding.pry %>
  Dropbox location: <%= File.join(Avalon::Configuration['dropbox']['upload_uri'], @mediaobject.collection.dropbox_directory_name) %> Contact your system administrator for more information.

  See Batch Ingest Package Format for instructions and templates.

<%#
Copyright 2011-2013, The Trustees of Indiana University and Northwestern
  University.  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.

You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  CONDITIONS OF ANY KIND, either express or implied. See the License for the
  specific language governing permissions and limitations under the License.
---  END LICENSE_HEADER BLOCK  ---
%>

  Dropbox location: <%= URI.join(Avalon::Configuration['dropbox']['upload_uri'], @mediaobject.collection.dropbox_directory_name) %> Contact your system administrator for more information.

  See Batch Ingest Package Format for instructions and templates.

Remove binding and change file join to URI join


#!/bin/bash

nc -z 127.0.0.1 <%= p('bits-service.tls.port') %>

# http://www.consul.io/docs/agent/checks.html
if [ $? -ne 0 ]; then
  exit 2 # Exit higher than 1 to ensure service is registered as 'critical'
fi

#!/bin/bash

openssl s_client -connect localhost:<%= p('bits-service.tls.port') %>

# http://www.consul.io/docs/agent/checks.html
if [ $? -ne 0 ]; then
  exit 2 # Exit higher than 1 to ensure service is registered as 'critical'
fi

Use openssl instead of nc for health check

This should kill the ugly handshake errors that we currently see in the log files.

[#158140121]


<% content_for :page_title do %>
  <%= Spree.t(:editing_page) %> "<%= @page.title %>"
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:back_to_page_list), spree.admin_pages_path, :icon => 'icon-arrow-left' %>
<% end %>

<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @page } %>

  <fieldset class="w-100 no-border-top translations">

    <%= render 'settings' %>
    <%= form_for [:admin, @resource] do |f| %>

          <%= form_for [:admin, @resource] do |f| %>
            <%= render 'form_fields', f: f %>
            <%= render 'spree/admin/shared/edit_resource_links' %>
          <% end %>

          <%= render 'fields' %>

    <% end %>
  </fieldset>

<% content_for :page_title do %>
  <%= Spree.t(:editing_page) %> "<%= @page.title %>"
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:back_to_page_list), spree.admin_pages_path, :icon => 'arrow-left' %>
<% end %>

<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @page } %>

  <fieldset class="w-100 no-border-top translations">

    <%= render 'settings' %>
    <%= form_for [:admin, @resource] do |f| %>

          <%= form_for [:admin, @resource] do |f| %>
            <%= render 'form_fields', f: f %>
            <%= render 'spree/admin/shared/edit_resource_links' %>
          <% end %>

          <%= render 'fields' %>

    <% end %>
  </fieldset>

Fix icon button on translations page

Fix icon button on translations page


<%
   meta_tags = {
     canonical: campaigns_revealed_the_true_cost_of_buying_a_car_url(locale: :en),
     alternate: {
       en: campaigns_revealed_the_true_cost_of_buying_a_car_url(locale: :en),
       cy: campaigns_edrychwch_cost_gwirioneddol_prynu_car_url(locale: :cy)
     }
   }.merge(t('.meta_tags'))

   set_meta_tags(meta_tags)
%>

<% content_for(:alternate_link) do %>
  <%= link_to(campaigns_revealed_the_true_cost_of_buying_a_car_url(locale: :en), id: "cyLink", lang: "cy-GB") do %>

    <%= t("locales.en") %>
  <% end %>
<% end %>

<%= render 'content', show_car_costs_calculator_cta: false %>

<%
   meta_tags = {
     canonical: campaigns_revealed_the_true_cost_of_buying_a_car_url(locale: :en),
     alternate: {
       en: campaigns_revealed_the_true_cost_of_buying_a_car_url(locale: :en),
       cy: campaigns_edrychwch_cost_gwirioneddol_prynu_car_url(locale: :cy)
     }
   }.merge(t('.meta_tags'))

   set_meta_tags(meta_tags)
%>

<% content_for(:alternate_link) do %>
  <%= link_to(campaigns_revealed_the_true_cost_of_buying_a_car_url(locale: :en), id: 'enLink', lang: 'en-GB') do %>

    <%= t('locales.en') %>
  <% end %>
<% end %>

<%= render 'content', show_car_costs_calculator_cta: false %>

Correct alternative link for English Car campaign


check process teamcity-server with pidfile <%= @pid_file %>
  start program = "/etc/init.d/teamcity-server start"
  stop program = "/etc/init.d/teamcity-server stop"
  if failed host <%= @host %> port <%= @port %> protocol http
    with timeout 60 seconds
    for 10 cycles
    then restart
  group teamcity

check process teamcity-server with pidfile <%= @pid_file %>
  start program = "/etc/init.d/teamcity-server start"
  stop program = "/etc/init.d/teamcity-server stop"
  if failed host <%= @host %> port <%= @port %> protocol http
    with timeout 60 seconds
    for 20 cycles
    then restart
  group teamcity

Increase cycles count for server

Increase cycles count for server


Your Quill report has arrived!

<a href="<%=@download_url%>" download="Quill_CSV">Link To CSV

If your report does not automatically download upon clicking the above link, please follow these directions:

Vist the link at the bottom of these instructions.

Select "File" -> "Save As” or “Save Page As" to download.

Open the CSV file in Excel or Google Sheets.

Email us at hello@quill.org for support and questions.

Your Quill report has arrived!

Please follow these directions to view the data:

Vist the link at the bottom of these instructions.

Select "File" -> "Save As” or “Save Page As" to download.

Open the CSV file in Excel or Google Sheets.

<%= link_to 'Link To CSV', @download_url%>

Email us at hello@quill.org for support and questions.

Revert "improvements to CSV download"

Revert "improvements to CSV download"

This reverts commit d662140b68f598834dcb05d4bcf349a7b366370f.


<%= javascript_pack_tag 'application' %>

Metadata

<%= render partial: 'shared/navigation_header', locals: {form_steps: wizard_steps, id: @dataset.id, current_step: step, step_names: @steps_names} %>
<%= Gon::Base.render_data %>

<%= form_for @dataset, url: wizard_path, method: :put do |f| %>
  <%= react_component('ManagementDatasetMetadata', {
    languages: @languages,
    defaultLanguage: @default_language,
    metadata: @metadata
  }) %>

  <%= render partial: 'management/steps_shared/footer', locals: { f: f, cancel: management_site_datasets_path(@site.slug)} %>
<% end %>
<%= render partial: 'shared/errors', locals: { resource: @dataset } %>

<%= javascript_pack_tag 'application' %>

Metadata

<%= render partial: 'shared/navigation_header', locals: {form_steps: wizard_steps, id: @dataset.id, current_step: step, step_names: @steps_names} %>
<%= Gon::Base.render_data %>

<%= form_for @dataset, url: wizard_path, method: :put do |f| %>
  <%= react_component('ManagementDatasetMetadata', {
    languages: @languages,
    defaultLanguage: @default_language,
    metadata: @metadata
  }) %>

  <%= render partial: 'management/steps_shared/footer', locals: { f: f, cancel: management_site_datasets_path(@site.slug), no_continue: true} %>
<% end %>
<%= render partial: 'shared/errors', locals: { resource: @dataset } %>

Remove continue button on the metadata section


<div id='profile-wall-reply-<%= scrap.id%>' style='display:none'>
  <div id='profile-wall-reply-form-<%= scrap.id%>' style='display:none'>

      <%= form_remote_tag :url => {:controller => 'profile', :action => 'leave_scrap'}, :update => "profile_activities", :html => { :class => 'profile-wall-reply-form'} do %>
        <%= expandable_text_area :scrap,
                                 :content,
                                 "reply_content_#{scrap.id}",
                                 :cols => 50,
                                 :rows => 1,
                                 :class => 'submit-with-keypress',
                                 :title => _('Leave your comment'),
                                 :onfocus => ("if(this.value==this.title){this.value='';this.style.color='#000'};this.style.backgroundImage='url(" + profile_icon(current_person, :icon, false) + ")'" if logged_in?),
                                 :onblur => ("if(this.value==''){this.value=this.title;this.style.color='#ccc'};this.style.backgroundImage='none'" if logged_in?),
                                 :value => _('Leave your comment') %>
        <%= hidden_field_tag 'scrap[scrap_id]', scrap.id %>
        <%= hidden_field_tag 'receiver_id', scrap.sender.id %>
      <% end %>

  <div id='profile-wall-message-response-<%=scrap.id%>' class='profile-wall-message-response'>

<div id='profile-wall-reply-<%= scrap.id%>' style='display:none'>
  <div id='profile-wall-reply-form-<%= scrap.id%>' style='display:none'>

      <%= form_remote_tag :url => {:controller => 'profile', :action => 'leave_scrap'}, :update => "profile_activities", :html => { :class => 'profile-wall-reply-form', 'data-update' => 'profile_activities'} do %>
        <%= expandable_text_area :scrap,
                                 :content,
                                 "reply_content_#{scrap.id}",
                                 :cols => 50,
                                 :rows => 1,
                                 :class => 'submit-with-keypress',
                                 :title => _('Leave your comment'),
                                 :onfocus => ("if(this.value==this.title){this.value='';this.style.color='#000'};this.style.backgroundImage='url(" + profile_icon(current_person, :icon, false) + ")'" if logged_in?),
                                 :onblur => ("if(this.value==''){this.value=this.title;this.style.color='#ccc'};this.style.backgroundImage='none'" if logged_in?),
                                 :value => _('Leave your comment') %>
        <%= hidden_field_tag 'scrap[scrap_id]', scrap.id %>
        <%= hidden_field_tag 'receiver_id', scrap.sender.id %>
      <% end %>

  <div id='profile-wall-message-response-<%=scrap.id%>' class='profile-wall-message-response'>

Update profile activities when leave scraps


<%= form_tag sessions_path, class: "index-sign-in-form" do %>

	<% if flash[:error] %>
		<%= render partial: 'visitor/partials/index/sign_in/flash_error' %>
	<% end %>

		<%= label_tag :username %>
		<%= text_field_tag :username, '', class: "form-control index-sign-in-form-input" %>

		<%= label_tag :password %>
		<%= text_field_tag :password, '', class: "form-control index-sign-in-form-input" %>

	<%= button_tag class: "btn index-contact-form-button" do %>
		<%= raw("#{fa_icon('paper-plane')} Send") %>
	<% end %>

<% end %>

<%= form_tag sessions_path, class: "index-sign-in-form" do %>

	<% if flash[:error] %>
		<%= render partial: 'visitor/partials/index/sign_in/flash_error' %>
	<% end %>

		<%= label_tag :username %>
		<%= text_field_tag :username, '', class: "form-control index-sign-in-form-input" %>

		<%= label_tag :password %>
		<%= password_field_tag :password, '', class: "form-control index-sign-in-form-input" %>

	<%= button_tag class: "btn index-contact-form-button" do %>
		<%= raw("#{fa_icon('paper-plane')} Send") %>
	<% end %>

<% end %>

Change sign in form password field to password type


# Forces the webpack manifest to be updated on every page request.
# Set to true for development
# Set to false in production to increase response speed
# Default: true
WebpackSupportRails.update_webpack_manifest_every_request = true

# When set to true, all js bundles will be loaded externally instead of inlined.
# Default: false
WebpackSupportRails.bypass_inline_webpack = false

# Forces the webpack manifest to be updated on every page request.
# Set to true for development
# Set to false in production to increase response speed
# Default: !Rails.env.production?
WebpackSupportRails.update_webpack_manifest_every_request = !Rails.env.production?

# When set to true, all js bundles will be loaded externally instead of inlined.
# Set to true for development
# Set to false in production to inline javascript
# Default: !Rails.env.production?
WebpackSupportRails.bypass_inline_webpack = !Rails.env.production?

Set default config to sensible values

Set default config to sensible values


---
driver_plugin: vagrant
driver_config:
  require_chef_omnibus: true

platforms:
- name: ubuntu-14.04

suites:
- name: <%= cookbook_name %>-default
  run_list:
  - recipe[<%= cookbook_name %>]

---
driver_plugin: vagrant
driver_config:
  require_chef_omnibus: true

platforms:
- name: ubuntu-14.04

suites:
- name: default
  run_list:
  - recipe[<%= cookbook_name %>]

Rollback default kitchen suite's name

Rollback default kitchen suite's name

My last change cause a mismatch between the suite's name in kitchen
configuration file and the created directory `test/integration/default`

There was no reason to rename this suite's name, I think it's preferable
to rollback it instead of dynamically create suite's directory.


{
    "title": "For Russian",
    "rules": [
        {
            "description": "Change grave accent (`) to ё in Russian layout",
            "manipulators": [
                {
                    "conditions": [
                        {
                            "type": "input_source_if",
                            "input_sources": [
                                {
                                    "language": "ru"
                                }
                            ]
                        }
                    ],
                    "type": "basic",
                    "from": <%= from("grave_accent_and_tilde", [], ["any"]) %>,
                    "to": <%= to([["non_us_backslash"]]) %>
                }
            ]
        }
    ]
}

Add Russian rule: remap ` to ё

Add Russian rule: remap ` to ё

See https://github.com/tekezo/Karabiner-Elements/issues/100


<%
  css = []
  css << "selected" if selected_page?(menu_branch) or descendant_page_selected?(menu_branch)
  css << "first" if menu_branch_counter == 0
  css << "last" if menu_branch_counter == (sibling_count ||= menu_branch.shown_siblings.size)
  domid = "item_#{menu_branch_counter}" unless menu_branch.parent_id.present? or menu_branch.title.blank?
-%>
<% if menu_branch.in_menu? %>
  <li<%= " class='#{css.join(' ')}'" if css.present? -%><%= " id='#{domid}'" if domid.present? -%>>
    <%= link_to menu_branch.title, menu_branch.url %>
    <%
      unless hide_children or
        menu_branch.parent_id.present? or
        (children = Page.find(:all, :conditions => "parent_id = #{menu_branch.id}").collect{|c| c if c.in_menu? }.compact).empty?
    -%>
      <ul class='clearfix'>
        <%= render :partial => "/shared/menu_branch",
                    :collection => children,
                    :locals => {:hide_children => hide_children, :sibling_count => children.size-1} -%>
      </ul>
    <% end -%>
  </li>
<% end -%>

<%
  css = []
  css << "selected" if selected_page?(menu_branch) or descendant_page_selected?(menu_branch)
  css << "first" if menu_branch_counter == 0
  css << "last" if menu_branch_counter == (sibling_count ||= menu_branch.shown_siblings.size)
  domid = "item_#{menu_branch_counter}" unless menu_branch.parent_id.present? or menu_branch.title.blank?
-%>
<% if menu_branch.in_menu? %>
  <li<%= " class='#{css.join(' ')}'" if css.present? -%><%= " id='#{domid}'" if domid.present? -%>>
    <%= link_to menu_branch.title, menu_branch.url %>
    <%
      unless hide_children or
        menu_branch.parent_id.present? or
        (children = menu_branch.children.collect{|c| c if c.in_menu?}.compact).empty?
    -%>
      <ul class='clearfix'>
        <%= render :partial => "/shared/menu_branch",
                    :collection => children,
                    :locals => {:hide_children => hide_children, :sibling_count => children.size-1} -%>
      </ul>
    <% end -%>
  </li>
<% end -%>

Fix bug that was introduced that threw out page ordering in the menu


      <%= index_th :id %>
      <%= index_th :title %>
      <%= index_th :email %>
      <%= actions_th %>

    <% @resources.each do |resource| %>

        <%= index_td resource, :id %>
        <%= index_td resource, :name %>
        <%= index_td resource, :email, class:"monospace" %>
        <%= actions_td resource %>

    <% end %>

      <%= index_th :id %>
      <%= index_th :title %>
      <%= index_th :organization %>
      <%= index_th :email %>
      <%= actions_th %>

    <% @resources.each do |resource| %>

        <%= index_td resource, :id %>
        <%= index_td resource, :name %>
        <%= index_td resource, :organization %>
        <%= index_td resource, :email, class:"monospace" %>
        <%= actions_td resource %>

    <% end %>

Add org name to admin table columns

Add org name to admin table columns


<% # this custom result template is currently tested on the next-steps-for-your-business flow %>
<% outcome = @presenter.current_node %>
<% content_for :outcome_title do %>
  <% if outcome.title.present? %><%= outcome.title %><% else %>Outcome<% end %>
<% end %>
<% content_for :head do %>
  <meta name="robots" content="noindex">
<% end %>

    <%= render "govuk_publishing_components/components/title", {
      title: outcome.title,
      margin_bottom: 6
    } %>

    <%= outcome.description %>

    <%= outcome.body %>
    <%= render "govuk_publishing_components/components/print_link" %>
    <%= render 'smart_answers/shared/debug' %>

<% # this custom result template is currently tested on the next-steps-for-your-business flow %>
<% outcome = @presenter.current_node %>
<% content_for :outcome_title do %>
  <% if outcome.title.present? %><%= outcome.title %><% else %>Outcome<% end %>
<% end %>
<% content_for :head do %>
  <meta name="robots" content="noindex">
<% end %>

    <%= render "govuk_publishing_components/components/title", {
      title: outcome.title,
      margin_bottom: 6
    } %>

    <%= outcome.description %>

    <%= outcome.body %>

    <%= render "govuk_publishing_components/components/heading", {
      text: "Change your answers",
      font_size: "l",
      border_top: 2,
      padding: true
    } %>

    <%= tag.p class: "govuk-body govuk-!-margin-bottom-8" do %>
      <%= link_to "Start again", restart_flow_path(@presenter), class: "govuk-link" %>
    <% end %>

    <%= render "govuk_publishing_components/components/print_link" %>
    <%= render 'smart_answers/shared/debug' %>

Add change answer link to custom result page


<% if @guide.owned_by?(current_user) %>
  <%= link_to(icon('edit') + " Edit Guide", {:action => 'edit'}, :class=>'button tiny secondary edit-link') %>
  <%= link_to(icon('trash') + t('.delete_guide'), guide_path(@guide), :method => 'delete', :class=>'button tiny secondary edit-link') %>
  <%= icon('trash') + t('.print_guide') %>
<% end %>

<% if @guide.owned_by?(current_user) %>
  <%= link_to(icon('edit') + " Edit Guide", {:action => 'edit'}, :class=>'button tiny secondary edit-link') %>
  <%= link_to(icon('trash') + t('.delete_guide'), guide_path(@guide), method: 'delete', class: 'button tiny secondary edit-link', data: {confirm: "Are you sure?"}) %>
  <%= icon('trash') + t('.print_guide') %>
<% end %>

Add delete confirm on show page

Add delete confirm on show page


%% This file is managed by Puppet
%%
%% Parameters in this file will override those in sitename/config
%% "<%= scope.lookupvar('zotonic::listen_port').class %>" "<%= @port.class %>"
[
<% if scope.lookupvar('zotonic::listen_port') != @port -%>
  {hostname, "<%= @hostname %>:<%= @port %>"},
  <% else -%>
  {hostname, "<%= @hostname %>"},
  <% end -%>
  {hostaliases, [
    <% @hostaliases.each_with_index do |hostalias, i| -%>
      "<%= hostalias %>"<%= ',' if i < (@hostaliases.size - 1) %>
    <% end -%>
  ]},
  {dbdatabase, "<%= @site_db_name %>"},
  {dbschema, "<%= @db_schema %>"},
  {admin_password, "<%= @admin_password %>"},
  {enabled, <%= @enabled %>}
].

%% This file is managed by Puppet
%%
%% Parameters in this file will override those in sitename/config
%% "<%= scope.lookupvar('zotonic::listen_port').class %>" "<%= @port.class %>"
[
<% if scope.lookupvar('zotonic::listen_port') != @port -%>
  {hostname, "<%= @hostname %>:<%= @port %>"},
  <% else -%>
  {hostname, "<%= @hostname %>"},
  <% end -%>
  {hostalias, [
    <% @hostaliases.each_with_index do |hostalias, i| -%>
      "<%= hostalias %>"<%= ',' if i < (@hostaliases.size - 1) %>
    <% end -%>
  ]},
  {dbdatabase, "<%= @site_db_name %>"},
  {dbschema, "<%= @db_schema %>"},
  {admin_password, "<%= @admin_password %>"},
  {enabled, <%= @enabled %>}
].

Fix hostalias config key name

Fix hostalias config key name


[merge]
  tool = vimdiff
[user]
  name = Sam Bao
  email = sambao21@gmail.com
[difftool "sourcetree"]
  cmd = opendiff \"$LOCAL\" \"$REMOTE\"
  path =
[mergetool "sourcetree"]
  cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
  trustExitCode = true
[core]
  excludesfile = <%=node['sprout']['home']%>/.gitignore_global
  editor = subl -n -w
[credential]
  helper = osxkeychain

Add osxkeychain credential helper to gitconfig


  <% available_locales = Spree.i18n_available_locales %>
  <% if available_locales.size > 1 %>
    <select class="js-locale-selection custom-select fullwidth">
      <%=
        options_for_select(
          available_locales.map do |locale|
            [I18n.t('spree.i18n.this_file_language', locale: locale, default: locale.to_s, fallback: false), locale]
          end.sort,
          selected: I18n.locale,
        )
      %>
    </select>
  <% end %>

<% available_locales = Spree.i18n_available_locales %>
<% if available_locales.size > 1 %>
  <div class="admin-locale-selection">
    <select class="js-locale-selection custom-select fullwidth">
      <%=
        options_for_select(
          available_locales.map do |locale|
            [I18n.t('spree.i18n.this_file_language', locale: locale, default: locale.to_s, fallback: false), locale]
          end.sort,
          selected: I18n.locale,
        )
      %>
    </select>
  </div>
<% end %>

Move locale selection div inside if statement


<% if Date.today < Date.parse('2017-03-21') %>
We're seeking more volunteers to help us run this site. See our blog post for more information.
<% end %>

Add banner promoting call for volunteers

Deadline for applications is 20th March 2017, hence the date
conditional.


[Resolve]
DNS=<%= node[:networking][:nameservers].join(" ") %>
Domains=<%= node[:networking][:search].join(" ") %>
DNSSEC=allow-downgrade

Add a systemd-resolved FallbackDNS list

Add a systemd-resolved FallbackDNS list

The default in systemd for ubuntu in 18.04 is an empty fallback
list.

Use a reasonable list:

* Cloudflare (https://1.1.1.1/)
* Quad9 without filtering (https://www.quad9.net/)
* Google (https://developers.google.com/speed/public-dns/)
1.1.1.1
9.9.9.10
8.8.8.8
2606:4700:4700::1111
2620:fe::10
2001:4860:4860::8888

List from https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/systemd#n103


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

    ga('create', '<%= BiolaFrontendToolkit.config.ga_account %>', '<%= BiolaFrontendToolkit.config.ga_domain %>');
    ga('send', 'pageview');
  </script>
<% end %>

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

    ga('create', '<%= BiolaFrontendToolkit.config.ga_account %>', '<%= BiolaFrontendToolkit.config.ga_domain %>', {'allowLinker': true });
    ga('linker:autoLink', ['biola.edu','talbot.edu','rosemead.edu','biola.ellucianrecruiter.com']);
    ga('require', 'displayfeatures'); // enable Display Features for re-marketing with AdWords
    ga('send', 'pageview');
  </script>
<% end %>

Add linker to ga script

Add linker to ga script


  <form class="locale-form">

      <%= t("layouts.header.locale") %>

    <select class="js-location-changer locale-switcher inline-block" name="locale-switcher" id="locale-switcher">
      <% locales.map do |loc| %>
        <option <%= "selected" if loc == I18n.locale %>
                value="<%= current_path_with_query_params(locale: loc) %>"><%= name_for_locale(loc) %></option>
      <% end %>
    </select>
  </form>

  <form class="locale-form">

      <%= t("layouts.header.locale") %>

    <select class="js-location-changer locale-switcher inline-block" name="locale-switcher" id="locale-switcher">
      <% locales.map do |loc| %>
        <option lang="<%= loc %>" <%= "selected" if loc == I18n.locale %>
                value="<%= current_path_with_query_params(locale: loc) %>"><%= name_for_locale(loc) %></option>
      <% end %>
    </select>
  </form>

Add a `lang` attribute to language options

I'm not sure screen readers recognize this attribute inside `<option>`
tags, but if they do, it'll probably be helpful. And if they don't, no
harm will be done.


Saker med nye avstemninger for <%= l 1.day.ago, format: :text %>

  <% @parliament_issues.each do |pi| %>

<%= link_to pi.summary, pi %>

  <% end %>

Saker med nye avstemninger for <%= l 1.day.ago, format: :text %>

  <% @parliament_issues.each do |pi| %>

<%= link_to pi.summary, parliament_issue_url(pi) %>

  <% end %>

Fix links in import email: use url and not relative path.


<% @pagetitle = 'Factory Staging Dashboard'
   @layouttype = 'custom'
%>
<% content_for :content_for_head do -%>
    <%= stylesheet_link_tag 'obs_factory/application', media: 'all' %>
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<% end -%>
<%= render :template => "layouts/webui/webui" %>

<% @pagetitle = "#{@distribution.name} Staging Dashboard"
   @layouttype = 'custom'
%>
<% content_for :content_for_head do -%>
    <%= stylesheet_link_tag 'obs_factory/application', media: 'all' %>
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<% end -%>
<%= render :template => "layouts/webui/webui" %>

Replace Factory with distribution name in the page title


<%
  corona_opengraph_images ||= false
%>

<% content_for :is_full_width_header, true %>
<% content_for :title, @content_item["title"] %>
<% content_for :meta_tags do %>
  <% page_url = File.join(request.base_url, request.path) %>
  <meta property="og:type" content="website" />
  <meta property="og:site_name" content="GOV.UK">
  <meta property="og:url" content="<%= page_url %>">
  <meta property="og:title" content="<%= @content_item["title"] %>">
  <meta property="og:description" content="<%= @content_item["description"] %>">
  <meta name="description" content="<%= @content_item["description"] %>">

  <%= render "govuk_publishing_components/components/meta_tags", {
    content_item: {
      navigation_page_type: "Taxon Page",
    }
  } %>

  <% if corona_opengraph_images %>
    <meta property="og:image" content="<%= image_url("hands-face-space-social.png") %>" />
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:image" content="<%= image_url("hands-face-space-social.png") %>">
  <% end %>
  <link rel="canonical" href="<%= page_url %>">
<% end %>

<%
  corona_opengraph_images ||= false
%>

<% content_for :is_full_width_header, true %>
<% content_for :title, @content_item["title"] %>
<% content_for :meta_tags do %>
  <% page_url = File.join(request.base_url, request.path) %>
  <meta property="og:type" content="website" />
  <meta property="og:site_name" content="GOV.UK">
  <meta property="og:url" content="<%= page_url %>">
  <meta property="og:title" content="<%= @content_item["title"] %>">
  <meta property="og:description" content="<%= @content_item["description"] %>">
  <meta name="description" content="<%= @content_item["description"] %>">

  <%= render "govuk_publishing_components/components/meta_tags", {
    content_item: {
      navigation_page_type: "Taxon Page",
    }
  } %>

  <link rel="canonical" href="<%= page_url %>">
<% end %>

Set landing page og image to default

Set landing page og image to default


<meta charset="utf-8" />
<meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="images/favicon.png" />
<%= stylesheet_link_tag "site" %>
<%= javascript_include_tag  "all" %>

<title>Nathan & Katelin Day<%= ' - ' + current_article.title unless current_article.nil? %></title>
<%= feed_tag :atom, "#{blog.options.prefix.to_s}/feed.xml", title: "Atom Feed" %>

<meta charset="utf-8" />
<meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="images/favicon.png" />
<%= stylesheet_link_tag "site" %>
<%# <%= javascript_include_tag  "all", async: true %>

<title>Nathan & Katelin Day<%= ' - ' + current_article.title unless current_article.nil? %></title>
<%= feed_tag :atom, "#{blog.options.prefix.to_s}/feed.xml", title: "Atom Feed" %>

Comment out javascript include tag for now


<!DOCTYPE html>
<html>
<head>
  <title>Helpful</title>
  <%= stylesheet_link_tag "application", media: "all" %>
  <%= stylesheet_link_tag "//fonts.googleapis.com/css?family=Montserrat:700|Lato:300,400,400italic,700" %>
  <%= javascript_include_tag "application" %>
  <%= javascript_include_tag "//js.pusher.com/2.1/pusher.min.js" %>
  <%= csrf_meta_tags %>
  <meta name="pusher-key" content="<%= Pusher.key %>">
</head>
<body>
  <%= yield %>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>Helpful</title>
  <%= stylesheet_link_tag "application", media: "all" %>
  <%= stylesheet_link_tag "//fonts.googleapis.com/css?family=Montserrat:700|Lato:300,400,400italic,700" %>
  <%= javascript_include_tag "application" %>
  <%= javascript_include_tag "//d3dy5gmtp8yhk7.cloudfront.net/2.1/pusher.min.js" %>
  <%= csrf_meta_tags %>
  <meta name="pusher-key" content="<%= Pusher.key %>">
</head>
<body>
  <%= yield %>
</body>
</html>

Use cloudfront pusher script over https

Use cloudfront pusher script over https


<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <link rel="shortcut icon" href="/favicon.ico" />
  <title><%= "Badi2010 - " + (content_for?(:title) ? content_for(:title) : controller.action_name) %></title>
  <%= stylesheet_link_tag 'application', media: :all %>
  <%# The javascript include tag is at the bottom of the page to improve user experienced load speed. %>
  <%= csrf_meta_tags %>
</head>
<body>

<div id="container" style="position: relative;">
	<!-- these are composed using css -->
	<%= render( partial: 'layouts/banner'  )%>
	<%= render( partial: 'layouts/sidebar' )%>
	<%= render( partial: 'layouts/main'    )%>
	<%= render( partial: 'layouts/footer'  )%>
</div>

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

<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
  <link rel="shortcut icon" href="/favicon.ico" />
  <title><%= "Badi2010 - " + (content_for?(:title) ? content_for(:title) : controller.action_name) %></title>
  <%= stylesheet_link_tag 'application', media: :all %>
  <%# The javascript include tag is at the bottom of the page to improve user experienced load speed. %>
  <%= csrf_meta_tags %>
</head>
<body>

<div id="container" style="position: relative;">
	<!-- these are composed using css -->
	<%= render( partial: 'layouts/banner'  )%>
	<%= render( partial: 'layouts/sidebar' )%>
	<%= render( partial: 'layouts/main'    )%>
	<%= render( partial: 'layouts/footer'  )%>
</div>

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

Add a hint for IE to use modern rendering