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

      <td colspan="<%= active_scaffold_config.list.columns.length + 1 -%>" class="messages-container">
        <%= render :partial => 'list_messages' %>

  <tbody class="records" id="<%= active_scaffold_tbody_id %>">
    <% if !@records.empty? -%>
      <%= render :partial => 'list_record', :collection => @page.items, :locals => { :hidden => false } %>
    <% end -%>
    <% if active_scaffold_config.list.columns.any? {|c| c.calculation?} -%>
      <%= render :partial => 'list_calculations' %>
    <% end -%>

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

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

      <td colspan="<%= active_scaffold_config.list.columns.length + (active_scaffold_config.list.mark_records ? 2 : 1) -%>" class="messages-container">
        <%= render :partial => 'list_messages' %>

  <tbody class="records" id="<%= active_scaffold_tbody_id %>">
    <% if !@records.empty? -%>
      <%= render :partial => 'list_record', :collection => @page.items, :locals => { :hidden => false } %>
    <% end -%>
    <% if active_scaffold_config.list.columns.any? {|c| c.calculation?} -%>
      <%= render :partial => 'list_calculations' %>
    <% end -%>

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

Fix colspan with mark records enabled

Fix colspan with mark records enabled


Hi,

you've been selected to review <%= reviewee %>'s commit!

<%= url %>

Thanks,
Hyper

Hi,

you've been selected to review <%= reviewee %>'s commit!

<%= url %>

Please note that you will have to add yourself to the repository's team before
you can access it on GitLab.

Thanks,
Hyper

Add a note about teams and permissions

Add a note about teams and permissions


It seems you've tried to access an event with the wrong URL.
<% if event_link %>
  Please try <%= event_link %>
<% else %>
  Could not generate a valid link for you. Please notify your system administrator.
<% end %>

It seems you've tried to access an event with the wrong URL.
<% if defined?(event_link) %>
  Please try <%= event_link %>
<% else %>
  Could not generate a valid link for you. Please notify your system administrator.
<% end %>

Handle undefined local for missing event


<svg xmlns="http://www.w3.org/2000/svg" width="91" height="20">
  <linearGradient id="b" x2="0" y2="100%">
    <stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
    <stop offset="1" stop-opacity=".1"/>
  </linearGradient>

  <mask id="a">
    <rect width="91" height="20" rx="3" fill="#fff"/>
  </mask>

  <g mask="url(#a)">
    <path fill="#555" d="M0 0h37v20H0z"/>
    <path fill="#4c1" d="M37 0h54v20H37z"/>
    <path fill="url(#b)" d="M0 0h91v20H0z"/>
  </g>

  <g fill="#fff" text-anchor="middle">
    <g font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
      <text x="18" y="15" fill="#010101" fill-opacity=".3">build</text>
      <text x="18" y="14">build</text>
      <text x="63" y="15" fill="#010101" fill-opacity=".3">success</text>
      <text x="63" y="14">success</text>
    </g>
  </g>
</svg>

Add generic SVG badge template

Add generic SVG badge template


<%= content_for :page_title, "Withdraw - #{@artefact.name}" %>
<%= render partial: "artefact_header" %>

Careful!

This will remove <%= @artefact.name %> from the website.

Once you've unpublished you can't change your mind.

  <%= button_to 'Withdraw',
                artefact_path(@artefact),
                :method => "delete",
                :class => "btn btn-danger" %>

<%= content_for :page_title, "Withdraw - #{@artefact.name}" %>
<%= render partial: "artefact_header" %>

    Warning

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

  <%= semantic_bootstrap_nested_form_for(@artefact,
                                         html: {
                                           class: 'artefact',
                                           id: 'withdraw_artefact',
                                           method: "delete"
                                         }) do |f| %>

Withdraw

        <%= f.input :redirect_url, class: "form-control input-md-6",
          label: ('Redirect to (optional)
' +
                  'For example: /government/organisations/hm-revenue-customs').html_safe%>
        <%= button_tag 'Withdraw',
                       "data-module" => 'confirm',
                       "data-message" => "This will remove ‘#{@artefact.name}’ from the website.\n\n Are you sure?",
                       :class => "btn btn-danger" %>

  <% end %>

Change Withdraw UI to optionally accept a redirect


Pension Guidance

Your money, your retirement

Remove layout from header partial

Remove layout from header partial


<!DOCTYPE html>

    <title><%= full_title(yield(:title)) %></title>
    <%= render 'layouts/stylesheets' %>
    <%= javascript_include_tag "application" %>
    <%= csrf_meta_tags %>

      <%= render 'layouts/header' %>

      <% flash.each do |key, value| %>
        <%= content_tag(:div, value, class: "flash #{key}") %>
      <% end %>
      <%= yield %>

      <%= render 'layouts/footer' %>
      <%= "" if Rails.env.development? %>

Fix SSL certificate issues with MathJax

Fix SSL certificate issues with MathJax


<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="ROBOTS" content="NOODP" />
    <meta name="viewport" content="initial-scale=1" />

    <title><%= title %></title>

    <%= stylesheet_link_tag :application, media: "all" %>
    <%= csrf_meta_tags %>
  </head>
  <body class="<%= body_class %>">
    <div class="container container-app">
      <%= render "flashes" -%>

      <%= yield %>
    </div>

    <%= render "javascript" %>
  </body>
</html>

<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="ROBOTS" content="NOODP" />
    <meta name="viewport" content="initial-scale=1" />

    <title><%= title %></title>

    <%= stylesheet_link_tag :application, media: "all" %>
    <%= csrf_meta_tags %>

  <body class="<%= body_class %>">

      <%= render "flashes" -%>

      <% if signed_in? %>

            Sup, <%= current_user.email %>?
            <%= link_to "Sign out", sign_out_path, method: :delete %>

      <% end %>

      <%= yield %>

    <%= render "javascript" %>

Add "sign out" link to application header


<%= output_once :facebook do %>

<% end %>

<fb:like
  <%= html_attributes(options.slice(:url, :send, :layout, :show_faces, :width, :action, :font, :colorscheme, :ref)) %>
></fb:like>

<%= output_once :facebook do %>

<% end %>

<div class="fb-like"
  <%= html_attributes(options.slice(:url, :send, :layout, :show_faces, :width, :action, :font, :colorscheme, :ref), :data => true) %>
>

Switch to the HTML5 version of the Facebook like button


Registered API Keys

      Key String
      App Name
      GitHub
      Owner
      Created

    <% @keys.each do |key| %>

        <%= key.key %>
        <%= key.app_name %>
        <%= link_to "Repo", key.github_link %>

          <% if key.user %>
            <%= key.user.username %>
          <% else %>
            (No owner)
          <% end %>

        <%= time_ago_in_words(key.created_at) %> ago
        <%= link_to "Edit", url_for(:controller => :api_keys, :action => :edit, :id => key.id) %>
        <%= link_to "Revoke write tokens", url_for(:controller => :api_keys, :action => :revoke_write_tokens, :id => key.id), :method => :delete, :class => "text text-danger", data: { confirm: 'Are you sure?' } %>

    <% end %>

<%= link_to "New API key", admin_new_key_url %>

Add link to new API key

Add link to new API key


    <%= render "shared/logo_text" %>

    <%= link_to "https://github.com/TheOdinProject" do %><% end %>
    <%= link_to image_tag("icons/icon-gitter.svg"), "https://gitter.im/TheOdinProject"%>
    <%= link_to "https://www.facebook.com/theodinproject/" do %><% end %>
    <%= link_to "https://twitter.com/TheOdinProject" do %><% end %>

      <%= link_to "About", about_path %>
      <%= link_to "FAQ", faq_path %>
      <%= link_to "Blog", medium_blog_path, target: "_blank" %>

      <%= link_to "Success Stories", success_stories_path %>
      <%= link_to "Contribute", contributing_path %>
      <%= link_to "Terms of Use", legal_path %>

    <%= render "shared/logo_text" %>

    <%= link_to "https://github.com/TheOdinProject" do %><% end %>
    <%= link_to image_tag("icons/icon-gitter.svg"), "https://gitter.im/TheOdinProject"%>
    <%= link_to "https://www.facebook.com/theodinproject/" do %><% end %>
    <%= link_to "https://twitter.com/TheOdinProject" do %><% end %>

      <%= link_to "About", about_path %>
      <%= link_to "FAQ", faq_path %>
      <%= link_to "Blog", medium_blog_path, target: "_blank" %>

      <%= link_to "Success Stories", success_stories_path %>
      <%= link_to "Contribute", contributing_path %>
      <%= link_to "Terms of Use", tou_path %>

Fix the Terms of Use path

Fix the Terms of Use path


# Hostgroup definitions
#
# Autogenerated by Chef.

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

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

<% end -%>

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

<% end -%>

# Hostgroup definitions
#
# Autogenerated by Chef.

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

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

<% end -%>

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

<% end -%>

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


<tr id="<%= spree_dom_id(f.object) %>" data-hook="admin_order_form_line_item_row" class="<%= cycle('odd', 'even')%>">
  <%=f.object.variant.product.name%> <%= "(#{f.object.variant.options_text}))" unless f.object.variant.option_values.empty? %>
  <%= money(f.object.price) %>
  <%= f.number_field :quantity, :min => 0, :class => "qty" %>
  <%= money(f.object.price * f.object.quantity) %>

    <%= link_to_delete f.object, {:url => admin_order_line_item_url(@order.number, f.object), :no_text => true} %>

<tr id="<%= spree_dom_id(f.object) %>" data-hook="admin_order_form_line_item_row" class="<%= cycle('odd', 'even')%>">
  <%=f.object.variant.product.name%> <%= "(#{f.object.variant.options_text})" unless f.object.variant.option_values.empty? %>
  <%= money(f.object.price) %>
  <%= f.number_field :quantity, :min => 0, :class => "qty" %>
  <%= money(f.object.price * f.object.quantity) %>

    <%= link_to_delete f.object, {:url => admin_order_line_item_url(@order.number, f.object), :no_text => true} %>

Remove extra ) from admin/orders/_line_item partial


<% content_for :head do %>
  <%= stylesheet_link_tag 'styleguide', media: 'all' %>
<% end %>

<% content_for :content do %>
  <%= render 'navigation' %>
  <%= yield :main %>
<% end %>

<% content_for :scripts do %>
  <%= javascript_include_tag :styleguide %>
<% end %>

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

<% content_for :head do %>
  <%= stylesheet_link_tag 'styleguide', media: 'all' %>
<% end %>

<% content_for :content do %>
  <%= render 'navigation' unless params.key?('no-nav') %>
  <%= yield :main %>
<% end %>

<% content_for :scripts do %>
  <%= javascript_include_tag :styleguide %>
<% end %>

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

Add parameter to hide styleguide nav

Add parameter to hide styleguide nav


<% form_for(url_for_repository) do |f| %>
  <%= f.error_messages %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.submit %>

<% end %>

<% form_for @repository do |f| %>
  <%= f.error_messages %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.submit %>

<% end %>

Return form_for to normal format

Return form_for to normal format

Signed-off-by: Chris Toynbee <9bf3774ab19e71b4502fac9bd506468044cb6bd6@gmail.com>


<%
  ## TODO: Rename (RSS box?)
  # Requires local variable object: RssLog, Observation, Image, etc. instance.
  presenter = MatrixBoxPresenter.new(object, @view)
%>

<% if presenter %>

              <%= presenter.thumbnail %>

