Enter a peptide list

      Paste a list of peptides from your metaproteomics experiment in the search box. Each line should contain a single peptide.

Click search

      Review the search settings for peptide deduplication, advanced missed cleavage handling and equating isoleucine and leucine before clicking search.

Gain insight

      For each of the peptides, the lowest common ancestor (LCA) will be calculated, aggregated and visualised on the result page, giving you insight in the taxonomic diversity of your sample.

Select samples

      Make a selection of samples that should be analysed. New samples can be added by pasting a peptide list, or existing samples can be reused.

Click search

      Review the search settings for peptide deduplication, advanced missed cleavage handling and equating isoleucine and leucine before clicking search.

Gain insight

      For each of the peptides, the lowest common ancestor (LCA) will be calculated, aggregated and visualised on the result page, giving you insight in the taxonomic diversity of your sample.

Fix help on start page

Fix help on start page


<%=name%>

<% if accounts.count > 0%>

    <% accounts.each do |account| %>
      <tr class="<%= cycle("even", "odd") -%>">
        <%=h account.name %>
        <%=h account.balance(:from_date => @from_date, :to_date => @to_date) %>

    <% end %>

<% end %>

<%=name%>

<% if accounts.count > 0%>

    <% running_total = 0 %>
    <% accounts.each do |account| %>
      <% balance = account.balance(:from_date => @from_date, :to_date => @to_date) %>
      <tr class="<%= cycle("even", "odd") -%>">
        <%=h account.name %>
        <%=h balance.round(2) %>
        <% running_total += balance %>

    <% end %>
    <tr class="<%= cycle("even", "odd") -%>">

        Total <%= name %>
        <%= running_total.round(2) %>

<% end %>

Add totals sections to balance sheet and income statement.


What's not included?

Not everything we have at the Libraries appears in these search results - specialized sources like full-text business reports, images, or theses can best be found using other tools.

How to find the other stuff

Ask our expert librarians

Browse specialized search tools by subject

Popular search tools

Course reserves search

Vera: Search e-journals and databases

WorldCat: Borrow from libraries worldwide

Google Scholar (see also: Setting MIT preferences)

Other popular search tools

What's not included?

Not everything we have at the Libraries appears in these search results - specialized content like full-text business reports, images, and data can best be found using other tools.

How to find the other stuff

Ask our expert librarians

Browse specialized search tools by subject

Popular search tools

WorldCat: Borrow from libraries worldwide

Google Scholar (see also: Setting MIT preferences)

Other popular search tools

Update copy in _other_resources partial

Update copy in _other_resources partial

Why these changes are being introduced:

The copy in this partial references services that will no longer exist.

Relevant ticket(s):

* https://mitlibraries.atlassian.net/browse/IMP-2076

How this addresses that need:

This updates the copy as specified by UX.

Side effects of this change:

None.


Notifications

<% @new_notifications.each do |notification| %>

<%= link_to(notification.alertable.user.name, user_path(notification.alertable.user.name)) %> replied to your <%= notification.alerted.class.name %>

		<%= render :partial => "comments/show", :locals => { :comment => notification.alertable } %>

<% end %>
<% @old_notifications.each do |notification| %>

<%= link_to(notification.alertable.user.name, user_path(notification.alertable.user.name)) %> replied to your <%= notification.alerted.class.name %>

		<%= render :partial => "comments/show", :locals => { :comment => notification.alertable } %>

<% end %>
<% @new_notifications.update_all(:unread => false) %>

Notifications

<% @new_notifications.each do |notification| %>

<%= link_to(notification.alertable.user.name, user_path(notification.alertable.user.name)) %> replied to your <%= notification.alerted.class.name %>

		<%= render :partial => "comments/show", :locals => { comment: notification.alertable } %>

<% end %>
<% @old_notifications.each do |notification| %>

<%= link_to(notification.alertable.user.name, user_path(notification.alertable.user.name)) %> replied to your <%= notification.alerted.class.name %>

		<%= render :partial => "comments/show", :locals => { comment: notification.alertable } %>

<% end %>
<% @new_notifications.update_all(:unread => false) %>

Revert "Fixed a couple of typos"

Revert "Fixed a couple of typos"

This reverts commit df7890063c6909f19583c3139595db2645f9b5c1.


  <% @devices.each do |cur_device| %>
    <li class="<%= 'active' if device == cur_device %>">
      <%= link_to cur_device.name, cur_device %>

  <% end %>

    <%= link_to raw(' Activate Device'), activate_path %>

<div id="device-<%= device.id %>">
  <%= render device.sensors %>
  <%= link_to 'Edit Device Settings', edit_device_path(device) %>

  <% @devices.each do |cur_device| %>
    <li class="<%= 'active' if device == cur_device %>">
      <%= link_to cur_device.name, cur_device %>

  <% end %>

    <%= link_to raw(' Activate Device'), activate_path %>

    <%= link_to raw(' Edit Device Settings'), edit_device_path(device) %>

<div id="device-<%= device.id %>">
  <%= render device.sensors %>

Move edit device link to tab bar.

Move edit device link to tab bar.


<!DOCTYPE html>

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

		<%= render 'layouts/header' %>

			<% flash.each do |message_type, message| %>
			<div class="alert alert-<%= message_type %>">
				<%= message %>

			<% end %>
			<%= yield %>
			<%= render 'layouts/footer' %>
			<%= debug(params) if Rails.env.development? %>

		<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>

		<%= yield :view_scripts %>

<!DOCTYPE html>

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

		<%= render 'layouts/header' %>

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

			<% end %>
			<%= yield %>
			<%= render 'layouts/footer' %>
			<%= debug(params) if Rails.env.development? %>

		<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>

		<%= yield :view_scripts %>

Clean Up Flash Code in Layout

Clean Up Flash Code in Layout


<%= render partial: "vitrage/#{@item.class.name.demodulize.underscore}", locals: { piece: @piece } %>

<%= render partial: "vitrage/#{@piece.class.name.demodulize.underscore}", locals: { piece: @piece } %>

Fix typo in variable name

Fix typo in variable name


<%= @item.name %>

    <% if is_admin? %>

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

    <% end %>

    <% if !@item.image.blank? %>
      <img src="<%= @item.image %>" width="500" height="400">
    <% else %>

    <%end%>

Description: <%= @item.description %>

Quantity: <%= @item.quantity %>

Price: <%= @item.price %>

<%= @item.name %>

    <% if is_admin? %>

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

    <% end %>

    <% if !@item.image.blank? %>
      <img src="<%= @item.image %>" width="500" height="400">
    <% else %>

    <%end%>

Description: <%= @item.description %>

Quantity: <%= @item.quantity %>

Price: <%= number_to_currency(@item.price)  %>

Use number_to_currency helper to correctly display money values


<% period = total -%>
<%=amount accounts.map {|account| account.budget_amount_in_period(period.year, period.month) }.compact.sum %>
<%=amount accounts.map {|account| account.real_amount_in_period(period.year, period.month) }.compact.sum %>

<%-
  period = total
  budget_amount = accounts.map {|account| account.budget_amount_in_period(period.year, period.month) }.compact.sum
  real_amount = accounts.map {|account| account.real_amount_in_period(period.year, period.month) }.compact.sum
  class_name = " over" if real_amount > budget_amount
-%>
<td class="budget<%= class_name %>"><%=amount budget_amount %>
<td class="real<%= class_name %>"><%=amount real_amount %>

Apply the over class on the budget table when the real amount is larger than the budgeted amount.


    <%= forum_topic.title %>

    <%= I18n.t("forums.author_by") %> <%= link_to forum_topic.author.nickname, "/" %>

  TODO
  TODO
  TODO

    <%= forum_topic.title %>

    <%= I18n.t("forums.author_by") %> <%= link_to forum_topic.author.nickname, "/" %>

  <%= forum_topic.posts.count %>
  TODO

    <% post = forum_topic.posts.order("created_at DESC").first %>
    <%= post.created_at.strftime("%Y-%m-%d %H:%M") %>

    <%= I18n.t("forums.author_by") %> <%= link_to post.author.nickname, "/" %>

Add info to forum view

Add info to forum view


  <% if @reviewer %>

      <%= link_to "Review", new_trip_review_path(trip) %>

  <% else %>

<%= link_to "Details", trip_path(trip), method: :get %>

<%= link_to "Edit", edit_trip_path(trip) %>

<%= link_to "Delete", trip_path(trip), method: :delete %>

<%= link_to trip.parcels.count, trip_parcels_path(trip) %>

  <% end %>

<%= trip.destination_address.city %>

<%= trip.arriving_at %>

  <% if @reviewer %>

      <%= link_to "Review", new_trip_review_path(trip) %>

  <% else %>

      <%= link_to "Details", trip_path(trip), method: :get %>

      <%= link_to "Edit", edit_trip_path(trip) %>

      <%= link_to "Delete", trip_path(trip), method: :delete %>

      <%= link_to "Review #{trip.parcels.first.sender.username} as Sender", "/review_trips/#{trip.parcels.first.sender_id}" %>

<%= link_to trip.parcels.count, trip_parcels_path(trip) %>

  <% end %>

<%= trip.destination_address.city %>

<%= trip.arriving_at %>

Add review link to your profile

Add review link to your profile


  <% if @user.partners.any? %>
    <%= form_for @user do |f| %>

Select a partner to analyze:

      <%= f.collection_select :id, @user.partners, :id, :name, {include_blank: 'Select Partner'}, {class: "partners-list"} %>
    <% end %>
  <% else %>
    <%= button_tag "Add Partner", class: "add-partner", data: { disable_with: "Please wait..."} %>

      <%= render 'partners/form' %>

  <% end %>

<% if @user.partners.any? %>

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

Select a partner to analyze:

      <%= f.collection_select :id, @user.partners, :id, :name, {include_blank: 'Select Partner'}, {class: "partners-list"} %>

      <%= link_to 'Analyze Emails', emails_path, {class: "analyze-partner"} %>
    <% end %>
  <% else %>
    <%= button_tag "Add Partner", class: "add-partner", data: { disable_with: "Please wait..."} %>

      <%= render 'partners/form' %>

<% end %>

Add tags for partner form's css

Add tags for partner form's css


<%= render 'read/popups/subscribe_form' %>

<%= render 'read/popups/unsubscribe_confirm' %>

<%= render 'read/popups/new_folder_form' %>

    <%= render 'read/sidebar/sidebar' %>

      <%= render 'start', user: @user %>

      <%= t 'feeds.index.loading' %>

          {{current_feed.title}}

        <%= render 'entries' %>

Hide the entries list while angularjs is bootstrapping.


<%= @user.username %>'s profile

Questions You've Asked:

  <% if @user.questions.empty? %>

You have asked 0 questions.

Perhaps there's something you'd like to <%= link_to "ask", new_question_path %>.

  <% else %>

    <% @user.questions.each do |q| %>

<%= q.title %>

    <% end %>

  <% end %>

Answers You've Given:

  <% if @user.answers.empty? %>

You have answered 0 questions.

Don't be shy, we want your insight! <%= link_to "Answer", root_path %> some questions!

  <% else %>

        <% @user.answers.each do |a| %>

Answer: <%= a.content %> | Question: <%= a.question %>, by: <%= a.question.asker %>

        <% end %>

    <% end %>

<%= @user.username %>'s profile

<%= @user.username %>'s Questions:

  <% if @user.questions.empty? %>

You have asked 0 questions.

Perhaps there's something you'd like to <%= link_to "ask", new_question_path %>.

  <% else %>

    <% @user.questions.each do |q| %>

<%= link_to q.title, question_path(q) %> | Answers: <%= q.answers.count %> | Votes: <%= q.vote_count %>

    <% end %>

  <% end %>

<%= @user.username %>'s Answers:

  <% if @user.answers.empty? %>

You have answered 0 questions.

Don't be shy, we want your insight! <%= link_to "Answer", root_path %> some questions!

  <% else %>

        <% @user.answers.each do |a| %>

Answer: <%= link_to a.content, question_path(a.question_id) %> | Votes: <%= a.vote_count %> | Question: <%= a.question.title %>, by: <%= a.question.asker.username %>

        <% end %>

    <% end %>

