<% if read_only %>
  <div class="ro-val" data-val="<%= form.object.option_set_id %>"><%= form.object.option_set.try(:name) %>

<% else %>
  <%= form.select(:option_set_id,
    option_set_select_option_tags(@option_sets, form.object.option_set_id),
    {include_blank: true}, class: "form-control") %>
  <%= link_to('+ ' + t('activerecord.action_links.option_set.new'), '#', class: 'create_option_set') %>

  <% if form.object.has_conditions? %>

      <%= icon_tag("warning") %>
      <%= t('question.opt_set_warning') %>

  <% end %>
<% end %>

<% if read_only %>
  <div class="ro-val" data-val="<%= form.object.option_set_id %>">
    <%= link_to(form.object.option_set.name, form.object.option_set) if form.object.option_set %>

<% else %>
  <%= form.select(:option_set_id,
    option_set_select_option_tags(@option_sets, form.object.option_set_id),
    {include_blank: true}, class: "form-control") %>
  <%= link_to('+ ' + t('activerecord.action_links.option_set.new'), '#', class: 'create_option_set') %>

  <% if form.object.has_conditions? %>

      <%= icon_tag("warning") %>
      <%= t('question.opt_set_warning') %>

  <% end %>
<% end %>

Add link to option set from question

9202: Add link to option set from question


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

    <%= devise_error_messages! %>

      <%= 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(resource_name, :as => resource_name, :url => registration_path(resource_name), :html => { :autocomplete => :off }) do |f| %>

    <%= devise_error_messages! %>

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

Update homeform partial to disable autocomplete in form


/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *
 *= require_self
 *= require font-awesome/font-awesome
 *= require ratchet
<% if ENV['PLATFORM'] == 'ios' %>
 *= require ratchet-theme-ios
<% else %>
 *= require ratchet-theme-android
<% end %>
 *= require_tree .
 */

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *
 *= require_self
 *= require font-awesome/font-awesome
 *= require ratchet
 *= require ratchet-theme-android
 *= require_tree .
 */

Switch back to Android import only (ditching iOS, my code was broken anyways).


CATEGORIES

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

<a href="/categories/<%=category.id%>"><%= category.name.upcase %>

    <%end%>

Add hidden tag to category index

Add hidden tag to category index


Last updated: <%= last_updated_date.strftime('%d %B %Y') %>

Last updated: <%= last_updated_date.strftime('%e %B %Y') %>

Update last_updated format to not have leading zero


    <%= image_tag("HFA.jpg", :alt => "Hume-Fogg Magnet") %>

What's the plan, <%= @user %>?

<%= button_to "Add a new player", new_player_path, :class => "button" "main", :method => :get %>

<%= button_to "Update player info", root_path, :class => "button" "main" %>

<%= button_to "Review player stats", root_path, :class => "button" "main" %>

<%= button_to "Create teams", root_path, :class => "button" "main" %>

<%= button_to "Set up a game", root_path, :class => "button" "main" %>

<%= button_to "Start playing", root_path, :class => "button" "main" %>

    <%= image_tag("HFA.jpg", :alt => "Hume-Fogg Magnet") %>

What's the plan, <%= @user %>?

<%= button_to "Add a new player", new_player_path, :class => "button" "main", :method => :get %>

<%= button_to "View players", players_path, :class => "button" "main", :method => :get %>

<%= button_to "Create teams", root_path, :class => "button" "main" %>

<%= button_to "Set up a game", root_path, :class => "button" "main" %>

<%= button_to "Start playing", root_path, :class => "button" "main" %>

Change 'update player info' button to 'view players'.


<!DOCTYPE html>

  <meta charset="utf-8" />

  <%= stylesheet_link_tag 'guides-print', media: 'all' %>
  <%= javascript_include_tag 'libs/jquery/jquery-1.7.2.js' %>

GOV.UK

<!DOCTYPE html>

  <meta charset="utf-8" />

  <%= stylesheet_link_tag 'guides-print', media: 'all' %>

GOV.UK

Remove explicit jQuery import for print pages

Print pages shouldn't require JS, and the provided link that is being
generated 404s when hit. Remove it entirely as it's no longer needed.


Feed

                            <%= image_tag "card-picture-1.jpeg", class: "circle responsive-img" %>

<%= @user.name %>

<%= @user.created_at.strftime("%b %d, %Y") %>

                            <%= image_tag 'card-picture-1.jpeg' %>

Feed

                            <%= image_tag "card-picture-1.jpeg", class: "circle responsive-img" %>

<%= @user.first_name %>

                            <%= image_tag 'card-picture-1.jpeg' %>

Modify user name attr to fist_name

Modify user name attr to fist_name


Port 22
ListenAddress ::
ListenAddress 0.0.0.0
Protocol 2

Banner /etc/banner

HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
<% if @osfamily == 'Debian' %>
HostKey /etc/ssh/ssh_host_ecdsa_key
<% end %>
UsePrivilegeSeparation yes

KeyRegenerationInterval 3600
ServerKeyBits 768

SyslogFacility AUTH
LogLevel INFO

LoginGraceTime 120
PermitRootLogin without-password
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes

IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
PasswordAuthentication <%= @external_host ? 'no' : 'yes' %>

X11Forwarding yes
X11DisplayOffset 10
PermitTunnel yes
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
UseDNS no

AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

UsePAM yes
<% if @osfamily == 'Debian' %>
AuthorizedKeysFile /etc/ssh/keys/%u .ssh/authorized_keys
<% else %>
AuthorizedKeysFile %h/.ssh/authorized_keys
<% end -%>

Match Group <%= @sftp_group %>
    AllowTCPForwarding no
    X11Forwarding no
    ForceCommand /usr/lib/openssh/sftp-server

Port 22
ListenAddress ::
ListenAddress 0.0.0.0
Protocol 2

Banner /etc/banner

HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
<% if @osfamily == 'Debian' %>
HostKey /etc/ssh/ssh_host_ecdsa_key
<% end %>
UsePrivilegeSeparation yes

KeyRegenerationInterval 3600
ServerKeyBits 768

SyslogFacility AUTH
LogLevel INFO

LoginGraceTime 120
PermitRootLogin without-password
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes

IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
PasswordAuthentication <%= @external_host ? 'no' : 'yes' %>

X11Forwarding yes
X11DisplayOffset 10
PermitTunnel yes
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
UseDNS no

AcceptEnv LANG LC_*

Subsystem sftp internal-sftp

UsePAM yes
<% if @osfamily == 'Debian' %>
AuthorizedKeysFile /etc/ssh/keys/%u .ssh/authorized_keys
<% else %>
AuthorizedKeysFile %h/.ssh/authorized_keys
<% end -%>

<% if @sftp_group != '' -%>
Match Group <%= @sftp_group %>
    AllowTCPForwarding no
    X11Forwarding no
    ForceCommand internal-sftp
<% end -%>

Switch sftp service from external to internal

1) We replace /usr/libexec/sftp-server with internal-sftp
* An in-process sftp server requires no support files when used with ChrootDirectory
* With internal-sftp the login shell is no longer involved

2) Do not configure sftp if user provides empty sftp group

Change-Id: I59389203e12e3fb9304033f8e61a910441386851


Movie Show Page!

<%= link_to "Edit Movie", edit_movie_path %>
<%= link_to "Delete Movie", movie_path, method: :delete, data: {confirm: "Are you sure?"} %>

<%= @movie.title %>

<%= @movie.synopsis %>

<%= @movie.release_date %>

Reviews: <% @movie.reviews.each do |review| %>

<%= link_to "#{review.title}", movie_review_path(@movie, review) %>

<%= review.content.truncate(75, separator: '. ') %>

    <% end %>

Movie Show Page!

<%= link_to "Edit Movie", edit_movie_path %>
<%= link_to "Delete Movie", movie_path, method: :delete, data: {confirm: "Are you sure?"} %>

<%= @movie.title %>

<%= @movie.synopsis.truncate(100, separator: ' ') %>

<%= @movie.release_date %>

Reviews: <% @movie.reviews.each do |review| %>

<%= link_to "#{review.title}", movie_review_path(@movie, review) %>

<%= review.content.truncate(75, separator: ' ') %>

    <% end %>

Add truncate to movie synopsis

Add truncate to movie synopsis


<% content_for :sidebar do %>

Skill
<%= @skill.name %>

  <%= sidebar_button_link 'Edit', edit_skill_path(@skill) %>
  <%#= sidebar_button_link 'Destroy', @skill, method: :delete %>
  <%= sidebar_button_link 'Skills Listing', skills_path %>
<% end %>

  Status:
  <%= @skill.status %>

      Courses That Satisfy This Skill

    <%= render @skill.courses %>

      Titles That Require This Skill

    <%= render @skill.titles %>

<% content_for :sidebar do %>

Skill
<%= @skill.name %>

  <%= sidebar_button_link 'New Skill', new_skill_path if can? :create, Title %>
  <%= sidebar_button_link 'Edit', edit_skill_path(@skill) %>
  <%#= sidebar_button_link 'Destroy', @skill, method: :delete %>
  <%= sidebar_button_link 'Skills Listing', skills_path %>
<% end %>

  Status:
  <%= @skill.status %>

      Courses That Satisfy This Skill

    <%= render @skill.courses %>

      Titles That Require This Skill

    <%= render @skill.titles %>

Add new skill button to skill page

Add new skill button to skill page


<%= form_for [@question, answer, @comment] do |f| %>
  <%= f.hidden_field :commentable_type, :value => "Answer" %>
  <%= f.hidden_field :commentable_id, :value => answer.id %>

  <%= f.text_field :content %>
  <%= f.submit %>

<% end %>

  <%= form_for [@question, answer, @comment] do |f| %>
    <%= f.hidden_field :commentable_type, :value => "Answer" %>
    <%= f.hidden_field :commentable_id, :value => answer.id %>

    <%= f.text_field :content, class: "comment-content" %>
    <%= f.submit %>
  <% end %>

Add class for creating comments

Add class for creating comments


<%= t "home.greeting", default: "Welcome" %>

Congratulations, you have successfully installed Orchid!

Make sure that you have run the generator with rails g setup, which will prepare your application.

For further app configuration, read more in the Orchid README Configuration section.

Add `rel="external"` to GitHub link

Add `rel="external"` to GitHub link


; Generated by Chef for <%= node[:fqdn] %>
; Local modifications will be overwritten.