<%= presenter.what %>

              <%= presenter.where %>

                <% unless presenter.when.blank? %>
                    <%= presenter.when %>: <%= presenter.who %>
                <% end %>

              <%= presenter.detail %>

              <%= presenter.fancy_time %>

<% end %>

Remove two bogus divs from matrix_box

Remove two bogus divs from matrix_box


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

  ga('create', 'UA-28946840-3', 'quienmanda.es');
  ga('send', 'pageview');
</script>

Add Google Analytics tracking code

Add Google Analytics tracking code


<ui-view>
  <hyper-content for="toolbar">
    All {{ indexCtrl.resource_class.plural }}
  </hyper-content>

      <resource-table resource-class="indexCtrl.resource_class"
        resources="indexCtrl.resources">
      </resource-table>

  <md-button class="md-fab md-primary new-btn" ui-sref=".new">+</md-button>
</ui-view>

Remove old reference to Bootstrap

Remove old reference to Bootstrap


  <%= render partial: 'toolbar/logo',
             locals: { subject: subject } %>

  <%= content_for :toolbar_menu do %>

      <%= link_to [ subject, :profile ], class: "btn-blue" do  %>
         <%= t 'menu.information' %>
      <% end %>

    <% if current_subject.present? && subject != current_subject %>

        <%= link_to new_message_path(:receiver => subject.slug), class: "btn-blue" do %>
           <%= t 'send' %>
        <% end %>

    <% end %>

  <% end %>

  <%= render partial: 'toolbar/menu' %>

  <%= render partial: 'toolbar/contacts', locals: { subject: subject } %>

  <%= render partial: 'toolbar/logo',
             locals: { subject: subject } %>

  <%= contact_to subject %>

  <%= content_for :toolbar_menu do %>

      <%= link_to [ subject, :profile ], class: "btn-blue" do  %>
         <%= t 'menu.information' %>
      <% end %>

    <% if current_subject.present? && subject != current_subject %>

        <%= link_to new_message_path(:receiver => subject.slug), class: "btn-blue" do %>
           <%= t 'send' %>
        <% end %>

    <% end %>

  <% end %>

  <%= render partial: 'toolbar/menu' %>

  <%= render partial: 'toolbar/contacts', locals: { subject: subject } %>

Add contact button in profile

Add contact button in profile


<!DOCTYPE html>
<html>
<head>
  <title>WatsonNewsApp</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>WatsonNewsApp</title>
  <!--
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  -->
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

Comment out turbolinks for js and css

Comment out turbolinks for js and css


<!DOCTYPE html>
<html>
<head>
  <title>How much has your school been robbed?</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">

	<!-- Optional theme -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">

	<!-- Latest compiled and minified JavaScript -->
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>

  <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>How much has your school been robbed?</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
  <!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">

	<!-- Optional theme -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">

	<!-- Latest compiled and minified JavaScript -->
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>

  <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

</head>
<body>

<%= yield %>

</body>
</html>

ADd min and max zoom for viewport

ADd min and max zoom for viewport


<!DOCTYPE html>

  <meta charset="utf-8">
  <title>BadgeApp</title>
  <meta name=viewport content="width=device-width, initial-scale=1">
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <%= favicon_link_tag %>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= auto_discovery_link_tag :atom, { controller: 'projects', action: 'feed' }, { title: 'CII Best Practices BadgeApp Updated Projects' } %>
  <%= 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? %>

Add lang="en" per W3C HTML validator

Add lang="en" per W3C HTML validator

The W3C HTML validator sends warnings if you don't provide information
on the natural language in use <https://validator.w3.org/nu>.
This modifies the view so this information is provided, by changing
<html> to <html lang="en">.