Add links to a user's questions and answers, and change title's to user username


<% content_for :head do %>
  <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/3.15/themes/css/cartodb.css" />

<% end %>

<%= @map.name %>

Update map - use stamen maps

Update map - use stamen maps


Same-sex partnerships in Ecuador are known as ‘union de hecho’.

Contact the [Embassy of Ecuador](/government/publications/foreign-embassies-in-the-uk) before making any plans to find out about local laws, including what documents you’ll need.

You should also check the [travel advice for Ecuador](/foreign-travel-advice/ecuador).

##What you need to do

You’ll be asked for an affirmation or affidavit document to prove that you’re allowed to enter into this partnership.

To swear an affirmation or affidavit, [make an appointment at the British Embassy Quito](https://www.consular-appointments.service.gov.uk/fco/#!/british-embassy-quito/oaths-affirmations-and-affidavits/slot_picker).

You’ll need to bring your passport and pay a fee.

## Fees

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

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

<%= render partial: 'how_to_pay.govspeak.erb', locals: {calculator: calculator} %>

Contact the [Embassy of Ecuador](/government/publications/foreign-embassies-in-the-uk) before making any plans to find out about local laws, including what documents you’ll need.

You should also check the [travel advice for Ecuador](/foreign-travel-advice/ecuador).

##What you need to do

You’ll be asked for an affirmation or affidavit document to prove that you’re allowed to marry.

To swear an affirmation or affidavit, [make an appointment at the British Embassy Quito](https://www.consular-appointments.service.gov.uk/fco/#!/british-embassy-quito/oaths-affirmations-and-affidavits/slot_picker).

You’ll need to bring your passport and pay a fee.

## Fees

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

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

<%= render partial: 'how_to_pay.govspeak.erb', locals: {calculator: calculator} %>

Replace 'civil partnership' with 'marry'

Replacing reference to civil partnership with marry across all Ecuador same sex outcomes


<% @assignments.each do |assignment| %>
<a href="/assignments/<%= assignment.id %>"><%= assignment.name %> : <%= assignment.abstract %>

<% end %>

<% if !current_user.nil? && current_user.admin? %>
<%= link_to "New assignment", new_assignment_path, :class => "action" %>
<% end %>

<% @assignments.each do |assignment| %>
<a href="/assignments/<%= assignment.id %>"><%= assignment.name %> : <%= assignment.abstract %>

<% end %>

<% if !current_user.nil? && current_user.admin? %>
<%= link_to "New assignment", new_assignment_path, :class => "command" %>
<% end %>

Fix style for new assignment link.

Fix style for new assignment link.


<%# Rails flash messages styled for Bootstrap 3.0 %>
<% flash.each do |name, msg| %>
  <% if msg.is_a?(String) %>

      <div class="alert alert-<%= name.to_s == 'notice' ? 'success' : 'danger' %>">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
        <%= content_tag :div, msg, :id => "flash_#{name}" %>
        <% if name != :persistent_alert %>
          <%= content_tag :script, :type => "text/javascript" do -%>
            setTimeout("$('#flash_message').remove();", 12000);
          <% end %>
        <% end %>

  <% end %>
<% end %>

<%# Rails flash messages styled for Bootstrap 3.0 %>
<% flash.each do |name, msg| %>
  <% if msg.is_a?(String) %>

      <div class="alert alert-<%= name.to_s == 'notice' ? 'success' : 'danger' %>">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
        <%= content_tag :div, msg, :id => "flash_#{name}" %>
        <% if name != :persistent_alert %>
          <%= content_tag :script, :type => "text/javascript" do -%>
            setTimeout("var element = document.getElementById('flash_message'); if (element) { element.remove(); }", 12000);
          <% end %>
        <% end %>

  <% end %>
<% end %>

Replace jQuery remove with pure js remove As jQuery is not reliably available when this code is ran.


$('#licence-compare').replaceWith('<%=
j render partial: 'compare', locals: { comparison_html: @comparison_html,  licence_select_box: @selectable,
                                       licence_a: @licence_a, licence_b: @licence_b } %>');
new LicenceCompare();

Fix infinite loop in licence compare JS.


<%= form_tag(picks_path, method: "post") do %>
  <% if !session[:user_id] %>
    <%= email_field_tag 'pick[email]',nil, placeholder: 'email' %>
  <% end %>
<%= text_field_tag 'pick[game]',nil, placeholder: 'game' %>
<%= number_field_tag 'pick[number1]',nil, placeholder:'0' %>
<%= number_field_tag 'pick[number2]',nil, placeholder:'0' %>
<%= number_field_tag 'pick[number3]',nil, placeholder:'0' %>
<%= number_field_tag 'pick[number4]',nil, placeholder:'0' %>
<%= number_field_tag 'pick[number5]',nil, placeholder:'0' %>
<%= number_field_tag 'pick[number6]',nil, placeholder:'0' %>
<%= date_field_tag 'pick[draw_date]',nil, placeholder: 'date' %>
<%= check_box_tag 'pick[multiplier]'%>
<%= submit_tag 'lotifyme' %>
<%= submit_tag 'signup' %>

<% end %>

  <%= form_tag(picks_path, method: "post") do %>
    <% if !session[:user_id] %>
      <%= email_field_tag 'pick[email]',nil, placeholder: 'email' %>
    <% end %>
  <%= text_field_tag 'pick[game]',nil, placeholder: 'game' %>
  <%= number_field_tag 'pick[number1]',nil, placeholder:'0' %>
  <%= number_field_tag 'pick[number2]',nil, placeholder:'0' %>
  <%= number_field_tag ' pick[number3]',nil, placeholder:'0' %>
  <%= number_field_tag 'pick[number4]',nil, placeholder:'0' %>
  <%= number_field_tag 'pick[number5]',nil, placeholder:'0' %>
  <%= number_field_tag 'pick[number6]',nil, placeholder:'0' %>
  <%= date_field_tag 'pick[draw_date]',nil, placeholder: 'date' %>
  <%= check_box_tag 'pick[multiplier]'%>
  <%= submit_tag 'lotifyme' %>
  <%= submit_tag 'signup' %>

  <% end %>

Put Pick forms in a div

Put Pick forms in a div


<%
user_agent = UserAgent.parse(request.user_agent)

$id_vars[:os] = user_agent.os
$id_vars[:platform] = user_agent.platform
$id_vars[:browser] = user_agent.browser
$id_vars[:version] = user_agent.version
$id_vars[:build] = user_agent.build
$id_vars[:localization] = user_agent.localization

id_json =$id_vars.to_json
id_md5 = Digest::MD5.hexdigest(id_json)

$redis.incr(id_md5) unless cookies[:open_panopticlick]
id_match = $redis.get(id_md5)
id_total = $redis.keys.count

cookies[:open_panopticlick] = 'locked'
%>

Fingerprint	<%=id_md5%>

Uniqueness	<%="#{id_match} / #{id_total}"%>

<%=id_json%>

<%
user_agent = UserAgent.parse(request.user_agent)

$id_vars[:os] = user_agent.os
$id_vars[:platform] = user_agent.platform
$id_vars[:browser] = user_agent.browser
$id_vars[:version] = user_agent.version
$id_vars[:build] = user_agent.build
$id_vars[:localization] = user_agent.localization

id_json =$id_vars.to_json
id_md5 = Digest::MD5.hexdigest(id_json)

$redis.incr(id_md5) unless cookies[:open_panopticlick]
id_match = $redis.get(id_md5)
id_total = $redis.keys.count

cookies[:open_panopticlick] = 'locked'
%>

Fingerprint	<%=id_md5%>

Uniqueness	<%="#{id_match} / #{id_total}"%>

About:

In 2010 the Electronic Frontier Foundation (EFF) announced Panopticlick, a web application designed to identify unique users by fingerprinting their web browsers.

In 2013 after Panopticlick was reposted (Again...) on Hacker News, I became curious about how exactly some parts of it worked. On discovering that the EFF have never published any source code for Panopticlick, I decided to create a FOSS (GPLv3) reimplementation.

Add 'About', remove debug output

Add 'About', remove debug output


    #
    # type-casting for more advanced searches
    #

    if "nginx" in [tags] {
        mutate {
            convert => [ "status", "integer" ]
            convert => [ "body_bytes_sent", "integer" ]
        }
    }
}

Drop old, out of scope nginx type-casting filter.

Issue #62


Wait-Killer

Welcome!

Stay tuned for basic functions to start arriving on this site.

The site will not look very stylish until one of the bounties gets done about writing the Style guide.

~ Michael (@vbsql7)

Wait-Killer

Welcome!

Stay tuned for basic functions to start arriving on this site.

The site will not look very stylish until one of the bounties gets done about writing the Style guide.

====================

~ Michael (@vbsql7)

Add separator before name. Testing two repo merge.


#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
#<IfModule prefork.c>
#  LoadModule php5_module modules/libphp5.so
#</IfModule>
#<IfModule worker.c>
#  # Use of the "ZTS" build with worker is experimental, and no shared
#  # modules are supported.
#  LoadModule php5_module modules/libphp5-zts.so
#</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
<FilesMatch ".+(<%= @extensions.flatten.compact.collect { |s| Regexp.escape(s) }.join('|') %>)$">
    SetHandler php5-script
</FilesMatch>

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps

#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

#
# Cause the PHP interpreter to handle files with a .php extension.
#
<FilesMatch ".+(<%= @extensions.flatten.compact.collect { |s| Regexp.escape(s) }.join('|') %>)$">
    SetHandler application/x-httpd-php
</FilesMatch>

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps

Fix mod_php SetHandler and cleanup

MODULES-2890: Fix mod_php SetHandler and cleanup


<%= content_tag :span, class: "storytime-snippet storytime-snippet-#{snippet.id}" do %>
  <% if logged_in_storytime_user? && Pundit.policy(current_user, Storytime::Snippet).manage? %>
    <%= link_to [:edit, :dashboard, snippet], class: "storytime-modal-trigger", remote: true do %>
      <%= raw snippet.content %>
    <% end %>
  <% else %>
    <%= raw snippet.content %>
  <% end %>
<% end %>

<%= content_tag :span, class: "storytime-snippet storytime-snippet-#{snippet.id}" do %>
  <% if logged_in_storytime_user? && Pundit.policy(current_user, Storytime::Snippet).manage? %>
    <%= link_to [storytime, :edit, :dashboard, snippet], class: "storytime-modal-trigger", remote: true do %>
      <%= raw snippet.content %>
    <% end %>
  <% else %>
    <%= raw snippet.content %>
  <% end %>
<% end %>

Add storytime to link_to array

Add storytime to link_to array


---
driver:
  name: dokken

provisioner:
  name: dokken

transport:
  name: dokken

verifier:
  name: inspec

platforms:
  # @see https://github.com/someara/dokken-images
  # @see https://hub.docker.com/r/dokken/
  - name: ubuntu-18.04
    driver:
      image: dokken/ubuntu-18.04
  - name: centos-7
    driver:
      image: dokken/centos-7

suites:
  - name: default
    run_list:
      - recipe[<%= cookbook_name %>::default]
    verifier:
      inspec_tests:
        - test/integration/default
    attributes:

---
driver:
  name: dokken

provisioner:
  name: dokken

transport:
  name: dokken

verifier:
  name: inspec

platforms:
  # @see https://github.com/chef-cookbooks/testing_examples/blob/master/kitchen.dokken.yml
  # @see https://hub.docker.com/u/dokken
  - name: ubuntu-18.04
    driver:
      image: dokken/ubuntu-18.04
      pid_one_command: /bin/systemd
      intermediate_instructions:
        - RUN /usr/bin/apt-get update

  - name: centos-7
    driver:
      image: dokken/centos-7
      pid_one_command: /usr/lib/systemd/systemd

suites:
  - name: default
    run_list:
      - recipe[<%= cookbook_name %>::default]
    verifier:
      inspec_tests:
        - test/integration/default
    attributes:

Make the example dokken config a working example

Without the pid_one_command bit it won't work

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>


<%= form_for [:admin, topic] do |topic_form| %>
  <%= topic_form.errors %>

  <fieldset>
    <%= topic_form.text_field :name %>
    <%= topic_form.text_area :description %>
  </fieldset>

  <fieldset>

Policy ordering

    <%= topic_form.fields_for :document_topics do |document_topic_form| %>
      <% if document_topic_form.object.document.is_a?(Policy) %>
        <%= document_topic_form.text_field :ordering, label_text: link_to(document_topic_form.object.document.title, admin_document_path(document_topic_form.object.document)) %>

      <% end %>
    <% end %>
  </fieldset>

  <%= topic_form.save_or_cancel cancel: admin_topics_path %>
<% end %>

<%= form_for [:admin, topic] do |topic_form| %>
  <%= topic_form.errors %>

  <fieldset>
    <%= topic_form.text_field :name %>
    <%= topic_form.text_area :description %>
  </fieldset>

  <fieldset>
    <legend>Policy ordering</legend>
    <%= topic_form.fields_for :document_topics do |document_topic_form| %>
      <% if document_topic_form.object.document.is_a?(Policy) %>
        <%= document_topic_form.text_field :ordering, label_text: link_to(document_topic_form.object.document.title, admin_document_path(document_topic_form.object.document)) %></p>
      <% end %>
    <% end %>
  </fieldset>

  <%= topic_form.save_or_cancel cancel: admin_topics_path %>
<% end %>

Use a legend, not a heading.

Use a legend, not a heading.


<% @transactions.each do |transaction| %>

<%= render 'transaction.html.erb', transaction: transaction %>

<% end %>

Update foundations formatting to display the river properly


Contact the relevant local authorities in Kenya to find out about local marriage laws, including what documents you’ll need.

^You should [get legal advice](/government/collections/list-of-lawyers) before making any plans.^

The UK doesn’t issue certificates of no impediment (CNI) for marriages in Commonwealth countries.

The British High Commission can provide a letter confirming this which you can give to the Kenyan authorities if you are normally resident in Kenya.

^If you’re not normally a resident in Kenya then contact the relevant local authorities in Kenya to find out about local marriage laws, including what documents you’ll need.^

The Kenyan authorities may also ask you to provide a sworn affidavit before a local lawyer, about your marital status. If you have been married before you will need to provide a divorce decree absolute to the Kenyan authorities.

If you have previously lived in the UK you may be asked for a no trace letter issued by the General Register Office.  A no trace letter costs £50 and can be obtained from the General Register Office by calling +44 (0)300 123 1837 (Monday to Friday, 8am to 8pm). You should ask for a search to be made and quote the reference number "SEARCH 123".

*[CNI]:certificate of no impediment

Contact the relevant local authorities in Kenya to find out about local marriage laws, including what documents you’ll need.

^You should [get legal advice](/government/collections/list-of-lawyers) before making any plans.^

The UK doesn’t issue certificates of no impediment (CNI) for marriages in Commonwealth countries.

The British High Commission can provide a letter confirming this which you can give to the Kenyan authorities if you are normally resident in Kenya.

^If you’re not normally a resident in Kenya then contact the relevant local authorities in Kenya to find out about local marriage laws, including what documents you’ll need.^

The Kenyan authorities may also ask you to provide a sworn affidavit before a local lawyer, about your marital status. If you have been married before you will need to provide a divorce decree absolute to the Kenyan authorities.

If you have previously lived in the UK you may be asked for a ‘no trace letter’ issued by the General Register Office. ‘No trace letters’ cost £50 for each 10 year period from age 16 or when you entered the UK. Specify how many years you need the search to cover and quote reference ‘SEARCH 123’. It can take up to 3 weeks for a ‘no trace letter’ to be issued.

$C
**General Register Office**\\
Telephone: +44 (0)300 123 1837 (8am to 8pm Monday to Friday and 9am to 4pm Saturday)
$C

*[CNI]:certificate of no impediment

Update marriage abroad Kenya, Kenya user, British partner, opposite sex

Location: Kenya
User: Kenya
Partner: British
Marriage type: Opposite sex

Updated information about the ‘no trace letter’ to make it clear that the price
applies to each 10 year period.


<%- model_class = ApplicationGroup -%>
<%t '.title', :default => model_class.model_name.human.pluralize.titleize %>

  <%= render 'shared/breadcrumb', crumbs: ['Application Groups'] %>

      Primary Applicant
      No. Applicants
      No. Enrollments
      Submitted Date

  <% @application_groups.each do |ag| %>

        <%= link_to prepend_glyph_to_name(ag.primary_applicant_id), application_group_path(ag) %>
        <%= ag.applicants.size %>
        <%= ag.hbx_enrollments.size %>
        <%= ag.submitted_date %>

  <% end %>

    <%= paginate @application_groups, theme: "twitter-bootstrap", pagination_class: "pagination-plain" %>

<%= "#{number_with_delimiter(@application_groups.count)} / #{number_with_delimiter(ApplicationGroup.count)} " %>(Application Groups selected / total)

<%- model_class = ApplicationGroup -%>
<%t '.title', :default => model_class.model_name.human.pluralize.titleize %>

  <%= render 'shared/breadcrumb', crumbs: ['Application Groups'] %>

      <%= render 'shared/search', url: people_path, q: @q, placeholder: "Name, HBX ID, SSN" %>

<%= render "application_group_list", application_groups: @application_groups %>

    <%= paginate @application_groups, theme: "twitter-bootstrap", pagination_class: "pagination-plain" %>

<%= "#{number_with_delimiter(@application_groups.count)} / #{number_with_delimiter(ApplicationGroup.count)} " %>(Application Groups selected / total)

Add search box. Move applicant list to partial


    <%= link_to(avatar(user, :size => 128), user, :class => "avatar") %>

        ~<%= link_to h(user.login), user %>

        <% if user.fullname.present? %>

            <%= h(user.fullname) %>

        <% end %>
        <% if user.public_email? %>

            <%= mail_to(user.email, mangled_mail(user.email), :encode => "javascript") %>

        <% end %>
        <% if user.url %>

            <a rel="me" href="<%=h user.url %>"><%=h user.url %>

        <% end %>

          <%= t("views.users.member_for") %> <%= time_ago_in_words(user.created_at) %>
          <% if user.suspended? %>(suspended)<% end %>

Make user info in profile box wider

Make user info in profile box wider


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

# The database host system
host=db

# The database instance
database=openstreetmap

# The database user
user=planetdiff

# The database password
password=<%= @password =%>

# The database type
dbType=postgresql

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

# The database host system
host=katla.bm.openstreetmap.org

# The database instance
database=openstreetmap

# The database user
user=planetdiff

# The database password
password=<%= @password =%>

# The database type
dbType=postgresql

Update database address for replication

Update database address for replication


<% content_for(:title) { "ODI Training & Events" } %>

Add new widgets to dashboard

Add new widgets to dashboard


<% content_for :title do %><%= @sector.title %>: <%= @subcategory.title %> - GOV.UK<% end %>
<% content_for :page_class, "specialist-sector-browse" %>

<%= @sector.title %> <%= @subcategory.title %>

  <% if @subcategory.details.description.present? %>

<%= @subcategory.details.description %>

  <% end %>

A-Z

      <% @results.each do |content| %>

<a href="<%= content.web_url %>"><%= content.title %>

      <% end %>

<% content_for :title do %><%= @sector.title %>: <%= @subcategory.title %> - GOV.UK<% end %>
<% content_for :page_class, "specialist-sector-browse" %>

<%= @sector.title %> <%= @subcategory.title %>

  <% if @subcategory.details.description.present? %>

<%= @subcategory.details.description %>

  <% end %>

A to Z

      <% @results.each do |content| %>

<a href="<%= content.web_url %>"><%= content.title %>

      <% end %>

Change "A-Z" to "A to Z"

Change "A-Z" to "A to Z"

This is in keeping with the convention in the styleguide.
https://www.gov.uk/design-principles/style-guide/a-z


<% @organizations.each do |organization| %>
  <%= render :partial => 'organizations/summary', :locals => {:organization => organization}%>
<% end %>

     JSON

Add rel=alternate to json link

Add rel=alternate to json link


#!/bin/bash
# vim: set ft=sh

set -e -x

export PATH=/var/vcap/packages/cf-cli/bin:${PATH}

export HOME=$(mktemp -d /tmp/diego-canary.XXXXX)

cf api <%= p("diego.canary.api") %> \
  --skip-ssl-validation=<%= p("diego.ssl.skip_cert_verify").inspect %>

cf auth <%= p("diego.canary.user") %> <%= p("diego.canary.password") %>

# assume org exists, otherwise we have to be admin, which is a bad idea
cf target -o <%= p("diego.canary.org") %>

cf create-space <%= p("diego.canary.space") %>
cf target -s <%= p("diego.canary.space") %>

export APP_NAME=<%= p("diego.canary.app_name") %>
export DATADOG_API_KEY=<%= p("diego.canary.datadog_api_key") %>
export DEPLOYMENT_NAME=<%= p("diego.canary.deployment_name") %>
export DOMAIN=<%= p("diego.canary.app_domain") %>
export INSTANCE_COUNT=<%= p("diego.canary.instance_count") %>
export CF_STACK=<%= p("diego.canary.cf_stack") %>

cd /var/vcap/packages/canary

./scripts/deploy

#!/bin/bash
# vim: set ft=sh

set -e -x

export PATH=/var/vcap/packages/cf-cli/bin:${PATH}

export HOME=$(mktemp -d /tmp/diego-canary.XXXXX)

cf api <%= p("diego.canary.api") %> \
  --skip-ssl-validation=<%= p("diego.ssl.skip_cert_verify").inspect %>

cf auth <%= p("diego.canary.user") %> <%= p("diego.canary.password") %>

cf create-org <%= p("diego.canary.org") %>
cf target -o <%= p("diego.canary.org") %>

cf create-space <%= p("diego.canary.space") %>
cf target -s <%= p("diego.canary.space") %>

export APP_NAME=<%= p("diego.canary.app_name") %>
export DATADOG_API_KEY=<%= p("diego.canary.datadog_api_key") %>
export DEPLOYMENT_NAME=<%= p("diego.canary.deployment_name") %>
export DOMAIN=<%= p("diego.canary.app_domain") %>
export INSTANCE_COUNT=<%= p("diego.canary.instance_count") %>
export CF_STACK=<%= p("diego.canary.cf_stack") %>

cd /var/vcap/packages/canary

./scripts/deploy

Fix canary errand to create org

Fix canary errand to create org

- The original comment that we should not create org because it assumes admin privileges is incorrect
- We use this (and smoke tests, and DATS) with the admin user anyways
- We should eventually fix our errands to work with an appropriately privileged user


  <%= content_tag :li, "Ticketing Reports", class: 'tiny-header nav-header' %>
  <%= content_tag :li, link_to("Activity Report", admin_reports_path(start_date: @start_date, end_date: @end_date, label: params[:label])), class: 'report-link nav-item' %>
  <%= content_tag :li, link_to("Group Report", admin_group_reports_path(start_date: @start_date, end_date: @end_date, label: params[:label])), class: 'report-link nav-item' %>

  <%= content_tag :li, "Team Reports", class: 'tiny-header nav-header' %>
  <%= content_tag :li, link_to("Team Report", admin_team_reports_path(start_date: @start_date, end_date: @end_date, label: params[:label])), class: 'report-link nav-item' %>

<%= content_tag :div, class: "ticket-nav-header" do %>
  <%= content_tag :span, "Ticketing Reports", class: 'tiny-header' %>
<% end %>
<%= content_tag :ul, class: "list-unstyled nav-items" do %>
  <%= content_tag :li, link_to("Activity Report", admin_reports_path(start_date: @start_date, end_date: @end_date, label: params[:label])), class: 'report-link nav-item' %>
  <%= content_tag :li, link_to("Group Report", admin_group_reports_path(start_date: @start_date, end_date: @end_date, label: params[:label])), class: 'report-link nav-item' %>
<% end %>
<%= content_tag :div, class: "ticket-nav-header" do %>
  <%= content_tag :span, "Team Reports", class: 'tiny-header' %>
<% end %>
<%= content_tag :ul, class: "list-unstyled nav-items" do %>
  <%= content_tag :li, link_to("Team Report", admin_team_reports_path(start_date: @start_date, end_date: @end_date, label: params[:label])), class: 'report-link nav-item' %>
<% end %>

Update reports navigation panel formatting


<% @user.chats.each do |chat| %>

<%= chat.title %>

<%= chat.description %>

<%= link_to 'Show', chat_path(chat) %>

<% end %>

Add index view for chat

Add index view for chat


<%= link_to "REGISTER", new_user_path%>

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

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

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

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

<% end %>

<%= link_to "REGISTER", new_user_path%> | <%= link_to "LOGIN", login_path %>

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

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

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

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

<% end %>

Add clickable login link that redirects user to login form


Review Me!

  <%= render '/errors' %>
  <%= form_for :review, url: user_reviews_path do |f| %>

Score:<%= f.text_field :score %>

Header:
 <%= f.text_field :title %>

Body:<%= f.text_field :body %>

  <%= f.hidden_field :reviewee_id, value: @user.id %>
  <%= f.hidden_field :reviewer_id, value: current_user.id %>

<%= f.submit "Review", :class => "form-button waves-effect waves-light btn user-button" %>

<% end %>

Review Me!

  <%= render '/errors' %>
  <%= form_for :review, url: user_reviews_path do |f| %>

  <%= f.label "How do you feel about your host?" %>
  <%= f.select(:score, [['Terrible host, score: 1', 1], ['Bad host, score: 2', 2], ['Mediocre host, score: 3', 3], ["Good host, score: 4", 4], ["Excellent host, score: 5", 5]], {}, {:class => 'browser-default'}) %>

Header:
 <%= f.text_field :title %>

Body:<%= f.text_field :body %>

  <%= f.hidden_field :reviewee_id, value: @user.id %>
  <%= f.hidden_field :reviewer_id, value: current_user.id %>

<%= f.submit "Review", :class => "form-button waves-effect waves-light btn user-button" %>

<% end %>

Implement dropdown for host reviews new

Implement dropdown for host reviews new


	<% users.each do |user| %>

		<%- if can? :see_role, User -%>

<%= user.user_role %>

		<%- end -%>

		<%= user.email %>

		<% if user.profile %>
			- <%= user.profile.firstName %> <%= user.profile.lastName %>
		<% end %>

			<%- if user.profile and can? :see_profile, user -%>
				<%= link_to "Zobacz profil", user.profile, class: "ui blue button" %>
			<%- end -%>

			<%- if can? :edit, user -%>
				<%= link_to "Edytuj", edit_user_path(user), class: "ui green button" %>
			<%- end -%>

			<%- if can? :destroy, user -%>
				<%= link_to "Usuń", user, class: "ui red button", method: :delete, data: { confirm: "Na pewno?"} %>
			<%- end -%>

	<% end %>

	<% users.each do |user| %>

		<%- if can? :see_role, User -%>

<%= user.user_role %>

		<%- end -%>

		<%= user.email %>

		<% if user.profile %>
			- <%= user.profile.firstName %> <%= user.profile.lastName %>
		<% end %>

		<% if user.confirmed_at %>
			Potwierdzono
		<% else %>
			Nie potwierdzono
		<% end %>

			<%- if user.profile and can? :see_profile, user -%>
				<%= link_to "Zobacz profil", user.profile, class: "ui blue button" %>
			<%- end -%>

			<%- if can? :edit, user -%>
				<%= link_to "Edytuj", edit_user_path(user), class: "ui green button" %>
			<%- end -%>

			<%- if can? :destroy, user -%>
				<%= link_to "Usuń", user, class: "ui red button", method: :delete, data: { confirm: "Na pewno?"} %>
			<%- end -%>

	<% end %>

Add conformation information to user list


Username: <%= user.username %>

Email: <%= user.email %>

<%= "Question to Answer Ratio: #{user.questions.count}/#{user.answers.count}" %>

  <%= link_to 'Edit Profile', edit_user_path(user), :class => "btn" %>

Username: <%= user.username %>

Email: <%= user.email %>

<%= user.questions.count %> Questions Asked

<%= user.answers.count %> Questions Answered

Make questions asked/answered count first-class citizens of the user info well


<%= segment.title %>

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

            <a href="<%= project.github_link %>" target="_blank"><%= project.title %>

            <%= project.info %>

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

<a href="<%= project.github_link %>" target="_blank"><%= tag %>

              <% end %>

    <% end %>

<%= segment.title %>

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

            <a href="<%= project.github_link %>" target="_blank"><%= project.title %>

            <%= project.info %>

    <% end %>

Remove tags from the projects in the Open Source page


<%= "All-time best efforts on #{@course.name}" %>

    <%= "#{pluralize(@course.events.count, 'event')} from #{@course.earliest_event_date.to_date.to_formatted_s(:long)} to #{@course.latest_event_date.to_date.to_formatted_s(:long)}" %>

  <%= link_to '<< Back to course splits', course_path(@course), class: "btn btn-sm btn-default" %>

<% if @efforts.count > 0 %>

        <%= will_paginate(@efforts, inner_window: 2, outer_window: 0) %>

    <%= render 'efforts/effort_list', items: @efforts %>

        <%= will_paginate(@efforts, inner_window: 2, outer_window: 0) %>

<% end %>

<%= "All-time best efforts on #{@course.name}" %>

    <% if @efforts.count > 0 %>
        <%= "#{pluralize(@course.events.count, 'event')} from #{@course.earliest_event_date.to_date.to_formatted_s(:long)} to #{@course.latest_event_date.to_date.to_formatted_s(:long)}" %>

    <% else %>
    No events have been run on this course.
    <% end %>

  <%= link_to '<< Back to course splits', course_path(@course), class: "btn btn-sm btn-default" %>

<% if @efforts.count > 0 %>

        <%= will_paginate(@efforts, inner_window: 2, outer_window: 0) %>

    <%= render 'efforts/effort_list', items: @efforts %>

        <%= will_paginate(@efforts, inner_window: 2, outer_window: 0) %>

<% end %>

Fix bug that caused best efforts view to crash when no events were associated.


<%= link_to new_site_mapping_path(@site), class: 'btn btn-primary' do %>
  <i class="icon-plus icon-white"></i> Add mapping
<% end %>

<%= link_to new_site_mapping_path(@site), class: 'btn btn-success' do %>
  <i class="icon-plus icon-white"></i> Add mapping
<% end %>

Switch back to green success button

Switch back to green success button

* We're using this as a positive action in other admin apps


App.Documentable.destroy("<%= document_nested_field_wrapper_id(params[:index]) %>", "<%= j render('layouts/flash') %>")
<% new_document_link = link_to t("documents.form.add_new_document"),
                               new_document_path(documentable_type: @document.documentable_type, index: params[:index]),
                               remote: true,
                               id: "new_document_link",
                               class: "button hollow" %>
App.Documentable.updateNewDocumentButton("<%= j new_document_link %>")

App.Documentable.destroy("<%= document_nested_field_wrapper_id(params[:index]) %>", "<%= j render('layouts/flash') %>")
<% new_document_link = link_to t("documents.form.add_new_document"),
                               new_nested_documents_path(documentable_type: @document.documentable_type, index: params[:index]),
                               remote: true,
                               id: "new_document_link",
                               class: "button hollow" %>
App.Documentable.updateNewDocumentButton("<%= j new_document_link %>")

Fix use of an old route

Fix use of an old route


LogLevel <%= config[:log_level] || "info" %>

SensorId 215e7620-7783-012f-86c5-001f5b320164
SensorName ClippTests
SensorHostname clipp.tests

ModuleBasePath "<%= BUILDDIR %>/../modules/.libs"
LoadModule "ibmod_htp.so"
LoadModule "ibmod_pcre.so"
LoadModule "ibmod_rules.so"
LoadModule "ibmod_user_agent.so"

RuleEngineLogData action
RuleEngineLogLevel Info
Set RuleEngineDebugLogLevel Info

Set parser "htp"

<%= config[:config] || "" %>

<Site default>
    SiteId 57f2b6d0-7783-012f-86c6-001f5b320164
    Hostname *
    <%= config[:default_site_config] || "" %>
</Site>

<%= config[:config_trailer] || "" %>

LogLevel <%= config[:log_level] || "info" %>

SensorId 215e7620-7783-012f-86c5-001f5b320164
SensorName ClippTests
SensorHostname clipp.tests

ModuleBasePath "<%= BUILDDIR %>/../modules/.libs"
LoadModule "ibmod_htp.so"
LoadModule "ibmod_pcre.so"
LoadModule "ibmod_rules.so"
LoadModule "ibmod_user_agent.so"

RuleEngineLogData action
RuleEngineLogLevel Info
Set RuleEngineDebugLogLevel Info

Set parser "htp"

InspectionEngineOptions all

<%= config[:config] || "" %>

<Site default>
    SiteId 57f2b6d0-7783-012f-86c6-001f5b320164
    Hostname *
    <%= config[:default_site_config] || "" %>
</Site>

<%= config[:config_trailer] || "" %>

Enable all rules phases in clipp tests

Enable all rules phases in clipp tests


    <%= render partial: 'likes/like_status', locals: { item: content } %>

    <%= content.body %>

  <% if current_user.try(:admin?) %>

        Admin:
        <%= link_to [content.link, content], method: :delete, class: 'no-decoration', data: { confirm: 'Are you sure you want to delete this content?' } do %>

        <% end %>

  <% end %>

Add link to delete content for admins, remove pull-left wrapper


<form action="http://flynn.us7.list-manage.com/subscribe/post?u=9600741fc187618e1baa39a58&id=a2b322e5ab" method="post" target="_blank" novalidate>

Mailing List

  Email Address
    <input type="text" name="EMAIL" placeholder="you@example.com">

  <button type="submit" class="btn btn-primary small" name="subscribe">Subscribe</button>
</form>

<form action="https://flynn.us7.list-manage.com/subscribe/post?u=9600741fc187618e1baa39a58&id=a2b322e5ab" method="post" target="_blank" novalidate>

Mailing List

  Email Address
    <input type="text" name="EMAIL" placeholder="you@example.com">

  <button type="submit" class="btn btn-primary small" name="subscribe">Subscribe</button>
</form>

Use https for mailchimp form action

website: Use https for mailchimp form action


<%= notice %>

<%= render partial: "pins/map" %>

<%= render 'search_form' %>

Fix an error, filtering partial was being rendered both in menu and at the bottom of pins index page


Alerts

Contextual modifiers

<%= showcase_example do %>

Default nothing more than a default alert

Primary nothing more than a primary alert

Success nothing more than a success alert

Notice nothing more than a notice alert

Warning nothing more than a warning alert

Alert nothing more than a alert alert

Danger nothing more than a danger alert

Error nothing more than a error alert

<% end %>

Flash class

In rails we use flash a lot, these classes can be used directly with the rails flash
system.

<%= showcase_example do %>

Default nothing more than a default flash

Success nothing more than a success flash

Notice nothing more than a notice flash

Alert nothing more than a alert flash

Error nothing more than a error flash

<% end %>

Alerts

Contextual modifiers

<%= showcase_example do %>

Default nothing more than a default alert

Primary nothing more than a primary alert

Success nothing more than a success alert

Notice nothing more than a notice alert

Warning nothing more than a warning alert

Danger nothing more than a danger alert

<% end %>

Flash class

In rails we use flash a lot, these classes can be used directly with the rails flash
system.

<%= showcase_example do %>

Default nothing more than a default flash

Success nothing more than a success flash

Notice nothing more than a notice flash

Alert nothing more than a alert flash

Error nothing more than a error flash

<% end %>

Remove flashes from alert example

Remove flashes from alert example


<% @documentation = sub_pages('documentacao') %>

<aside class="col-md-3">
  <nav class="doc-sidebar-menu">
    <ul>
      <%= menu_tag("/documentacao/praticas/", "Introdução")%>
      <%= menu_tag("/documentacao/praticas/html", "HTML")%>
      <%= menu_tag("/documentacao/praticas/css", "CSS")%>
      <%= menu_tag("/documentacao/praticas/javascript", "Javascript")%>
    </ul>
  </nav>
</aside>

Create menu practices and standards

Create menu practices and standards


grant '<%= node[:cdap][:security][:cdap_principal].split(/[@\/]/).first %>', 'CRW'
exit

grant '<%= node["cdap"]["security"]["cdap_principal"].split(/[@\/]/).first %>', 'CRW'
exit

Use quotes instead of symbols for FC001

Use quotes instead of symbols for FC001


[Unit]
Description=<%= @daemon_name %> daemon

[Service]
User=<%= @user %>
EnvironmentFile=<%= @env_path %>
ExecStart=/bin/bash $KAFKA_RUN $KAFKA_ARGS $KAFKA_CONFIG
TimeoutSec=10

[Install]
WantedBy=multi-user.target

[Unit]
Description=<%= @daemon_name %> daemon

[Service]
User=<%= @user %>
EnvironmentFile=<%= @env_path %>
ExecStart=/bin/bash $KAFKA_RUN $KAFKA_ARGS $KAFKA_CONFIG
TimeoutSec=10
<%= if node.kafka.ulimit_file %>
LimitNOFILE=<%= node.kafka.ulimit_file %>
<% end %>

[Install]
WantedBy=multi-user.target

Set open file handles limit on systemd as well


---
title: Deploy Applications
---

Here are things you need to do:

1. Read how to [prepare your application for the cloud](prepare-to-deploy.html)

2. Learn about buildpacks and framework-specific considerations:
	* [Ruby](../../buildpacks/ruby/ruby-tips.html)
	* [Node.js](../../buildpacks/node/node-tips.html)
	* [Java](../../buildpacks/java/java-tips.html)
	* [Build Tool Integration](../../buildpacks/java/build-tool-int.html)
	* [Eclipse Plugin](../../buildpacks/java/sts.html)

3. [Deploy your application](./deploy-app.html)

Additional Information:

* [Domains, Subdomains, and Routes](domains-routes.html)
* [Application Manifests](manifest.html)
* [Cloud Foundry Environment Variables](environment-variable.html)
* [About Starting Applications](app-startup.html)
* [Streaming Logs](streaming-logs.html)
* [Blue-Green Deployment](blue-green.html)
* [Troubleshoot Application Deployment and Health](troubleshoot-app-health.html)
* [Scaling an Application Using cf scale](cf-scale.html)
* [Deploying a Large Application](large-app-deploy.html)

---
title: Deploy Applications
---

Here are things you need to do:

1. Read how to [prepare your application for the cloud](prepare-to-deploy.html)

2. Learn about buildpacks and framework-specific considerations:
	* [Ruby](../../buildpacks/ruby/ruby-tips.html)
	* [Node.js](../../buildpacks/node/node-tips.html)
	* [Java](../../buildpacks/java/java-tips.html)
	* [Build Tool Integration](../../buildpacks/java/build-tool-int.html)
	* [Eclipse Plugin](../../buildpacks/java/sts.html)

3. [Deploy your application](./deploy-app.html)

Additional Information:

* [Creating Domains and Routes](domains-routes.html)
* [Application Manifests](manifest.html)
* [Cloud Foundry Environment Variables](environment-variable.html)
* [About Starting Applications](app-startup.html)
* [Streaming Logs](streaming-logs.html)
* [Blue-Green Deployment](blue-green.html)
* [Troubleshoot Application Deployment and Health](troubleshoot-app-health.html)
* [Scaling an Application Using cf scale](cf-scale.html)
* [Deploying a Large Application](large-app-deploy.html)

Update domains and routes doc title on deploy-apps index page


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

global:
  scrape_interval: 15s
  evaluation_interval: 15s

scrape_configs:
  - job_name: prometheus
    scrape_interval: 5s
    scrape_timeout: 5s
    static_configs:
      - targets:
          - localhost:9090
<% @jobs.sort.each do |name, targets| -%>
  - job_name: <%= name %>
    static_configs:
<% targets.each do |target| -%>
      - targets:
          - "<%= target[:address] %>"
        labels:
          instance: <%= target[:name].split(".").first %>
<% end -%>
<% end -%>

remote_write:
  - url: "http://localhost:9201/write"

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

global:
  scrape_interval: 15s
  evaluation_interval: 15s

scrape_configs:
  - job_name: prometheus
    scrape_interval: 5s
    scrape_timeout: 5s
    static_configs:
      - targets:
          - localhost:9090
<% @jobs.sort.each do |name, targets| -%>
  - job_name: <%= name %>
    static_configs:
<% targets.each do |target| -%>
      - targets:
          - "<%= target[:address] %>"
        labels:
          instance: <%= target[:name].split(".").first %>
<% end -%>
<% end -%>

# remote_write:
#   - url: "http://localhost:9201/write"

Disable remote write to promscale

Disable remote write to promscale


<% alert = Alert.find(current_user, document['issn_ss'].first)
  if !alert.nil? %>
    <%= link_to alert_path(alert.id), :method => :delete, :title => "Remove journal alert", :remote => true do %>

    <%= t('toshokan.alerts.journal.add') %>
    <% end %>
  <% else %>
    <%= link_to alerts_path("alert[alert_type]" => "journal", "alert[query]" => document['issn_ss'].first, "alert[name]" => document['title_ts'].first), :method => :post, :title => "Add journal alert", :remote => true do %>

    <%= t('toshokan.alerts.journal.add') %>
  <% end %>
<% end %>

<% alert = Alert.find(current_user, {:query => document['issn_ss'].first})
  if !alert.nil? %>
    <%= link_to alert_path(alert.id), :method => :delete, :title => "Remove journal alert", :remote => true do %>

    <%= t('toshokan.alerts.journal.add') %>
    <% end %>
  <% else %>
    <%= link_to alerts_path("alert[alert_type]" => "journal", "alert[query]" => document['issn_ss'].first, "alert[name]" => document['title_ts'].first), :method => :post, :title => "Add journal alert", :remote => true do %>

    <%= t('toshokan.alerts.journal.add') %>
  <% end %>
<% end %>

Fix bug in add journal alert

Fix bug in add journal alert


Resend unlock instructions

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

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

            <%= f.submit "Resend unlock instructions", :class => 'btn btn-default' %>

        <% end %>

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

Resend unlock instructions

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

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

            <%= f.submit "Resend unlock instructions", class: 'btn btn-default' %>

        <% end %>

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

Use consistent hash syntax in Resend Unlock form

https://github.com/EFForg/action-center-platform/pull/365/files


<%= link_to 'Become
 a Member', '/index.html' %>

<%= link_to 'Explore
 Benefits', '/levels.html' %>

<%= link_to 'Circle
 Membership', '/circle.html' %>

Donor and
 Member Wall

Quick
 Donation

Frequently
 Asked Questions

<%= link_to 'Become
 a Member', '/index.html' %>

<%= link_to 'Explore
 Benefits', '/levels.html' %>

<%= link_to 'Circle
 Membership', '/circle.html' %>

Donor and
 Member Wall

Corporate
 Sponsors

Frequently
 Asked Questions

Update nav to add corporate sponsors in place of quick donate


  <%= form.label :full_name %>:

  <%= form.text_field :full_name %>

  <%= form.label :email_address %>:

  <%= form.email_field :email_address %> We hate spam too!

  <%= form.label :address_line_1 %>:

  <%= form.text_field :address_line_1 %>

  <%= form.label :address_line_2 %>:

  <%= form.text_field :address_line_2 %>

  <%= form.label :town_city, 'Town/city' %>:

  <%= form.text_field :town_city %>

  <%= form.label :county %>:

  <%= form.text_field :county %>

  <%= form.label :postcode %>:

  <%= form.text_field :postcode %>

  Please contact us for a delivery quote if your
  country is not provided in the list below.

  <%= form.label :country_id %>:

  <%= collection_select :address, :country_id, @w.shipping_countries, :id, :name %>

  <%= form.label :phone_number %>:

  <%= form.phone_field :phone_number %>

  <%= form.label :full_name %>:

  <%= form.text_field :full_name, required: true %>

  <%= form.label :email_address %>:

  <%= form.email_field :email_address, required: true %> We hate spam too!

  <%= form.label :address_line_1 %>:

  <%= form.text_field :address_line_1, required: true %>

  <%= form.label :address_line_2 %>:

  <%= form.text_field :address_line_2 %>

  <%= form.label :town_city, 'Town/city' %>:

  <%= form.text_field :town_city, required: true %>

  <%= form.label :county %>:

  <%= form.text_field :county %>

  <%= form.label :postcode %>:

  <%= form.text_field :postcode, required: true %>

  Please contact us for a delivery quote if your
  country is not provided in the list below.

  <%= form.label :country_id %>:

  <%= collection_select :address, :country_id, @w.shipping_countries, :id, :name %>

  <%= form.label :phone_number %>:

  <%= form.phone_field :phone_number %>

Use HTML5 required attribute in address form


  <%= image_tag "footer_logo.png", class: "footer-logo" %>
  Created by Code for America and the City of San Antonio.

Update image tag to the ruby way

Update image tag to the ruby way


    <%= link_to "Real State Web", '#', id: "logo" %>

<%= link_to "Home",   root_path %>

<%= link_to "Help",   '#' %>

        <% if current_user %>

Logged in as <%= link_to "#{current_user.email}", user_path(current_user.id) %>

        <%else%>

<%= link_to "iniciar sesión", :login %>

        <%end%>

<%= link_to "salir", :logout, method: :post %>

    <%= link_to "Real State Web", '#', id: "logo" %>

<%= link_to "Home",   root_path %>

<%= link_to "Help",   '#' %>

        <% if current_user %>

Logged in as <%= link_to "#{current_user.email}", user_path(current_user.id) %>

        <%else%>

<%= link_to "iniciar sesión", :login %>

        <%end%>
        <% if current_user %>

<%= link_to "salir", :logout, method: :post %>

        <%end%>

Add validation to show salir link whether curren_user exist.


Create <%= @document.type.titleize %>

  <%= render partial: "form", locals: {document: @document} %>
  <%= render partial: "govspeak_help" %>

Add govspeak helper to new document view as well as edit.


<% #TODO: Area necesita el autocompletar  %>
<%= simple_form_for  [:backend, resource] do |f| %>
  <%= f.association :area  %>
  <%= f.input :descripcion, input_html: {rows: "10"} %>
  <%= f.input :ingreso, as: :string, input_html: { class: 'datepicker' } %>
  <%= f.input :fojas  %>
  <%= f.input :expediente_id  %>

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

Add _form partial to customize the the pases edit and new page


Sign in

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

<%= f.label :email %>

  <%= f.email_field :email %>

<%= f.label :password %>

  <%= f.password_field :password %>

  <% if devise_mapping.rememberable? -%>

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

  <% end -%>

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

<% end %>

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

Sign in

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

<%= f.label :email %>

  <%= f.email_field :email %>

<%= f.label :password %>

  <%= f.password_field :password %>

  <% if devise_mapping.rememberable? -%>

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

  <% end -%>

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

<% end %>

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

Fix bug in session login

Fix bug in session login


<!DOCTYPE html>
<html>
  <head>
    <title><%= yield :title %> | GOV.UK</title>
    <%= javascript_include_tag "smart-answers", defer: true %>
    <%= yield :head %>
  </head>
<body class="mainstream">
  <div id="wrapper" class="answer smart_answer">
    <%= yield %>
  </div>
</body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title><%= yield :title %> - GOV.UK</title>
    <%= javascript_include_tag "smart-answers", defer: true %>
    <%= yield :head %>
  </head>
<body class="mainstream">
  <div id="wrapper" class="answer smart_answer">
    <%= yield %>
  </div>
</body>
</html>

Use hyphens instead of pipes in page titles


<!DOCTYPE html>

  <title>Project0861</title>
  <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />

  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>
  <%= stylesheet_link_tag    'application', media: 'all' %>

  <%= yield %>

<!DOCTYPE html>

  <title>Project0861</title>
  <link rel="stylesheet" href="//libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />

  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>
  <%= stylesheet_link_tag    'application', media: 'all' %>

  <%= yield %>

Remove http from javascript and style link


check process <%= @worker_name %>
  with pidfile /var/run/engineyard/dj/<%= @app_name %>/dj_<%= @worker_name %>.pid
  start program = "/engineyard/bin/dj <%= @app_name %> start <%= @framework_env %> <%= @worker_name %>" with timeout 60 seconds
  stop program = "/engineyard/bin/dj <%= @app_name %> stop <%= @framework_env %> <%= @worker_name %>" with timeout 60 seconds
  if totalmem is greater than 300 MB then restart # eating up memory?
  group dj_<%= @app_name %>

check process <%= @worker_name %>
  with pidfile /var/run/engineyard/dj/<%= @app_name %>/dj_<%= @worker_name %>.pid
  start program = "cd /home/deploy/current && bundle exec /engineyard/bin/dj <%= @app_name %> start <%= @framework_env %> <%= @worker_name %>" with timeout 60 seconds
  stop program = "cd /home/deploy/current && bundle exec /engineyard/bin/dj <%= @app_name %> stop <%= @framework_env %> <%= @worker_name %>" with timeout 60 seconds
  if totalmem is greater than 300 MB then restart # eating up memory?
  group dj_<%= @app_name %>

Update DJ cookbook to use bundle exec.

Update DJ cookbook to use bundle exec.


Build your call list

  <%= bootstrap_form_tag url: '/search', remote: true, layout: :inline do |p| %>
    <%= p.text_field :search, placeholder: 'Name (Susan Smith) or Phone (555-555-5555)', hide_label: true, class: 'search_form_input' %>
    <%= p.submit 'Search', class: 'btn btn-primary' %>
  <% end %>

Build your call list

  <%= bootstrap_form_tag url: '/search', remote: true, layout: :inline do |p| %>
    <%= p.text_field :search, placeholder: 'Name (Susan Smith) or Phone (555-555-5555)', hide_label: true, class: 'search_form_input' %>
    <%= p.button :class => "btn btn-primary" do %>

    <% end %>
  <% end %>

Replace 'search' text with search icon

Replace 'search' text with search icon


Nested Resources for All Tools

<% @tools.each do |tool| %>

<%= link_to tool.name, tool_path(tool.id) %> | <%= link_to "Show Resources (refactor with AJAX)", tool_path(tool.id), :class => 'btn-tools' %> | <%= link_to "Add Resource (AJAX)", new_resource_path(@resource), :class => 'btn-resources' %>

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

<%= link_to resource.name, resource_path(resource.id) %> | <%= link_to resource.url, resource_path(resource.id), :class => 'btn-resources' %>

<%= resource.summary %>

    <% end %>

<% end %>

Nested Resources for All Tools

<% @tools.each do |tool| %>

<%= link_to tool.name, tool_path(tool.id) %> | <%= link_to "Show Resources (refactor with AJAX)", tool_path(tool.id), :class => 'btn-tools' %> | <%= link_to "Add Resource (AJAX)", new_resource_path(@resource), :class => 'btn-resources' %>

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

<%= link_to resource.name, resource_path(resource.id) %> | <a href="<%= resource.url %>"><%= resource.url %>

<%= resource.summary %>

    <% end %>

<% end %>

Fix broken resource link to foreign url

Fix broken resource link to foreign url


check process sshd with pidfile /var/run/sshd.pid
  start program "/sbin/service sshd start"
  stop program "/sbin/service sshd stop"
  if failed port 22 protocol ssh then restart
  if 5 restarts within 5 cycles then timeout

Support Amazon Linux for ssh

Support Amazon Linux for ssh


<% content_for :heading do -%><%= t('myplaceonline.info.title') %><% end -%>

<%= t("myplaceonline.email") %>: <%= mail_to(t("myplaceonline.siteEmail")) %>

<%= t('myplaceonline.info.apk') %>: https://build.phonegap.com/apps/1133885/download/android/

Alert HTML

Add debug to info page

Add debug to info page


Profile

    <%= image_tag(@user.avatar_url) if @user.avatar? %>

    First Name:
<%= @user.first_name %>

    Last Name:
<%= @user.last_name %>

    Email:
<%= @user.email %>

    <a href=<%= edit_user_registration_path %>>edit

Reviews:

		<% @reviews.each do |review| %>

<%= link_to "#{review.body}", review_show_path(review) %>

		<% end %>

<% if current_user %>
	<%= button_to "Submit a Company", new_submission_path, method: "get" %>
<% end %>

Profile

    <%= image_tag(@user.avatar_url) if @user.avatar? %>

    First Name:
<%= @user.first_name %>

    Last Name:
<%= @user.last_name %>

    Email:
<%= @user.email %>

    <a href=<%= edit_user_registration_path %>>edit
    <% if current_user %>
      <%= button_to "Submit a New Company", new_submission_path, method: "get",:class => "btn btn-primary" %>
    <% end %>

Reviews:

		<% @reviews.each do |review| %>

<%= link_to "#{review.body}", review_show_path(review) %>

		<% end %>

        Company
        Review

    <% @reviews.each do |review| %>
      Eclair
      <%= link_to "#{review.body}", review_show_path(review) %>
    <% end %>

Add new table in the user prof.

Add new table in the user prof.


<% content_for :subheader do %>

People

A collection of creative talent from Puerto Rico

<% end %>

      <% @users.in_groups_of(3) do |group| %>

          <% group.compact.each do |user| %>
            <%= render 'user_card', user: user %>
          <% end %>

      <% end %>

  <%= paginate @users %>

Update paginator to look kawaii

Update paginator to look kawaii


  	<%= image_tag("white_logo.png")%>

    <% if current_user %>

+

LOGOUT

PROFILE

    <% else %>

SIGN UP

LOGIN

    <% end %>

Update href for login and logout buttons


*/30 * * * * blogs /usr/local/bin/pluto -c /srv/blogs.openstreetmap.org build -d /srv/blogs.openstreetmap.org -t osm -o /srv/blogs.openstreetmap.org/build /srv/blogs.openstreetmap.org/planet.yml

*/30 * * * * blogs /usr/local/bin/pluto -c /srv/blogs.openstreetmap.org build -d /srv/blogs.openstreetmap.org -t osm -o /srv/blogs.openstreetmap.org/build /srv/blogs.openstreetmap.org/planet.ini

Update blogs to use planet.ini

Update blogs to use planet.ini


    <% flash.each do |type, message| %>
      <%= render Alerts::FlashComponent.new(type: type, message: message) %>
    <% end %>

Feature: Move alerts closer to view port right edge

Because:
* It looks more natural as an alert notification when not constrained to the page container.


#= require jquery
#= require jquery_ujs
#= require turbolinks
#= require graph_starter/underscore
#= require semantic-ui/api
#= require semantic-ui/rating
#= require semantic-ui/search
#= require semantic-ui/transition
#= require semantic-ui/dropdown

spinner_timeout_id = null

ready = ->
  $('#loading-spinner').hide()
  if spinner_timeout_id?
    window.clearTimeout(spinner_timeout_id)
    spinner_timeout_id = null

  $("img").error ->
    console.log 'imgError!!!!'

    img = $(@)

    img.attr('src', <%= asset_path("missing.png").to_json %>)
    img.css('padding', '40px')
    img.insertBefore("")
    img.unbind('error')

  $('.message > .close').on 'click', ->
    $(@).closest('.message').transition('fade')

$(document).ready ready
$(document).on 'page:load', ready

$(document).on 'page:fetch', (e) ->
  spinner_timeout_id = window.setTimeout ->
    $('#loading-spinner').css 'display', 'inline-block'
  , 300

#= require jquery
#= require jquery_ujs
#= require turbolinks
#= require graph_starter/underscore
#= require semantic-ui/api
#= require semantic-ui/rating
#= require semantic-ui/search
#= require semantic-ui/transition
#= require semantic-ui/dropdown

spinner_timeout_id = null

ready = ->
  $('#loading-spinner').hide()
  if spinner_timeout_id?
    window.clearTimeout(spinner_timeout_id)
    spinner_timeout_id = null

  $("img").error ->
    console.log 'imgError!!!!'

    img = $(@)

    img.attr('src', <%= asset_path("missing.png").to_json %>)
    img.css('padding', '40px')
    img.insertBefore("")
    img.unbind('error')

  $('.message > .close').on 'click', ->
    $(@).closest('.message').transition('fade')

  # Make sure page is in the right place when an anchor is clicked
  # See: https://github.com/twbs/bootstrap/issues/1768
  shiftWindow = -> scrollBy(0, -50)
  shiftWindow() if location.hash
  window.addEventListener('hashchange', shiftWindow)

$(document).ready ready
$(document).on 'page:load', ready

$(document).on 'page:fetch', (e) ->
  spinner_timeout_id = window.setTimeout ->
    $('#loading-spinner').css 'display', 'inline-block'
  , 300


<% components.each_with_index do |component, idx| %>
  <% id = "#{component.class.name.underscore}-#{idx}-#{component.id || 'new'}" %>
  <% css_class = attributes_errors?(component, component.content_attributes) ? 'active accordion-error' : '' %>
  <li class="accordion-navigation <%= css_class %>">
    <%= link_to "##{id}", class: 'accordion-link' do %>
      <%= image_tag asset_path(component.icon) %>
      <%= component.class.localize_name %>
    <% end %>

      <%= link_to t(:remove_component), '#', id: "delete-#{id}", class: 'button tiny right radius remove-component' %>

    <%= render 'cms/content_components/component_fields', component: component, component_idx: idx %>
    <% if component.content_attributes.present? %>
      <div id="<%= id %>" class="content">
        <%= render 'cms/content_components/attribute_fields', component: component, component_idx: idx %>

    <% end %>

<% end %>

<% components.each_with_index do |component, idx| %>
  <% id = "#{component.class.name.underscore}-#{idx}-#{component.id || 'new'}" %>
  <% css_class = attributes_errors?(component, component.content_attributes) ? 'active accordion-error' : '' %>
  <li class="accordion-navigation <%= css_class %>">
    <%= link_to "##{id}", class: 'accordion-link' do %>
      <%= image_tag component.icon %>
      <%= component.class.localize_name %>
    <% end %>

      <%= link_to t(:remove_component), '#', id: "delete-#{id}", class: 'button tiny right radius remove-component' %>

    <%= render 'cms/content_components/component_fields', component: component, component_idx: idx %>
    <% if component.content_attributes.present? %>
      <div id="<%= id %>" class="content">
        <%= render 'cms/content_components/attribute_fields', component: component, component_idx: idx %>

    <% end %>

<% end %>

Revert "use asset_path helper to render component icons"

This reverts commit f35d999b36cb11d580912e2eb5a6938bac123d27.


$('#group_results').html('<%= escape_javascript render(partial: 'select_group') %>')
$('#add_group').show();

$('#group_results').html('<%= escape_javascript render(partial: 'select_group') %>')
if ( $('#group_results').html() == '' ) $('#add_group').hide(); else $('#add_group').show();

Remove "Add" button when no groups are returned by search.


  <%= simple_form_for @order do |f| %>

Shipper

    <%= f.simple_fields_for :shipper do |shipper| %>
      <%= shipper.input :first_name %>
      <%= shipper.input :last_name %>

      <%= shipper.fields_for :address do |address| %>
        <%= address.input :address_type, collection: Address.address_types.keys.to_a, selected: "residence" %>
        <%= address.input :street_address %>
        <%= address.input :second_address %>
        <%= address.input :zip %>
      <% end %>

      <%=shipper.fields_for :phone do |phone| %>
        <%= phone.input :phone_type, collection: Phone.phone_types.keys.to_a, selected: 'mobile' %>
        <%= phone.input :phone_number, as: :tel %>
        <%= phone.input :ext, as: :tel %>
      <% end %>
    <% end %>

Recipient

    <%= f.simple_fields_for :recipient do |recipient| %>
      <%= recipient.input :first_name %>
      <%= recipient.input :last_name %>

      <%= recipient.fields_for :phone do |phone| %>
        <%= phone.input :phone_type, collection: Phone.phone_types.keys.to_a, selected: 'mobile' %>
        <%= phone.input :phone_number, as: :tel %>
        <%= phone.input :ext, as: :tel %>
      <% end %>

      <%= recipient.fields_for :address do |address| %>
        <%= address.input :address_type, collection: Address.address_types.keys.to_a, selected: "residence" %>
        <%= address.input :street_address %>
        <%= address.input :second_address %>
        <%= address.input :zip %>
      <% end %>
    <% end %>

Service

    <%= f.input :service_id, collection: Service.all, label_method: :service_name, selected: "ASAP" %>
    <%= f.input :special_instructions, as: :text %>
    <%= f.input :number_of_items, as: :integer %>
    <%= f.input :estimated_weight, as: :integer %>
    <%= f.input :signature_requirement, collection: Order.signature_requirements.to_a, selected: "No Signature" %>
    <%= f.input :shipping_reference %>
    shipping_reference

    <%= f.button :submit %>

  <% end %>

Add form for creating new orders

Add form for creating new orders


<%= @question.title %>

<%= @question.content.html_safe %>

	<% if @question.answerable? %>
	<%= render "answers/form" %>
	<% end %>

Answers

		<%= render @question.answers.select(&:persisted?) %>

<%= @question.title %>

<%= @question.content.html_safe %>

	<%= render "answers/form" %>

Answers

		<%= render @question.answers.select(&:persisted?) %>

Remove check to see if the question is answerable before rendering the form


<%= link_to t('forem.forum.forums'), forem.forums_path %> » <%= link_to forum.category, [forem, forum.category] %> » <%= link_to forum.title, [forem, forum] %>

  <%= forum.description %>
  <menu id='forum_topic_links'>
    <% unless @topic.try(:new_record?) %>
      <% if can? :create_topic, @forum %>
        <%= link_to t('forem.topic.links.new'), forem.new_forum_topic_path(forum) %>
      <% end %>
    <% end %>
    <% if @topic %>
      <%= link_to t('forem.topic.links.back_to_topics'), forem.forum_path(forum) %>
    <% end %>
    <% if can? :moderate, @forum %>
      <%= link_to t('forem.forum.moderator_tools'), forem.forum_moderator_tools_path(forum) %>
    <% end %>
  </menu>

<%= link_to t('forem.forum.forums'), forem.root_path %> » <%= link_to forum.category, [forem, forum.category] %> » <%= link_to forum.title, [forem, forum] %>

  <%= forum.description %>
  <menu id='forum_topic_links'>
    <% unless @topic.try(:new_record?) %>
      <% if can? :create_topic, @forum %>
        <%= link_to t('forem.topic.links.new'), forem.new_forum_topic_path(forum) %>
      <% end %>
    <% end %>
    <% if @topic %>
      <%= link_to t('forem.topic.links.back_to_topics'), forem.forum_path(forum) %>
    <% end %>
    <% if can? :moderate, @forum %>
      <%= link_to t('forem.forum.moderator_tools'), forem.forum_moderator_tools_path(forum) %>
    <% end %>
  </menu>

Use root_path and not forums_path in forums/_head

Fixes #276


<%= content_tag_for :article, @organisation do %>

<%= @organisation.name %>

<% end %>

<% if @organisation.published_policies.any? %>

Policies

    <% @organisation.published_policies.each do |policy| %>
      <%= content_tag_for(:li, policy) do %>
        <%= link_to policy.title, document_path(policy.document_identity), title: "View #{policy.title}" %>
      <% end %>
    <% end %>

<% end %>

<% if @organisation.published_publications.any? %>

Publications

    <% @organisation.published_publications.each do |publication| %>
      <%= content_tag_for(:li, publication) do %>
        <%= link_to publication.title, document_path(publication.document_identity), title: "View #{publication.title}" %>
      <% end %>
    <% end %>

<% end %>

<% if @organisation.roles.any? %>

Ministers

    <% @organisation.roles.each do |role| %>
      <%= content_tag_for(:li, role) do %>

<%= role.name %>

        <% if role.person %>

<%= role.person.name %>

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

<% end %>

<%= content_tag_for :article, @organisation do %>

<%= @organisation.name %>

<% end %>

<%= render partial: "documents/policies", object: @organisation.published_policies %>
<%= render partial: "documents/publications", object: @organisation.published_publications %>

<% if @organisation.roles.any? %>

Ministers

    <% @organisation.roles.each do |role| %>
      <%= content_tag_for(:li, role) do %>

<%= role.name %>

        <% if role.person %>

<%= role.person.name %>

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

<% end %>

Use partials to show organisation policies and publications


<%= form_for ([@language, @query]), :url => "/languages/#{@language.id}/queries/bing" do |f| %>
	<%= f.label :title %>
  <%= f.text_field :title %>

   from: english

   to: <%= @language.lingua %>

   <%= label_tag(:english, "text to translate:") %>

   <%= f.text_area :english, :rows => 4 %>

   <%= submit_tag("Post Query") %>
<% end %>

Add space to bottom of form

Add space to bottom of form


#!<%= ENV["SHELL"] || "/bin/bash" %>
<%= tmux %> start-server\; has-session -t <%= name %> 2>/dev/null

if [ "$?" -eq 1 ]; then
  cd <%= root || "." %>

  # Run pre command.
  <%= pre %>

  # Create the session and the first window.
  <%= tmux %> new-session -d -s <%= name %> -n <%= windows.first.name %>

  # Set the default path.
  <%= tmux %> set-option -t <%= name %> default-path <%= root -%> 1>/dev/null

  # Create other windows.
  <%- windows.drop(1).each do |window| -%>
  <%= window.tmux_new_window_command %>
  <%- end -%>

  <%- windows.each do |window| -%>

  # Window "<%= window.name %>"
    <%- unless window.panes? -%>
  <%= window.tmux_pre_window_command %>
  <%= window.tmux_main_command %>
    <%- else -%>
      <%- window.panes.each do |pane| -%>
  <%= pane.tmux_pre_window_command %>
  <%= pane.tmux_pre_command %>
  <%= pane.tmux_main_command %>

      <%- unless pane.last? -%>
  <%= pane.tmux_split_command %>
      <%- end -%>
    <%- end -%>

  <%= window.tmux_layout_command %>
  <%= window.tmux_select_first_pane %>
    <%- end -%>
  <%- end -%>

  <%= tmux %> select-window -t <%= base_index %>
fi

<%= tmux %> -u attach-session -t <%= name %>

#!<%= ENV["SHELL"] || "/bin/bash" %>
<%= tmux %> start-server\; has-session -t <%= name %> 2>/dev/null

if [ "$?" -eq 1 ]; then
  cd <%= root || "." %>

  # Run pre command.
  <%= pre %>

  # Create the session and the first window.
  <%= tmux %> new-session -d -s <%= name %> -n <%= windows.first.name %>

  # Set the default path.
  <%= tmux %> set-option -t <%= name %> default-path <%= root -%> 1>/dev/null

  # Create other windows.
  <%- windows.drop(1).each do |window| -%>
    <%= window.tmux_new_window_command %>
  <%- end -%>

  <%- windows.each do |window| -%>

  # Window "<%= window.name %>"
    <%- unless window.panes? -%>
      <%= window.tmux_pre_window_command %>
      <%= window.tmux_main_command %>
    <%- else -%>
      <%- window.panes.each do |pane| -%>
        <%= pane.tmux_pre_window_command %>
        <%= pane.tmux_pre_command %>
        <%= pane.tmux_main_command %>

      <%- unless pane.last? -%>
        <%= pane.tmux_split_command %>
      <%- end -%>

      <%= window.tmux_layout_command %>
    <%- end -%>

      <%= window.tmux_select_first_pane %>
    <%- end -%>
  <%- end -%>

  <%= tmux %> select-window -t <%= base_index %>
fi

<%= tmux %> -u attach-session -t <%= name %>

Set tmux layout after each pane creation

The tmux layout need to be set after each pane creation in order to prevent the lack of space and a "create pane failed: pane too small" error


Welcome to Pizza Shop

  		<% @products.each do |product| %>

	  			<a href="/product/<%= product.id %>"><%= product.title %>

	  			<img src="<%= product.path_to_image %>" class="img-thumbnail img-responsive" alt="<%= product.title %>">

	  			<%= product.description %>

	  			Size: <%= product.size %> cm

	  			Price: <%= product.price %> rub

  		<% end %>

<button class="btn btn-primary" onclick="something()">Click me!</button>

Change col size to small

Change col size to small


class SquasherClean < ActiveRecord::Migration
  class SchemaMigration < ActiveRecord::Base
  end

  def up
    migrations = Dir.glob(File.join(File.dirname(__FILE__), '**.rb'))
    versions = migrations.map { |file| file.split('/').last[/\A\d+/] }
    SchemaMigration.where("version NOT IN (?)", versions).delete_all
  end

  def down
  end
end

class SquasherClean < ActiveRecord::Migration
  class SchemaMigration < ActiveRecord::Base
  end

  def up
    migrations = Dir.glob(File.join(File.dirname(__FILE__), '*.rb'))
    versions = migrations.map { |file| File.basename(file)[/\A\d+/] }
    SchemaMigration.where("version NOT IN (?)", versions).delete_all
  end

  def down
  end
end

Use a platform-agnostic means for extracting the file name from a path and fix a typo


server {
    listen   8000;

    server_name localhost;

    access_log /var/log/nginx/access_nailgun.log;
    error_log /var/log/nginx/error_nailgun.log debug;

    charset utf-8;
    client_max_body_size 10M;

    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

    gzip on;
    gzip_min_length 1000;
    gzip_types text/plain application/json;

    location /static {
        autoindex on;
        alias <%= @staticdir %>;
    }

    location /dump {
        alias <%= @logdumpdir %>;
    }

    location ~ ^/ostf/(.*) {
        proxy_pass http://<%= @ostf_host %>:8777/v1/$1;
        proxy_buffering off;
    }

    location ~ ^/keystone/(.*) {
        proxy_pass http://<%= @keystone_host %>:5000/$1;
        proxy_buffering off;
    }

    location / {
        root <%= @staticdir %>;
    }

    location /api {
        include uwsgi_params;
        uwsgi_pass <%= @nailgun_host %>:8001;
        client_max_body_size 100m;
    }
}

server {
    listen   8000;

    server_name localhost;

    access_log /var/log/nginx/access_nailgun.log;
    error_log /var/log/nginx/error_nailgun.log debug;

    charset utf-8;
    client_max_body_size 10M;

    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

    gzip on;
    gzip_min_length 1000;
    gzip_types text/plain application/json;

    location /static {
        autoindex on;
        alias <%= @staticdir %>;
    }

    location /dump {
        alias <%= @logdumpdir %>;
    }

    location ~ ^/ostf/(.*) {
        proxy_pass http://<%= @ostf_host %>:8777/v1/$1;
        proxy_buffering off;
    }

    location ~ ^/keystone/(.*) {
        proxy_pass http://<%= @keystone_host %>:5000/$1;
        proxy_set_header Host $host;
        proxy_buffering off;
    }

    location / {
        root <%= @staticdir %>;
    }

    location /api {
        include uwsgi_params;
        uwsgi_pass <%= @nailgun_host %>:8001;
        client_max_body_size 100m;
    }
}

Set "Host" header when proxying to Keystone

Nginx has to set correct "Host" header when proxying requests to Keystone,
because Keystone uses it during self auto-discovering.

Change-Id: I862c30b6b8021706284ebe1e197e3beabfc4294d
Closes-Bug: #1405190


## Install and Use Builder On-Premises

In addition to our hosted service, we also support installing and running a Habitat Builder Depot on-premises, using your own network and infrastructure, which allows you to choose from a wider selection of authentication providers and to manage how Builder fits into your existing CI/CD processes.

Currently, our on-premises Builder depot only stores packages for download and upload by Supervisors and Studios. We do intend to bring the full capabilities of Habitat Builder to our on premises option in the future.

For a detailed explanation of features, requirements and setup instructions, [see the GitHub repository](https://github.com/habitat-sh/on-prem-builder).

## Install and Use Builder On-Premises

In addition to our hosted service, we also support installing and running a Habitat Builder Depot on-premises, using your own network and infrastructure, which allows you to choose from a wider selection of authentication providers and to manage how Builder fits into your existing CI/CD processes.

Currently, our on-premises Builder depot only stores packages for download and upload by Supervisors and Studios. We intend to bring the full capabilities of Habitat Builder to our on premises option in the future.

For a detailed explanation of features, requirements and setup instructions, [see the GitHub repository](https://github.com/habitat-sh/on-prem-builder).

Tweak wording per PR feedback

Tweak wording per PR feedback

Just addressing
https://github.com/habitat-sh/habitat/pull/5552#discussion_r215594063
to close the PR out since @nellshamrell is currently on PTO.

Signed-off-by: Christopher Maier <b4598f17a90ef80817bae8ad6c37249740caafb4@chef.io>


<!DOCTYPE html>

    <title>Factlink</title>
    <%= stylesheet_link_tag "style" %>

    <%= stylesheet_link_tag "frontend" %>
    <%= stylesheet_link_tag "grid" %>
    <%= stylesheet_link_tag "bootstrap/bootstrap" %>
    <%= stylesheet_link_tag "popup" %>

    <%= javascript_include_tag "modernizr-2.0.6.min" %>

				<%= render "users/account_block", target: "_blank" %>

			<%= render 'home/notifications', notice: notice, alert: alert %>

  	  <%= yield %>

  <%= javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" %>

  <%= javascript_include_tag "bootstrap-alert" %>

Include jQuery and Bootstrap Alert in the popup, set the alert on the alert message


Persona: <%= @person.name %>

        Short name:
        <%= @person.short_name %>

      <%= render '/shared/needs_work' %>

Relaciones

      <%= render "shared/entities_list", :list => @relations %>

Fotos

      <% @person.related_photos.each do |photo| %>
        <%= render 'shared/show_photo', :photo => photo %>
      <% end %>

        <%= link_to 'Back', people_path %>

Persona: <%= @person.name %>

        Short name:
        <%= @person.short_name %>

      <%= render '/shared/needs_work' %>

Relaciones

      <%= render "shared/entities_list", :list => @relations %>

Fotos

      <% @person.related_photos.each do |photo| %>
        <%= render 'shared/show_photo', :item => photo %>
      <% end %>

        <%= link_to 'Back', people_path %>

Fix person page with related photos

Fix person page with related photos


All Bloggers

        <%= will_paginate @user, renderer: MaterializeRenderer %>

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

            <%= link_to gravatar_for(user, size: 1000), user_path(user) %>

@<%= user.username %>

                <stong><%= pluralize(user.articles.count, "article") if user.articles%></stong>

    <% end %>

        <%= will_paginate @user, renderer: MaterializeRenderer %>

All Bloggers

        <%= will_paginate @user, renderer: MaterializeRenderer %>

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

            <%= link_to gravatar_for(user, size: 1000), user_path(user) %>

@<%= user.username %>

                <stong><%= pluralize(user.articles.count, "article") if user.articles%></stong>

                    <% if logged_in? && current_user.admin? %>
                        <%= link_to "Delete User", user_path(user),
                                method: :delete,
                                data: { confirm: "Are you sure you want to delete this article?" },
                                class: "btn-danger mdl-button mdl-js-button mdl-button--raised mdl-button--accent mdl-js-ripple-effect" %>
                    <% end %>

    <% end %>

        <%= will_paginate @user, renderer: MaterializeRenderer %>

Add delete button to the user cards in index view

Only admin user will see this button


[alias]
  co = checkout
  st = status
  co = checkout
  sub = submodule
  br = branch
  bl = blame
[apply]
  whitespace = nowarn
[color]
  branch = auto
  diff = auto
  status = auto
[color "branch"]
  current = yellow reverse
  local = yellow
  remote = green
[color "diff"]
  meta = yellow bold
  frag = magenta bold
  old = red bold
  new = green bold
[color "status"]
  added = green
  changed = yellow
  untracked = cyan
[core]
  excludesfile = ~/.gitignore
  editor = vim
  autocrlf = input
[format]
  pretty = %C(yellow)%h%Creset %s %C(red)(%cr)%Creset
[user]
  name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
  email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[github]
  user = <%= print("GitHub Username: "); STDOUT.flush; STDIN.gets.chomp %>
  token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>

Remove GitHub Token API directive

Remove GitHub Token API directive

The new GitHub API does not use token authentication


       <% link_to '/' do %>
         <%= image_tag 'Between_Screens_Logo_Cube_Up.svg', alt: 'Logo cube' %>
       <% end %>

<%= link_to 'fork!', 'https://github.com/vis-kid/betweenscreens' %>

<%= link_to 'about', '/pages/about.html' %>

<%= link_to 'design', '/design.html' %>

<%= link_to 'code', '/code.html' %>

       <% link_to '/' do %>
         <%= image_tag 'Between_Screens_Logo_Cube_Up.svg', alt: 'Logo cube' %>
       <% end %>

<%= link_to 'fork!', 'https://github.com/vis-kid/betweenscreens' %>

<%= link_to '/about', '/pages/about.html' %>

<%= link_to '/design', '/design.html' %>

<%= link_to '/code', '/code.html' %>

Add slashes to navbar links

Add slashes to navbar links


  <%@lits.each do |lit|%>

      <%user_id = lit.pluck(:user_id)%>

<%= @user.find_by(id: user_id).pluck(user_name)%>

<%= lit.pluck(:lit_text)%>

  <%end%>

Add list of lits with users lines 1-10

Add list of lits with users lines 1-10


# Written by Chef
*** Targets ***

probe = FPing

## You have to edit and uncomment all what you want below this.
# Please, refer to smokeping_config man page for more info
# The given adresses aren't real to avoid DoS.

menu = Top
title = Smokeping Network Latency Grapher
remark = Welcome to the SmokePing website of <%= node['smokeping']['site_remark_owner'] %>

<% @nodes.map{|n| n["datacenter"]}.uniq.reject{|n| n.to_s == ""}.each do |datacenter| %>
+ <%= datacenter %>
menu = <%= datacenter %>
title = <%= datacenter %>

  <% @nodes.sort{|a,b| a['fqdn'].to_s <=> b['fqdn'].to_s}.each do |node| %>
    <% if node["fqdn"] && node["datacenter"] == datacenter %>
  ++ <%= node["fqdn"].gsub('.','_') %>
  host = <%= node["fqdn"] %>

    <% end %>
  <% end %>

<% end %>

# Written by Chef
*** Targets ***

probe = FPing

menu = Top
title = Smokeping Network Latency Grapher
remark = Welcome to the SmokePing website of <%= node['smokeping']['site_remark_owner'] %>

<% @nodes.map{|n| n.chef_environment}.uniq.reject{|n| n.to_s == ""}.each do |environment| %>
+ <%= environment %>
menu = <%= environment %>
title = <%= environment %>

  <% @nodes.sort{|a,b| a['fqdn'].to_s <=> b['fqdn'].to_s}.each do |node| %>
    <% if node["fqdn"] && node.chef_environment == chef_environment %>
  ++ <%= node["fqdn"].gsub('.','_') %>
  host = <%= node["fqdn"] %>

    <% end %>
  <% end %>

<% end %>

Switch from "datacenter" attribute to chef_environment

datacenter was specific to Limelight when we used this.  Switch to a
more generic form so the config is sorta by environment


# <%= schema.title %>
<% schema.resources.each do |resource| %>
* <%= resource.hyperlink %>
<% resource.links.each do |link| %>
 * <%= link.hyperlink %>
<% end %>
<% end %>

<% schema.resources.each do |resource| %>
## <%= resource.title %>
<%= resource.description %>

### Properties
<% resource.properties.each do |property| %>
* <%= property.name %> - <%= property.description %>
<% property.options.each do |key, value| %>
 * <%= key %>: <%= value %>
<% end %>
<% end %>

<% resource.links.each do |link| %>
### <%= link.endpoint %>
<%= link.description %>

```
<%= link.method %> <%= link.path %> HTTP/1.1
<%= "Content-Type: application/json\n" if link.has_request_body? -%>
Host: <%= schema.host_with_port %>
<%= "\n" + link.request_body if link.has_request_body? -%>
```

```
HTTP/1.1 <%= link.response_status %>
Content-Type: application/json

<%= link.response_body %>
```

<% end %>
<% end %>

# <%= schema.title || "API" %>
<% schema.resources.each do |resource| %>
* <%= resource.hyperlink %>
<% resource.links.each do |link| %>
 * <%= link.hyperlink %>
<% end %>
<% end %>

<% schema.resources.each do |resource| %>
## <%= resource.title %>
<%= resource.description %>

### Properties
<% resource.properties.each do |property| %>
* <%= property.name %> - <%= property.description %>
<% property.options.each do |key, value| %>
 * <%= key %>: <%= value %>
<% end %>
<% end %>

<% resource.links.each do |link| %>
### <%= link.endpoint %>
<%= link.description %>

```
<%= link.method %> <%= link.path %> HTTP/1.1
<%= "Content-Type: application/json\n" if link.has_request_body? -%>
Host: <%= schema.host_with_port %>
<%= "\n" + link.request_body if link.has_request_body? -%>
```

```
HTTP/1.1 <%= link.response_status %>
Content-Type: application/json

<%= link.response_body %>
```

<% end %>
<% end %>

Put "API" if top-level title property does not exist


Website-specific Components

<%= styleguide_section sections['link-list-primary'] do %>
  <%= render 'styleguide/shared/link_list_primary' %>
<% end %>

<%= styleguide_section sections['related categories'] do %>
  <% render 'shared/related_categories', categories: @categories %>
<% end %>

<%= styleguide_section sections['related link'] do %>
  <%= render 'shared/related_links', categories: @categories %>
<% end %>

<%= styleguide_section sections['Opt out bar'] do %>
  <%= render 'shared/opt_out_bar' %>
<% end %>

<%= styleguide_section sections['Primary Navigation'] do %>
  <%= render 'shared/primary_nav' %>
<% end %>

<%= styleguide_section sections['Footer Site Links'] do %>
  <%= render 'shared/footer_site_links', locals: %w(en) %>
<% end %>

<%= styleguide_section sections['Social Links'] do %>
  <%= render 'shared/social_links' %>
<% end %>

<%= styleguide_section sections['Footer Social Links'] do %>

    <%= render 'shared/footer_social_links' %>

<% end %>

<%= styleguide_section sections['home_contact'] do %>
    <%= render 'shared/home_contact' %>
<% end %>

<%= styleguide_section sections['contact'] do %>
  <%= render 'shared/contact' %>
<% end %>

Website-specific Components

<%= styleguide_section sections['link-list-primary'] do %>
  <%= render 'styleguide/shared/link_list_primary' %>
<% end %>

<%= styleguide_section sections['related categories'] do %>
  <% render 'shared/related_categories', categories: @categories %>
<% end %>

<%= styleguide_section sections['related link'] do %>
  <%= render 'shared/related_links', categories: @categories %>
<% end %>

<%= styleguide_section sections['Opt out bar'] do %>
  <%= render 'shared/opt_out_bar' %>
<% end %>

<%= styleguide_section sections['Primary Navigation'] do %>
  <%= render 'shared/primary_nav' %>
<% end %>

<%= styleguide_section sections['Footer Site Links'] do %>
  <%= render 'shared/footer_site_links', locals: %w(en) %>
<% end %>

<%= styleguide_section sections['Social Links'] do %>
  <%= render 'shared/social_links' %>
<% end %>

<%= styleguide_section sections['Footer Social Links'] do %>

    <%= render 'shared/footer_social_links' %>

<% end %>

<%= styleguide_section sections['home_contact'] do %>
    <%= render 'shared/home_contact' %>
<% end %>

<%= styleguide_section sections['contact'] do %>
  <%= render 'shared/contact' %>

<%= styleguide_section sections['Trust banner'] do %>
    <%= render 'shared/trust_banner' %>
<% end %>

Add trust banner to KSS components page

Add trust banner to KSS components page


Projects

Lorem ipsum dolor sit amet consectetur.

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

                <% link_to project.link, class: 'portfolio-link' do %>

                    <%= image_tag project.logo, class: 'img-responsive', alt: project.name %>
                <% end %>

<%= project.name %>

<%= project.tagline %>

            <% end %>

Our Projects

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

                <% link_to project.link, class: 'portfolio-link' do %>

                    <%= image_tag project.logo, class: 'img-responsive', alt: project.name %>
                <% end %>

<%= project.name %>

<%= project.tagline %>

            <% end %>

Update project title and remove subtitle