(setq tags-file-name "TAGS")
(setq-default tab-width 2)
(setq js-indent-level 2)
(setq-default indent-tabs-mode nil)
(setq mac-emulate-three-button-mouse nil)
(setq cua-highlight-region-shift-only t)
(prefer-coding-system 'utf-8)
(setq vc-handled-backends nil)
(cua-mode nil)
(setq gist-view-gist t)
(menu-bar-mode -1)

;; works in both aquamacs and carbon
(when (functionp 'tool-bar-mode)
  (tool-bar-mode -1))

;; configure cua for terminal
(cua-selection-mode t)

;; aquamacs specific
(when (boundp 'aquamacs-version)
  (one-buffer-one-frame-mode 0))

;; all modes
(add-hook 'before-save-hook 'delete-trailing-whitespace)

; Generated by Chef for <%= node[:fqdn] %>
; Local modifications will be overwritten.

(setq tags-file-name "TAGS")
(setq-default tab-width 2)
(setq js-indent-level 2)
(setq-default indent-tabs-mode nil)
(setq mac-emulate-three-button-mouse nil)
(setq cua-highlight-region-shift-only t)
(prefer-coding-system 'utf-8)
(setq vc-handled-backends nil)
(cua-mode t)
(setq cua-enable-cua-keys nil)
(setq gist-view-gist t)
(menu-bar-mode -1)

;; works in both aquamacs and carbon
(when (functionp 'tool-bar-mode)
  (tool-bar-mode -1))

;; aquamacs specific
(when (boundp 'aquamacs-version)
  (one-buffer-one-frame-mode 0))

;; all modes
(add-hook 'before-save-hook 'delete-trailing-whitespace)

Fix cua-mode for emacs 24.4

Fix cua-mode for emacs 24.4


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

wfLoadExtension('MobileFrontend');

// Enable detection in PHP. Disable this if you put MW behind a caching layer
$wgMFAutodetectMobileView = true;

// Set the default skin
$wgMFDefaultSkinClass = 'SkinVector';

Set the default skin for the mediawiki mobile frontend


---
title: API Umbrella - Open Source API Management
---

 API Umbrella

Open Source API Management

          Download

            API Umbrella is a proxy that sits in front of your APIs.

            It can seamlessly add common functionality like api keys, rate limiting, and analytics to any API.

        <%= link_to(%(), "/docs/architecture.html", :relative => true) %>

          Version 0.6.0    ⋅    GitHub Project

---
title: API Umbrella - Open Source API Management
---

 API Umbrella

Open Source API Management

          <%= link_to('Download', "/download.html", :class => "btn btn-default btn-lg", :role => "button") %>

            API Umbrella is a proxy that sits in front of your APIs.

            It can seamlessly add common functionality like api keys, rate limiting, and analytics to any API.

        <%= link_to(%(), "/docs/architecture.html", :relative => true) %>

          Version 0.6.0    ⋅    GitHub Project

Use link_to helper to make link work relatively.


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

# Configuration File For Chef (chef-client)
#
# The chef-client program will connect the local system to the specified
# server URLs through a RESTful API to retrieve its configuration.

# Force the default external encoding to UTF-8

Encoding.default_external = Encoding::UTF_8

# Log at level info

log_level :info

# Set the location of the log file

log_location "/var/log/chef/client.log"

# Verify SSL certificates

ssl_verify_mode :verify_peer

# Set the URL for the chef server

chef_server_url "https://chef.openstreetmap.org/organizations/openstreetmap"

# Make our plugins visible to ohai

Ohai::Config[:plugin_path] << "<%= node[:ohai][:plugin_dir] %>"

# Load supporting code for report handlers

require "/etc/chef/report"

# Create report handler

email_handler = Chef::Handler::Email.new(:to => "tom@compton.nu")

# Configure report handlers

exception_handlers << email_handler
report_handlers << email_handler

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

# Configuration File For Chef (chef-client)
#
# The chef-client program will connect the local system to the specified
# server URLs through a RESTful API to retrieve its configuration.

# Force the default external encoding to UTF-8

Encoding.default_external = Encoding::UTF_8

# Log at level info

log_level :info

# Set the location of the log file

log_location "/var/log/chef/client.log"

# Verify SSL certificates

ssl_verify_mode :verify_peer

# Set the URL for the chef server

chef_server_url "https://chef.openstreetmap.org/organizations/openstreetmap"

# Make our plugins visible to ohai

Ohai::Config[:plugin_path] << "<%= node[:ohai][:plugin_dir] %>"

# Load supporting code for report handlers

require "/etc/chef/report"

# Create report handler

email_handler = Chef::Handler::Email.new(:to => ["tom@compton.nu", "openstreetmap@firefishy.com"])

# Configure report handlers

exception_handlers << email_handler
report_handlers << email_handler

Send chef errors to Grant

Send chef errors to Grant


<!DOCTYPE html>

  <title><%= blog[:title] %></title>

  <meta charset="utf-8"/>
  <meta name="description" content="<%= post[:description] %>">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  <link href="../assets/css/gerablog.css" rel="stylesheet">
  <link href="../assets/css/prism.css" rel="stylesheet">

<%= blog[:name] %>

<%= blog[:description] %>

    <%= blog[:categories] %>

    <%= post[:converted] %>

<!DOCTYPE html>

  <title><%= blog[:title] %></title>

  <meta charset="utf-8"/>
  <meta name="description" content="<%= post[:description] %>">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  <link rel="alternate" type="application/rss+xml" title="RSS Feed for <%= blog[:title] %>" href="../feed.xml" />
  <%= blog[:feeds] %>

  <link rel="stylesheet" href="../assets/css/gerablog.css">
  <link  rel="stylesheet" href="../assets/css/prism.css">

<%= blog[:name] %>

<%= blog[:description] %>

    <%= blog[:categories] %>

    <%= post[:converted] %>

Add general feed in post template

Add general feed in post template


# Hostgroup definitions
#
# Autogenerated by Chef.

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

<% @hostgroups.each do |h| -%>
define hostgroup {
  hostgroup_name <%= h %>
  alias <%= h %>
}

<% end -%>

<% @search_hostgroups.each do |hostgroup| -%>
define hostgroup {
  hostgroup_name <%= hostgroup %>
  alias <%= hostgroup %>
<% if @search_nodes[hostgroup].length > 0 -%>
  members        <%= @search_nodes[hostgroup] %>
<% else -%>
  members        empty
<% end -%>
}

<% end -%>

# Hostgroup definitions
#
# Autogenerated by Chef.

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

<% @hostgroups.sort.each do |h| -%>
define hostgroup {
  hostgroup_name <%= h %>
  alias <%= h %>
}

<% end -%>

<% @search_hostgroups.sort.each do |hostgroup| -%>
define hostgroup {
  hostgroup_name <%= hostgroup %>
  alias <%= hostgroup %>
<% if @search_nodes[hostgroup].length > 0 -%>
  members        <%= @search_nodes[hostgroup] %>
<% else -%>
  members        empty
<% end -%>
}

<% end -%>

Sort the results so the host groups print out in A -> Z order.  This makes it a lot easier to troubleshoot.

Former-commit-id: c71d3d694328a4c14905e5b78b8b2dd10a3dee5f [formerly 140927b22a5d1a30ed120ddaf97e9cba6d60715c] [formerly 075dcd77ef07e643f44587416fbe49af5e0865ad [formerly 07f0bd675d1373f9c5038e266eb26be40c9e84c1]]
Former-commit-id: 6817b94e0cbb064ed918bf03f3d6ab2fcbb3cc79 [formerly fe0a3f618e8954b6b75b89989dfb554cd200dfc9]
Former-commit-id: 0080f9097f69105f36b0f446899e1ab6064d9f08


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Remove quarantine from content deleted

Remove quarantine from content deleted


Add New Post

		<form>

	  <textarea class="form-control" rows="6"></textarea>

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

Add New Post

	<form action="/new" method="POST" role="form">
		  <textarea class="form-control" rows="6"></textarea>

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

Add action, method attributes to form

Add action, method attributes to form


<% @feedback.errors.full_messages.each do |message| %>
    <%= message %>

<% end %>

<%= form_for(@feedback) do |f| %>

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

    <%= f.fields_for :answers do |a| %>
        <%= a.label @questions.find(a.object.question_id).question %>
        <%= a.hidden_field :question_id, :value => a.object.question_id %>

        <% if @questions.find(a.object.question_id).multiple_choice %>
            <%= a.collection_radio_buttons :response, [['1', ' 1'], ['2', ' 2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7'], ['8', '8'], ['9', '9']],
                                           :first,
                                           :last do |b| %>

                  <%= b.label do %>
                      <%= b.radio_button + b.text %>
                  <% end %>

            <% end %>

        <% else %>
            <%= a.text_field :response, :value => Faker::Lorem.sentence %>
        <% end %>
    <% end %>

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

<% @feedback.errors.full_messages.each do |message| %>
    <%= message %>

<% end %>

<%= form_for(@feedback) do |f| %>

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

    <%= f.fields_for :answers do |a| %>
        <%= a.label @questions.find(a.object.question_id).question %>
        <%= a.hidden_field :question_id, :value => a.object.question_id %>

        <% if @questions.find(a.object.question_id).multiple_choice %>
            <%= a.collection_radio_buttons :response, [['1', ' 1'], ['2', ' 2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7'], ['8', '8'], ['9', '9'], ['10', '10']],
                                           :first,
                                           :last do |b| %>

                  <%= b.label do %>
                      <%= b.radio_button + b.text %>
                  <% end %>

            <% end %>

        <% else %>
            <%= a.text_field :response, :value => Faker::Lorem.sentence %>
        <% end %>
    <% end %>

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

Fix range error on number picker.

Fix range error on number picker.


<% if can_view_asset?(@data_file, params[:code]) -%>

Factors Studied

      <% unless @display_data_file.studied_factors.empty? -%>

            <%= render :partial=>"studied_factors/condition_or_factor_row_headings", :locals=>{:asset => 'data_file', :show_delete=>false} %>
            <%= render :partial=>"studied_factors/condition_or_factor_row",:collection=>@display_data_file.studied_factors, :locals=>{:asset => 'data_file', :show_delete=>false} %>

      <% else -%>
          No factors studied for this <%= t('data_file') %>.
      <% end -%>

    <% if @data_file.can_edit? -%>
        <%= button_link_to('Edit factors studied (latest version)', 'edit', data_file_studied_factors_path(@data_file)) -%>
    <% end -%>
<% end -%>

<% if can_view_asset?(@data_file, params[:code]) -%>
    <%= folding_panel('Factors Studied') do %>

          <% unless @display_data_file.studied_factors.empty? -%>

                <%= render :partial=>"studied_factors/condition_or_factor_row_headings", :locals=>{:asset => 'data_file', :show_delete=>false} %>
                <%= render :partial=>"studied_factors/condition_or_factor_row",:collection=>@display_data_file.studied_factors, :locals=>{:asset => 'data_file', :show_delete=>false} %>

          <% else -%>
              No factors studied for this <%= t('data_file') %>.
          <% end -%>

        <% if @data_file.can_edit? -%>
            <%= button_link_to('Edit factors studied (latest version)', 'edit', data_file_studied_factors_path(@data_file)) -%>
        <% end -%>
    <% end -%>
<% end -%>

Put factors studied in a panel

Put factors studied in a panel


<%
  world_locations ||= organisation.world_locations
  link_to_organisation ||= false
  object_for_translation ||= organisation
%>

        <% if link_to_organisation %>
          <%= link_to content_tag(:span, organisation_logo_name(organisation)), organisation, class: logo_classes(class_name: 'single-identity', size: 'large', stacked: true) %>
        <% else %>
          <%= content_tag :span, content_tag(:span, organisation_logo_name(organisation)), class: logo_classes(class_name: 'single-identity', size: 'large', stacked: true) %>
        <% end %>

    <%= render partial: 'shared/available_languages', locals: {object: object_for_translation } %>

        <% if world_locations.any? %>

<%= t('worldwide_organisation.location') %>:

<%= world_locations.map {|l| link_to(l.name, l) }.to_sentence.html_safe %>

        <% end %>

<%= t('worldwide_organisation.part_of') %>:

<%= organisation.sponsoring_organisations.map {|o| link_to(o.name, o, class: "sponsoring-organisation") }.to_sentence.html_safe %>

<%
  world_locations ||= organisation.world_locations
  link_to_organisation ||= false
  object_for_translation ||= organisation
%>

        <% if link_to_organisation %>
          <%= link_to content_tag(:span, organisation_logo_name(organisation)), organisation, class: logo_classes(class_name: 'single-identity', size: 'large', stacked: true) %>
        <% else %>
          <%= content_tag :span, content_tag(:span, organisation_logo_name(organisation)), class: logo_classes(class_name: 'single-identity', size: 'large', stacked: true) %>
        <% end %>

    <%= render partial: 'shared/available_languages', locals: {object: object_for_translation } %>

        <% if world_locations.any? %>

<%= t('worldwide_organisation.location') %>:

<%= world_locations.map {|l| link_to(l.title, l) }.to_sentence.html_safe %>

        <% end %>

<%= t('worldwide_organisation.part_of') %>:

<%= organisation.sponsoring_organisations.map {|o| link_to(o.name, o, class: "sponsoring-organisation") }.to_sentence.html_safe %>

Revert "use world location name not title in orgs page"

This reverts commit 80aa36b7697086e6fb6492bb1496f2d7810e77bb.


---
title:  Apache Geode 1.0.0-incubating Documentation
---

This documentation describes product concepts and provides complete setup instructions for Apache Geode 1.0.0-incubating. Source files and instructions on how to build this documentation are available at [https://github.com/project-geode/docs](https://github.com/project-geode/docs) and [https://github.com/project-geode/docs/blob/master/README.md](https://github.com/project-geode/docs/blob/master/README.md).

You can also find additional documentation about Geode on the **Apache Geode Wiki**: [https://cwiki.apache.org/confluence/display/GEODE/Index](https://cwiki.apache.org/confluence/display/GEODE/Index).

Remove html <span> code from 'about' page so it doesn't show up in browser tabs.


---
title:
auth:
read:	2015-
tags:	books
layout: layout_book
ads:
-
---

---
title:
auth:	Wojciech Koszek
tags:	article
layout: layout_book
---

<% graphviz do %>
digraph G {
  a1 -> b3;
}
<% end %>

Add the skeleton to the repo.

Add the skeleton to the repo.


Filename	Size	Preview	TTL

<%
    File0::File.get_all.each do |file|
%>

    <a href="/<%= file['filename']%>"> <%= file['filename'] %>
     <%= Filesize.from(File0::File.size(file["filename"]).to_s + " B").pretty %>

      <% if file['thumbnail'] %>
        <img src="data:<%=file['filetype'] + ';base64, ' + file['thumbnail']%>" />
      <% end %>

     <%= Time.now + File0::File.ttl(file["filename"]) %>

<%
  end
%>

Filename	Size	Preview	TTL

<%
    File0::File.get_all.sort_by{|hsh| File0::File.ttl(hsh['filename'])}.reverse.each do |file|
%>

    <a href="/<%= file['filename']%>"> <%= file['filename'] %>
     <%= Filesize.from(File0::File.size(file["filename"]).to_s + " B").pretty %>

      <% if file['thumbnail'] %>
        <img src="data:<%=file['filetype'] + ';base64, ' + file['thumbnail']%>" />
      <% else %>
        No preview available.
      <% end %>

     <%= Time.now + File0::File.ttl(file["filename"]) %>

<%
  end
%>

Add sorting of items in admin page, newest to oldest.


---
layout: document_type_layout
parent: /document-types.html
---

<%= supertype.name %> is a "document supertype".

<%= supertype.description %>

Field in content-store: `<%= supertype.id %>`

| Name | Document types |
| --- | --- |
<% supertype.items.map do |item| %>
| <%= item.fetch("id") %> | <%= item.fetch("document_types").map { |d| link_to(d, document_type_url(d)) }.join("<br/>") %> |
<% end %>
| <%= supertype.default %> | All other types |

---
layout: document_type_layout
parent: /document-types.html
---

<%= supertype.name %> is a "document supertype".

<%= supertype.description %>

Field in content-store: `<%= supertype.id %>`

| Name | Document types |
| --- | --- |
<% supertype.items.map do |item| %>
| **<%= item.fetch("id") %>**
<%= item["description"] %> | <%= item.fetch("document_types").map { |d| link_to(d, document_type_url(d)) }.join("
") %> |
<% end %>
| <%= supertype.default %> | All other types |

Add description of supertypes to the table


version: STSv1
mode: testing
mx: *.mx.<%= @domain %>
max_age: 31536000

version: STSv1
mode: enforce
mx: *.mx.<%= @domain %>
max_age: 31536000

Switch MTA-STS policy to enforce mode

Switch MTA-STS policy to enforce mode


[uwsgi]

socket = <%= node[:meniscus][:uwsgi_socket] %>
protocol = <%= node[:meniscus][:uwsgi_protocol] %>

processes = <%= node[:meniscus][:uwsgi_processes] %>

master = true
vacuum = true

no-default-app = true
memory-report = false

env = PYTHONPATH=<%= node[:meniscus][:pynopath] %>
env = CONFIG_FILE=<%= node[:meniscus][:config_file] %>

pythonpath = ./

module = meniscus.app:application

cache2 = name=cache-config,items=<%= node[:meniscus][:uwsgi_config_cache_items] %>,store=cache-config
cache2 = name=cache-tenant,items=<%= node[:meniscus][:uwsgi_tenant_cache_items] %>
cache2 = name=cache-token,items=<%= node[:meniscus][:uwsgi_token_cache_items] %>

[uwsgi]

socket = <%= node[:meniscus][:uwsgi_socket] %>
protocol = <%= node[:meniscus][:uwsgi_protocol] %>

processes = <%= node[:meniscus][:uwsgi_processes] %>

master = true
vacuum = true

no-default-app = true
memory-report = false

env = PYTHONPATH=<%= node[:meniscus][:pynopath] %>
env = CONFIG_FILE=<%= node[:meniscus][:config_file] %>

pythonpath = ./

module = meniscus.app:application

cache2 = name=cache-config,items=<%= node[:meniscus][:uwsgi_config_cache_items] %>
cache2 = name=cache-tenant,items=<%= node[:meniscus][:uwsgi_tenant_cache_items] %>
cache2 = name=cache-token,items=<%= node[:meniscus][:uwsgi_token_cache_items] %>

Remove disk persisted cache-config to match source repo


<%# simple presentation of a single reserve  statuses, editability  %>
<% if params[:viewonly].to_s != "true" %>
<%= reserve.visibility == "R" ? "Not Visible" : "Visible" %>
<% end %>
<% cl = "status"
   stat = reserve.display_status
   if params[:viewonly].to_s == "true" && stat == "Reuse"
      stat = "Available Soon"
   end
   if stat == "Available"
      cl = cl + "-available"
   elsif stat == "Available Soon"
      cl = cl + "-soon"
   end
%>
<span class="<%= cl %>"><%= stat %>

<% if reserve.required == "Y" %>
required
<% else %>
zzz
<% end %>
<% if !reserve.lecture_date.blank? || reserve.student_annotation %>

<% if !reserve.lecture_date.blank? %>
Lecture Date: <%= reserve.lecture_date %>
<%= (Time.parse(reserve.lecture_date).to_i/86401) %>
<% else %>

<% end %>
<% if reserve.student_annotation %><%= reserve.student_annotation %><% end %>

<% end %>

<%# simple presentation of a single reserve  statuses, editability  %>
<% if params[:viewonly].to_s != "true" %>
<%= reserve.visibility == "R" ? "Not Visible" : "Visible" %>
<% end %>
<% cl = "status"
   stat = reserve.display_status
   if params[:viewonly].to_s == "true" && stat == "Reuse"
      stat = "Available Soon"
   end
   if stat == "Available"
      cl = cl + "-available"
   elsif stat == "Available Soon"
      cl = cl + "-soon"
   end
%>
<span class="<%= cl %>"><%= stat %>

<% if reserve.required == "Y" %>
required
<% else %>
zzz
<% end %>
<% if !reserve.lecture_date.blank? || reserve.student_annotation %>

<% if !reserve.lecture_date.blank? %>
Lecture Date: <%= Time.parse(reserve.lecture_date).strftime("%b %d, %Y") %>
<%= (Time.parse(reserve.lecture_date).to_i/86401) %>
<% else %>

<% end %>
<% if reserve.student_annotation %><%= reserve.student_annotation %><% end %>

<% end %>

Format lecture date to American norms

Format lecture date to American norms


<%= strapline %>

        <% items.each do |items| %>

            <a class="home-feature__heading" href="<%= items['url'] %>"><%= items['title'] %>

<%= items['description'] %>

        <% end %>

<%= strapline %>

        <% items.each do |item| %>

            <a class="home-feature__heading" href="<%= item['url'] %>"><%= item['title'] %>

<%= item['description'] %>

        <% end %>

Fix variable scope overlap in homepage_feature partial.


The environment has less than 10% available of Diego Cell Memory Capacity
Possible Causes: Increased usage of CF. Click on the link below to see the trend.
Potential Solutions: If it is a sudden spike, escalate to Diego and BAM team.
Otherwise, increase Diego Cell count in `stubs/diego/instance-count-overrides.yml` by 5 per AZ.
 @slack-cloudops-us-pws

<%= environment %> Diego: min memory available too low

Question: max(last_15m):top( top( sum:datadog.nozzle.rep.CapacityRemainingMemory{!job:cell_iso_z1,!job:cell_iso_z2} / sum:datadog.nozzle.rep.CapacityTotalMemory{!job:cell_iso_z1,!job:cell_iso_z2} , 10 , 'min' , 'desc' ) , 1 , 'min' , 'asc' ) * 100 < 5

Add alert template for diego min memory too low monitor

Signed-off-by: Renee Chu <dbb10253d556b7398455fa674afa4c4a5a96979a@pivotal.io>


  Taxon Concept
  Relationship type
  Related taxon concept
  Actions

  <% collection.each do |taxon_relationship| -%>

        <%= link_to taxon_relationship.taxon_concept.full_name, edit_admin_taxon_concept_path(taxon_relationship.taxon_concept) %>
        (<%= link_to taxon_relationship.taxon_concept.taxonomy.name, admin_taxonomy_path(taxon_relationship.taxon_concept.taxonomy) %>)

        <%= taxon_relationship.taxon_relationship_type.name %>

        <%= link_to taxon_relationship.other_taxon_concept.full_name, edit_admin_taxon_concept_path(taxon_relationship.other_taxon_concept) %>
        (<%= link_to taxon_relationship.other_taxon_concept.taxonomy.name, admin_taxonomy_path(taxon_relationship.other_taxon_concept.taxonomy) %>)

        <% if can? :destroy, taxon_relationship %>
          <%= link_to delete_icon, resource_url(taxon_relationship, :type => params[:type]),
            :confirm => "Warning: you are about to delete data. Are you sure?",
            :method => :delete %>
        <% end %>

  <% end -%>

  Taxon Concept
  Relationship type
  Related taxon concept
  Actions

  <% collection.each do |taxon_relationship| -%>

        <%= link_to taxon_relationship.taxon_concept.full_name, admin_taxon_concept_taxon_relationships_path(taxon_relationship.taxon_concept) %>
        (<%= link_to taxon_relationship.taxon_concept.taxonomy.name, admin_taxonomy_path(taxon_relationship.taxon_concept.taxonomy) %>)

        <%= taxon_relationship.taxon_relationship_type.name %>

        <%= link_to taxon_relationship.other_taxon_concept.full_name, admin_taxon_concept_taxon_relationships_path(taxon_relationship.other_taxon_concept) %>
        (<%= link_to taxon_relationship.other_taxon_concept.taxonomy.name, admin_taxonomy_path(taxon_relationship.other_taxon_concept.taxonomy) %>)

        <% if can? :destroy, taxon_relationship %>
          <%= link_to delete_icon, resource_url(taxon_relationship, :type => params[:type]),
            :confirm => "Warning: you are about to delete data. Are you sure?",
            :method => :delete %>
        <% end %>

  <% end -%>

Set links to taxon_relationships tab

Set links to taxon_relationships tab


<% form_contents = capture do %>
  <% if question.body.present? %>
    <%= question.body %>
  <% end %>

  <% if question.hint.present? %>

<%= question.hint %>

  <% end %>

  <%= render "govuk_publishing_components/components/date_input", {
    error_message: question.error,
    items: [
      question.default_day ? nil : {
        label: "Day",
        name: "response[day]",
        width: 2,
        value: question.selected_day,
      },
      question.default_month ? nil : {
        label: "Month",
        name: "response[month]",
        width: 2,
        value: question.selected_month,
      },
      question.default_year ? nil : {
        label: "Year",
        name: "response[year]",
        width: 4,
        value: question.selected_year
      }
    ].compact
  } %>
<% end %>

<%= render "smart_answers/inputs/caption", question: question %>
<%= render "govuk_publishing_components/components/fieldset", {
  legend_text: question.title,
  heading_level: 1,
  heading_size: "l",
  text: form_contents
} %>

<% form_contents = capture do %>
  <% if question.body.present? %>
    <%= question.body %>
  <% end %>

  <%= render "govuk_publishing_components/components/date_input", {
    error_message: question.error,
    hint: question.hint,
    items: [
      question.default_day ? nil : {
        label: "Day",
        name: "response[day]",
        width: 2,
        value: question.selected_day,
      },
      question.default_month ? nil : {
        label: "Month",
        name: "response[month]",
        width: 2,
        value: question.selected_month,
      },
      question.default_year ? nil : {
        label: "Year",
        name: "response[year]",
        width: 4,
        value: question.selected_year
      }
    ].compact
  } %>
<% end %>

<%= render "smart_answers/inputs/caption", question: question %>
<%= render "govuk_publishing_components/components/fieldset", {
  legend_text: question.title,
  heading_level: 1,
  heading_size: "l",
  text: form_contents
} %>

Use hint property for the date input component

This re-uses the in-built hint property for the date component instead
of rendering a seperate component.


<%= raw @outgoing_message.body.strip %>

-------------------------------------------------------------------

<%= _('This is an FOI request done via the {{site_name}} website. This footer has been overriden by the sample Alaveteli theme.', :site_name => site_name) %>

<%= _('Please use this email address for all replies to this request:')%>
<%= @info_request.incoming_email %>

<%= _('Is {{email_address}} the wrong address for {{type_of_request}} requests to {{public_body_name}}? If so, please contact us using this form:', :email_address => @info_request.public_body.request_email, :type_of_request =>  @info_request.law_used_full, :public_body_name => @info_request.public_body.name)%>
<%= new_change_request_url(:body => @info_request.public_body.url_name) %>

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

-------------------------------------------------------------------

<%= raw @outgoing_message.body.strip %>

-------------------------------------------------------------------

<%= _('Please use this email address for all replies to this request:')%>
<%= @info_request.incoming_email %>

Solicitante:
<%-# !!!IF YOU CHANGE THE FORMAT OF THE BLOCK BELOW, ADD A NEW CENSOR RULE!!! -%>
===================================================================
# Nombre: <%= @outgoing_message.info_request.user.name %>
# Número de teléfono: <%= @outgoing_message.info_request.user.phone_number %>
<% if @outgoing_message.info_request.user.is_individual? %>
# Cedula de identidad persona:  <%= @outgoing_message.info_request.user.national_id_number %>
<%= @outgoing_message.info_request.user.address.gsub(/^/, "# Dirección: ") %>
<% else %>
# <%= _('Company name:')%> <%= @outgoing_message.info_request.user.company_name %>
# <%= _('Company number:')%> <%= @outgoing_message.info_request.user.company_number %>
# <%= _('Incorporation date:')%> <%= @outgoing_message.info_request.user.incorporation_date %>
<% end %>
===================================================================

<%= _('Is {{email_address}} the wrong address for {{type_of_request}} requests to {{public_body_name}}? If so, please contact us using this form:', :email_address => @info_request.public_body.request_email, :type_of_request =>  @info_request.law_used_full, :public_body_name => @info_request.public_body.name)%>
<%= new_change_request_url(:body => @info_request.public_body.url_name) %>

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

-------------------------------------------------------------------

Add user details to the initial request email


---
log_guid: "routing_api"
<% if_p("metron_endpoint.host", "metron_endpoint.dropsonde_port") do |host, port| %>
metron_config:
  address: <%= host %>
  port: <%= port %>
<% end %>
metrics_reporting_interval: <%= p("routing-api.metrics_reporting_interval") %>
statsd_endpoint: <%= p("routing-api.statsd_endpoint") %>
uaa_url: https://uaa.service.cf.internal:<%= p("routing-api.uaa_ssl_port") %>
skip_oauth_tls_verification: <%= p("routing-api.skip_oauth_tls_verification") %>
debug_address: <%= p("routing-api.debug_address") %>
max_concurrent_etcd_requests: <%= p("routing-api.max_concurrent_etcd_requests") %>
statsd_client_flush_interval: <%= p("routing-api.statsd_client_flush_interval") %>

---
log_guid: "routing_api"
<% if_p("metron_endpoint.host", "metron_endpoint.dropsonde_port") do |host, port| %>
metron_config:
  address: <%= host %>
  port: <%= port %>
<% end %>
metrics_reporting_interval: <%= p("routing-api.metrics_reporting_interval") %>
statsd_endpoint: <%= p("routing-api.statsd_endpoint") %>
oauth:
  token_endpoint: uaa.service.cf.internal
  port: <%= p("routing-api.uaa_ssl_port") %>
  skip_oauth_tls_verification: <%= p("routing-api.skip_oauth_tls_verification") %>
debug_address: <%= p("routing-api.debug_address") %>
max_concurrent_etcd_requests: <%= p("routing-api.max_concurrent_etcd_requests") %>
statsd_client_flush_interval: <%= p("routing-api.statsd_client_flush_interval") %>

Change routing-Api config to have OAuth configuration

[#109654250]


---
log_guid: <%= name %>_<%= index %>
<% if p("routing-api.auth_disabled") == false %>
uaa_verification_key: |
<%= "  " + properties.uaa.jwt.verification_key.gsub("\n", "\n  ") %>
<% end %>
<% if_p("metron_endpoint.host", "metron_endpoint.dropsonde_port") do |host, port| %>
metron_config:
  address: <%= host %>
  port: <%= port %>
<% end %>
metrics_reporting_interval: <%= p("routing-api.metrics_reporting_interval") %>
statsd_endpoint: <%= p("routing-api.statsd_endpoint") %>
debug_address: <%= p("routing-api.debug_address") %>
max_concurrent_etcd_requests: <%= p("routing-api.max_concurrent_etcd_requests") %>
statsd_client_flush_interval: <%= p("routing-api.statsd_client_flush_interval") %>

---
log_guid: "routing-api"
<% if p("routing-api.auth_disabled") == false %>
uaa_verification_key: |
<%= "  " + properties.uaa.jwt.verification_key.gsub("\n", "\n  ") %>
<% end %>
<% if_p("metron_endpoint.host", "metron_endpoint.dropsonde_port") do |host, port| %>
metron_config:
  address: <%= host %>
  port: <%= port %>
<% end %>
metrics_reporting_interval: <%= p("routing-api.metrics_reporting_interval") %>
statsd_endpoint: <%= p("routing-api.statsd_endpoint") %>
debug_address: <%= p("routing-api.debug_address") %>
max_concurrent_etcd_requests: <%= p("routing-api.max_concurrent_etcd_requests") %>
statsd_client_flush_interval: <%= p("routing-api.statsd_client_flush_interval") %>

Change routing-api log_guid to be "routing-api"

The log guid is used to emit metrics through the firehose and as the
log guid for its route.

[#108127164]

Signed-off-by: Michael Smykowski <b9679d96d071f488bd14beedc1f1d4924bf5aa7a@pivotal.io>


# This file is completely managed via modulesync
require 'voxpupuli/acceptance/spec_helper_acceptance'

configure_beaker

Dir['./spec/support/acceptance/**/*.rb'].sort.each { |f| require f }

Add helper to load custom files

spec_helper_acceptance: Add helper to load custom files

This allows us to keept the spec_helper_acceptance clean and managed by
modulesync, but it also provides enough flexibility for our module
developers to inject custom code into the test suite.

Also this alligns our setup with the one from the foreman people.


[DEFAULT]
compute_driver=vmwareapi.VMwareVCDriver
log_file=nova-compute-vmware-<%= @availability_zone_name %>-<%= @service_name %>.log
host=<%= @availability_zone_name %>-<%= @service_name %>

[vmware]

cache_prefix=$host

cluster_name=<%= @vc_cluster %>
host_ip=<%= @vc_host %>
host_username=<%= @vc_user %>
host_password=<%= @vc_password %>

insecure=True

api_retry_count=<%= @api_retry_count %>
maximum_objects=<%= @maximum_objects %>
task_poll_interval=<%= @task_poll_interval %>
<% if @datastore_regex and !@datastore_regex.empty? -%>
datastore_regex=<%= @datastore_regex %>
<% end -%>
<% if @vlan_interface and !@vlan_interface.empty? -%>
vlan_interface=<%= @vlan_interface %>
<% end -%>
use_linked_clone=<%= @use_linked_clone %>
<% if @wsdl_location -%>
wsdl_location=<%= @wsdl_location %>
<% end -%>

[DEFAULT]
compute_driver=vmwareapi.VMwareVCDriver
log_file=nova-compute-vmware-<%= @availability_zone_name %>-<%= @service_name %>.log
host=<%= @availability_zone_name %>-<%= @service_name %>
reserved_host_memory_mb = 0

[vmware]

cache_prefix=$host

cluster_name=<%= @vc_cluster %>
host_ip=<%= @vc_host %>
host_username=<%= @vc_user %>
host_password=<%= @vc_password %>

insecure=True

api_retry_count=<%= @api_retry_count %>
maximum_objects=<%= @maximum_objects %>
task_poll_interval=<%= @task_poll_interval %>
<% if @datastore_regex and !@datastore_regex.empty? -%>
datastore_regex=<%= @datastore_regex %>
<% end -%>
<% if @vlan_interface and !@vlan_interface.empty? -%>
vlan_interface=<%= @vlan_interface %>
<% end -%>
use_linked_clone=<%= @use_linked_clone %>
<% if @wsdl_location -%>
wsdl_location=<%= @wsdl_location %>
<% end -%>

Set reserved host memory to 0MB for nova-compute with VCDriver

The reserved_host_memory_mb option value is 512 MB by default.
However, VMware recommends that you set this option to 0 MB
because the vCenter driver reports the effective memory
available to the virtual machines.
Link to review for openstack doc(VMware recommends):
https://review.openstack.org/#/c/73450/2

Change-Id: I9ab240820740ed3ecd09fc7ccdc5109875baf453
Closes-bug: #1382539


<% provide(:title, 'User Enrolment') %>

 User Enrolment

    <%= link_to 'New Enrolment', new_enrolment_path, class: 'btn btn-default' %>

    <%= datagrid_form_for @enrolments_grid, url: enrolments_path %>
    <%= datagrid_table(@enrolments_grid) %>
    <%= will_paginate @enrolments_grid.assets %>

<% provide(:title, 'User Enrolment') %>

 User Enrolment

    <%= datagrid_form_for @enrolments_grid, url: enrolments_path %>

    <%= link_to " New".html_safe, new_enrolment_path, class: 'btn btn-default new-btn' %>

    <%= datagrid_table(@enrolments_grid) %>
    <%= will_paginate @enrolments_grid.assets %>

Update new button for enrolment.

Update new button for enrolment.


<% if auth_current_user %>

  <form action="/profile/<%= auth_current_user.id %>" method="POST">
    <input type="hidden" name="_method" value="PUT">

    Username: <input type="text" name="user[username]" value="<%= auth_current_user.username %>" />

    Password: <input type="text" name="user[password]" />

    <input type="submit">
  </form>

<% if @form_error %>

<%= @form_error %>

<% end %>

  <form action="/profile/<%= auth_current_user.id %>" method="POST">
    <input type="hidden" name="_method" value="DELETE">

    Confirm Password: <input type="text" name="confirm_pw" value="" />
    <input type="submit" class="btn" value="Delete" />
  </form>

<% end %>

<% if auth_current_user %>

  <form action="/profile/<%= auth_current_user.id %>" method="POST">
    <input type="hidden" name="_method" value="PUT">

    Username: <input type="text" name="user[username]" value="<%= auth_current_user.username %>" />

    Password: <input type="text" name="user[password]" />

    <input type="submit">
  </form>

<% if @form_error %>

<%= @form_error %>

<% end %>

Delete Account:

  <form action="/profile/<%= auth_current_user.id %>" method="POST">
    <input type="hidden" name="_method" value="DELETE">

    <input type="text" name="confirm_pw">
    <input onclick="return confirm('Are you sure you want to delete your account?')" type="submit" class="btn" value="Delete" />
  </form>

<% end %>

Add confirm password window for account deletion


<% show_stats ||= false %>

<% if user_signed_in? %>

    <% if current_user.owns?(game) || current_user.admin? %>
      <% if show_stats %>
        <a href="<%= stats_game_path(game) %>" class="pull-right">
          <button class="btn btn-light">
            Stats
          </button>

          <button class="btn btn-light">
            Scores
          </button>

      <% end %>

      <% if current_user.can_download?(game) %>
        <a href="<%= @game.download_url %>" class="btn btn-light">Download this game
      <% end %>

      <a href="<%= edit_game_path(game) %>">
        <button class="btn btn-success">
          Edit
        </button>

      <a href="<%= confirm_destroy_game_path(game) %>">
        <button class="btn btn-danger" type="button">
          Delete
        </button>

    <% end %>

<% end %>

<% show_stats ||= false %>

<% if user_signed_in? %>

    <% if current_user.owns?(game) || current_user.admin? %>
      <% if show_stats %>
        <a href="<%= stats_game_path(game) %>" class="pull-right">
          <button class="btn btn-light">
            Stats
          </button>

        <a href="<%= scores_game_path(game) %>" class="pull-right">
          <button class="btn btn-light">
            Scores
          </button>

      <% end %>

      <% if current_user.can_download?(game) %>
        <a href="<%= @game.download_url %>" class="btn btn-light">Download this game
      <% end %>

      <a href="<%= edit_game_path(game) %>">
        <button class="btn btn-success">
          Edit
        </button>

      <a href="<%= confirm_destroy_game_path(game) %>">
        <button class="btn btn-danger" type="button">
          Delete
        </button>

    <% end %>

<% end %>

Fix link to scores page.

Fix link to scores page.


<!DOCTYPE html>

    <title><%= content_for?(:page_title) ? yield(:page_title) : "Finance Finder" %> | GOV.UK</title>
    <meta name="description" content="Find out which licences you might need for your activity or business.">
    <%= stylesheet_link_tag "finance-finder" %>
    <%= javascript_include_tag 'finance-finder', defer: true %>
    <meta name="x-section-name" content="Business" />
    <meta name="x-section-link" content="/browse/business" />
    <meta name="x-section-format" content="finance_finder" />
    <%= yield :head %>

    <div id="wrapper" class="answer finance-finder <%= yield :page_class %>">

          <hgroup>

Quick answer Finance finder

          </hgroup>

        <%= yield %>

<!DOCTYPE html>

    <title><%= content_for?(:page_title) ? yield(:page_title) : "Finance Finder" %> | GOV.UK</title>
    <meta name="description" content="Find out which licences you might need for your activity or business.">
    <%= stylesheet_link_tag "finance-finder" %>
    <%= javascript_include_tag 'finance-finder', defer: true %>
    <meta name="x-section-name" content="Business" />
    <meta name="x-section-link" content="/browse/business" />
    <meta name="x-section-format" content="finance_finder" />
    <%= yield :head %>

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

    <div id="wrapper" class="answer finance-finder <%= yield :page_class %>">

          <hgroup>

Quick answer Finance finder

          </hgroup>

        <%= yield %>

Add mainstream class to body tag

Add mainstream class to body tag

This is in preparation for deprecating the citizen class


<% content_for :head do %>
  <%= csrf_meta_tag %>
  <%= stylesheet_link_tag 'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
<% end %>

<% content_for :navbar_items do %>
  <% if current_user.resource_manager? %>
    <%= active_link_to 'Manage guiders', users_path, wrap_tag: :li %>
  <% end %>
  <% if current_user.agent? %>
    <%= active_link_to 'Book appointment', new_appointment_attempt_path, wrap_tag: :li %>
    <%= active_link_to 'Calendar', calendar_path, wrap_tag: :li %>
  <% end %>
<% end %>

<% content_for :body_end do %>
  <script>
  var loadedModules = [];
  var readyEvent = Turbolinks.supported ? 'turbolinks:load' : 'ready';

  $(document).on(readyEvent, function() {
    var modules = $('[data-module]');

    if (loadedModules.length) {
      return;
    }

    modules.each(function() {
      var $el = $(this),
      type = $el.data('module'),
      config = $el.data('config');

      loadedModules.push(new PWTAP[type]($el, config));
    });
  });
  </script>
<% end %>

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

<% content_for :head do %>
  <%= csrf_meta_tag %>
  <%= stylesheet_link_tag 'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
<% end %>

<% content_for :navbar_items do %>
  <% if current_user.resource_manager? %>
    <%= active_link_to 'Manage guiders', users_path, wrap_tag: :li %>
    <%= active_link_to 'Holidays', holidays_path, wrap_tag: :li %>
  <% end %>
  <% if current_user.agent? %>
    <%= active_link_to 'Book appointment', new_appointment_attempt_path, wrap_tag: :li %>
    <%= active_link_to 'Calendar', calendar_path, wrap_tag: :li %>
  <% end %>
<% end %>

<% content_for :body_end do %>
  <script>
  var loadedModules = [];
  var readyEvent = Turbolinks.supported ? 'turbolinks:load' : 'ready';

  $(document).on(readyEvent, function() {
    var modules = $('[data-module]');

    if (loadedModules.length) {
      return;
    }

    modules.each(function() {
      var $el = $(this),
      type = $el.data('module'),
      config = $el.data('config');

      loadedModules.push(new PWTAP[type]($el, config));
    });
  });
  </script>
<% end %>

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

Add a link to /holidays in the nav

Add a link to /holidays in the nav


<% content_for :title, "Site Settings" %>

Site Settings

  The settings on this page control various aspects of the display or operation of the site. Change these
  rarely and with care. Bear in mind that setting changes will generally not be retroactive - so if you change
  the reputation values, they will only apply going forward - users' reputation will not be recalculated automatically.

Click on a setting's value to edit it.

<% @settings.each do |category, settings| %>

    <%= category.humanize %>

      <% settings.each do |setting| %>

            <%= setting.name %>

            <%= setting.description %>

          <td class="js-setting-value" data-type="<%= setting.value_type %>" data-name="<%= setting.name %>"><%= setting.typed %>

      <% end %>

<% end %>

<%= will_paginate @settings, renderer: BootstrapPagination::Rails %>

<% content_for :title, "Site Settings" %>

Site Settings

  The settings on this page control various aspects of the display or operation of the site. Change these
  rarely and with care. Bear in mind that setting changes will generally not be retroactive - so if you change
  the reputation values, they will only apply going forward - users' reputation will not be recalculated automatically.

Click on a setting's value to edit it.

<% @settings.each do |category, settings| %>

    <%= category&.humanize || 'Uncategorized' %>

        <% settings.each do |setting| %>

              <%= setting.name %>

              <%= setting.description %>

            <td class="js-setting-value" data-type="<%= setting.value_type %>" data-name="<%= setting.name %>"><%= setting.typed %>

        <% end %>

<% end %>

<%= will_paginate @settings, renderer: BootstrapPagination::Rails %>

Handle nils in view too

Handle nils in view too


<%= form_tag("/dashboard", method: "get") do %>
  <%= label_tag(:user_id, "User ID") %>
  <%= text_field_tag(:user_id) %>
  <%= submit_tag("Filter Actions") %>
<% end %>

  <% for request in @requests %>

<%= request.user_id %> loaded <%= request.action_name %> <%= request.controller_name %>

  <% end %>

<%= form_tag("/dashboard", method: "get") do %>
  <%= label_tag(:user_id, "User ID") %>
  <%= text_field_tag(:user_id) %>
  <%= submit_tag("Filter Actions") %>
<% end %>

    User ID
    Action
    Controller
    When

  <% for request in @requests %>

      <%= request.user_id %>
      <%= request.action_name %>
      <%= request.controller_name %>
      <%= time_ago_in_words(request.created_at) %>

  <% end %>

Convert the list of requests into a table


<% content_for :page_class, 'document-collection-groups delete' %>
<% page_title 'Delete group' %>

Delete group

    <% if (@collection.groups.size == 1) || @group.documents.present? %>

        <% if @collection.groups.size == 1 %>

            Every document series needs at least one group, so you can't
            delete the last one.

            If you were planning on replacing it you can return to the
            series page, click the edit link, and rename it instead.

        <% else %>
          You can't delete a group that has documents in it –
          remove the documents first, or move them into another group.
        <% end %>

        <%= link_to 'Return to the series', admin_document_collection_groups_path(@collection) %>

    <% else %>
      <%= form_for [@collection, @group], url: admin_document_collection_group_path(@collection, @group), method: 'delete' do |form| %>

          Are you sure you want to delete the group '<%= @group.heading %>'?

        <%= form.form_actions(buttons: { delete: 'Delete' }, cancel: admin_document_collection_groups_path(@collection)) %>
      <% end %>
    <% end %>

<% content_for :page_class, 'document-collection-groups delete' %>
<% page_title 'Delete group' %>

Delete group

    <% if (@collection.groups.size == 1) || @group.documents.present? %>

        <% if @collection.groups.size == 1 %>

            Every document collection needs at least one group, so you can't
            delete the last one.

            If you were planning on replacing it you can return to the
            collection page, click the edit link, and rename it instead.

        <% else %>
          You can't delete a group that has documents in it –
          remove the documents first, or move them into another group.
        <% end %>

        <%= link_to 'Return to the collection', admin_document_collection_groups_path(@collection) %>

    <% else %>
      <%= form_for [@collection, @group], url: admin_document_collection_group_path(@collection, @group), method: 'delete' do |form| %>

          Are you sure you want to delete the group '<%= @group.heading %>'?

        <%= form.form_actions(buttons: { delete: 'Delete' }, cancel: admin_document_collection_groups_path(@collection)) %>
      <% end %>
    <% end %>

Copy change in DC group delete page.

[DC] Copy change in DC group delete page.


Hey <%= @resource.name.split(' ').first %>!

We love you for signing up for IfSimply.com! IfSimply is the easiest way to create your own premium membership club.

Your club is going to be awesome and we are going to make sure of it. We have a ton of great self-serve content for you
that will help you along the way. But before I get ahead of myself please click the link below to confirm your email
(we do this so a bunch of bots don't try to take over the site and fill it with junk).

Click <%= link_to "here", confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %> to confirm
your email and start filling your club with awesomsauce!

We are so excited to know you and help you. If you need anything, email me directly at Keith@IfSimply.com.

Go be great!

Keith

----

Keith Griffis

Co-founder

IfSimply.com - Stop Wishing, Start Growing

The easiest way to create a membership club? IfSimply.com!

Create Custom Confirmation Email Content

Create a custom email to be sent when a User signs up for the first
time.


      Carrier
      Carrier Group ID
      Carrier Pol #
      Plan
      Coverage Type
      Metal level
      Effective date

    <%= table_empty_to_human if elected_plans.count < 1 %>
    <% elected_plans.each do |p| %>

      <%= p.carrier.name %>
      <%= p.carrier_employer_group_id %>
      <%= p.carrier_policy_number %>
      <%= link_to p.plan_name, plan_path(p) %>
      <%= p.coverage_type %>
      <%= p.metal_level %>
      <%= p.original_effective_date %>

    <% end %>

      Carrier
      Carrier Group ID
      Carrier Pol #
      Plan
      Coverage Type
      Metal level
      Effective date

    <%= table_empty_to_human if elected_plans.count < 1 %>
    <% elected_plans.each do |p| %>

      <%= p.carrier.name %>
      <%= p.carrier_employer_group_id %>
      <%= p.carrier_policy_number %>
      <%= link_to p.plan_name, plan_path(p.plan) %>
      <%= p.coverage_type %>
      <%= p.metal_level %>
      <%= p.original_effective_date %>

    <% end %>

Fix plan link on employer show page.

Fix plan link on employer show page.


  		<%= link_to I18n.t(:upload, :scope => [:ckeditor, :buttons]), 'javascript:void(0)', :class => "add" %>

    <%= render :partial => 'ckeditor/shared/asset', :collection => @attachments.scoped %>

  <% unless @attachments.last_page? %>

      <%= link_to I18n.t("ckeditor.buttons.next"), ckeditor.attachment_files_path(params.merge(:page => @attachments.next_page)), :class => "next", :rel => "next" %>

  <% end -%>

  		<%= link_to I18n.t(:upload, :scope => [:ckeditor, :buttons]), 'javascript:void(0)', :class => "add" %>

    <%= render :partial => 'ckeditor/shared/asset', :collection => @attachments.all %>

  <% unless @attachments.last_page? %>

      <%= link_to I18n.t("ckeditor.buttons.next"), ckeditor.attachment_files_path(params.merge(:page => @attachments.next_page)), :class => "next", :rel => "next" %>

  <% end -%>

Change removed 'scoped' to 'all'

Change removed 'scoped' to 'all'


<%- klass = obj.class.name.demodulize.downcase -%>

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

<%= pluralize(obj.errors.count, 'error') %> prevented this <%= klass %> from being saved:

			<%- obj.errors.messages.each do |field, message| -%>
				<li id="<%= field %>-errors"><%= link_to field.capitalize, %{##{klass}_#{field}} %> <%= message.join(', ') %>.

			<%- end -%>

<%- end -%>

<%- klass = obj.class.name.demodulize.downcase -%>

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

<%= pluralize(obj.errors.count, 'error') %> prevented this <%= klass %> from being saved:

			<%- obj.errors.messages.each do |field, message| -%>
				<li id="<%= field %>-errors"><%= link_to field.capitalize, %{##{klass}_#{field}} %> <%= message.to_sentence %>.

			<%- end -%>

<%- end -%>

Use Array to_sentence method for displaying form errors.


$ ->
  # this needs to be in a loop or else the pickers don't work well on the Important Dates page
  $(".datepicker").each (_, el) =>
    $(el).datetimepicker(
      timepicker: false,
      format: "Y/m/d",
      defaultDate: '<%= EventConfiguration.singleton.start_date.try(:strftime, "%Y/%m/%d") %>'
      )

  $('.datetimepicker').datetimepicker();

$ ->
  # this needs to be in a loop or else the pickers don't work well on the Important Dates page
  $(".datepicker").each (_, el) =>
    $(el).datetimepicker(
      timepicker: false,
      format: "Y/m/d",
      scrollMonth: false,
      scrollTime: false,
      scrollInput: false,
      defaultDate: '<%= EventConfiguration.singleton.start_date.try(:strftime, "%Y/%m/%d") %>'
      )

  $('.datetimepicker').datetimepicker();

Disable scroll-wheel in datetimepicker. Avoid mistakes


<%- if @render_to_file %>
  <style>
  <%= raw File.read(Rails.root.join('app', 'assets', 'stylesheets', 'main.css')) %>
  <%= raw File.read(Rails.root.join('app', 'assets', 'stylesheets', 'print.css')) %>
  </style>
<%- else %>
  <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet", :media => "all" %>
  <%= stylesheet_link_tag 'fonts', :rel => "stylesheet", :media => "all"  %>
  <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "print"  %>
  <% if !params[:print_stylesheet].nil? %>
  <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "all"  %>
  <% end %>
  <%= stylesheet_link_tag 'jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%>
  <!--[if LT IE 7]>
  <%= stylesheet_link_tag 'ie6.css' %>
  <![endif]-->
  <!--[if LT IE 8]>
  <%= stylesheet_link_tag 'ie7.css' %>
  <![endif]-->
  <% if AlaveteliConfiguration::force_registration_on_new_request %>
  <%= stylesheet_link_tag 'jquery.fancybox-1.3.4', :rel => "stylesheet"  %>
  <% end %>
<% end %>

<%- if @render_to_file %>
  <style>
  <%= Rails.application.assets["main.css"].to_s %>
  <%= Rails.application.assets["print.css"].to_s %>
  </style>
<%- else %>
  <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet", :media => "all" %>
  <%= stylesheet_link_tag 'fonts', :rel => "stylesheet", :media => "all"  %>
  <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "print"  %>
  <% if !params[:print_stylesheet].nil? %>
  <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "all"  %>
  <% end %>
  <%= stylesheet_link_tag 'jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%>
  <!--[if LT IE 7]>
  <%= stylesheet_link_tag 'ie6.css' %>
  <![endif]-->
  <!--[if LT IE 8]>
  <%= stylesheet_link_tag 'ie7.css' %>
  <![endif]-->
  <% if AlaveteliConfiguration::force_registration_on_new_request %>
  <%= stylesheet_link_tag 'jquery.fancybox-1.3.4', :rel => "stylesheet"  %>
  <% end %>
<% end %>

Fix the inclusion of CSS in output for zip file download


<%= render 'shared/my_school_menu' if can?(:read, :my_school_menu) && current_user.school.visible? %>

<% if current_user && current_user.default_scoreboard %>

<%= link_to "Scoreboard", scoreboard_path(current_user.default_scoreboard), class: 'nav-link' %>

<% end %>

<% if current_user && current_user.school_group %>

    <%= link_to "#{current_user.school_group.name} Schools", school_group_path(current_user.school_group), class: 'nav-link' %>

    <%= link_to "All Schools", schools_path, class: 'nav-link' %>

<% else %>

    <%= link_to "Schools", schools_path, class: 'nav-link' %>

<% end %>

  <% if current_user && current_user.school %>
    <%= link_to "Activities", school_activity_categories_path(current_user.school), class: 'nav-link' %>
  <% else %>
    <%= link_to "Activities", activity_categories_path, class: 'nav-link' %>
  <% end %>

<%= render 'shared/about_menu' %>

  <%= link_to "Contact", contact_path, class: 'nav-link' %>

<%= render 'shared/manage_menu' if can?(:manage, :admin_functions) %>

<%= render 'shared/my_school_menu' if can?(:read, :my_school_menu) && current_user.school.visible? %>

<% if current_user && current_user.default_scoreboard %>

<%= link_to "Scoreboard", scoreboard_path(current_user.default_scoreboard), class: 'nav-link' %>

<% end %>

<% if current_user && current_user.school_group %>

    <%= link_to "#{current_user.school_group.name} Schools", school_group_path(current_user.school_group), class: 'nav-link' %>

    <%= link_to "All Schools", schools_path, class: 'nav-link' %>

<% else %>

    <%= link_to "Schools", schools_path, class: 'nav-link' %>

<% end %>

  <%= link_to "Activities", activity_categories_path_url(current_user&.school), class: 'nav-link' %>

<%= render 'shared/about_menu' %>

  <%= link_to "Contact", contact_path, class: 'nav-link' %>

<%= render 'shared/manage_menu' if can?(:manage, :admin_functions) %>

Use safe navigation to tidy link render

Use safe navigation to tidy link render


  <%= link_to travel_path(travel.format_id) do %>
    <%= image_tag travel.image_public_url, class: 'card-img-top' %>
  <% end %>

      <%= travel.title %>

      <%= travel.description %>

    <% comment_class = 'active' if user.comment?(travel) %>

    <button type="button" class="btn btn-comment btn-link no-decoration <%= comment_class %>">

      <%= travel.comments.count %>
    </button>

    <% favorite_class = 'active' if user.favorite?(travel) %>

    <button type="button" class="btn btn-favorite btn-link no-decoration <%= favorite_class %>">

      <%= travel.favorites.count %>
    </button>

  <%= link_to travel_path(travel.format_id) do %>
    <%= image_tag travel.image_public_url, class: 'card-img-top' %>
  <% end %>

      <%= travel.title %>

      <%= travel.description %>

    <% comment_class = 'active' if user.comment?(travel) %>

    <%= link_to travel_path(travel.format_id), class: "btn btn-favorite btn-link no-decoration active #{comment_class}" do %>

      <%= travel.comments.count %>
    <% end %>

    <% if current_user.favorite?(travel) %>
      <%= button_to travel_favorites_path(travel_id: travel.format_id), method: :delete, class: 'btn btn-favorite btn-link no-decoration active' do %>

          <%= travel.favorites.count %>
      <% end %>
    <% else %>
      <%= button_to travel_favorites_path(travel_id: travel.format_id), class: "btn btn-favorite btn-link no-decoration" do %>

          <%= travel.favorites.count %>
      <% end %>
    <% end %>

Fix favorite button in home

Fix favorite button in home


<%= javascript_include_tag "highlight_block" %>

<%= _('Highlights') %>

<%= _('Image') %>	<%= _('Address') %>	<%= _('Position') %>

  <% @block.images.each_with_index do |image, index| %>
    <%= highlights_block_config_image_fields @block, image, index %>
  <% end %>

    <%= highlights_block_config_image_fields(@block) %>

<%= button(:add, _('New highlight'), '#') %>

<%= labelled_form_field _('Image transition:'), select('block', 'interval', [[_('No automatic transition'), 0]] + [1, 2, 3, 4, 5, 10, 20, 30, 60].map {|item| [n_('Every 1 second', 'Every %d seconds', item) % item, item]}) %>

<%= labelled_form_field check_box(:block, :shuffle) + _('Show images in random order'), '' %>

<%= labelled_form_field check_box(:block, :navigation) + _('Display navigation buttons'), '' %>

<%= javascript_include_tag "highlight_block" %>

<%= _('Highlights') %>

<%= _('Image') %>	<%= _('Address') %>	<%= _('Position') %>

  <% @block.images.each_with_index do |image, index| %>
    <%= highlights_block_config_image_fields @block, image, index %>
  <% end %>

    <%= highlights_block_config_image_fields(@block) %>

<%= button(:add, _('New highlight'), '#', class: 'new-highlight-button') %>

<%= labelled_form_field _('Image transition:'), select('block', 'interval', [[_('No automatic transition'), 0]] + [1, 2, 3, 4, 5, 10, 20, 30, 60].map {|item| [n_('Every 1 second', 'Every %d seconds', item) % item, item]}) %>

<%= labelled_form_field check_box(:block, :shuffle) + _('Show images in random order'), '' %>

<%= labelled_form_field check_box(:block, :navigation) + _('Display navigation buttons'), '' %>

Make the new highlight button work...

Make the new highlight button work...


<% if attributes['title'].present? %>
<%% content_for :title do %>
  <%= attributes['title'] %>
<%% end %>
<% end %>

<% if options_erb.present? %>
<%= options_erb %>
<% end %>

<% if attributes['hint'].present? %>
<%% content_for :hint do %>
  <%= attributes['hint'] %>
<%% end %>
<% end %>

<% if attributes['label'].present? %>
<%% content_for :label do %>
  <%= attributes['label'] %>
<%% end %>
<% end %>

<% if attributes['suffix_label'].present? %>
<%% content_for :suffix_label do %>
  <%= attributes['suffix_label'] %>
<%% end %>
<% end %>

<% if attributes['body'].present? %>
<%% content_for :body do %>
  <%= attributes['body'] %>
<%% end %>
<% end %>

<% if attributes['post_body'].present? %>
<%% content_for :post_body do %>
  <%= attributes['post_body'] %>
<%% end %>
<% end %>

<% if errors_erb.present? %>
<%= errors_erb %>
<% end %>

<% if attributes['title'].present? %>
<%% content_for :title do %>
<%= attributes['title'].indent(2) %>
<%% end %>
<% end %>

<% if options_erb.present? %>
<%= options_erb %>
<% end %>

<% if attributes['hint'].present? %>
<%% content_for :hint do %>
<%= attributes['hint'].indent(2) %>
<%% end %>
<% end %>

<% if attributes['label'].present? %>
<%% content_for :label do %>
<%= attributes['label'].indent(2) %>
<%% end %>
<% end %>

<% if attributes['suffix_label'].present? %>
<%% content_for :suffix_label do %>
<%= attributes['suffix_label'].indent(2) %>
<%% end %>
<% end %>

<% if attributes['body'].present? %>
<%% content_for :body do %>
<%= attributes['body'].indent(2) %>
<%% end %>
<% end %>

<% if attributes['post_body'].present? %>
<%% content_for :post_body do %>
<%= attributes['post_body'].indent(2) %>
<%% end %>
<% end %>

<% if errors_erb.present? %>
<%= errors_erb %>
<% end %>

Fix indentation for multi-line strings

Fix indentation for multi-line strings

Previously only the first line was indented.


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

<% [80, 443].each do |port| -%>
<VirtualHost *:<%= port %>>
  # Basic server configuration
  ServerName <%= node[:fqdn] %>
  ServerAlias gps-tile.openstreetmap.org
  ServerAlias *.gps-tile.openstreetmap.org
  ServerAdmin webmaster@openstreetmap.org
<% if port == 443 -%>

  # Enable SSL
  SSLEngine on
<% end -%>

  # Configure location of static files
  DocumentRoot /srv/gps-tile.openstreetmap.org/html

  # Configure the CGI script that serves the tiles
  ScriptAlias /lines /srv/gps-tile.openstreetmap.org/updater/tile

  # Temporary redirect for old CGI location
  RedirectPermanent /gps-lines/tile /lines

  # Setup logging
  CustomLog /var/log/apache2/access.log combined
  ErrorLog /var/log/apache2/error.log
  BufferedLogs on

  # Always set Access-Control-Allow-Origin so that simple CORS requests
  # will always work and can be cached
  Header set Access-Control-Allow-Origin "*"
</VirtualHost>

<% end -%>
<Directory /srv/gps-tile.openstreetmap.org/html>
  Options None
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

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

<% [80, 443].each do |port| -%>
<VirtualHost *:<%= port %>>
  # Basic server configuration
  ServerName <%= node[:fqdn] %>
  ServerAlias gps.tile.openstreetmap.org
  ServerAlias gps-*.tile.openstreetmap.org
  ServerAlias gps-tile.openstreetmap.org
  ServerAlias *.gps-tile.openstreetmap.org
  ServerAdmin webmaster@openstreetmap.org
<% if port == 443 -%>

  # Enable SSL
  SSLEngine on
<% end -%>

  # Configure location of static files
  DocumentRoot /srv/gps-tile.openstreetmap.org/html

  # Configure the CGI script that serves the tiles
  ScriptAlias /lines /srv/gps-tile.openstreetmap.org/updater/tile

  # Temporary redirect for old CGI location
  RedirectPermanent /gps-lines/tile /lines

  # Setup logging
  CustomLog /var/log/apache2/access.log combined
  ErrorLog /var/log/apache2/error.log
  BufferedLogs on

  # Always set Access-Control-Allow-Origin so that simple CORS requests
  # will always work and can be cached
  Header set Access-Control-Allow-Origin "*"
</VirtualHost>

<% end -%>
<Directory /srv/gps-tile.openstreetmap.org/html>
  Options None
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

Add gps-*.tile.openstreetmap.org as an alias for the GPS tile server


<%= pluralize(@petitions.count, "petition was", "petitions were") %> opened or signed in the last week on <%= link_to home_url, home_url %>

    Petition Action
    Signature Count

  <% @petitions.each do |petition| %>

        <%= link_to petition.action, petition_url(petition) %>

        <%= petition.signature_count %>

  <% end %>

Add alignment to other table cells

Add alignment to other table cells


<meta name="description"
      content="Find your local authority in England, Wales, Scotland and Northern Ireland" />

        Find your local council

    <%= render :partial => 'beta_label', locals: { message: content_for(:beta_label_message) } %>

        <%= yield %>

<% content_for :title do %>Find your local council<% end %>
<% content_for :extra_headers do %>
  <meta name="description"
        content="Find your local authority in England, Wales, Scotland and Northern Ireland" />
<% end %>

        Find your local council

    <%= render :partial => 'beta_label', locals: { message: content_for(:beta_label_message) } %>

        <%= yield %>

Set title and meta:description for find local council

We weren't setting title because the default implementation relies on a
`@publication` which we don't have.  We were rendering a meta:description it
wasn't in the `<head>` so would have been ignored.  In both cases we use
`content_for` to pass the values back up to the application layout.


<% content_for :page_title, @application.name %>

<%= @application.name %>

Repo:

<%= link_to @application.repo, "https://github.com/#{@application.repo}" %>

Recent activity

    <% @application.tasks.recent_first.each do |task| %>

        <%= link_to "##{task.release.id}", release_path(task.release) %>
        <%= link_to task.description, release_path(task.release) %> v<%= task.version %>
        <%= task.release.deploy_at.strftime("%l:%M%P - %A %e %B") %>

    <% end %>

  <%= link_to "Edit", { action: "edit", id: @application.id }, class: "btn" %>

<% content_for :page_title, @application.name %>

<%= @application.name %>

Repo:

<%= link_to @application.repo, "https://github.com/#{@application.repo}" %>

  <%= link_to "Edit", { action: "edit", id: @application.id }, class: "btn" %>

Recent activity

    <% @application.tasks.recent_first.each do |task| %>

        <%= link_to "##{task.release.id}", release_path(task.release) %>
        <%= link_to task.description, release_path(task.release) %> v<%= task.version %>
        <%= task.release.deploy_at.strftime("%l:%M%P - %A %e %B") %>

    <% end %>

Move button so it looks like it refers to the app


<%- unless @experiences.empty? -%>
  <%- if flash[:notice] -%>

<%= flash[:notice] -%>

  <%- end -%>

    <%= form_tag(search_path, method: :get) do -%>
      <%= text_field_tag(:query) -%>
      <%= hidden_field_tag(:locale, I18n.locale) -%>
      <%= submit_tag t('experiences.search') -%>
    <%- end -%>

  <% @experiences.each do |experience| -%>

      <%= l(experience.created_at.to_date, format: :short).upcase -%>
      <%= link_to truncate_and_titleize(experience.title), experience_path(experience), title: titleize(experience.title) -%>
      <%= t('psychlopedia.misc.by') -%>
      <%= experience.pseudonym -%>
      <%= link_to t('experiences.comments_placeholder'), disqus_thread_url(experience), style: 'font-size: .8em;' -%>

  <%- end -%>
  <%= will_paginate @experiences, page_links: false -%>
<%- else -%>

<%= t('experiences.no_data') -%>

<%= link_to t('experiences.no_data_invitation'), new_experience_path, class: 'create' -%>

<%- end -%>

<%- unless @experiences.empty? -%>
  <%- if flash[:notice] -%>

<%= flash[:notice] -%>

  <%- end -%>

    <%= form_tag(search_path, method: :get) do -%>
      <%= text_field_tag(:query) -%>
      <%= submit_tag t('experiences.search') -%>
    <%- end -%>

  <% @experiences.each do |experience| -%>

      <%= l(experience.created_at.to_date, format: :short).upcase -%>
      <%= link_to truncate_and_titleize(experience.title), experience_path(experience), title: titleize(experience.title) -%>
      <%= t('psychlopedia.misc.by') -%>
      <%= experience.pseudonym -%>
      <%= link_to t('experiences.comments_placeholder'), disqus_thread_url(experience), style: 'font-size: .8em;' -%>

  <%- end -%>
  <%= will_paginate @experiences, page_links: false -%>
<%- else -%>

<%= t('experiences.no_data') -%>

<%= link_to t('experiences.no_data_invitation'), new_experience_path, class: 'create' -%>

<%- end -%>

Remove locale hidden_field from form.

Remove locale hidden_field from form.


<input name="max_seconds"  type="hidden" value="<%= @manifest['max_seconds'] %>">

<input name="max_seconds"  type="hidden" value="">

<script>
'use strict';
$(() => {

  const $maxSeconds = $("input[name='max_seconds']");
  const manifest = cd.kata.manifest(cd.kata.id);
  const maxSeconds = manifest.max_seconds;

  $maxSeconds.val(maxSeconds);

});
</script>

Set max_seconds from manifest in JS.

Set max_seconds from manifest in JS.


    <span data-defer-to="<%= view.defer_key %>-duration">... / <span data-defer-to="<%= view.defer_key %>-calls">...

 dalli

    <span data-defer-to="<%= view.defer_key %>-duration">... / <span data-defer-to="<%= view.defer_key %>-calls">...

 memcache

Rename label from dalli to memcache

Rename label from dalli to memcache


<% set_meta_tags(description: static_page.description,
                 canonical:   static_page.canonical_url,
                 alternate:   static_page.alternate_options) %>

<%= title static_page.title %>

    <% if static_page.intro.present? %>

        <%= static_page.intro %>

    <% end %>

    <%= static_page.content %>

<% content_for(:alternate_link) do %>
  <% static_page.footer_alternate_options.each do |locale, url| %>
    <%= link_to(url, id: "#{locale}Link", lang: locale) do %>

      <%= t("locales.#{locale}") %>
    <% end %>
  <% end %>
<% end %>

<% set_meta_tags(description: static_page.description,
                 canonical:   static_page.canonical_url,
                 alternate:   static_page.alternate_options) %>

<%= title static_page.title %>

    <%= static_page.content %>

  <%= render 'shared/nav', categories: category_navigation %>

<% content_for(:alternate_link) do %>
  <% static_page.footer_alternate_options.each do |locale, url| %>
    <%= link_to(url, id: "#{locale}Link", lang: locale) do %>

      <%= t("locales.#{locale}") %>
    <% end %>
  <% end %>
<% end %>

Add category navigation to static views

Add category navigation to static views


<% users = uneditable %>

<% count = users.offset %>

<% users.each do |user| %>
  <%= count += 1 %>

  <% if user.name == "NOBODY" %>
    <%= render partial: "nobody", object: user, locals: { count: count } %>
  <% else %>

    <% addresses = find_addresses_of_user(user) %>

    <% if addresses.count >= 2 %>
      <%= render partial: "row_with_multiple_ip", object: user,
        locals: { count: count, user_ip_count: addresses.count, editable: false } %>
      <% addresses.each do |addr| %>
        <%= render partial: "subrow", object: addr, locals: { user: user, editable: false } %>
      <% end %>
    <% else %>
        <%= render partial: "row_with_one_ip", object: user,
          locals: { count: count, addresses: addresses, editable: false } %>
    <% end %>
  <% end %>
<% end %>

<% users = uneditable %>
<!-- http://stackoverflow.com/questions/4566620/getting-the-current-item-number-or-index-when-using-will-paginate-in-rails-app -->
<% count = users.offset %>

<% users.each do |user| %>
  <% count += 1 %>
  <!-- Show less info of NOBODY -->
  <% if user.name == "NOBODY" %>
    <%= render partial: "nobody", object: user, locals: { count: count } %>
  <% else %>
    <!-- addresses_helper: helpers for controllers and views -->
    <% addresses = find_addresses_of_user(user) %>

    <% if addresses.count >= 2 %>
      <%= render partial: "row_with_multiple_ip", object: user,
        locals: { count: count, user_ip_count: addresses.count, editable: false } %>
      <% addresses.each do |addr| %>
        <%= render partial: "subrow", object: addr, locals: { user: user, editable: false } %>
      <% end %>
    <% else %>
        <%= render partial: "row_with_one_ip", object: user,
          locals: { count: count, addresses: addresses, editable: false } %>
    <% end %>
  <% end %>
<% end %>

Fix minor bugs in Users view

Fix minor bugs in Users view


    Bib
    Name
    Category

  <% @mini_table.effort_rows.each do |row| %>

        <%= row.bib_number %>
        <%= link_to row.full_name, effort_path(row.effort) %>
        <%= row.bio_historic %>

  <% end %>

    Bib
    Name
    Category

  <% @mini_table.effort_rows.each do |row| %>

        <%= row.bib_number %>
        <%= link_to row.full_name, effort_path(row) %>
        <%= row.bio_historic %>

  <% end %>

Fix bug in efforts_mini_table partial.

Fix bug in efforts_mini_table partial.


<div id="question-<%= question.id %>" class="row">

<%= question.vote_count %>

votes

<%= question.answers.count %>

answers

<%= views_formatted(question.view_count) %>

views

<%= link_to question.title, question %>

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

<%= tag.name %>

      <% end %>

<%= time_ago_in_words question.created_at %> ago <%= link_to question.user.name, question.user %>

<div id="question-<%= question.id %>" class="row">

<%= question.vote_count %>

<%= "vote".pluralize(question.vote_count) %>

<%= question.answers.count %>

<%= "answer".pluralize(question.answers.count) %>

<%= views_formatted(question.view_count) %>

<%= "view".pluralize(question.view_count) %>

<%= link_to question.title, question %>

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

<%= tag.name %>

      <% end %>

<%= time_ago_in_words question.created_at %> ago <%= link_to question.user.name, question.user %>

Add correct pluralization to homepage mini-counts


<%= cache_in_private([:site_index, :active_projects_recently], :expires_in => 1.hour) do -%>
  <%= pull_box("Active projects", :class => "pull-box-510") do -%>

      <% @active_projects.each do |project| -%>

          <%= link_to h(project.title), project -%>
          <%= truncate(h(project.stripped_description), :length => 65) -%>

      <% end -%>

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

<%= cache_in_private([:site_index, :active_projects_recently], :expires_in => 1.hour) do %>
  <%= pull_box("Active projects", :class => "pull-box-510") do %>

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

            <%= link_to h(project.title), project %>

              <%= truncate(h(project.stripped_description), :length => 65) %>

      <% end %>

  <% end %>
<% end %>

Use new markup to render active projects


  <% unless search_results.first_page? %>
    <%= link_to search_results_path(query: params[:query], page: search_results.previous_page), class: 'button button--compact t-button--previous' do %>

      <%= t('search_results.index_with_results.prev_button_html') %>
    <% end %>
  <% end %>

  <p class="t-pagination__counter <% unless search_results.first_page? %>pagination__counter<% end %>">
    <%= t('search_results.index_with_results.pagination_counter', page_number: search_results.page, total_pages: search_results.number_of_pages) %>

  <% unless search_results.last_page? %>
    <%= link_to search_results_path(query: params[:query], page: search_results.next_page), class: 'button button--compact t-button--next' do %>
      <%= t('search_results.index_with_results.next_button_html') %>

    <% end %>
  <% end %>

  <% unless search_results.first_page? %>
    <%= link_to search_results_path(query: params[:query], page: search_results.previous_page), class: 'button button--compact t-button--previous' do %>

      <%= t('search_results.index_with_results.prev_button_html') %>
    <% end %>
  <% end %>

    <%= t('search_results.index_with_results.pagination_counter', page_number: search_results.page, total_pages: search_results.number_of_pages) %>

  <% unless search_results.last_page? %>
    <%= link_to search_results_path(query: params[:query], page: search_results.next_page), class: 'button button--compact t-button--next' do %>
      <%= t('search_results.index_with_results.next_button_html') %>

    <% end %>
  <% end %>

Fix stacked pagination on first page

Fix stacked pagination on first page


<!DOCTYPE html>

    <%= erb(:headers) %>

      <iframe id="nav" src="<%= @nav_url %>">

        <%= erb(:breadcrumb) %>
        <%= erb(:search) %>

You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

        <%= yieldall %>

      <%= erb(:footer) %>

Fix broken V3 -> V2 link

Fix broken V3 -> V2 link


        <%= f.label :share_message do -%>
          Tweet text
          (URL is automatically added to the end)
        <% end %>
        <%= f.text_field :share_message, :data => {:maxlength => '140'}, :class  => "charactercount" -%>

        <%= f.label :og_title do -%>
          Open Graph Title (FB = 100chars, TWTR = 70chars)
        <% end %>
        <%= f.text_field :og_title, placeholder: 'Defaults to action title', :data => {:maxlength => '70'}, :class  => "charactercount"  -%>

        <%= f.hidden_field :og_image, value: ''-%>
        <%= f.label :og_image do -%>
          Open Graph Image (Should be 1200px x 630px)
        <% end -%>
        <%= render 'attached_image', image: @actionPage.og_image -%>

        <%= f.label :share_message do -%>
          Tweet text
          (URL is automatically added to the end)
        <% end %>
        <%= f.text_field :share_message, :data => {:maxlength => '280'}, :class  => "charactercount" -%>

        <%= f.label :og_title do -%>
          Open Graph Title (FB = 100chars, TWTR = 70chars)
        <% end %>
        <%= f.text_field :og_title, placeholder: 'Defaults to action title', :data => {:maxlength => '70'}, :class  => "charactercount"  -%>

        <%= f.hidden_field :og_image, value: ''-%>
        <%= f.label :og_image do -%>
          Open Graph Image (Should be 1200px x 630px)
        <% end -%>
        <%= render 'attached_image', image: @actionPage.og_image -%>

Increase tweet character limit to 280

Increase tweet character limit to 280


[<%= name %>]
connection    = mysql://<%= "#{config['user']}:#{config['password']}@#{config['host']}/#{config['dbname']}" %>
idle_timeout  = <%= config['idle_timeout'] %>
min_pool_size = <%= config['min_pool_size'] %>
max_pool_size = <%= config['max_pool_size'] %>
pool_timeout  = <%= config['pool_timeout'] %>

[sql]
connection    = mysql://<%= "#{config['user']}:#{config['password']}@#{config['host']}/#{config['dbname']}" %>
idle_timeout  = <%= config['idle_timeout'] %>
min_pool_size = <%= config['min_pool_size'] %>
max_pool_size = <%= config['max_pool_size'] %>
pool_timeout  = <%= config['pool_timeout'] %>

Fix sql section name for keystone.conf template

It was printing mysql instead of sql causing keystone to fail.

This commit fixes the issue.


Home

      <% if auth_logged_in? === false %>

Login

Register

      <% end %>

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

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

Logout

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

      <% end %>

Home

      <% if auth_logged_in? === false %>

Login

Register

      <% end %>

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

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

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

Logout

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

      <% end %>

Add profile link in navbar for user logged in


<% content_for :thredded_page_title, 'Messageboards' %>
<% content_for :thredded_page_id, 'thredded--messageboards-index' %>
<% content_for :thredded_breadcrumbs, render('thredded/shared/breadcrumbs') %>
<%= thredded_page do %>

    <% @groups.each do |group| %>
      <% if group.name.present? %>

<%= group.name %>

      <% end %>
      <%= render group.messageboards %>
    <% end %>

      <% if policy(Thredded::Messageboard.new).create? %>
        <a class="thredded--button" href="<%= new_messageboard_path %>">Create a New Messageboard
      <% end %>
      <% if policy(Thredded::MessageboardGroup.new).create? %>
        <a class="thredded--button" href="<%= new_messageboard_group_path %>"><%= t('thredded.messageboard_group.create') %>
      <% end %>

<% end %>

<% content_for :thredded_page_title, 'Messageboards' %>
<% content_for :thredded_page_id, 'thredded--messageboards-index' %>
<% content_for :thredded_breadcrumbs, render('thredded/shared/breadcrumbs') %>
<%= thredded_page do %>

    <% @groups.each do |group| %>
      <% if group.name.present? %>

<%= group.name %>

      <% end %>
      <%= render group.messageboards %>
    <% end %>

      <% if policy(Thredded::Messageboard.new).create? %>
        <a class="thredded--button" href="<%= new_messageboard_path %>"><%= t('thredded.messageboard.create') %>
      <% end %>
      <% if policy(Thredded::MessageboardGroup.new).create? %>
        <a class="thredded--button" href="<%= new_messageboard_group_path %>"><%= t('thredded.messageboard_group.create') %>
      <% end %>

<% end %>

Use i18n for the "Create a New Messageboard" link


language: ruby
rvm: <%= ruby_version_with_patch_level %>

cache: bundler

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

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

notifications:
  email: false
  irc:
    channels: 'chat.freenode.net#craftsmen'
    template: '%{repository_name} build #%{build_number} on %{branch} by %{author} finished: %{message}: %{build_url}'

Remove IRC notifications from Travis config We've made Slack our default


---
layout: default
title: Interviews
---

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

  <%= render_template('shared.interview', interview: interview) %>

<% end %>

<% if @pagination && @pagination[:page_count] > 1 %>

  Page <%= @pagination[:current_page] %> of <%= @pagination[:page_count] %> (<%= @pagination[:item_count] %> interview<% if @pagination[:item_count] > 1 %>s<% end %>):
  <% if @pagination[:previous_page] %><a href="<%= @pagination[:previous_page_url] %>" title="Go to page <%= @pagination[:previous_page] %> of the interviews." id="previous">Previous<% else %>Previous<% end %>
  /
  <% if @pagination[:next_page] %><a href="<%= @pagination[:next_page_url] %>" title="Go to page <%= @pagination[:next_page] %> of the interviews." id="next">Next<% else %>Next<% end %>

<% end %>

---
layout: default
title: Interviews
---

<% if @category %>

<%= @site.categories[@category].name %> interviews

There's currently <%= @items.count %> to read through.

<% else %>

Interviews

What do people use to get the job done?

<% end %>

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

    <%= render_template('shared.interview', interview: interview) %>

  <% end %>

<% if @pagination && @pagination[:page_count] > 1 %>

  Page <%= @pagination[:current_page] %> of <%= @pagination[:page_count] %> (<%= @pagination[:item_count] %> interview<% if @pagination[:item_count] > 1 %>s<% end %>):
  <% if @pagination[:previous_page] %><a href="<%= @pagination[:previous_page_url] %>" title="Go to page <%= @pagination[:previous_page] %> of the interviews." id="previous">Previous<% else %>Previous<% end %>
  /
  <% if @pagination[:next_page] %><a href="<%= @pagination[:next_page_url] %>" title="Go to page <%= @pagination[:next_page] %> of the interviews." id="next">Next<% else %>Next<% end %>

<% end %>

Switch the article elements for an unordered list, and switch the paginator to a nav.


<% # Requires local parameter view_object %>

    Rank
    Name
    Bib
    Category
    From
    Status
    Last Recorded
    Time of Day
    Elapsed Time

  <% view_object.ranked_effort_rows.each do |effort_row| %>
    <%= effort_row.display_overall_rank %>
    <%= effort_row.full_name %>
    <%= effort_row.bib_number %>
    <%= effort_row.bio_historic %>
    <%= effort_row.flexible_geolocation %>
    <%= effort_row.run_status %>
    <%= last_reported_location(effort_row) %>
    <%= last_reported_time_of_day(effort_row) %>
    <%= last_reported_elapsed_time(effort_row) %>

  <% end %>

<% # Requires local parameter view_object %>

    Rank
    Name
    Bib
    Category
    Status
    Last Recorded
    Time of Day
    Elapsed Time

  <% view_object.ranked_effort_rows.each do |effort_row| %>
    <%= effort_row.display_overall_rank %>
    <%= effort_row.full_name %>
    <%= effort_row.bib_number %>
    <%= effort_row.bio_historic %>
    <%= effort_row.run_status %>
    <%= last_reported_location(effort_row) %>
    <%= last_reported_time_of_day(effort_row) %>
    <%= last_reported_elapsed_time(effort_row) %>

  <% end %>

Remove "From" column from events/summary view to optimize printing.


TLS Backend Handshake Errors

Gorouter backend TLS handshake failed! This really should not happen. Did you just deploy something bad?
Get in touch with routing.

 @slack-cloudops-us-pws <%= cloudops_pagerduty %>

Question: avg(last_10m):per_minute(sum:datadog.nozzle.gorouter.backend_tls_handshake_failed{*}) > 2

Gorouter backend TLS handshake failed! This really should not happen. Did you just deploy something bad?
Get in touch with [#pcf-networking](https://pivotal.slack.com/messages/CFKJZ9B3J).

@slack-cloudops-us-pws

Question: min(last_1m):per_minute(sum:datadog.nozzle.gorouter.backend_tls_handshake_failed{*}) > 30

Remove pagerduty alert of backend_tls_handshake_failed

- And we adjusted the alert and warning thresholds after consulting with
the networking team in slack

[#164669754] Remove pagerduty alert for `TLS Backend Handshake Errors`

Signed-off-by: Aaron Hurley <6c541e38cb40b4360b80e64c308405691f38e38a@pivotal.io>