Note that we're focusing on the language presented in the *questions*.
The form answers could be in something other than English, but
I think it'd be sensible to focus on the language of the *questions*.
If we add support for questions in other languages (and that'd be great),
be sure to provide the correct language information.

Signed-off-by: David A. Wheeler <9ae72d22d8b894b865a7a496af4fab6320e6abb2@dwheeler.com>


<% post = post_subject %>
<% cache_unless(post.recent?, post, namespace: 'post_subject', expires_in: 72.hours, race_condition_ttl: 30.seconds) do %>
<%= link_to raw(htmlic_title(post.subject)), post %> by
<span class="short-post-author author-tag-for-<%= post.user_id %>"><%= post.author %>
on <%= post.created_at %>
<%= raw ' ' if post.new_reply? %>
<%= raw 'Locked' if post.locked %>
<%= raw 'Poofed' if post.poofed %>
<%= raw 'Edited' if post.previous_version %>
<%= raw 'Previous Version' if post.next_version %>
<% post.tags.each do |tag| %>
<%= tag.name %>
<% end %>
<% end %>

<% post = post_subject %>
<% cache_unless(post.recent?, post, namespace: 'post_subject', expires_in: 72.hours, race_condition_ttl: 30.seconds) do %>
<%= link_to raw(htmlic_title(post.subject)), post %> by
<span class="short-post-author author-tag-for-<%= post.user_id %>"><%= post.author %>
on <%= post.created_at %>
<%= raw ' ' if post.new_reply? %>
<%= raw 'Locked' if post.locked %>
<%= raw 'Poofed' if post.poofed %>
<%= raw ' Edited' if post.previous_version %>
<%= raw 'Previous Version' if post.next_version %>
<% post.tags.each do |tag| %>
<%= tag.name %>
<% end %>
<% end %>

Make the "Edited" marker less obtrosive, per suggestion from Nesh


# Hostgroup definitions
#
# Autogenerated by Chef.

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

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

<% end -%>

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

<% end -%>

Remove a sort that doesn't work

Remove a sort that doesn't work

Former-commit-id: 3035c4197e2d636e6bd0e7977628628743dcae05 [formerly 9d8758faff6a8cb3754eecb79d91c6b9972a88ac] [formerly ce3f06739b702d233abc94fe1aedde6b037383db [formerly 0055893b054ebabaaeea7943264a8f4d7ae9964d [formerly a6cf37f54202f70e615cc5e4b580b357aca74fb0]]]
Former-commit-id: 674359c9c7850df0d3c730a2159ba6482e5e90a3 [formerly 28eea6bf6039f07be2e1b9f7d8de812542002e45]
Former-commit-id: abc0d4f556b1e60e3c448d1204f5aa8adadeacc3
Former-commit-id: db75a4e5e6db51c8f98d54e8af19dca651f71c42


<% wrap_layout :header_footer_only do %>

      Table of contents

        Close

          <%= yield_content :sidebar %>

        <%= yield %>

<% end %>

<% wrap_layout :header_footer_only do %>

      Table of contents

          <%= yield_content :sidebar %>

        <%= yield %>

<% end %>

Update sidebar layout from tech-docs-template


Список парикмахеров

<% @barbers.each do |barber|%>

	<%= barber.name %>

<% end %>

Список парикмахеров

<% @barbers.each do |barber|%>

	<a href="/barber/<%= barber.id %>"><%= barber.name %>

<% end %>

Make links on main page

Make links on main page


Find a word's frequency by entering the word you would like to search for, and the text in which you want to search for the word.

<form action="/frequency">

    Word
    <input id="word" name="word" class="form-control" type="text" placeholder="Word to search for">
    Text
    <textarea id="sentence" name="sentence" class="form-control" type="text" rows="4" placeholder="Text to search within"></textarea>

  <button type="submit" class="btn-success">Search</button>
</form>

Adjust spacing of form fields.

Adjust spacing of form fields.


  <%= link_to 'View all Categories', categories_path, class: "view-categories" %>

  <% @games.each do |game| %>

      <%= link_to image_tag(game.img_url, class: "img-thumb"), game %>

<%= link_to game.name, game %>

        <%= game.min_players %> to <%= game.max_players %> players

<%= truncate(game.description, length: 150) %><%= link_to 'see more', game %>

            <th colspan="<%= game.categories.length %>">Categories:

            <% game.categories.each do |category| %>
              <%= link_to category.name, category %>
            <% end %>

  <% end %>

  <%= link_to 'View all Categories', categories_path, class: "view-categories" %>

  <% @games.each do |game| %>

      <%= link_to image_tag(game.img_url, class: "img-thumb"), game %>

<%= link_to game.name, game %>

Ranked #<%= game.popularity %> in popularity

        <%= game.min_players %> to <%= game.max_players %> players

<%= truncate(game.description, length: 150) %><%= link_to 'see more', game %>

            <th colspan="<%= game.categories.length %>">Categories:

            <% game.categories.each do |category| %>
              <%= link_to category.name, category %>
            <% end %>

  <% end %>

Add viewability of popularity rank on games index view


$('#updates').append("<%= escape_javascript render partial: "updates/more", locals: { updates: @updates } %>");
$('#load-more-link').attr('href', '<%= updates_path(page: @next_page) %>');
$('#UpdatesModal').animate({scrollTop: $("#modal-bottom").offset().top}, 1000);
<% if @last_page %>
  $('#load-more-link').hide();
<% end %>

$('#updates').append("<%= escape_javascript render partial: "updates/more", locals: { updates: @updates } %>");
$('#load-more-link').attr('href', '<%= raw updates_path(page: @next_page, project_id: @project.try(:id)) %>');
$('#UpdatesModal').animate({scrollTop: $("#modal-bottom").offset().top}, 1000);
<% if @last_page %>
  $('#load-more-link').hide();
<% end %>

Include project in paginated link

Include project in paginated link


  <% @body_id = 'product-details' %>

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

          <%= render :partial => 'thumbnails', :locals => { :product => @product } %>

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

<%= accurate_title %>

          <%= product_description(@product) rescue t(:product_has_no_description) %>

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

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

Rename duplicate hook that breaks recently viewed products extension.

[Fixes #1225]


<%
title ||= nil
year ||= nil
events ||= []
headings ||= []
%>

  <% table_caption = capture do %>
    <%= title %> <%= year.to_s %>
  <% end %>

  <%= render "govuk_publishing_components/components/table", {
    caption: table_caption,
    caption_classes: "govuk-heading-s",
    head: headings,
    rows: events.each.map { |event| [
      { :text => l(event[:date], :format => '%e %B') },
      { :text => l(event[:date], :format => '%A') },
      { :text => event[:title] + (event[:notes].blank? ? '' : " (#{event[:notes].downcase})") }
     ] }
  } %>

<%
title ||= nil
year ||= nil
events ||= []
headings ||= []
%>

  <% table_caption = capture do %>
    <%= title %> <%= year.to_s %>
  <% end %>

  <%= render "govuk_publishing_components/components/table", {
    caption: table_caption,
    caption_classes: "govuk-heading-s",
    head: headings,
    first_cell_is_header: true,
    rows: events.each.map { |event| [
      { :text => l(event[:date], :format => '%e %B') },
      { :text => l(event[:date], :format => '%A') },
      { :text => event[:title] + (event[:notes].blank? ? '' : " (#{event[:notes].downcase})") }
     ] }
  } %>

Make first column row header in bank holiday tables


<!DOCTYPE html>

    <title>WateringServer</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

        <% if current_user %>

            <%= link_to 'Logout', logout_path, method: :delete %>

        <% else %>
        <% end %>

    <%= yield %>

<!DOCTYPE html>

    <title>WateringServer</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

        <% if current_user %>

            <%= link_to 'Home', current_user %>

            <%= link_to 'Logout', logout_path, method: :delete %>

        <% else %>

            <%= link_to 'Login', login_path %>

        <% end %>

    <%= yield %>

Add home and login links to nav

Add home and login links to nav


<% content_for(:title) { } %>
<% content_for(:section) { 'I make things' } %>

Thanks for Signing up!

Your subscription to my newsletter has been confirmed. I'm looking forward to helping you on your journey as a web developer.

I'd love to hear from you, so <%= link_to "send me an email", email_url %> or <%= link_to "follow me on twitter" %>. While you're here, read on!

    Read the latest post or manage your preferences

Remove preferences link from thanks page


 RSVP

    <%= form_tag('/guests/create', method: :post) do %>
      <%= render partial: '/guests/new' %>

       Add Another Guest

        <%= submit_tag 'Mail In RSVP' %>

    <% end %>

    <%= form_tag('/guests/create', method: :post) do %>
      <%= render partial: '/guests/new' %>

       Add Another Guest

        <%= submit_tag 'Mail In RSVP', :class => "rsvpButton" %>

    <% end %>

Add title for the container

Add title for the container


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

<%= link_to question.title, question_path(question) %>

<% end %>

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

<%= question.votes.count %>

votes

<%= question.answers.count %>

answers

<%= question.votes.count %>

views

<%= link_to question.title, question_path(question) %>

asked <%= time_ago_in_words(question.created_at) %> ago <%= question.user.name %>

  <% end %>

Add bootstrap classes to style question stats


<% content_for :page_class do %>start-page<% end %>

        <%= link_to sectors_path, :class => "big button" do %>
          Get started
        <% end %>

<% content_for :page_class do %>start-page<% end %>

Search for publicly-backed finance or support for your business.

Find out which schemes would be right for you by providing basic information about your business, including where it’s based, what kind of business it is etc.

You can search for:

finance -- eg loans, grants or investors

business support -- eg mentoring, consultancy, initiatives

        <%= link_to sectors_path, :class => "big button" do %>
          Get started
        <% end %>

Update business support finder start page text


<% wrap_layout :layout do %>

<%= date %>

<%= title %>

      <% current_page.tags.each do |tag| %>
        <% if tag == current_page.tags.last %>
          <%= link_to "#{tag}", tag_path(tag), :class => 'tag-list-link' %>
        <% else %>
          <%= link_to "#{tag}", tag_path(tag), :class => 'tag-list-link' %>
          <%= " |" %>
        <% end %>
      <% end %>

    <% if soundcloud_id %>

        <iframe
          width="100%"
          height="450"
          scrolling="no"
          frameborder="no"
          src=<%= big_soundcloud_player %>>

    <% end %>

    <% if interviewee %>

Other Episodes

      <a class='other-episodes' href="/tags/<%= dasherize(interviewee) %>.html"><%= interviewee %>
    <% end %>

    <%= current_article.body %>

<% end %>

Fix little tag mistakes in blog detail layout


See this exception on Errbit: <%= app_err_url err.app, err %>
<% if notice = err.notices.first %>
    <% if notice.request['url'].present? %>URL: <%= notice.request['url'] %><% end %>
    Where: <%= notice.err.where %>
    Occurred: <%= notice.created_at.to_s :micro %>
    Similar: <%= (notice.err.notices.count - 1).to_s %>

    Params:
    <%= pretty_hash notice.params %>

    Session:
    <%= pretty_hash notice.session %>

    Backtrace:
    <%= notice.backtrace.map { |line| "#{line['number']}: #{line['file'].sub(/^\[PROJECT_ROOT\]/, '')} -> *#{line['method']}*" }.join "\n" %>

    Environment:
    <% notice.env_vars.each do |key, val| %>
        <%= "#{key}: #{val}" %>
    <% end %>
<% end %>

See this exception on Errbit: <%= app_err_url err.app, err %>
<% if notice = err.notices.first %>
    <% if notice.request['url'].present? %>URL: <%= notice.request['url'] %><% end %>
    Where: <%= notice.err.where %>
    Occurred: <%= notice.created_at.to_s :micro %>
    Similar: <%= (notice.err.notices.count - 1).to_s %>

    Params:
    <%= pretty_hash notice.params %>

    Session:
    <%= pretty_hash notice.session %>

    Backtrace:
    <%= notice.backtrace[0..4].map { |line| "#{line['number']}: #{line['file'].sub(/^\[PROJECT_ROOT\]/, '')} -> *#{line['method']}*" }.join "\n" %>
<% end %>

Cut down pivotal story description since it can handle only 5000 characters.


$('#guest_books').prepend("<%= j render partial: 'guest_books/row', locals: { guest_book: guest_book } %>")
$('#guest_book_username').val('')
$('#guest_book_content').val('')

<%= render 'elements/alert' %>

Add success message after successfully created a guest_book message with Ajax


  <div class="js-download-btn hero__top <%= "hero__top--centered" if @for_pdf %>">
    <h1 class="hero__title <%= "hero__title--bigger" if @for_pdf %>">
      <%= @country.name %>, <%= @country.region.name %>

    <% unless @for_pdf %>

        Download this dataset
        <%= download_dropdown(@country.iso_3, 'general', (types rescue [:csv, :kml, :shp])) %>

    <% end %>

  <% unless @for_pdf %>
    <div class="js-resizable map map--hero" id="map" data-mobile-height=33 data-bound-from="<%= @country.bounds.first %>" data-bound-to="<%= @country.bounds.last %>" data-iso3="<%= @country.iso_3 %>">

      The designations employed and the presentation of material on this map do not
      imply the expression of any opinion whatsoever on the part of the Secretariat
      of the United Nations concerning the legal status of any country, territory,
      city or area or of its authorities, or concerning the delimitation of its
      frontiers or boundaries.

  <% end %>

  <div class="js-download-btn hero__top <%= "hero__top--centered" if @for_pdf %>">
    <h1 class="hero__title <%= "hero__title--bigger" if @for_pdf %>">
      <%= @country.name %>,

        <%= link_to @country.region.name, region_path(@country.region.iso) %>

    <% unless @for_pdf %>

        Download this dataset
        <%= download_dropdown(@country.iso_3, 'general', (types rescue [:csv, :kml, :shp])) %>

    <% end %>

  <% unless @for_pdf %>
    <div class="js-resizable map map--hero" id="map" data-mobile-height=33 data-bound-from="<%= @country.bounds.first %>" data-bound-to="<%= @country.bounds.last %>" data-iso3="<%= @country.iso_3 %>">

      The designations employed and the presentation of material on this map do not
      imply the expression of any opinion whatsoever on the part of the Secretariat
      of the United Nations concerning the legal status of any country, territory,
      city or area or of its authorities, or concerning the delimitation of its
      frontiers or boundaries.

  <% end %>

Add link to region name in country page

Add link to region name in country page


<%-
if @is_dynamic and (@allow_update.empty? and @allow_update_cidr.empty?)
  raise(Puppet::ParseError, "Both allow_update and allow_update_cidr are empty for dynamic zone '#{name}'")
end
-%>
# File managed by puppet
zone "<%= @name %>" IN {
  type master;
<% if @is_dynamic -%>
  file "<%= scope.lookupvar("bind::params::dynamic_directory") %>/<%= @name %>.conf";
<% else -%>
  file "<%= scope.lookupvar("bind::params::pri_directory") %>/<%= @name %>.conf";
<% end -%>
<% if @zone_xfers and not @zone_xfers.empty? -%>
  allow-transfer { <%= Array(@zone_xfers).join('; ') -%>; };
<% else -%>
  allow-transfer { none; };
<% end -%>
<% if @is_dynamic -%>
  allow-update { <% if ![nil, '', :undef].include?(@allow_update) -%>key <%= Array(@allow_update).join('.; key ') -%>.;<% end
    -%><% if ![nil, '', :undef].include?(@allow_update_cidr) -%> <%= Array(@allow_update_cidr).join('; ') -%>;<% end -%> };
<% end -%>
  allow-query { any; };
  notify yes;
<% if @zone_notify and not @zone_notify.empty? -%>
  also-notify { <%= Array(@zone_notify).join('; ') -%>; };
<% end -%>
};

<%-
if @is_dynamic and (@allow_update.empty? and @allow_update_cidr.empty?)
  raise(Puppet::ParseError, "Both allow_update and allow_update_cidr are empty for dynamic zone '#{name}'")
end
-%>
# File managed by puppet
zone "<%= @name %>" IN {
  type master;
<% if @is_dynamic -%>
  file "<%= scope.lookupvar("bind::params::dynamic_directory") %>/<%= @name %>.conf";
<% else -%>
  file "<%= scope.lookupvar("bind::params::pri_directory") %>/<%= @name %>.conf";
<% end -%>
<% if @zone_xfers and not @zone_xfers.empty? -%>
  allow-transfer { <%= Array(@zone_xfers).join('; ') -%>; };
<% else -%>
  allow-transfer { none; };
<% end -%>
<% if @is_dynamic -%>
  allow-update { <% if @allow_update.empty? -%>key <%= Array(@allow_update).join('.; key ') -%>.;<% end
    -%><% if @allow_update_cidr.empty? -%> <%= Array(@allow_update_cidr).join('; ') -%>;<% end -%> };
<% end -%>
  allow-query { any; };
  notify yes;
<% if @zone_notify and not @zone_notify.empty? -%>
  also-notify { <%= Array(@zone_notify).join('; ') -%>; };
<% end -%>
};

Use empty method to check arrays

Use empty method to check arrays


upstream <%= domain %> {
  server unix:<%= shared_path %>/unicorn/tmp/sockets/unicorn.sock fail_timeout=0;
}

server {
  listen 80;
  server_name <%= domains.join(" ") %>;
  root <%= current_path %>/public;

  location ^~ /assets/ {
    gzip_static on;
    expires max;
    add_header Cache-Control public;
  }

  try_files $uri/index.html $uri @<%= domain %>;
  location @<%= domain %>{
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://<%= domain %>;
  }

  error_page 500 502 503 504 /500.html;
  client_max_body_size 4G;
  keepalive_timeout 10;
}

upstream <%= domain %> {
  server unix:<%= shared_path %>/unicorn/tmp/sockets/unicorn.sock fail_timeout=0;
}

server {
  listen 80;
  server_name <%= domains.join(" ") %>;
  root <%= current_path %>/public;

  # individual nginx logs for vhost
    access_log  /var/log/nginx/<%= domain %>_access.log;
    error_log   /var/log/nginx/<%= domain %>_error.log;

  location ^~ /assets/ {
    gzip_static on;
    expires max;
    add_header Cache-Control public;
  }

  try_files $uri/index.html $uri @<%= domain %>;
  location @<%= domain %>{
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://<%= domain %>;
  }

  error_page 500 502 503 504 /500.html;
  client_max_body_size 4G;
  keepalive_timeout 10;
}

Add error and access logs

Add error and access logs


---
title: Calgary Hub
---

<% content_for :header do %>

Calgary Hub

Do something awesome in YYC today.

<% end %>

<% content_for :alert_bar do %>
Try our mobile-formatted site as well - visit http://mobile.calgaryhub.com on your device
<% end %>

What's happening?

    There's always a ton of stuff going on, so find out what's happening today!

    Events

What can I do?

    Hey, sometimes you just want to explore the city at your own pace. Here's some ideas!

    Activities

What's around?

    There's a ton of cool places to visit in Calgary. Find out where they are!

    Places

Use a link for the mobile site

Use a link for the mobile site


<%= notice %>

  Title:
  <%= @article.title %>

  Text:
  <%= @article.text %>

<%= link_to 'Edit', edit_article_path(@article) %> |
<%= link_to 'Back', articles_path %>

<%= notice %>

  Title:
  <%= @article.title %>

  Text:
  <%= @article.text %>

  Comments:
  <%= render @article.comments %>
  <%= render 'blorgh/comments/form' %>

<%= link_to 'Edit', edit_article_path(@article) %> |
<%= link_to 'Back', articles_path %>

Update view to allow people to see comments; create form partial for creating comments


AskThem Widget Builder

Note - advanced users can override the built-in styles of the widgets. If you have the know how, go for it!

Fix custom styles for widget builder widget


Please Verify your PayPal Email Address:

  <%= form_tag verify_paypal_info_for_user_path(@user), :method => :put,
                                                        :remote => true,
                                                        :class => 'paypal-email form-horizontal' do |f| %>

      <%= flash[:error] unless flash[:error].blank? %>

    <%= text_field_tag :payment_email %>
    <%= submit_tag "Confirm", :class => "btn btn-primary submit-payment-email" %>

        Note:

        The PayPal account you are verifying must be owned by you and
        must also be a 'verified' PayPal account. For more information
        about how to 'verify' your account within PayPal, please visit
        the official PayPal site.

  <%- end %>

  <%= render :partial => "shared/powered_by" %>

Please Verify your PayPal Email Address:

  <%= form_tag verify_paypal_info_for_user_path(@user), :method => :put,
                                                        :remote => true,
                                                        :class => 'paypal-email form-horizontal' do |f| %>

      <%= flash[:error] unless flash[:error].blank? %>

    <%- if @admin_page and @admin_page == true %>
      <%= hidden_field_tag :admin_page, true %>
    <%- end %>

    <%= text_field_tag :payment_email %>
    <%= submit_tag "Confirm", :class => "btn btn-primary submit-payment-email" %>

        Note:

        The PayPal account you are verifying must be owned by you and
        must also be a 'verified' PayPal account. For more information
        about how to 'verify' your account within PayPal, please visit
        the official PayPal site.

  <%- end %>

  <%= render :partial => "shared/powered_by" %>

Update SpecifyPaypal View for admin_page

Add a hidden form input for the specify_paypal page if the User is
updating their PayPal account from the admin page (required for the
correct HTML replacement when the JS runs).


<% if !@display_user.get_about_me_for_html_display.empty? || @is_you %>

            <%= @display_user.get_about_me_for_html_display %>
            <% if @is_you %>
                (<%= link_to _("edit text about you"), set_profile_about_me_path %>)
            <% end %>
	  <% if @is_you %>

<%= _("Address") %>

<%=h @display_user.address if !@display_user.address.nil?  %>

<%= _("DOB") %>

<%=l @display_user.dob if !@display_user.dob.nil? %>

          <% end %>

    <% end %>

    <% if @is_you %>

            <% if @display_user.profile_photo %>
                <%= link_to _('Change profile photo'), set_profile_photo_path %> |
            <% end %>
            <%= link_to _('Change your password'), signchangepassword_path %> |
            <%= link_to _('Change your email'), signchangeemail_path %>
            <%= link_to _('Change your address'), signchangeaddress_path %>
            <%= link_to _('Change your DOB'), signchangedob_path %>

    <% end %>

<% if !@display_user.get_about_me_for_html_display.empty? || @is_you %>

            <%= @display_user.get_about_me_for_html_display %>
            <% if @is_you %>
                (<%= link_to _("edit text about you"), set_profile_about_me_path %>)
            <% end %>
    <% if @is_you %>

<%= _("Address") %>

<%= @display_user.address if !@display_user.address.nil?  %>

<%= _("DOB") %>

<%=l @display_user.dob if !@display_user.dob.nil? %>

          <% end %>

    <% end %>

    <% if @is_you %>

            <% if @display_user.profile_photo %>
                <%= link_to _('Change profile photo'), set_profile_photo_path %> |
            <% end %>
            <%= link_to _('Change your password'), signchangepassword_path %> |
            <%= link_to _('Change your email'), signchangeemail_path %>
            <%= link_to _('Change your address'), signchangeaddress_path %>
            <%= link_to _('Change your DOB'), signchangedob_path %>

    <% end %>

Remove call to h - escaping now done by default.


define DEFAULT_OUTPUTS null_output

include <%= node['nxlog']['conf_dir'] %>/nxlog.conf.d/op_*.default

<Input <%= @name %>>
  <% @params.each do |param| -%>
  <%= param[0] %> <%= param[1] %>
  <% end -%>
</Input>

<Route r_<%= @name %>>
  Path <%= @name %> => <%= @destinations.join(', ') %>
</Route>

define DEFAULT_OUTPUTS null_output

<% if node['platform'] == 'windows' -%>
include <%= node['nxlog']['conf_dir'] %>/nxlog.conf.d/op_\\*.default
<% else -%>
include <%= node['nxlog']['conf_dir'] %>/nxlog.conf.d/op_*.default
<% end %>

<Input <%= @name %>>
  <% @params.each do |param| -%>
  <%= param[0] %> <%= param[1] %>
  <% end -%>
</Input>

<Route r_<%= @name %>>
  Path <%= @name %> => <%= @destinations.join(', ') %>
</Route>

Revert "Remove unnecessary Windows-related include syntax from source template"

This reverts commit 20c5f21f9ba7719e25c6df266d3782c69a690f52.

Conflicts:
	templates/default/resources/source.conf.erb


Hello!

Likelater here,

<%= t(".opening") %>

<%= link_to t(".link_text"),
  edit_user_password_url(@user, token: @user.confirmation_token.html_safe) %>

<%= t(".closing") %> hello@likelater.io.

Hello!

Likelater here,

Sorry about the broken link in that last email, this one should work.

<%= t(".opening") %>

<%= link_to t(".link_text"),
  edit_user_password_url(@user, token: @user.confirmation_token.html_safe) %>

<%= t(".closing") %> hello@likelater.io.

Add apology to one time password reset

Add apology to one time password reset


      <button type="button"
              class="navbar-toggle collapsed"
              data-toggle="collapse"
              data-target="#navbar-links">
        Toggle navigation

      </button>

      <%= link_to dashboard_path, class: "navbar-brand" do %>
        <%= image_tag "logo.png" %>
      <% end %>

        <% if current_user %>
          <%= link_to "Sign out", destroy_user_session_path, method: :delete %>
        <% else %>
          <%= link_to "Sign in", new_session_path(resource_name) %>
        <% end %>

Use fixed width container inside navigation


<!DOCTYPE html>
<html>
  <head>
    <title><%= page_title(yield :title) %></title>

    <%= stylesheet_link_tag "application", media: "all" %>
    <%= javascript_include_tag "application" %>

    <%= csrf_meta_tags %>

    <%= render "layouts/shim" %>
  </head>
  <body>
    <%= render "layouts/nav" %>
    <div class="container">
      <%= yield %>
      <%= render "layouts/footer" %>
    </div>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title><%= page_title(yield :title) %></title>

    <%= stylesheet_link_tag "application", media: "all" %>
    <%= javascript_include_tag "application" %>

    <%= csrf_meta_tags %>

    <!-- Responsive page width on mobile devices -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <%= render "layouts/shim" %>
  </head>
  <body>
    <%= render "layouts/nav" %>
    <div class="container">
      <%= yield %>
      <%= render "layouts/footer" %>
    </div>
  </body>
</html>

Add meta tag for responsive CSS on mobile devices


#
# This file is generated by Chef
# Do not edit, changes will be overwritten
#

# Config file for collectd(1).
#
# Some plugins need additional configuration and are disabled by default.
# Please read collectd.conf(5) for details.
#
# You should also read /usr/share/doc/collectd/README.Debian.plugins before
# enabling any more plugins.

Hostname "<%= @node[:fqdn] %>"
FQDNLookup true
BaseDir "<%= @node[:collectd][:base_dir] %>"
PluginDir "<%= @node[:collectd][:plugin_dir] %>"
TypesDB "<%= @node[:collectd][:types_db].join('", "') %>"
Interval <%= @node[:collectd][:interval] %>
ReadThreads <%= @node[:collectd][:read_threads] %>

Include "<%= @node[:collectd][:conf_dir] %>/*.conf"

#
# This file is generated by Chef
# Do not edit, changes will be overwritten
#

# Config file for collectd(1).
#
# Some plugins need additional configuration and are disabled by default.
# Please read collectd.conf(5) for details.
#
# You should also read /usr/share/doc/collectd/README.Debian.plugins before
# enabling any more plugins.

Hostname "<%= node[:fqdn] %>"
FQDNLookup true
BaseDir "<%= node[:collectd][:base_dir] %>"
PluginDir "<%= node[:collectd][:plugin_dir] %>"
TypesDB "<%= node[:collectd][:types_db].join('", "') %>"
Interval <%= node[:collectd][:interval] %>
ReadThreads <%= node[:collectd][:read_threads] %>

Include "<%= node[:collectd][:conf_dir] %>/*.conf"

Use the node method rather than the variable


[<%= @fpm_pool_name %>]
user = <%= @fpm_pool_user %>
group = <%= @fpm_pool_group %>
listen = <%= @fpm_pool_listen %>
listen.owner = <%= @fpm_pool_user %>
listen.group = <%= @fpm_pool_group %>
pm = <%= @fpm_pool_manager %>
pm.max_children = <%= @fpm_pool_max_children %>
pm.start_servers = <%= @fpm_pool_start_servers %>
pm.min_spare_servers = <%= @fpm_pool_min_spare_servers %>
pm.max_spare_servers = <%= @fpm_pool_max_spare_servers %>
chdir = <%= @fpm_pool_chdir %>
<% @fpm_pool_additional_config.each do |key, value| %>
<%= key %> = <%= value %>
<% end %>

[<%= @fpm_pool_name %>]
user = <%= @fpm_pool_user %>
group = <%= @fpm_pool_group %>
listen = <%= @fpm_pool_listen %>
listen.owner = <%= @fpm_pool_listen_user %>
listen.group = <%= @fpm_pool_listen_group %>
pm = <%= @fpm_pool_manager %>
pm.max_children = <%= @fpm_pool_max_children %>
pm.start_servers = <%= @fpm_pool_start_servers %>
pm.min_spare_servers = <%= @fpm_pool_min_spare_servers %>
pm.max_spare_servers = <%= @fpm_pool_max_spare_servers %>
chdir = <%= @fpm_pool_chdir %>
<% @fpm_pool_additional_config.each do |key, value| %>
<%= key %> = <%= value %>
<% end %>

Support separateUSER / GROUP in pool & listen

Allow to use different user / group for pool settings in listen socket and pool owner.
Allows for more secure setup, ie.
nginx runs as nobody nobody
php-fpm pool run as owner that essentially might need access to "write" files as well


--without-pear
--with-gd
--enable-sockets
--with-jpeg-dir=<%= scope.lookupvar "boxen::config::homebrewdir" %>/opt/jpeg
--with-png-dir=<%= scope.lookupvar "boxen::config::homebrewdir" %>/opt/libpng
--enable-exif
--enable-zip
--with-zlib
--with-zlib-dir=<%= scope.lookupvar "boxen::config::homebrewdir" %>/opt/zlib
--with-kerberos
--with-openssl
--with-mcrypt=<%= scope.lookupvar "boxen::config::homebrewdir" %>/opt/mcrypt
--enable-soap
--enable-xmlreader
--with-xsl
--enable-ftp
--enable-cgi
--with-curl=/usr
--with-tidy
--with-xmlrpc
--enable-sysvsem
--enable-sysvshm
--enable-shmop
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
--with-pdo-sqlite
--enable-pcntl
--with-readline
--enable-mbstring
--enable-bcmath
--disable-debug
--enable-fpm

--disable-debug

--without-pear

--enable-bcmath
--enable-cgi
--enable-exif
--enable-fpm
--enable-ftp
--enable-mbstring
--enable-pcntl
--enable-shmop
--enable-soap
--enable-sockets
--enable-sysvsem
--enable-sysvshm
--enable-xmlreader
--enable-zip

--with-curl=/usr
--with-gd
--with-kerberos
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-openssl
--with-pdo-mysql=mysqlnd
--with-pdo-sqlite
--with-readline
--with-tidy
--with-xmlrpc
--with-xsl

--with-jpeg-dir=<%= scope.lookupvar "boxen::config::homebrewdir" %>/opt/jpeg
--with-png-dir=<%= scope.lookupvar "boxen::config::homebrewdir" %>/opt/libpng
--with-zlib
--with-zlib-dir=<%= scope.lookupvar "boxen::config::homebrewdir" %>/opt/zlib
--with-mcrypt=<%= scope.lookupvar "boxen::config::homebrewdir" %>/opt/mcrypt

Tidy up configure options so they're more readable


<%= semantic_form_for @card, :url => backend_pay_path do |f| %>
  <%= f.inputs do %>
    <%= f.input :number, :input_html => {:disabled => @card.number} %>
  <% end %>

  <%= f.buttons do %>
    <%= f.commit_button 'Bewaar' %>
  <% end %>
<% end %>

ISIC-status: <%= @card.isic_status %>

<% unless @card.number %>
  <%= semantic_form_for @card, :url => backend_pay_path do |f| %>
    <%= f.inputs do %>
      <%= f.input :number %>
    <% end %>

    <%= f.buttons do %>
      <%= f.commit_button 'Bewaar FK-nummer' %>
    <% end %>
  <% end %>
<% else %>

FK-nummer: <%= @card.number %>

<% end %>

ISIC-status: <%= @card.isic_status %>

Change view a bit to only allow 1 time submitting


<%= calendar events: events do |date, events| %>

<%= date.day %>

  <% events.each do |event| %>

      <%= link_to "#{event.event_type} (#{@companies.find(event.company_id).name})", user_company_path(@user, @companies.find(event.company_id)) %>

  <% end %>

<% end %>

<%= month_calendar events: events do |date, events| %>

<%= date.day %>

  <% events.each do |event| %>

      <%= link_to "#{event.event_type} (#{@companies.find(event.company_id).name})", user_company_path(@user, @companies.find(event.company_id)) %>

  <% end %>

<% end %>

Change calendar back to month view

Change calendar back to month view


<!DOCTYPE html>

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

  <% if user_signed_in? -%>
    <%= current_user.email %> |
    <%= link_to 'My info', edit_user_registration_path %> |
    <%= link_to 'Sign out', destroy_user_session_path, method: :delete %>
  <% else %>
    <%= link_to "Sign up", new_user_registration_path %> or
    <%= link_to "Sign in", new_user_session_path %>
  <% end %>

  <%= link_to 'Home', root_path %> |
  Balance: <%= current_user.balance %>

<%= yield %>

<!DOCTYPE html>

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

  <% if user_signed_in? -%>
    <%= current_user.email %> |
    <%= link_to 'My info', edit_user_registration_path %> |
    <%= link_to 'Sign out', destroy_user_session_path, method: :delete %>
  <% else %>
    <%= link_to "Sign up", new_user_registration_path %> or
    <%= link_to "Sign in", new_user_session_path %>
  <% end %>

  <%= link_to 'Home', root_path %> |
  Balance: <%= current_user.try(:balance) %>

<%= yield %>

Fix bug when not logged in

Fix bug when not logged in


All Active Organizations

      Name
      Address1
      Address2
      City
      State
      Zip
      Phone number

    <% @organizations.each do |organization| %>

        <%= organization.name %>
        <%= organization.address1 %>
        <%= organization.address2 %>
        <%= organization.city %>
        <%= organization.state %>
        <%= organization.zip %>
        <%= organization.phone_number %>
        <%= link_to 'Show', organization %>

    <% end %>

All Active Organizations

      Name
      Address1
      Address2
      City
      State
      Zip
      Phone number

    <% @organizations.each do |organization| %>

        <%= link_to organization.name, organization %>
        <%= organization.address1 %>
        <%= organization.address2 %>
        <%= organization.city %>
        <%= organization.state %>
        <%= organization.zip %>
        <%= organization.phone_number %>

    <% end %>

Make org name the link to its details page.


<%= Spree.t(:reviews) %>

  <% if Spree::Reviews::Config[:include_unapproved_reviews] == false and @product.reviews.approved.count == 0 %>

<%= Spree.t('no_reviews_available') %>

  <% else %>
    <%= render 'spree/shared/rating', :product => @product, :review => 0 %>
    <% for review in (Spree::Reviews::Config[:track_locale] ? @product.reviews.localized(I18n.locale) : @product.reviews).default_approval_filter.preview %>
      <%= render 'spree/shared/review', :review => review %>
    <% end %>
  <% end %>
  <% if !Spree::Reviews::Config[:require_login] || spree_current_user %>
    <%= link_to Spree.t('write_your_own_review'), new_product_review_path(@product), :class => "button",
                :rel => "nofollow,noindex" %>
  <% end %>

<%= Spree.t(:reviews) %>

  <% if Spree::Reviews::Config[:include_unapproved_reviews] == false and @product.reviews.approved.count == 0 %>

<%= Spree.t('no_reviews_available') %>

  <% else %>
    <%= render 'spree/shared/rating', :product => @product, :review => 0 %>
    <% for review in (Spree::Reviews::Config[:track_locale] ? @product.reviews.localized(I18n.locale) : @product.reviews).default_approval_filter.preview %>
      <%= render 'spree/shared/review', :review => review %>
    <% end %>
  <% end %>
  <% if !Spree::Reviews::Config[:require_login] || spree_current_user %>
    <%= link_to Spree.t('write_your_own_review'), new_product_review_path(@product), :class => "button",
                :rel => 'nofollow' %>
  <% end %>

Remove 'noindex' from rel attr

Remove 'noindex' from rel attr

Closes #125


---
repository_path: /var/vcap/data/rolodex/directory
repository_url: <%= p("rolodex.repository_url") %>

github:
  private_key_path: /var/vcap/jobs/rolodex/config/github_private_key
  public_key_path: /var/vcap/jobs/rolodex/config/github_public_key

rpc_server:
  bind_ip: <%= p("rolodex.rpc_server.bind_ip") %>
  bind_port: <%= p("rolodex.rpc_server.bind_port") %>

  ca_certificate_path: /var/vcap/jobs/rolodex/config/rpc_server_ca_certificate
  certificate_path: /var/vcap/jobs/rolodex/config/rpc_server_certificate
  private_key_path: /var/vcap/jobs/rolodex/config/rpc_server_private_key
<% if_p("rolodex.rpc_server.private_key_passphrase") do |passphrase| %>
  private_key_passphrase: <%= passphrase %>
<% end %>

metrics:
  environment: <%= p("rolodex.metrics.environment") %>
  datadog_api_key: <%= p("rolodex.metrics.datadog_api_key") %>
  sentry_dsn: <%= p("rolodex.metrics.sentry_dsn") %>

<%=
  config = {
    repository_path: "/var/vcap/data/rolodex/directory",
    repository_url: p("rolodex.repository_url"),

    github: {
      private_key_path: "/var/vcap/jobs/rolodex/config/github_private_key",
      public_key_path: "/var/vcap/jobs/rolodex/config/github_public_key",
    },

    rpc_server: {
      bind_ip: p("rolodex.rpc_server.bind_ip"),
      bind_port: p("rolodex.rpc_server.bind_port"),

      ca_certificate_path: "/var/vcap/jobs/rolodex/config/rpc_server_ca_certificate",
      certificate_path: "/var/vcap/jobs/rolodex/config/rpc_server_certificate",
      private_key_path: "/var/vcap/jobs/rolodex/config/rpc_server_private_key",
    },

    metrics: {
      environment: p("rolodex.metrics.environment"),
      datadog_api_key: p("rolodex.metrics.datadog_api_key"),
      sentry_dsn: p("rolodex.metrics.sentry_dsn"),
    },
  }

  if_p("rolodex.rpc_server.private_key_passphrase") do |passphrase|
    config[:rpc_server][:private_key_passphrase] = passphrase
  end

  JSON.pretty_generate(config)
%>

Use safer and clearer template rendering for rolodex.

- json is yaml too

[#141364749]

Signed-off-by: Rob Dimsdale-Zucker <4df639ba78cac7f8d741d02ef508f2611d6911dd@pivotal.io>


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

instance_name = prometheus.openstreetmap.org

[server]
root_url = https://prometheus.openstreetmap.org/

[security]
admin_user = admin
admin_password = <%= @passwords[:grafana_admin] %>

[smtp]
enabled = true
host = localhost:25
skip_verify = true
from_address = admins@openstreetmap.org
from_name = Prometheus

[auth.anonymous]
enabled = true
org_name = OpenStreetMap
org_role = Viewer

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

instance_name = prometheus.openstreetmap.org

[server]
root_url = https://prometheus.openstreetmap.org/

[security]
admin_user = admin
admin_password = <%= @passwords[:grafana_admin] %>
disable_gravatar = true
cookie_secure = true

[smtp]
enabled = true
host = localhost:25
skip_verify = true
from_address = admins@openstreetmap.org
from_name = Prometheus

[auth.anonymous]
enabled = true
org_name = OpenStreetMap
org_role = Viewer

Disable gravatar and enable secure cookies for grafana


<%=
    @page.css << "/css/base.css"
	@page.css << "/css/page_index.css"

	erb :common_header
%>

Poietic Generator Reloaded

            Play or
            View

Copyleft - 2011 - Gnuside

        Original concept by Olivier Auber

<%= erb :common_footer %>

<%=
    @page.css << "/css/base.css"
	@page.css << "/css/page_index.css"

	erb :common_header
%>

Poietic Generator Reloaded

            Play

Copyleft - 2011 - Gnuside

        Original concept by Olivier Auber

<%= erb :common_footer %>

Hide view link not implemented yet

Hide view link not implemented yet


[Global]
hostname = File Server
mimic model = RackMac
uam list = uams_dhx2.so uams_guest.so
log file = /var/log/netatalk.log
log level = default:error
guest account = netatalk

[Backups]
path = /shared/Backups
aclinherit = passthrough
aclmode = passthrough
vol size limit = 512000
time machine = yes

[Media]
path = /shared/Media
aclinherit = passthrough
aclmode = passthrough

[Downloads]
path = /shared/Downloads
aclinherit = passthrough
aclmode = passthrough

[Documents]
path = /shared/Documents
aclinherit = passthrough
aclmode = passthrough

[Global]
hostname = File Server
mimic model = RackMac
uam list = uams_dhx2.so uams_guest.so
log file = /var/log/netatalk.log
log level = default:error
guest account = netatalk

[Backups]
path = /shared/Backups
vol size limit = 512000
time machine = yes
unix priv = no

[Media]
path = /shared/Media
unix priv = no

[Downloads]
path = /shared/Downloads
unix priv = no

[Documents]
path = /shared/Documents
unix priv = no

Fix ACL issues with ZFS... by ignoring them.


<% if @remove_route -%>
<% @remove_route_ifs.each do |interface| -%>
if [[ $(ip route | grep <%= interface %>) ]]; then ip route del $(ip route | grep <%= interface %> | awk '{print $1}'); fi
<% end -%>
<% end -%>

# The tap devices need proxy_arp in order to be routed on the VMs subnet
if [[ ${1:0:4} == "atap" ]]; then echo "1" > /proc/sys/net/ipv4/conf/$1/proxy_arp; fi

Add proxy_arp for tap devices on controllers


<% if local_assigns[:items] && !items.blank? %>

    <% items.each_with_index do |item, item_index| %>

          <%= link_to item[:title], item[:url], class: 'taxon-link' %>

          <%= item[:description] %>

        <% item[:related_content] ||= [] %>
        <% if item[:related_content].any? %>

              <% item[:related_content].each_with_index do |related_item, related_content_index| %>

                  <%=
                    link_to(
                      related_item[:title],
                      related_item[:link],
                      data: {
                          track_category: 'relatedLinkClicked',
                          track_action: "#{item_index + 1}.#{related_content_index + 1}",
                          track_label: related_item[:link],
                          track_dimension: related_item[:title],
                          track_dimension_index: 29,
                      },
                      class: 'related-link',
                    )
                  %>

              <% end %>

        <% end %>

    <% end %>

<% end %>

<% if local_assigns[:items] && !items.blank? %>

    <% items.each_with_index do |item, item_index| %>

          <%=
            link_to(
              item[:title],
              item[:url],
              class: 'taxon-link',
              data: {
                track_category: 'relatedLinkClicked',
                track_action: "#{item_index + 1}",
                track_label: item[:url],
                track_dimension: item[:title],
                track_dimension_index: 29,
              },
            )
          %>

          <%= item[:description] %>

        <% item[:related_content] ||= [] %>
        <% if item[:related_content].any? %>

              <% item[:related_content].each_with_index do |related_item, related_content_index| %>

                  <%=
                    link_to(
                      related_item[:title],
                      related_item[:link],
                      data: {
                          track_category: 'relatedLinkClicked',
                          track_action: "#{item_index + 1}.#{related_content_index + 1}",
                          track_label: related_item[:link],
                          track_dimension: related_item[:title],
                          track_dimension_index: 29,
                      },
                      class: 'related-link',
                    )
                  %>

              <% end %>

        <% end %>

    <% end %>

<% end %>

Add click-tracking to the taxon title heading in the taxonomy sidebar


# START INSTALLER MAGIC ! DO NOT EDIT !
STASH_USER="<%= scope.lookupvar('stash::user') %>" ## User created by puppet
# END INSTALLER MAGIC ! DO NOT EDIT !

export STASH_USER

# START INSTALLER MAGIC ! DO NOT EDIT !
STASH_USER="<%= scope.lookupvar('stash::user') %>" ## User created by puppet
SHELL="/bin/bash"
# END INSTALLER MAGIC ! DO NOT EDIT !

export STASH_USER SHELL

Add and export SHELL variable to fix service start/stop on RedHat OS families.


Un nouvel administrateur a été créé sur TPS.

Plateforme : <%= TPS::Application::URL %>

Login : <%= @admin.email %>
Password : <%= @password %>

L'équipe Téléprocédures Simplifiées

Un nouvel administrateur a été créé sur TPS.

Plateforme : <%= TPS::Application::URL %>

Login : <%= @admin.email %>
Password : <%= @password %>

Bonne journée,

L'équipe Téléprocédures Simplifiées

Add a parting phrase to emails which don’t have one


<% @body_id = 'login' %>
<div class="col-md-6 <%= request.path == spree.login_path ? "col-md-offset-3" : "" %>">

<%= Spree.t(:login_as_existing) %>

          <% if flash[:alert] %>

<%= flash[:alert] %>

          <% end %>
          <%= render :partial => 'spree/shared/login' %>

            <%= Spree.t(:or) %>
                <%= link_to Spree.t(:create_a_new_account), spree.signup_path %> |
                <%= link_to Spree.t(:forgot_password), spree.recover_password_path %>

<% @body_id = 'login' %>
<div class="col-md-6 <%= request.path == spree.login_path ? "col-md-offset-3" : "" %>">

<%= Spree.t(:login_as_existing) %>

          <%= render :partial => 'spree/shared/login' %>

            <%= Spree.t(:or) %>
                <%= link_to Spree.t(:create_a_new_account), spree.signup_path %> |
                <%= link_to Spree.t(:forgot_password), spree.recover_password_path %>

Remove duplicate alert from log in form

Remove duplicate alert from log in form


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Add appointment link for explanatory letter


---
title: Grasp
---

Grasp

  <input type="radio" name="element-type" value="line"/> Draw line
  <input type="radio" name="element-type" value="ellipse" checked="true" /> Circle
  <input type="radio" name="element-type" value="trash" /> Trash

<canvas id="image-canvas" width="600" height="400"></canvas>

---
title: Grasp
---

Grasp

  <input type="radio" name="element-type" value="move"/> Move
  <input type="radio" name="element-type" value="line"/> Draw line
  <input type="radio" name="element-type" value="ellipse" checked="true" /> Circle
  <input type="radio" name="element-type" value="trash" /> Trash

<canvas id="image-canvas" width="600" height="400"></canvas>

Add an option to move objects around.

Add an option to move objects around.


# <%= @file_name %>
#
# DO NOT CHANGE THIS FILE MANUALLY!
#
# This file is managed by the Chef `sys` cookbook.

log_level        <%= @log_level %>
<% if @use_syslog -%>
log_location     SyslogLogger.new("chef-client")
<% else -%>
log_location     STDOUT
<% end -%>

chef_server_url  '<%= @server_url %>'

validation_client_name "chef-validator"
validation_key   "/etc/chef/validation.pem"
client_key       "/etc/chef/client.pem"

file_backup_path "/var/backups/chef"
file_cache_path  "/var/cache/chef"
pid_file         "/var/run/chef/chef-client.pid"

# configuration for Ohai:
Ohai::Config[:disabled_plugins] = [ "<%= @odisable.join('","')%>" ]
Ohai::Config[:plugin_path]     << "<%= @opath %>"

# <%= @file_name %>
#
# DO NOT CHANGE THIS FILE MANUALLY!
#
# This file is managed by the Chef `sys` cookbook.

chef_server_url  '<%= @server_url %>'
client_key       "/etc/chef/client.pem"
node_name        '<%= node.fqdn %>'

log_level        <%= @log_level %>
<% if @use_syslog -%>
log_location     SyslogLogger.new("chef-client")
<% else -%>
log_location     STDOUT
<% end -%>

validation_client_name "chef-validator"
validation_key   "/etc/chef/validation.pem"

file_backup_path "/var/backups/chef"
file_cache_path  "/var/cache/chef"
pid_file         "/var/run/chef/chef-client.pid"

# configuration for Ohai:
Ohai::Config[:disabled_plugins] = [ "<%= @odisable.join('","')%>" ]
Ohai::Config[:plugin_path]     << "<%= @opath %>"

Add node_name attribute + some reorderings


<% provide(:title, @area.name) %>

  <%= @area.name %>

  <%= @area.description %>

Modify individual area pages to follow website scheme.


    <%= link_to purchase do %>
      <%= purchase.line_items.total %> items from <%= purchase.purchased_from %>
    <% end %>

    <%= distance_of_time_in_words_to_now purchase.created_at %> ago

    <%= link_to purchase do %>
      <%= purchase.line_items.total %> items from <%= purchase.purchased_from_view %>
    <% end %>

    <%= distance_of_time_in_words_to_now purchase.created_at %> ago

Fix small issue in the dashboard not correctly showing the origination of purchases


<%= t :log_in %>

<%= link_to "Instrucciones de uso", help_path %>

<%= link_to "Instrucciones de uso", help_path %>

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

    <%= f.label :email %>

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

    <%= f.label :password %>

    <%= f.password_field :password, autocomplete: "off", class: 'form-control' %>

  <% if devise_mapping.rememberable? -%>

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

  <% end %>

    <%= f.submit t(:log_in), class: 'btn btn-lg btn-primary' %>

<% end %>

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

<%= link_to "Instrucciones de uso", help_path %>

<%= t :log_in %>

<%= link_to "Instrucciones de uso", help_path %>

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

    <%= f.label :email %>

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

    <%= f.label :password %>

    <%= f.password_field :password, autocomplete: "off", class: 'form-control' %>

  <% if devise_mapping.rememberable? -%>

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

  <% end %>

    <%= f.submit t(:log_in), class: 'btn btn-lg btn-primary' %>

<% end %>

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

Fix in view new session

Fix in view new session


<!DOCTYPE html>
<html>
<head>
  <title>Was Ist Das?</title>
  <%= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css", media: 'all' %>
  <%= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css", media: 'all' %>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>
</head>
<body>

  <div class="container">

    <%= yield %>

    <%= render '/footer' %>

  </div>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>Was Ist Das?</title>

  <%= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css", media: 'all' %>
  <%= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css", media: 'all' %>
  <%= stylesheet_link_tag 'application', media: 'all' %>
  <%= stylesheet_link_tag 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,600,300,700,800', media: 'all'%>

  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>
</head>
<body>

  <div class="container">

    <%= yield %>

    <%= render '/footer' %>

  </div>

</body>
</html>

Add open sans from google fonts

Add open sans from google fonts


<!DOCTYPE html>
<html>
<head>
  <title>SpecialistPublisher</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

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

<% content_for :page_title, "Specialist Publisher" %>
<% content_for :app_title, "GOV.UK Specialist Publisher" %>

<% content_for :navbar_items do %>

<% end %>

<% content_for :navbar_right do %>
  Hello, <%= link_to current_user.name, Plek.current.find('signon') %>
  • <%= link_to 'Sign out', gds_sign_out_path %>
<% end %>

<% content_for :content do %>
  <% flash.each do |type, msg| %>
    <%= content_tag :div, msg, class: "alert #{bootstrap_class_for(type)}" %>
  <% end -%>

  <%= yield %>
  <script>
    $(document).ready(function() {
      <%= yield :document_ready %>
    });
  </script>
<% end %>

<%# use the govuk_admin_foundation layout %>
<%= render :template => 'layouts/govuk_admin_template' %>

Add barebones standard GOV.UK admin layout


About

This is a sample application designed to demonstrate how to use spreedly.js to create Gateways in a Spreedly Environment. Imagine you have many customers and each one brings their own Merchant Account/Payment Gateway. With spreedly.js, we'll take care of generating the forms for all the Gateways we support, submit the secure credentials to our servers, and give you back a Gateway token that you keep for your customer to run transactions that credit their Merchant Account.

It's all open source and on Github for you to use. We also have a number of other sample applications you might find useful.

Fix link to point to this project.

Fix link to point to this project.


Edit Your Question

<%= form_for [@comment] do |f| %>
  <fieldset id="form">

      <%= f.label :content %>
      <%= f.text_area :content %>

    <%= f.submit 'Save your comment' %>

  </fieldset>
<% end %>

Edit Your Question

<%= render partial: "form" %>

Repair questions/edit view effed-up in previous merge. Sorry.


#!upstart
description "Node.js Application Server"

start on (local-filesystems and net-device-up IFACE!=lo)
stop on [!12345]

console log

<% @environment.each do |key, value| -%>
env <%= key %>="<%= value %>"
<% end -%>
<% unless @user.nil? -%>
setuid <%= @user %>
<% end -%>
<% unless @group.nil? -%>
setgid <%= @group %>
<% end -%>
chdir <%= @app_dir %>
exec <%= @node_binary %> <%= @entry %>

#!upstart
description "Node.js Application Server"

start on (local-filesystems and net-device-up IFACE!=lo)
stop on [!12345]

console log

<% @environment.each do |key, value| -%>
env <%= key %>="<%= value %>"
<% end -%>
<% unless @user.nil? -%>
setuid <%= @user %>
<% end -%>
<% unless @group.nil? -%>
setgid <%= @group %>
<% end -%>
chdir <%= @app_dir %>
exec npm start

Use 'npm start' instead of entry-point.

Use 'npm start' instead of entry-point.


<% if user_signed_in? %>

<%= link_to "Order History", orders_path %>

      Account

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

<%= link_to "Update Profile", edit_user_registration_path %>

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

<% else %>

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

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

<% end %>

<% if user_signed_in? %>

<%= link_to "Place Order", new_order_path %>

      Account

<%= link_to "Account", profile_path(current_user) %>

<%= link_to "Edit Account", edit_user_registration_path %>

<%= link_to "Order History", orders_path %>

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

<% else %>

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

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

<% end %>

Update paths in navigation links

Update paths in navigation links


<%= render 'admin/nav' %>
<% title 'API Usage - Libraries.io' %>

  API Usage for <%= Date.today.strftime("%B %Y") %>

    Email
    Signed up
    Last login
    Optin?
    Requests

    <% @api_key_usage.each do |api_key_id, usage| %>
      <% api_key = @api_keys.first{|key| key.id == api_key_id.to_i } %>
      <% next unless api_key.present? %>

          <%= api_key.user.email %>

          <%= api_key.user.created_at.to_s(:short) %>

          <%= api_key.user.last_login_at.try(:to_s, :short) %>

          <%= fa_icon(api_key.user.optin? ? 'check-circle' : 'times-circle') %>

          <%= number_to_human usage %>

    <% end %>

<%= render 'admin/nav' %>
<% title 'API Usage - Libraries.io' %>

  API Usage for <%= Date.today.strftime("%B %Y") %>

    Email
    Signed up
    Last login
    Optin?
    Requests

    <% @api_keys.each do |api_key| %>

          <%= api_key.user.email %>

          <%= api_key.user.created_at.to_s(:short) %>

          <%= api_key.user.last_login_at.try(:to_s, :short) %>

          <%= fa_icon(api_key.user.optin? ? 'check-circle' : 'times-circle') %>

          <%= number_to_human @api_key_usage[api_key.id.to_s] %>

    <% end %>

Fix admin api stats page

Fix admin api stats page


      <button type="button" id="hamburger" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        Toggle navigation

      </button>

Dashboard

Search

Messages

Account

Add navbar partial skeleton with toggle setup, needs routes for links


#!/bin/bash -x
# Bootstrap for Ubuntu 16.04 LTS (Xenial)
# This version of the bootstrap file uses the upstream Puppet 4 series from
# Puppetlabs, which differs from Puppet 3.8 series supplied with Ubuntu and
# may break environments that are not prepared for Puppet 4.
(
exec 1> >(logger -s -t user-data) 2>&1

wget -O /tmp/puppetlabs-release.deb https://apt.puppetlabs.com/puppetlabs-release-pc1-`lsb_release -sc`.deb
dpkg -i /tmp/puppetlabs-release.deb

export DEBIAN_FRONTEND=noninteractive

apt-get update
apt-get -y upgrade

apt-get install -y puppet-agent ruby ruby-dev zlib1g-dev libxml2-dev gcc make patch gnupg2

update-alternatives --install /usr/bin/puppet puppet /opt/puppetlabs/bin/puppet 1
update-alternatives --install /usr/bin/facter facter /opt/puppetlabs/bin/facter 1
update-alternatives --install /usr/bin/hiera hiera /opt/puppetlabs/bin/hiera 1
update-alternatives --install /usr/bin/mco mco /opt/puppetlabs/bin/mco 1

gem install pupistry --no-ri --no-rdoc
mkdir -p /etc/pupistry
mkdir -p <%= puppetcode %>
cat > /etc/pupistry/settings.yaml << "EOF"
general:
  app_cache: ~/.pupistry/cache
  s3_bucket: <%= s3_bucket %>
  s3_prefix: <%= s3_prefix %>
  gpg_disable: <%= gpg_disable %>
  gpg_signing_key: <%= gpg_signing_key %>
agent:
  puppetcode: <%= puppetcode %>
  access_key_id: <%= access_key_id %>
  secret_access_key: <%= secret_access_key %>
  region: <%= region %>
  proxy_uri: <%= proxy_uri %>
  daemon_frequency: <%= daemon_frequency %>
  daemon_minimal: <%= daemon_minimal %>
  environment: <%= environment %>
EOF
chmod 700 /etc/pupistry/settings.yaml
chmod 700 <%= puppetcode %>
pupistry apply --verbose

)

Split Ubuntu 16.04 templates into two - use of stock OS Puppet (3.8.x) vs Puppetlabs Puppet (4.x)


Main Navigation

      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar" aria-expanded="false" aria-controls="navbar">
        Toggle navigation

      </button>

        Downey Development and Design

Skills

Blog

Projects

History

Interests

Résumé

Add close class to drop down navbar

Add close class to drop down navbar


<%= twitter_bootstrap_form_for @collection, remote: true, html: { modal: true } do |f| %>
  <%= f.text_field :name, class: 'span5' %>
  <%= f.text_area :description, rows: 3, class: 'span5'  %>
  <%= f.select(:unit, "Unit", Admin::Collection.units) %>
    <%= f.submit class: 'btn btn-primary btn-stateful-loading', data: {loading_text: 'Saving...'} %>
    Cancel
<% end %>

<%= twitter_bootstrap_form_for @collection, remote: true, html: { modal: true } do |f| %>
  <%= f.text_field :name, class: 'span5' %>
  <%= f.text_area :description, rows: 3, class: 'span5'  %>
	<% if can? :update_unit, @collection %>
		<%= f.select(:unit, "Unit", Admin::Collection.units) %>
	<% end %>
	<%= f.submit class: 'btn btn-primary btn-stateful-loading', data: {loading_text: 'Saving...'} %>
	Cancel
<% end %>

Remove unit drop-down from edit collections as editor

When logged in as an editor the unit select drop-down menu item will not appear.


Books App

"Busquem conhecimento", Bilu, Et.

  <% @books.in_groups_of(2).each do |books| %>
    <% books.reject(&:nil?).each do |book| %>

        <%= image_tag 'http://placehold.it/115x180.png', alt: book %>

<%= book %>

<%= book.authors %>.

    <% end %>
  <% end %>

Books App

"Busquem conhecimento", Bilu, Et.

  <% @books.in_groups_of(3).each do |books| %>

      <% books.reject(&:nil?).each do |book| %>

            <%= image_tag 'http://placehold.it/115x180.png', alt: book %>

<%= book %>

<%= book.authors %>.

      <% end %>

  <% end %>

Add a better index view to books.

Add a better index view to books.


<% content_for :header_title, 'Navigation' %>

  <% StepNavigation.sections.each do |section, steps| %>

      <%= section %>

    <% steps.each do |step| %>

        <%= link_to step.to_param.titleize, %>
          step_path(step),
          class: 'button button--small button--full-width'
        <% end %>

    <% end %>
  <% end %>

<% content_for :header_title, 'Navigation' %>

  <% StepNavigation.sections.each do |section, steps| %>

      <%= section %>

    <% steps.each do |step| %>

        <%= link_to step.to_param.titleize,
          step_path(step),
          class: 'button button--small button--full-width' %>

    <% end %>
  <% end %>

Fix ERB issue on steps page

Fix ERB issue on steps page

Oops! It looks like there was a haml -> erb translation issue in here,
possibly? The fix is a quick one - make sure the erb tag is properly
formatted.


<% content_for :page_class do %>start-page<% end %>

Find government-backed support and finance for business, including:

grants

finance and loans

business support eg mentoring, consultancy

funding for small and medium-sized businesses and start-ups

Customise your search by location, size and activity.

        <%= link_to search_path, :class => "big button" do %>
          Get started
        <% end %>

  <%= render partial: 'govuk_component/beta_label', locals: { message: "You can also use the beta service to find funding and help."} %>

<% content_for :after_content do %>

<% end %>

Update My Business Support Beta URL

Update My Business Support Beta URL

Update the My Business Support Beta URL, and remove the /bdt/diagnosticForm path, so that it just points to the domain.


<a href="/<%= model.slug %>">
  <%= cover model %>

<a href='/<%= model.wdpa_id %>' title="<%= model.name %>"><%= model.name %>  <small title="<%= model.designation.name %>"><%= model.designation.name %>

  <% model.countries_for_index.each do |country| %>

<a href="<%= country_path(iso: country.iso_3) %>"><%= country.name %>, <%= country.region_for_index.try(:name) %>

  <% end %>

<a href="/<%= model.wdpa_id %>">
  <%= cover model %>

<a href='/<%= model.wdpa_id %>' title="<%= model.name %>"><%= model.name %>  <small title="<%= model.designation.name %>"><%= model.designation.name %>

  <% model.countries_for_index.each do |country| %>

<a href="<%= country_path(iso: country.iso_3) %>"><%= country.name %>, <%= country.region_for_index.try(:name) %>

  <% end %>

Apply wdpa_id based url also on cover

Apply wdpa_id based url also on cover


Support links

Help

Cookies

Contact

Accessibility statement

Terms and conditions

Rhestr o Wasanaethau Cymraeg

Built by the Government Digital Service

Support links

Help

Privacy

Cookies

Contact

Accessibility statement

Terms and conditions

Rhestr o Wasanaethau Cymraeg

Built by the Government Digital Service

Add Privacy Notice link to site-wide footer


Support links

Help

Cookies

Contact

Accessibility

Terms and conditions

Rhestr o Wasanaethau Cymraeg

Built by the Government Digital Service

Support links

Help

Cookies

Contact

Accessibility statement

Terms and conditions

Rhestr o Wasanaethau Cymraeg

Built by the Government Digital Service

Update footer link to Accessibility

Update footer link to Accessibility

The Accessibility Statement needs to be available from all pages on
the site. Will also replace the old page with a redirect in other
work.


      Dialog | docs

          ← back to Dialog

          Sign in

      Dialog | docs

          ← back to Dialog

        <%= link_to 'Login', 'https://app.dialoganalytics.com/users/sign_in', class: 'btn btn-outline-secondary' %>

        <%= link_to 'Sign up', 'https://app.dialoganalytics.com/users/sign_up', class: 'btn btn-success' %>

Improve header whitespace and add login

Improve header whitespace and add login


Administration /

Services

Register Service

Services

            Name
            Audience
            Enabled

        <% @services.sort.each do |k, v| %>

            <%= v.name %>
            <%= v.audience %>
            <%= v.enabled %>

              <a href="/administration/services/<%= k %>" class="btn btn-small">Show

        <% end %>

Administration /

Services

Register Service

Services

            Name
            Audience
            Enabled

        <%- @services.sort_by { |k, v| [v.created_at || 0, v.name] }.each do |k, v| -%>

            <%= v.name %>
            <%= v.audience %>
            <%= v.enabled %>

              <a href="/administration/services/<%= k %>" class="btn btn-small">Show

        <%- end -%>

Sort services UI by creation timestamp

Sort services UI by creation timestamp

At some point in the future, it would be nice to also show the creation
timestamp. Given that most services don't have one at the moment, we'll
leave that alone for now.

Fixes #9


A topic you are subscribed to has received a reply.  You can view it here:

<%= url_for([@post.topic.forum, @post.topic]) %>

To unsubscribe from this topic, use the following link:
<%= url_for([:unsubscribe, @post.topic.forum, @post.topic]) %>

A topic you are subscribed to has received a reply.  You can view it here:

<%= forum_topic_url(@post.topic.forum, @post.topic) %>

To unsubscribe from this topic, use the following link:
<%= unsubscribe_forum_topic_url(@post.topic.forum, @post.topic) %>

Revert back to using path helpers in topic_reply

Reminding me of the 'If it ain't broke...' since '12


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>

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

	  			<button class="btn btn-success btn-sm" onclick="something()">Add to cart</button>

  		<% end %>

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

Add button to each product

Add button to each product


Open Votes

    Proposer
    Title
    Agree
    Disagree
    State

  <% @pull_requests.each do |pr| %>
    <tr class='<%= row_class(pr) %>'>
      <a href='<%= pr.proposer['html_url'] %>'><img src='<%= pr.proposer['avatar_url'] %>' alt='<%= pr.proposer['login'] %>' height='24px' />
      <a href='/<%= pr.number %>'><%= pr.title %>
      <%= pr.agree.count %>
      <%= pr.disagree.count %>
      <%= pr.state %>

  <% end %>

Open Votes

    Proposer
    Title
    Agree
    Disagree
    Abstain
    State

  <% @pull_requests.each do |pr| %>
    <tr class='<%= row_class(pr) %>'>
      <a href='<%= pr.proposer['html_url'] %>'><img src='<%= pr.proposer['avatar_url'] %>' alt='<%= pr.proposer['login'] %>' height='24px' />
      <a href='/<%= pr.number %>'><%= pr.title %>
      <%= pr.agree.count %>
      <%= pr.disagree.count %>
      <%= pr.abstain.count %>
      <%= pr.state %>

  <% end %>

Include abstain count in list

Include abstain count in list


<form novalidate role="form" name="commentOnForm" ng-show="home.inCommentOnMode()">

{{ home.getSelectedItem().summary }}

    What do you think?
    <input type="text" class="form-control" id="comment-text" ng-model="home.commentModel.text" ng-maxlength="255" required focus-on="new-comment">

    <button class="btn btn-primary" ng-click="home.saveComment()" ng-disabled="commentOnForm.$invalid">Save</button>
    <button class="btn btn-default" ng-click="home.cancelCommentOnMode()">Cancel</button>

 0">

: {{ comment.text }}

</form>

Add image to comment item summary.

Add image to comment item summary.

* Added profile icon for comment item summary.

[Finished #89648754]


<% @list.topics.each do |t| %>
  <a href="<%= t.relative_url %>"><%= t.title %> <span title='<%= t 'posts' %>'>(<%= t.posts_count %>)

<% end %>

<% if @list.topics.length > 0 %>

<a href="<%= @list.more_topics_url.sub('.json?','?') %>"><%= t 'next_page'%>

<% end %>

<%= t 'powered_by_html' %>

<% if @rss %>
  <% content_for :head do %>
    <%= auto_discovery_link_tag(:rss, {action: "#{@rss}_feed"}, title: I18n.t("rss_description.#{@rss}")) %>
  <% end %>
<% end %>

<% if @category %>
  <% content_for :head do %>
    <%= auto_discovery_link_tag(@category, {action: :category_feed, format: :rss}, title: t('rss_topics_in_category', category: @category.name), type: 'application/rss+xml') %>
  <% end %>
  <% content_for :title do %><%=@category.name%> <%=t('topics')%><% end %>
<% elsif params[:page] %>
  <% content_for :title do %><%=t 'page_num', num: params[:page].to_i + 1 %><% end %>
<% end %>

<% @list.topics.each do |t| %>
  <a href="<%= t.relative_url %>"><%= t.title %> <span title='<%= t 'posts' %>'>(<%= t.posts_count %>)

<% end %>

<% if @list.topics.length > 0 %>

<a href="<%= @list.more_topics_url.sub('.json?','?') %>" rel="next"><%= t 'next_page'%>

<% end %>

<%= t 'powered_by_html' %>

<% if @rss %>
  <% content_for :head do %>
    <%= auto_discovery_link_tag(:rss, {action: "#{@rss}_feed"}, title: I18n.t("rss_description.#{@rss}")) %>
  <% end %>
<% end %>

<% if @category %>
  <% content_for :head do %>
    <%= auto_discovery_link_tag(@category, {action: :category_feed, format: :rss}, title: t('rss_topics_in_category', category: @category.name), type: 'application/rss+xml') %>
  <% end %>
  <% content_for :title do %><%=@category.name%> <%=t('topics')%><% end %>
<% elsif params[:page] %>
  <% content_for :title do %><%=t 'page_num', num: params[:page].to_i + 1 %><% end %>
<% end %>

Add rel=next to next page link for crawlers


        <%= link_to "Edit", [ :edit, :admin, @resource ], class: "btn btn-lg btn-default" %>
        <%= link_to "Destroy", [ :admin, @resource ], class: "btn btn-lg btn-danger", method: :delete %>

<%= @resource.to_s %>

        <% @resource.attributes.each do |key, value| %>

<%= @resource_class.human_attribute_name key %>

<%= value %>

        <% end %>

Create an epic show page for resources

Create an epic show page for resources


<%= render layout: 'shared/base_page', locals: {
  title: "This service is not available in #{@country_name}",
  publication: @publication,
  edition: @edition,
} do %>

      We’ve matched the postcode to <%= @local_authority.name %>.

      This service is not available in <%= @country_name %>. You can find other services on the <%= @local_authority.name %> website.

      <%= render "govuk_publishing_components/components/button", {
        text: "Find other services",
        rel: "external",
        margin_bottom: true,
        href: @local_authority.url,
      } %>

    <%= render "govuk_publishing_components/components/back_link", {
      href: local_transaction_search_path(@publication.slug),
    } %>

  <% if @publication.more_information.present? %>

        <%= render "govuk_publishing_components/components/govspeak", {} do %>
          <%= raw @publication.more_information %>
        <% end %>

  <% end %>
<% end %>

Add new page for unavailable services

Add new page for unavailable services

What

Add a new page with suitable messaging, URL etc when a service is unavailable in a particular country.

Why

So that the user is better informed that the service they are looking for is unavailable at the postcode given and provide them with an appropriate alternative resource that might be able to assist them with finding a suitable alternate or country specific service.


<div id='topic' class='<%= @topic.locked? ? 'locked' : 'unlocked' %>'>

<%= link_to t('forem.forum.forums'), forums_path %> » <%= link_to @topic.forum.title, @topic.forum %> » <%= @topic.subject %>

  <menu>
    <% if @topic.can_be_replied_to? %>
      <%= link_to t(".reply"), new_topic_post_path(@topic) %>
    <% end %>
    <% if @topic.user == current_user || forem_admin? %>
      | <%= link_to t(".delete"), forum_topic_path(@forum, @topic), :method => :delete, :confirm => 'Are you sure?' %>
    <% end %>
  </menu>
  <%= paginate @posts %>

    <%= render :partial => "forem/posts/post", :collection => @posts %>

Remove h2 that was wrapping a h2

Remove h2 that was wrapping a h2


  <%= @request.requester.first_name %> said: <%= @request.content %>
  At <%= @request.created_at %>
  <% if @request.requester == current_user %>
    <%= button_to "Cancel Request", request, class: button, method: 'delete' %>
  <% else %>
    <%= button_to 'Be a neighbor!', request, class: button, method: 'patch' %>
  <% end %>

Add buttons to either delete request or respond to request


<% summary = strip_tags stripdown(@actionPage.summary) -%>
<%
    image_url = if @actionPage.image.exists?
                  image_url(@actionPage.image.to_s)
                else
                  image_url("og-image-default.png")
                end
-%>

<meta name='description' content='<%= summary -%>'>
<meta property='og:type' content='article'>
<meta property='og:url' content='<%= action_page_url(@actionPage) -%>'>
<meta property='og:title' content='<%= @actionPage.og_title -%>'>
<meta property='og:description' content='<%= summary -%>'>
<meta property='og:image' content='<%= asset_path(image_url) -%>'>
<meta property='og:image:secure_url' content='<%= asset_path(image_url) -%>'>
<% if fb = Rails.application.config.facebook_handle %>
  <meta property='article:publisher' content='https://www.facebook.com/<%= fb -%>'>
<% end %>

<meta name='twitter:card' content='summary_large_image'>
<meta name='twitter:site' content='<%= twitter_handle -%>'>
<meta name='twitter:creator' content='<%= twitter_handle -%>'>
<meta name='twitter:image:src' content='<%= asset_path(image_url) -%>'>
<meta name='twitter:title' content='<%= @actionPage.og_title -%>'>
<meta name='twitter:description' content='<%= summary -%>'>

<% summary = strip_tags stripdown(@actionPage.summary) -%>
<%
    image_url = if @actionPage.image.try(:exists?)
                  image_url(@actionPage.image.to_s)
                else
                  image_url("og-image-default.png")
                end
-%>

<meta name='description' content='<%= summary -%>'>
<meta property='og:type' content='article'>
<meta property='og:url' content='<%= action_page_url(@actionPage) -%>'>
<meta property='og:title' content='<%= @actionPage.og_title -%>'>
<meta property='og:description' content='<%= summary -%>'>
<meta property='og:image' content='<%= asset_path(image_url) -%>'>
<meta property='og:image:secure_url' content='<%= asset_path(image_url) -%>'>
<% if fb = Rails.application.config.facebook_handle %>
  <meta property='article:publisher' content='https://www.facebook.com/<%= fb -%>'>
<% end %>

<meta name='twitter:card' content='summary_large_image'>
<meta name='twitter:site' content='<%= twitter_handle -%>'>
<meta name='twitter:creator' content='<%= twitter_handle -%>'>
<meta name='twitter:image:src' content='<%= asset_path(image_url) -%>'>
<meta name='twitter:title' content='<%= @actionPage.og_title -%>'>
<meta name='twitter:description' content='<%= summary -%>'>

Check if an image is present more safely


Archive a topic

<%= form_for @archival, url: archive_topic_path(@archival.tag) do |f| %>
  <%= f.select :successor,
    options_from_collection_for_select(@archival.topics, :id, :title_including_parent),
    { label: 'Choose a topic to redirect to:' },
    { class: "select2" } %>

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

<%= tag_header @archival.tag, 'Archive topic' %>

<%= form_for @archival, url: archive_topic_path(@archival.tag) do |f| %>
  <%= f.select :successor,
    options_from_collection_for_select(@archival.topics, :id, :title_including_parent),
    { label: 'Choose a topic to redirect to:' },
    { class: "select2" } %>

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

Use standard header for archive tag

Use standard header for archive tag

Using `tag_head` will give us a breadcrumb and a nice browser title too.