<!DOCTYPE html>
<html>
<head>
  <title><%= full_title(yield(:title)) %></title>
  <%= favicon_link_tag 'favicon.ico' %>
  <%= render 'layouts/rails_default' %>
  <%= render 'layouts/shim' %>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
<% unless current_page?(login_path) %>
  <%= render 'layouts/header' %>
<% end %>
<div class="container">
  <% flash.each do |message_type, message| %>
      <%= content_tag(:div, message, class: "alert alert-#{message_type}") %>
  <% end %>
  <%= yield %>
  <%= render 'layouts/footer' %>
  <%= debug(params) if Rails.env.development? %>
</div>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title><%= full_title(yield(:title)) %></title>
  <%= favicon_link_tag 'favicon.ico' %>
  <%= render 'layouts/rails_default' %>
  <%= render 'layouts/shim' %>
</head>
<body>
<% unless current_page?(login_path) %>
  <%= render 'layouts/header' %>
<% end %>
<div class="container">
  <% flash.each do |message_type, message| %>
      <%= content_tag(:div, message, class: "alert alert-#{message_type}") %>
  <% end %>
  <%= yield %>
  <%= render 'layouts/footer' %>
  <%= debug(params) if Rails.env.development? %>
</div>
</body>
</html>

Add the "X-UA-Compatible" tag to head. This ensures that IE uses the latest rendering mode and doesn't needlessly allow compatability mode.


<% provide(:title, "Results") %>

Here are your results!

<% @sorted_questions.each do |question| %>
  <% full_question = find_question(@recent_questions, question[0]) %>

<%= link_to question[0], "https://stackoverflow.com/questions/#{question[0]}" %>

<% end %>

<% provide(:title, "Results") %>

Here are your results!

<% @sorted_questions.each do |question| %>
  <% full_question = find_question(@recent_questions, question[0]) %>

<%= link_to question[0], "https://stackoverflow.com/questions/#{question[0]}" %> Relevance: <%= @questionList[question[0]] %>

<% end %>

Add sorted question link details

Add sorted question link details


server {
	listen 443 default_server;

	include ssl.conf;

	location = /healthcheck {
		return 200 "I am in good health!\n";
	}

	location / {
		if ($http_x_forwarded_proto = "http") {
			return 301 https://$host:<%= Proxy.https_port %>$request_uri;
		}

		return 444;
	}
}
<% apex_domains.each do |d| %>
server {
	listen 443;

	include ssl.conf;

	server_name <%= d %>;

	location / {
		return 301 https://www.<%= d %>$request_uri;
	}
}
<% end %>
<% mappings.each do |m| %>
server {
	listen 443;

	include ssl.conf;

	server_name <%= m.subdomain %>.<%= domain %>;

	location / {
		if ($http_x_forwarded_proto = "http") {
			return 301 https://$host:<%= Proxy.https_port %>$request_uri;
		}

		proxy_pass <%= m.url %>;
	}
}
<% end %>

server {
	listen 443 default_server;

	include ssl.conf;

	location = /healthcheck {
		return 200 "I am in good health!\n";
	}

	location / {
		if ($http_x_forwarded_proto = "http") {
			return 301 https://$host:<%= Proxy.https_port %>$request_uri;
		}

		return 444;
	}
}
<% apex_domains.each do |d| %>
server {
	listen 443;

	include ssl.conf;

	server_name <%= d %>;

	location / {
		return 301 https://www.<%= d %>$request_uri;
	}
}
<% end %>
<% mappings.each do |m| %>
server {
	listen 443;

	include ssl.conf;

	server_name <%= m.subdomain %>.<%= domain %>;

	location / {
		if ($http_x_forwarded_proto = "http") {
			return 301 https://$host:<%= Proxy.https_port %>$request_uri;
		}

		include /etc/nginx/proxy_params;

		proxy_pass <%= m.url %>;
	}
}
<% end %>

Include proxy params to set our own X-Forwarded-For headers


  Register

<% if !error.nil? %>

      <%= error %>

<% end %>

<form action="/log_in" method="post">

        Email

        <input id="email" type="text" name="email">

        Password

        <input id="password" type="password" name="password">

        <input type="submit" value="Log in">

</form>

  Log in

<% if !error.nil? %>

      <%= error %>

<% end %>

<form action="/log_in" method="post">

        Email

        <input id="email" type="text" name="email">

        Password

        <input id="password" type="password" name="password">

        <input type="submit" value="Log in">

</form>

Fix title on log in page

Fix title on log in page


[mysqld]
datadir=/var/lib/mysql/data
server-id=99

socket=/var/lib/mysql/mysql.sock
user=mysql
old_passwords=0
symbolic-links=0
max_allowed_packet=20M

#innodb tables all get their own file
innodb_file_per_table

# Set buffer pool size to 50-80% of your computer's memory
innodb_buffer_pool_size=<%= (@memorysize.to_i*0.50).floor %>M

# Additional memeory for tables doesn't need to be huge
innodb_additional_mem_pool_size=128M

innodb_log_file_size=256M
innodb_log_buffer_size=16M

#utf8
character-set-server=utf8
collation-server=utf8_general_ci
skip-character-set-client-handshake

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[mysql]
default-character-set=utf8

[mysqld]
datadir=/var/lib/mysql/data
server-id=99

socket=/var/lib/mysql/mysql.sock
user=mysql
old_passwords=0
symbolic-links=0
max_allowed_packet=20M

#innodb tables all get their own file
innodb_file_per_table

# Set buffer pool size to 50-80% of your computer's memory
innodb_buffer_pool_size=<%= (@memorysize.to_i*0.50).floor %>M

# Additional memeory for tables doesn't need to be huge
innodb_additional_mem_pool_size=128M

innodb_log_file_size=256M
innodb_log_buffer_size=16M

#utf8
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[mysql]
default-character-set=utf8

Change jazzee mysql configuration to use the new dfault mysql collation.


<!DOCTYPE html>

  <title>Gitator - Find awesome repos/users based on your GitHub Profile!</title>

  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
  <link rel="stylesheet" type="text/css" href="index.css" />

Gitator Find awesome repos which best suit your profile!

<!DOCTYPE html>

  <title>Gitator - Find relevent repos/users based on your GitHub Profile!</title>

  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
  <link rel="stylesheet" type="text/css" href="index.css" />

Gitator Find awesome repos which best suit your profile!

Correct the title in not found page

Correct the title in not found page


<% content_for :body_content_title do %>
  <%= t('plugins.refinerycms_news.title') %>
<% end %>

<% content_for :body_content_left do %>
  <%= @page[:body] if @news_items.offset == 0 %>

  <% if @news_items.any? %>
    <% @news_items.each do |item| %>

<%= link_to item.title, news_item_url(item) %>

        <%= t('.published') %> <%= l(item.publish_date) %>

      <%= truncate  item.body, :length => 200,
                    :omission => " ... #{link_to t('.read_more'), news_item_url(item)}",
                    :preserve_html_tags => true %>
    <% end %>

    <%= will_paginate(@news_items) %>
  <% else %>

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

  <% end %>
<% end -%>

<% content_for :body_content_right, " " if @news_items.offset > 0 -%>

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

<% content_for :body_content_title do %>
  <%= t('plugins.refinerycms_news.title') %>
<% end %>

<% content_for :body_content_left do %>
  <%= @page[:body] if @news_items.offset == 0 %>

  <% if @news_items.any? %>
    <% @news_items.each do |item| %>

<%= link_to item.title, news_item_url(item) %>

        <%= t('.published') %> <%= l(item.publish_date, :format => :long) %>

      <%= truncate  item.body, :length => 200,
                    :omission => " ... #{link_to t('.read_more'), news_item_url(item)}",
                    :preserve_html_tags => true %>
    <% end %>

    <%= will_paginate(@news_items) %>
  <% else %>

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

  <% end %>
<% end -%>

<% content_for :body_content_right, " " if @news_items.offset > 0 -%>

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

Use :format => :long date format for index action just like in show action.


  <% tag_object.lists.ordered.each do |list| %>
    <%= render "govuk_publishing_components/components/document_list", {
      items: [
        {
          link: {
            text: list.name
          },
          metadata: {
            edit_list: tag.a("Edit list", href: tag_list_path(tag_object, list), class: "govuk-link govuk-body"),
            rename_list: tag.a("Rename list", href: edit_tag_list_path(tag_object, list), class: "govuk-link govuk-body"),
            delete_list: tag.a("Delete list", href: confirm_destroy_tag_list_path(tag_object, list), class: "govuk-link govuk-body"),
          }
        },
      ]
    } %>
  <% end %>

Unused links

  Unused links have not been included in any of the curated lists. These links will not be shown to users. Select the page title to edit page tagging in Content Tagger.

<%= render "govuk_publishing_components/components/list", {
  extra_spacing: true,
  items: tag_object.uncurated_tagged_documents.map { |item| link_to item.title, content_tagger_url + '/taggings/lookup' + item.content_id, class: 'govuk-link' }
} %>

  <% tag_object.lists.ordered.each do |list| %>
    <%= render "govuk_publishing_components/components/document_list", {
      items: [
        {
          link: {
            text: list.name
          },
          metadata: {
            edit_list: tag.a("Edit list", href: tag_list_path(tag_object, list), class: "govuk-link govuk-body"),
            rename_list: tag.a("Rename list", href: edit_tag_list_path(tag_object, list), class: "govuk-link govuk-body"),
            delete_list: tag.a("Delete list", href: confirm_destroy_tag_list_path(tag_object, list), class: "govuk-link govuk-body"),
          }
        },
      ]
    } %>
  <% end %>

Unused links

  Unused links have not been included in any of the curated lists. These links will not be shown to users. Select the page title to edit page tagging in Content Tagger.

<%= render "govuk_publishing_components/components/list", {
  extra_spacing: true,
  items: tag_object.uncurated_tagged_documents.map { |item| link_to item.title, content_tagger_url + '/taggings/' + item.content_id, class: 'govuk-link' }
} %>

Fix broken link for "Unused links" section


<% # this partial should take a local of requirements for it's level in the tree  %>
<% requirements.each do |requirement| %>
  <% if requirement.is_group? %>
    <li class="li_folder" id="requirement_<%= requirement.id %>">

      <%= requirement.text_brief %>

        <%= render partial: 'shared/requirements_tree', locals: {requirements: requirement.children} %>

  <% else %>
    <li class="li_requirement<%= (requirement.id.to_s == params[:requirement_id] ? ' current' : '') %>" id="requirement_<%= requirement.id %>">
      <% unless requirement.response.nil? %>
        <%= image_tag("checked.png", id: 'complete_icon') %>
      <% end %>

      <% if requirement.id.to_s == params[:requirement_id] %>
        <%= requirement.text_brief %>
      <% else %>
        <%= link_to requirement.text_brief,
                    details_plan_path(@plan, requirement_id: requirement.id, node_type: 'requirement'),
                    {class: 'requirement_direct_link'} %>
      <% end %>

  <% end %>
<% end %>

<% # this partial should take a local of requirements for it's level in the tree  %>
<% requirements.each do |requirement| %>
  <% if requirement.is_group? %>
    <li class="li_folder" id="requirement_<%= requirement.id %>">

      <%= requirement.text_brief %>

        <%= render partial: 'shared/requirements_tree', locals: {requirements: requirement.children} %>

  <% else %>
    <li class="li_requirement<%= (requirement.id.to_s == params[:requirement_id] ? ' current' : '') %>" id="requirement_<%= requirement.id %>">
      <% unless Response.where(requirement_id: requirement.id, plan_id: @plan.id).count < 1 %>
        <%= image_tag("checked.png", id: 'complete_icon') %>
      <% end %>

      <% if requirement.id.to_s == params[:requirement_id] %>
        <%= requirement.text_brief %>
      <% else %>
        <%= link_to requirement.text_brief,
                    details_plan_path(@plan, requirement_id: requirement.id, node_type: 'requirement'),
                    {class: 'requirement_direct_link'} %>
      <% end %>

  <% end %>
<% end %>

Refactor comeplete icon related code.

Refactor comeplete icon related code.


    <%= @package.name %>

    <% if @package.estimated_delivery_date.present? %>
      <%= @package.estimated_delivery_date %>
    <% else %>
      No Estimated Delivery Date Available
    <% end %>

    <%= @package.tracking_number %>

    <%= @package.carrier %>

      Message
      Status
      City
      State
      Zip
      County
      Updated At

    <%= render partial: 'tracking_update_row', as: :tracking_update, collection: @package.tracking_updates.newest_first %>

  <%= link_to 'Refresh', my_package_tracking_refresh_path(@package), method: :post %>

    <%= @package.name %>

    <%= @package.status.humanize %>

    <% if @package.estimated_delivery_date.present? %>
      <%= @package.estimated_delivery_date %>
    <% else %>
      No Estimated Delivery Date Available
    <% end %>

    <%= @package.tracking_number %>

    <%= @package.carrier %>

      Message
      Status
      City
      State
      Zip
      County
      Updated At

    <%= render partial: 'tracking_update_row', as: :tracking_update, collection: @package.tracking_updates.newest_first %>

  <%= link_to 'Refresh', my_package_tracking_refresh_path(@package), method: :post %>

Add status to package page

Add status to package page


        <%= form_tag create_path, method: :post do %>

              <%= label_tag :team_name, 'Team Name' %>
              <%= text_field_tag :team_name, '', class: 'form-control', placeholder: 'GOV.UK Signify' %>

              <%= label_tag :colour, 'Colour (optional)' %>
              <%= text_field_tag :colour, '', class: 'form-control', placeholder: "red, #coffee" %>

                <%= submit_tag 'Signify!', class: 'btn btn-primary btn-lg' %>

        <% end %>

        <%= form_tag create_path, method: :post do %>

              <%= label_tag :team_name, 'Team Name' %>
              <%= text_field_tag :team_name, '', class: 'form-control', placeholder: 'GOV.UK Signify' %>

              <%= label_tag :colour, 'Background colour (optional)' %>
              How to check your colour choice is readable
              <%= text_field_tag :colour, '', class: 'form-control', placeholder: "purple" %>

                <%= submit_tag 'Signify!', class: 'btn btn-primary btn-lg' %>

        <% end %>

Add link to colour contrast checker

Add link to colour contrast checker


<%
  guidance ||= nil
%>
<%=
  if guidance.present? && guidance["links"].present?
    guidance_links = guidance["links"]
    content_tag :p, :class => 'govuk-body' do
      concat(guidance["text"] + " ")
      guidance_links.each do | link |
        elem =  link_to(link["label"],link["url"])
        if  link.equal? guidance_links.last
          concat(elem)
        elsif link.equal? guidance_links[guidance_links.length - 2]
          concat(elem + " and ")
        else
          concat(elem + ", ")
        end
      end
    end
  end
%>

<%
  guidance ||= nil
%>
<%=
  if guidance.present? && guidance["links"].present?
    guidance_links = guidance["links"]
    content_tag :p, :class => 'govuk-body' do
      concat(guidance["text"] + " ")
      guidance_links.each do | link |
        elem =  link_to(link["label"],link["url"], class: "govuk-link")
        if  link.equal? guidance_links.last
          concat(elem)
        elsif link.equal? guidance_links[guidance_links.length - 2]
          concat(elem + " and ")
        else
          concat(elem + ", ")
        end
      end
    end
  end
%>

Add govuk-link class to country guidance links


            Manage your GOV.UK email preferences including unsubscribing

          Provided by
          GOV.UK

          This email was sent to [[EMAIL_ADDRESS]]

Add email address to email footer

Add email address to email footer

This enables users who have email forwarding to know which email
address it was sent to.


<% if @rfc %>

    <%= @rfc.ciName %>

    <%= @rfc.ciClassName %>

    <%= @rfc.nsPath %>

<% end %>
<% render 'cms/log_data', :log_data => @log_data %>

<% if @rfc %>

    <%= @rfc.ciName %>

    <%= @rfc.ciClassName %>

    <%= @rfc.nsPath %>

<% end %>
<%= render 'cms/log_data', :log_data => @log_data %>

Fix for deployment log data, change render to execute


class CreateAtlassianJwtTokens < ActiveRecord::Migration
  def self.up
    if table_exists? :jwt_tokens
      pp 'Skipping jwt_tokens table creation...'
    else
      create_table :jwt_tokens do |t|
        t.string :addon_key
        t.string :client_key
        t.string :shared_secret
        t.string :product_type
        t.string :base_url
        t.string :api_base_url
        t.string :oauth_client_id
        t.string :public_key
      end

      add_index(:jwt_tokens, :client_key)
    end
  end
end

class CreateAtlassianJwtTokens < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def self.up
    if table_exists? :jwt_tokens
      pp 'Skipping jwt_tokens table creation...'
    else
      create_table :jwt_tokens do |t|
        t.string :addon_key
        t.string :client_key
        t.string :shared_secret
        t.string :product_type
        t.string :base_url
        t.string :api_base_url
        t.string :oauth_client_id
        t.string :public_key
      end

      add_index(:jwt_tokens, :client_key)
    end
  end
end

Fix the failing migration template

Fix the failing migration template

Inheriting directly from `ActiveRecord::Migration` is no longer
supported. So we need to inherit from a specific Rails version.


[HKEY_THIS_MACHINE\Services\lsass\Parameters]
"SpaceReplacement"="-"

[HKEY_THIS_MACHINE\Services\lsass\Parameters\Providers\ActiveDirectory]
"HomeDirTemplate"="%H/%D/%U"
"SpaceReplacement"="-"
"AssumeDefaultDomain"=dword:00000001
"NssGroupMembersQueryCacheOnly"=dword:00000001
"RequireMembershipOf"=sza:"<%= @ad_membership_required.join(',') %>"
"LoginShellTemplate"="/bin/bash"

[HKEY_THIS_MACHINE\Services\lsass\Parameters\Providers\ActiveDirectory]
"LoginShellTemplate"="/bin/bash"

Set bash as the default shell for likewise

Former-commit-id: 7353cecd23db90de1740a18bc3f988b43185cbfe [formerly 5e646bec732e013f32aed93a2c578e36c76e14c1] [formerly beb919e79c9b5b4eac75ba96429b8efc7933dd04 [formerly 91479f6f8a8a4240b5f36f5ae47bd2ca4f973eb2 [formerly c24675d90bf2fe05b1637dbf4dbae06786777d7d]]]
Former-commit-id: d5c6fc8666681f779275c5dc18c5c34767634b71 [formerly 7dc87fd4abe347183f0edd4a245541940e77cb19]
Former-commit-id: 7113aa7ffded6983ba630f7083433a5465ef6e3a
Former-commit-id: 11e28029d92c552e7d1587908dbb4d0e1404b7f5


      Copyright <%= Time.now.strftime('%Y') %>
      Tilde Inc.

      Core Team |
      Sponsors

      Security |
      Legal |
      Logos

      Community Guidelines

      Ember.js is free, open source and always will be.

      Copyright <%= Time.now.strftime('%Y') %>
      Tilde Inc.

      Team |
      Sponsors

      Security |
      Legal |
      Logos

      Community Guidelines

      Ember.js is free, open source and always will be.

Update "Core Team" link to be more appropriate


---
layout: post
title:  "Welcome to Jekyll!"
date:   <%= Time.now.strftime('%Y-%m-%d %H:%M:%S') %>
categories: jekyll update
---
You’ll find this post in your `_posts` directory – edit it and re-build (or run with the `--watch` switch) to see your changes.

To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.

Jekyll also offers powerful support for code snippets:

{% highlight ruby %}
def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll’s dedicated Help repository][jekyll-help].

[jekyll]:      http://jekyllrb.com
[jekyll-gh]:   https://github.com/jekyll/jekyll
[jekyll-help]: https://github.com/jekyll/jekyll-help

---
layout: post
title:  "Welcome to Jekyll!"
date:   <%= Time.now.strftime('%Y-%m-%d %H:%M:%S') %>
categories: jekyll update
---
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve --watch`, which launches a web server and auto-regenerates your site when a file is updated.

To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.

Jekyll also offers powerful support for code snippets:

{% highlight ruby %}
def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll’s dedicated Help repository][jekyll-help].

[jekyll]:      http://jekyllrb.com
[jekyll-gh]:   https://github.com/jekyll/jekyll
[jekyll-help]: https://github.com/jekyll/jekyll-help

Make the intro text on the site template post a bit nicer.


---
- scm:
    name: govuk-taxonomy-supervised-learning
    scm:
        - git:
            url: git@github.com:alphagov/govuk-taxonomy-supervised-learning.git
            branches:
              - master

- job:
    name: govuk_taxonomy_supervised_learning
    display-name: Taxonomy Supervised Learning Pipeline
    project-type: freestyle
    description: |
      This job runs the taxonomy supervised learning pipeline
    logrotate:
      numToKeep: 20
    scm:
      - govuk-taxonomy-supervised-learning
    triggers:
        - timed: 'H 2 * * 1-5'
    builders:
      - shell: |
          #!/bin/bash
          git checkout -B ${GIT_BRANCH} origin/${GIT_BRANCH}

          rm -rf ./venv
          virtualenv --python=python3 --no-site-packages ./venv
          export VIRTUAL_ENV="$PWD/venv"
          export PATH="$PWD/venv/bin:$PATH"
          pip3 install --upgrade pip

          make pip_install

          export PLEK_SERVICE_RUMMAGER_URI=https://<%= @rummager_api %>
          export PLEK_SERVICE_DRAFT_CONTENT_STORE_URI=https://<%= @draft_content_store_api %>

          make clean
          make data/taxons.json.gz
          make data/content.json.gz
    parameters:
        - string:
            name: GIT_BRANCH
            description: The Git branch of the govuk-taxonomy-supervised-learning repository to use.
            default: master

---
- scm:
    name: govuk-taxonomy-supervised-learning
    scm:
        - git:
            url: git@github.com:alphagov/govuk-taxonomy-supervised-learning.git
            branches:
              - master

- job:
    name: govuk_taxonomy_supervised_learning
    display-name: Taxonomy Supervised Learning Pipeline
    project-type: freestyle
    description: |
      This job runs the taxonomy supervised learning pipeline
    logrotate:
      numToKeep: 20
    scm:
      - govuk-taxonomy-supervised-learning
    triggers:
        - timed: 'H 2 * * 1-5'
    builders:
      - shell: |
          #!/bin/bash
          git checkout -B ${GIT_BRANCH} origin/${GIT_BRANCH}

          rm -rf ./venv
          virtualenv --python=python3 --no-site-packages ./venv
          export VIRTUAL_ENV="$PWD/venv"
          export PATH="$PWD/venv/bin:$PATH"
          pip3 install --upgrade pip

          make pip_install

          export PLEK_SERVICE_RUMMAGER_URI=https://<%= @rummager_api %>
          export PLEK_SERVICE_DRAFT_CONTENT_STORE_URI=https://<%= @draft_content_store_api %>

          make clean
          make data/taxons.json.gz
          make data/content.json.gz
          make measure_average_taxons
    parameters:
        - string:
            name: GIT_BRANCH
            description: The Git branch of the govuk-taxonomy-supervised-learning repository to use.
            default: master

Add measuring average taxons to taxonomy pipeline jenkins job


<%= Gon::Base.render_data %>
<%= javascript_pack_tag 'application' %>

<%= react_component('Cover', {
  page: @site_page,
  site: @site_page.site,
  siteSettings: defined?(@site_page.site.site_settings) ? @site_page.site.site_settings : nil,
  siteTitleOnly: @site_title_only,
  image: @main_image,
  pageSize: defined?(size) ? size : nil
} ) %>

<div class="fa-dashboard">
  <%= react_component('public/Dashboard', {
    pageSlug: @site_page.uri,
    dataset: @site_page.dashboard_setting.dataset_id,
    widget: @site_page.dashboard_setting.widget_id,
    topContent: @site_page.dashboard_setting.content_top,
    bottomContent: @site_page.dashboard_setting.content_bottom
  }) %>
</div>

<%= render 'front/footer' %>

<%= Gon::Base.render_data %>
<%= javascript_pack_tag 'application' %>

<%= react_component('Cover', {
  page: @site_page,
  site: @site_page.site,
  siteSettings: defined?(@site_page.site.site_settings) ? @site_page.site.site_settings : nil,
  siteTitleOnly: @site_title_only,
  image: @alternative_image,
  pageSize: defined?(size) ? size : nil
} ) %>

<div class="fa-dashboard">
  <%= react_component('public/Dashboard', {
    pageSlug: @site_page.uri,
    dataset: @site_page.dashboard_setting.dataset_id,
    widget: @site_page.dashboard_setting.widget_id,
    topContent: @site_page.dashboard_setting.content_top,
    bottomContent: @site_page.dashboard_setting.content_bottom
  }) %>
</div>

<%= render 'front/footer' %>

Use the correct cover image for the dashboard


<% content_for :header, t('.there_are_no_users') %>

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

  http://<%= request.host %>/refinery

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

    <%= button_to t('.continue'), new_user_url, :method => :get %>

<% content_for :header, t('.there_are_no_users') %>

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

  http://<%= request.host %>/refinery

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

    <%= link_to t('.continue'), new_user_url(:only_path => true),
                :class => 'button' %>

Build upon the success of tsdbrown by converting this to a link.


<ul class="grid rows-<%= @dashboard.rows %> cols-<%= @dashboard.columns %>" id="<%= @dashboard.slug %>">
  <% @dashboard.metrics.each do |metric| %>
    <li class="row-<%= metric[:row] %> col-<%= metric[:col] %> height-<%= metric[:height] || 1 %> width-<%= metric[:width] || 1 %>">

        <iframe src='/metrics/<%= metric[:name] %>/<%= metric[:date] || '*/*' %>?layout=bare&boxcolour=<%= metric[:boxcolour] %>&textcolour=<%= metric[:textcolour] %><%= metric[:visualisation].blank? ? '' : "&type=#{metric[:visualisation]}" %>'
                width='100%'
                height='100%'
                frameBorder='0'
                scrolling='no'>

  <% end %>

<ul class="grid rows-<%= @dashboard.rows %> cols-<%= @dashboard.columns %>" id="<%= @dashboard.slug %>">
  <% @dashboard.metrics.each do |metric| %>
    <li class="row-<%= metric[:row] %> col-<%= metric[:col] %> height-<%= metric[:height] || 1 %> width-<%= metric[:width] || 1 %>">

        <iframe src='/metrics/<%= metric[:name] %>/<%= metric[:date] || '*/*' %>?layout=bare&boxcolour=<%= metric[:boxcolour] %>&textcolour=<%= metric[:textcolour] %>&title=<%= metric[:title] %><%= metric[:visualisation].blank? ? '' : "&type=#{metric[:visualisation]}" %>'
                width='100%'
                height='100%'
                frameBorder='0'
                scrolling='no'>

  <% end %>

Add title to metric url

Add title to metric url


<a href="<%= account_conversation_path(conversation.account, conversation) %>" class="conversation-row">

  <% if current_page?(inbox_account_conversations_path(@account)) %>

        <button href="#" data-account-conversation-path="<%= account_conversation_path(@account, conversation, conversation: { respond_later: true }) %>" class="btn btn-primary respond-later">
          Respond Later
        </button>

        <button href="#" data-account-conversation-path="<%= account_conversation_path(@account, conversation, conversation: { archive: true }) %>" class="btn btn-danger archive">
          Archive
        </button>

  <% end %>

<%= summary(conversation) %>

    <%= conversation.participants.map {|person| nickname(person) }.to_sentence %>

    <%= pluralize(conversation.messages.count, 'message') %>

    <span class="time updated <%= most_recent_message_class(conversation) %>">
      <%= time_ago_in_words(conversation.most_recent_message.updated_at) %>

<a class="conversation-row" href="<%= account_conversation_path(conversation.account, conversation) %>">

  <% if current_page?(inbox_account_conversations_path(@account)) %>

        <button class="btn btn-primary respond-later" data-account-conversation-path="<%= account_conversation_path(@account, conversation, conversation: { respond_later: true }) %>">
          Respond Later
        </button>

        <button class="btn btn-danger archive" data-account-conversation-path="<%= account_conversation_path(@account, conversation, conversation: { archive: true }) %>">
          Archive
        </button>

  <% end %>

<%= summary(conversation) %>

    <%= conversation.participants.map {|person| nickname(person) }.to_sentence %>

    <%= pluralize(conversation.messages.count, 'message') %>

    <span class="time updated <%= most_recent_message_class(conversation) %>">
      <%= time_ago_in_words(conversation.most_recent_message.updated_at) %>

Clean up conversation row markup

Clean up conversation row markup


Time period

    <%= f.date_field :start %>
    <%= f.date_field :end %>
    <%= f.check_box :current, label: "Currently living here", disable: true %>
    <%= f.text_field :reason, label: "Reason for leaving" %>
    <%= f.text_field :rent %>

Residence Address

  <%= f.fields_for :address do |a| %>
    <%= render "addresses/fields", builder: a %>
  <% end %>

Landlord

  <%= f.fields_for :landlord do |l| %>
    <%= render "people/name", builder: l %>
    <%= render "people/contact", builder: l %>
  <% end%>

Landlord's address

  <%= f.fields_for :landlord do |l| %>
    <%= l.fields_for :mail_address do |m| %>
      <%= render "addresses/fields", builder: m %>
    <% end %>
  <% end %>

Time period

    <%= f.date_field :start %>
    <%= f.date_field :end %>
    <%= f.check_box :current, label: "Currently living here", disable: true %>
    <%= f.text_field :reason, label: "Reason for leaving" %>
    <%= f.text_field :rent %>

Residence Address

  <%= f.fields_for :address do |a| %>
    <%= render "addresses/fields", builder: a %>
  <% end %>

Landlord

  <%= f.fields_for :landlord do |l| %>
    <%= render "people/name", builder: l %>
    <%= render "people/contact", builder: l %>
  <% end%>

Landlord's current address

  <%= f.fields_for :landlord do |l| %>
    <%= l.fields_for :mail_address do |m| %>
      <%= render "addresses/fields", builder: m %>
    <% end %>
  <% end %>

Update landlord address field descritption

At the request of Stacey, changing the label "Landord's address" to "Landlord's current address."

This makes it clearer to case workers that the address should be one where the landlord can contacted at the current time.


<% content_for(:breadcrumb) do %>
  <a href="<%= root_path %>"><%= t('layouts.base.home') %>
  <% categories.each do |category| %>
    »

      <%= link_to category.title, category.path %>

  <% end %>
<% end %>

<% content_for(:breadcrumb) do %>
  <a href="<%= root_path %>"><%= t('layouts.base.home') %>
  <% categories.each do |category| %>
    »

        <%= link_to category.path, itemprop: "url" do %>
          <%= category.title %>
        <% end %>

  <% end %>
<% end %>

Add in the microdata for the breadcrumbs


# Spotlight serves assets from the public directory
# of the currently deployed version of the app.
location /spotlight/ {
  expires 1m;
  rewrite ^/spotlight(.*)$ $1 break;
  root /opt/spotlight/current/public;
  gzip on;
  gzip_types application/x-javascript application/javascript application/json text/css;
  gzip_proxied no_etag;
  gzip_vary on;
  }

location /stagecraft/ {
  expires 1h;
  rewrite ^/stagecraft(.*)$ $1 break;
  root /opt/stagecraft/current/assets;
  gzip on;
  gzip_types application/x-javascript application/javascript application/json text/css;
  gzip_proxied no_etag;
  gzip_vary on;
}

# Spotlight serves assets from the public directory
# of the currently deployed version of the app.
location /spotlight/ {
  expires 30d;
  rewrite ^/spotlight(.*)$ $1 break;
  root /opt/spotlight/current/public;
  gzip on;
  gzip_types application/x-javascript application/javascript application/json text/css;
  gzip_proxied no_etag;
  gzip_vary on;
  }

location /stagecraft/ {
  expires 1h;
  rewrite ^/stagecraft(.*)$ $1 break;
  root /opt/stagecraft/current/assets;
  gzip on;
  gzip_types application/x-javascript application/javascript application/json text/css;
  gzip_proxied no_etag;
  gzip_vary on;
}

Fix cache time for Spotlight assets

Fix cache time for Spotlight assets

1m is 1 minute, not 1 month.

30d is 30 days, which is 1 month.

Documentation: http://nginx.org/en/docs/syntax.html


  <%= link_to private_topics_path do %>
    <%= inline_svg 'thredded/private-messages.svg', class: 'thredded--icon' %>
    <%= t('thredded.nav.private_topics') %>
    <% if unread_private_topics_count > 0 -%>

            <%= unread_private_topics_count %>

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

  <%= link_to private_topics_path, rel: 'nofollow' do %>
    <%= inline_svg 'thredded/private-messages.svg', class: 'thredded--icon' %>
    <%= t('thredded.nav.private_topics') %>
    <% if unread_private_topics_count > 0 -%>

            <%= unread_private_topics_count %>

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

[JRO] Add `rel="nofollow"` to private topics link

We don't want search engines trying to follow this link.

Closes issue #257


<%= pull_box('Watched', :class => 'watched') do %>
  <% if favorites.blank? %>

      <%= no_watchings_notice_for(user) %>

  <% else %>

          Filter by

        <% if is_current_user?(user) %>

            Not yours

            Yours

        <% end %>

          Merge requests

          Repositories

          All

      <% favorites.reject { |favorite| favorite.watchable.nil? }.each do |favorite| %>

          <td class="<%= css_classes_for(favorite.watchable) %>">
            <%= link_to_watchable(favorite.watchable) %>

      <% end %>

  <% end %>
<% end %>

<% content_for :javascripts do %>
  <%= javascript_include_tag 'gitorious/watched_filter' %>
<% end %>

<%= pull_box('Watched', :class => 'watched') do %>
  <% if favorites.blank? %>

      <%= no_watchings_notice_for(user) %>

  <% else %>

          Filter by

        <% if is_current_user?(user) %>

            Not yours

            Yours

        <% end %>

          Merge requests

          Repositories

          All

      <% favorites.each do |favorite| %>

          <td class="<%= css_classes_for(favorite.watchable) %>">
            <%= link_to_watchable(favorite.watchable) %>

      <% end %>

  <% end %>
<% end %>

<% content_for :javascripts do %>
  <%= javascript_include_tag 'gitorious/watched_filter' %>
<% end %>

Remove defensive filter, as invalid favorites were removed.


<% if @nginx_http_only != '' -%>
<% else -%>
server {
    listen 80;
    listen [::]:80;
    return 301 https://$host$request_uri;
}
<% end -%>

include /etc/nginx/zulip-include/upstreams;

server {
<% if @nginx_http_only != '' -%>
    listen 80;
    listen [::]:80;
<% else -%>
    listen <%= @nginx_listen_port %>;
    listen [::]:<%= @nginx_listen_port %>;

    ssl on;
    ssl_certificate <%= @ssl_dir %>/certs/zulip.combined-chain.crt;
    ssl_certificate_key <%= @ssl_dir %>/private/zulip.key;
<% end -%>

<% if @no_serve_uploads == '' -%>
    location /user_avatars {
        add_header X-Content-Type-Options nosniff;
        add_header Content-Security-Policy "default-src 'none' img-src 'self'";
        include /etc/nginx/zulip-include/uploads.types;
        alias /home/zulip/uploads/avatars;
    }
<% end -%>

    location /local-static {
        alias /home/zulip/local-static;
    }

    include /etc/nginx/zulip-include/certbot;
    include /etc/nginx/zulip-include/app;
}

<% if @nginx_http_only != '' -%>
<% else -%>
server {
    listen 80;
    listen [::]:80;
    return 301 https://$host$request_uri;
}
<% end -%>

include /etc/nginx/zulip-include/upstreams;

server {
<% if @nginx_http_only != '' -%>
    listen 80;
    listen [::]:80;
<% else -%>
    listen <%= @nginx_listen_port %> http2;
    listen [::]:<%= @nginx_listen_port %> http2;

    ssl on;
    ssl_certificate <%= @ssl_dir %>/certs/zulip.combined-chain.crt;
    ssl_certificate_key <%= @ssl_dir %>/private/zulip.key;
<% end -%>

<% if @no_serve_uploads == '' -%>
    location /user_avatars {
        add_header X-Content-Type-Options nosniff;
        add_header Content-Security-Policy "default-src 'none' img-src 'self'";
        include /etc/nginx/zulip-include/uploads.types;
        alias /home/zulip/uploads/avatars;
    }
<% end -%>

    location /local-static {
        alias /home/zulip/local-static;
    }

    include /etc/nginx/zulip-include/certbot;
    include /etc/nginx/zulip-include/app;
}

nginx: Enable http2 in on-premise configuration.

Signed-off-by: Anders Kaseorg <dfdb7392591db597bc41cf266a9c3bc12a2706e5@zulipchat.com>


Flag Settings Audit

    User
    Action
    Setting
    Change
    At

  <% @audits.each do |audit| %>

      <%= audit.user.username %>
      <%= audit.action %>
      <%= audit.auditable.name %>
      <% value_change = audit.audited_changes["value"] %>
      <%= value_change.try(:first) %> -> <%= value_change.try(:second) %>
      <span data-livestamp="<%= audit.created_at.to_i %>" title="<%= audit.created_at %>">

  <% end %>

Flag Settings Audit

    User
    Action
    Setting
    Change
    At

  <% @audits.each do |audit| %>

      <%= audit.user.try(:username) %>
      <%= audit.action %>
      <%= audit.auditable.name %>
      <% value_change = audit.audited_changes["value"] %>
      <%= value_change.try(:first) %> -> <%= value_change.try(:second) %>
      <span data-livestamp="<%= audit.created_at.to_i %>" title="<%= audit.created_at %>">

  <% end %>

Allow nil users in audits

Allow nil users in audits


<%= title "Flag Settings Audit" %>

    User
    Action
    Setting
    Change
    At

  <% @audits.each do |audit| %>

      <%= audit.user.try(:username) %>
      <%= audit.action %>
      <%= audit.auditable.name %>
      <% value_change = audit.audited_changes["value"] %>
      <%= value_change.try(:first) %> -> <%= value_change.try(:second) %>
      <span data-livestamp="<%= audit.created_at.to_i %>" title="<%= audit.created_at %>">

  <% end %>

<%= title "Flag Settings Audit" %>

    User
    Action
    Setting
    Change
    At

  <% @audits.each do |audit| %>

      <%= audit.user.try(:username) %>
      <%= audit.action %>
      <%= audit.auditable.name %>
      <% value_change = audit.audited_changes["value"] %>
      <%= value_change.try(:first) %><% if value_change.try(:second).present? %>
        → <%= value_change.try(:second) %>
      <% end %>
      <span data-livestamp="<%= audit.created_at.to_i %>" title="<%= audit.created_at %>">

  <% end %>

Use Unicode arrow in audits; only show second value if present


$('#no_comments').fadeOut()
<% if @reply %>
  if($('#comment_<%= @comment.commentable_id %> ul').length == 0)
    $('#comment_<%= @comment.commentable_id %>').append('<ul id="comment_<%= @comment.commentable_id %>_replies" class="replies">
')
  $('#comment_<%= @comment.commentable_id %>_replies').append("<%= escape_javascript( render @comment, :locals => {:reply => @reply} ) %>")
  $('#commentable_id').val('<%= @comment.commentable.commentable_id %>')
  $('#commentable_type').val('<%= @comment.commentable.commentable_type %>')
<% else %>
  $('#comments').prepend("<%= escape_javascript( render @comment, :locals => {:reply => @reply} ) %>")
<% end %>

$('#no_comments').fadeOut()
<% if @comment.valid? %>
  <% if @reply %>
    if($('#comment_<%= @comment.commentable_id %> ul').length == 0)
      $('#comment_<%= @comment.commentable_id %>').append('<ul id="comment_<%= @comment.commentable_id %>_replies" class="replies">
')
    $('#comment_<%= @comment.commentable_id %>_replies').append("<%= escape_javascript( render @comment, :locals => {:reply => @reply} ) %>")
    $('#commentable_id').val('<%= @comment.commentable.commentable_id %>')
    $('#commentable_type').val('<%= @comment.commentable.commentable_type %>')
  <% else %>
    $('#comments').prepend("<%= escape_javascript( render @comment, :locals => {:reply => @reply} ) %>")
  <% end %>
<% else %>
  jQuery('#comments').prepend("<%= escape_javascript(flash[:notice]) %>");
  jQuery('#comments').prepend("<%= escape_javascript(flash[:error]) %>");
<% end %>

Return error to user if couldn't save the comment


<% if (!current_user || !current_user.user_authentications) && Spree::AuthenticationMethod.active_authentication_methods? %>

<%= t(:sign_in_through_one_of_these_services) %>:

<% end %>

<% Spree::AuthenticationMethod.available_for(@user).each do |method| %>
  <% img = "store/#{method.provider}_32.png" %>
  <%= link_to(image_tag(img, :size => "32x32", :alt => "#{method.provider}"), "http://#{Spree::Config[:site_url]}/users/auth/#{method.provider}", :title => t(:sign_in_with, :provider => method.provider)) if method.active %>
<% end %>

<% if (!current_user || !current_user.user_authentications) && Spree::AuthenticationMethod.active_authentication_methods? %>

<%= t(:sign_in_through_one_of_these_services) %>:

<% end %>

<% Spree::AuthenticationMethod.available_for(@user).each do |method| %>
  <% img = "store/#{method.provider}_32.png" %>
  <%= link_to(image_tag(img, :size => "32x32", :alt => "#{method.provider}"), user_omniauth_authorize_url(provider: method.provider), :title => t(:sign_in_with, :provider => method.provider)) if method.active %>
<% end %>

Use url helper instead of raw url generated based on the site_url spree preference


Developers

    <%= link_to "Back Ruby Together", developers_path(anchor: "plans"), class: "solid-button" %>

From $10 per month

<%= link_to "Learn More", developers_path %>

Companies

    <%= link_to "Back Ruby Together", companies_path(anchor: "plans"), class: "solid-button" %>

From $50 per month

<%= link_to "Learn More", companies_path %>

Developers

    <%= link_to "Support Ruby Together", developers_path(anchor: "plans"), class: "solid-button" %>

From $10 per month

<%= link_to "Learn More", developers_path %>

Companies

    <%= link_to "Support Ruby Together", companies_path(anchor: "plans"), class: "solid-button" %>

From $50 per month

<%= link_to "Learn More", companies_path %>

Use "support" instead of "back"

Use "support" instead of "back"

Reason for Change
=================
* I was confused when I saw this button. I thought it referred to the browser's "back" action.
* I wondered if this was confusing for anyone else, so I opened this PR.

Changes
=======
* Replace `Back Ruby Together` with `Support Ruby Together`.


<% content_for :head do -%>
  <%= stylesheet_pack_tag "hello_world_graphql" %>
<% end -%>

<%= render "shared/default_client_settings" %>

<%= javascript_packs_with_chunks_tag "hello_world_graphql", "data-turbolinks-track": "reload" %>

<% content_for :head do -%>
  <%= stylesheet_pack_tag "hello_world" %>
<% end -%>

<%= render "shared/default_client_settings" %>

<%= javascript_packs_with_chunks_tag "hello_world", "data-turbolinks-track": "reload" %>

Change back to hello world

Change back to hello world


<%= @item.name %>

<% if !@item.image.blank? %>
  <img src="<%= @item.image %>">
<% else %>
  IMAGE NOT AVAILABLE
<%end%>

Description: <%= @item.description %>

Quantity: <%= @item.quantity %>

Price: <%= @item.price %>

<%= @item.name %>

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

<%end%>

Description: <%= @item.description %>

Quantity: <%= @item.quantity %>

Price: <%= @item.price %>

Update if statement so no image provides default "Image Not Found" image. Provide temporary image measurements


---
layout: default
---

  <%= render_template('shared.interview_header', interview: @this, selected: true) %>
  <%= yield %>
  <% if @this.licence %>
Note: This interview is available under the <a href="http://creativecommons.org/licenses/<%= @this.licence %>/3.0/" title="Full details of the licence."><%= @this.licence.upcase %> Creative Commons licence.
<% end %>

  <% if @this.previous_post || @this.next_post %>

    <% if @this.next_post %>Next: <a href="/interviews/<%= @this.next_post.slug %>/" title="An interview with <%= @this.next_post.title %>" id="next"><%= @this.next_post.title %><% end %>
    <% if @this.previous_post && @this.next_post %> / <% end %>
    <% if @this.previous_post %>Previously: <a href="/interviews/<%= @this.previous_post.slug %>/" title="An interview with <%= @this.previous_post.title %>" id="previous"><%= @this.previous_post.title %><% end %>

  <% end %>

---
layout: default
---

  <%= render('shared.interview_header', interview: page, selected: true) %>
  <%= yield %>
  <% if page.licence %>
Note: This interview is available under the <a href="http://creativecommons.org/licenses/<%= page.licence %>/3.0/" title="Full details of the licence."><%= page.licence.upcase %> Creative Commons licence.
<% end %>

Switch to the page object and the render method, remove the next/previous links


<%=render :partial => 'layers/layermap', :object => @layer unless @layer.rectified_maps_count  < 1 || !@layer.is_visible?%>

Maps

    <%= will_paginate @maps %>

Loading.....
<%= image_tag "spinner.gif" %>

        Map
        Title
        Last modified
        Status

      <%= render :partial => 'maps/map', :collection => @maps unless @maps.nil? %>

      <%= will_paginate @maps %>

<%=render :partial => 'layers/layermap', :object => @layer unless @layer.rectified_maps_count  < 1 || !@layer.is_visible?%>

Maps

    <%= will_paginate @maps %>

Loading.....
<%= image_tag "spinner.gif" %>

        Map
        Title
        Year
        Last modified
        Status

      <%= render :partial => 'maps/map', :collection => @maps unless @maps.nil? %>

      <%= will_paginate @maps %>

Add in header for layer maps

Add in header for layer maps


<% content_for :toolbar do %>

I18n.t('news.news')

  <%= iphone_back_button %>
<% end %>

  I18n.t('news.posted') <%= @news_item.published.to_s(:date) rescue '?' %>
  <% if @news_item.person %>
    I18n.t('news.by') <%= link_to h(@news_item.person.name), @news_item.person %>
  <% elsif @news_item.link.to_s.any? %>
    I18n.t('from') <%= link_to h(@news_item.link.sub(/^http:\/\//, '')), @news_item.link %>
  <% end %>

<%=h @news_item.title %>

<%= white_list_with_removal @news_item.body %>

<% content_for :toolbar do %>

<%= I18n.t('news.news') %>

  <%= iphone_back_button %>
<% end %>

  <%= I18n.t('news.posted') %> <%= @news_item.published.to_s(:date) rescue '?' %>
  <% if @news_item.person %>
    <%= I18n.t('news.by') %> <%= link_to h(@news_item.person.name), @news_item.person %>
  <% elsif @news_item.link.to_s.any? %>
    <%= I18n.t('from') %> <%= link_to h(@news_item.link.sub(/^http:\/\//, '')), @news_item.link %>
  <% end %>

<%=h @news_item.title %>

<%= white_list_with_removal @news_item.body %>

Fix erb insertion of i18n translation keys.


Results:

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

  Name: <%= user.prefix %> <%= user.first_name %> <%= user.last_name %>

  Years of Experience:  <%= user.years %>

  Licenses Held: <%= user.licenses.map do |lic| lic.name end.join(', ') %>

  Registered for Job Fair: <% if user.register != "bank" %>Yes<% else %>No<%end%>

  Location Preference: <%= user.location_pref %>

  <a href="/users/<%= user.id %>">Profile

<% end %>

<% if User.find(session[:user_id]).access == "admin" %>
  <%= form_tag(users_search_path(params.merge(format: 'csv'))) do %>
  <%= submit_tag 'Export to CSV', class: "btn btn-info"%>
  <% end %>
<% end %>

Results:

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

  Name: <%= user.prefix %> <%= user.first_name %> <%= user.last_name %>

  Years of Experience:  <%= user.years %>

  Licenses Held: <%= user.licenses.map do |lic| lic.name end.join(', ') %>

  Registered for Job Fair: <% if user.register != "bank" %>Yes<% else %>No<%end%>

  Location Preference: <%= user.location_pref %>

  <a href="/users/<%= user.id %>">Profile

<% end %>

<% if User.find(session[:user_id]).access == "admin" || User.find(session[:user_id]).access == "school"%>
  <%= form_tag(users_search_path(params.merge(format: 'csv'))) do %>
  <%= submit_tag 'Export to CSV', class: "btn btn-info export"%>
  <% end %>
<% end %>

Make export to csv available to schools

Make export to csv available to schools


#= require jquery
#= require jquery_ujs
#= require turbolinks
#= require graph_starter/underscore
#= require graph_starter/ember
#= require graph_starter/ember-template-compiler
#= require semantic-ui

ready = ->
  $('#loading-spinner').hide()

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

    img = $(@)

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

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

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

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

#= require jquery
#= require jquery_ujs
#= require turbolinks
#= require graph_starter/underscore
#= require semantic-ui

ready = ->
  $('#loading-spinner').hide()

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

    img = $(@)

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

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

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

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

Remove ember for now for better performance


require "spec_helper"

describe Endpoints::<%= plural_class_name %> do
  include Committee::Test::Methods
  include Rack::Test::Methods

  def app
    Routes
  end

  it "GET <%= url_path %>" do
    get "<%= url_path %>"
    last_response.status.should eq(200)
    last_response.body.should eq("[]")
  end

  it "POST <%= url_path %>/:id" do
    post "<%= url_path %>"
    last_response.status.should eq(201)
    last_response.body.should eq("{}")
  end

  it "GET <%= url_path %>/:id" do
    get "<%= url_path %>/123"
    last_response.status.should eq(200)
    last_response.body.should eq("{}")
  end

  it "PATCH <%= url_path %>/:id" do
    patch "<%= url_path %>/123"
    last_response.status.should eq(200)
    last_response.body.should eq("{}")
  end

  it "DELETE <%= url_path %>/:id" do
    delete "<%= url_path %>/123"
    last_response.status.should eq(200)
    last_response.body.should eq("{}")
  end
end

require "spec_helper"

describe Endpoints::<%= plural_class_name %> do
  include Committee::Test::Methods
  include Rack::Test::Methods

  def app
    Routes
  end

  describe 'GET <%= url_path %>' do
    it 'returns correct status code and conforms to schema' do
      get '<%= url_path %>'
      last_response.status.should eq(200)
      assert_schema_conform
    end
  end

  describe 'POST <%= url_path %>/:id' do
    it 'returns correct status code and conforms to schema' do
      header "Content-Type", "application/json"
      post '<%= url_path %>', MultiJson.encode({})
      last_response.status.should eq(201)
      assert_schema_conform
    end
  end

  describe 'GET <%= url_path %>/:id' do
    it 'returns correct status code and conforms to schema' do
      get "<%= url_path %>/123"
      last_response.status.should eq(200)
      assert_schema_conform
    end
  end

  describe 'PATCH <%= url_path %>/:id' do
    it 'returns correct status code and conforms to schema' do
      header "Content-Type", "application/json"
      patch '<%= url_path %>/123', MultiJson.encode({})
      last_response.status.should eq(200)
      assert_schema_conform
    end
  end

  describe 'DELETE <%= url_path %>/:id' do
    it 'returns correct status code and conforms to schema' do
      delete '<%= url_path %>/123'
      last_response.status.should eq(200)
      assert_schema_conform
    end
  end
end

Add grouping to acceptance spec

Add grouping to acceptance spec


<%= render partial: "layouts/sidebar", locals: {cur_step: 2} %>

This is the permit you need to apply for

Permits Required

GENERAL

Required for all residential additions project. Carries specific construction and material requirements. Repairs can be done by homeowner or contractor.

Application cost: $26

Required documents:
Site plan, permit application

Approximate time:
2 weeks

<%= link_to "apply", next_wizard_path, class: "btn-fill"%>

<%= render partial: "layouts/sidebar", locals: {cur_step: 2} %>

This is the permit you need to apply for

Permits Required

General Repair/Residential Permit

This permit is required for most residential repair projects. Seperate permits are required for any mechanical, electrical or plumbing work.

Application cost:
Depends on the cost of your project

Required documents:
Completed permit application, site plan, picture ID or proof of ownership of property

<%= link_to "apply", next_wizard_path, class: "btn-fill"%>

Rewrite language for permit accept page to match real requirements of general repairs permit


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

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

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

<%= msg %>

      <% end %>

  <% end %>

    <%= f.label :title %>

    <%= f.text_field :title %>

  <%= f.radio_button :polarity, Activity::NEUTRAL  %>
  <%= label :polarity, "Neutral" %>
  <%= f.radio_button :polarity, Activity::POSITIVE %>
  <%= label :polarity, "+ Positive" %>
  <%= f.radio_button :polarity, Activity::NEGATIVE %>
  <%= label :polarity, "- Negative" %>

    <%= f.submit %>

<% end %>

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

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

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

<%= msg %>

      <% end %>

  <% end %>

    <%= f.label :title %>

    <%= f.text_field :title %>

    <%= f.label "This is activity is:" %>

    <%= f.radio_button :polarity, Activity::NEUTRAL  %>
    <%= label :polarity, "Neutral" %>
    <%= f.radio_button :polarity, Activity::POSITIVE %>
    <%= label :polarity, "+ Positive" %>
    <%= f.radio_button :polarity, Activity::NEGATIVE %>
    <%= label :polarity, "- Negative" %>

    <%= f.submit %>

<% end %>

Add a label for the polarity radio buttons


<%= superb %>
<script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.pvar pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
    _gaq.push(['_require', 'inpage_linkid', pluginUrl]);
    _gaq.push(['_setAccount', 'UA-15639968-1']);
    _gaq.push(['_setDomainName', 'nanoc.ws']);
    _gaq.push(['_setAllowLinker', true]);
    _gaq.push(['_trackPageview']);

    (function() {
        var ga = document.createElement('script');
        ga.type = 'text/javascript';
        ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(ga, s);
     })();
</script>

<%= superb %>
<script type="text/javascript">
    var _gaq = _gaq || [];
    var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
    _gaq.push(['_require', 'inpage_linkid', pluginUrl]);
    _gaq.push(['_setAccount', 'UA-15639968-1']);
    _gaq.push(['_setDomainName', 'nanoc.ws']);
    _gaq.push(['_setAllowLinker', true]);
    _gaq.push(['_trackPageview']);

    (function() {
        var ga = document.createElement('script');
        ga.type = 'text/javascript';
        ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(ga, s);
     })();
</script>

Fix broken Google Analytics tracking code


<%#
Local variables:
* grid - instance of Datagrid
* assets - Array of database Entities
* options - passed options Hash
%>
<%= content_tag :table, options[:html] do %>

    <%= datagrid_header(grid, options) %>

    <% if grid.rows.empty? %>

<%= I18n.t 'datagrid.no_results', :default => 'No results found.' %>

    <% else %>
    <%= datagrid_rows(grid, assets, options) %>
    <% end %>

<% end %>

<%#
Local variables:
* grid - instance of Datagrid
* assets - Array of database Entities
* options - passed options Hash
%>
<%= content_tag :table, options[:html] do %>

    <%= datagrid_header(grid, options) %>

    <% if grid.rows.empty? %>

<%= I18n.t 'datagrid.no_results', :default => '——'.html_safe %>

    <% else %>
    <%= datagrid_rows(grid, assets, options) %>
    <% end %>

<% end %>

Use —— as a default indication that no records were found.


  <% @articles.each_with_index do |article, i| %>
    <% unless !(defined?(limit_to)).nil? and i >= limit_to %>

<%= link_to article.title, article_path(article) %>

            <%= article.publication_date.day %>
            <%= I18n.localize(article.publication_date, :format => "%B")[0,3] %>

          <% if article.photo and !article.photo.url.blank? %>
            <%= link_to image_tag(article.photo.url(:small), :class => 'img-responsive'), article_path(article), :class => 'image' %>
          <% end %>

<%= article.lead %>

    <% end %>
  <% end %>

  <% @articles.each_with_index do |article, i| %>
    <% unless !(defined?(limit_to)).nil? and i >= limit_to %>

<%= link_to article.title, article_path(article) %>

          <% if article.photo and !article.photo.url.blank? %>
            <%= link_to image_tag(article.photo.url(:small), :class => 'img-responsive'), article_path(article), :class => 'image' %>
          <% end %>

<%= article.lead %>

    <% end %>
  <% end %>

Remove date in articles preview

Remove date in articles preview


<% provide(:title, "Results") %>

Here are your results!

<% @sorted_questions.each do |question| %>
  <% full_question = find_question(@recent_questions, question[0]) %>

<%= link_to question[0], "https://stackoverflow.com/questions/#{question[0]}" %> Relevance: <%= @questionList[question[0]] %>

<% end %>

<%= @recent_questions.inspect %>

Add sorted question link details

Add sorted question link details


server {
	listen 80 default_server;
	listen [::]:80 default_server;

	root /opt/app/web;

	index index.html index.php;

	server_name _;

	client_max_body_size <%= @maxUploadSize%>M;

	location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		try_files $uri /app.php$is_args$args;
	}

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/var/run/php7-fpm.sock;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_script_name;
        fastcgi_param HTTPS off;
		fastcgi_split_path_info ^(.+\.php)(/.*)$;
	}
}

server {
	listen 80 default_server;
	listen [::]:80 default_server;

	root /opt/app/web;

	index index.php;

	server_name _;

	client_max_body_size <%= @maxUploadSize%>M;

	location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		try_files $uri /app.php$is_args$args;
	}

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/var/run/php7-fpm.sock;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_script_name;
        fastcgi_param HTTPS off;
		fastcgi_split_path_info ^(.+\.php)(/.*)$;
	}
}

Make index.php the only index

Make index.php the only index


[Unit]
PartOf=<%= app %>-<%= name %>.target

[Service]
# Foreground process (do not use --daemon in ExecStart or config.rb)
Type=simple
WorkingDirectory=<%= engine.root %>
ExecStart=/bin/bash -l -c '<%= process.command %>'
Restart=no
TimeoutStopSec=<%= engine.options[:timeout] %>
SyslogIdentifier=deploy-it.<%= name %>

Add SyslogIdentifier to systemd units

Add SyslogIdentifier to systemd units


<%= link_to RacingAssociation.current.short_name, root_path %>

<%=
            link_to "Schedule", schedule_path, :class => "schedule_link" %>

<%=
            link_to "Results", results_path, :class => "results_link" %>
<%
            if mobile_browser? %>
<%=
              link_to "Mobile", :mobile_site => "1" %>
<%
            end %>

<%= link_to RacingAssociation.current.short_name, root_path %>

          <% if @posts.present? %>
<%=
            link_to "Mailing Lists", mailing_lists_path %>
<% end %>
<%=
            link_to "Schedule", schedule_path, :class => "schedule_link" %>

<%=
            link_to "Results", results_path, :class => "results_link" %>
<%
            if mobile_browser? %>
<%=
              link_to "Mobile", :mobile_site => "1" %>
<%
            end %>

Add mailing lists link to nav if there are mailing list posts


  <% current_comments = source_file.comments.where(:line_number => line_number).order(:created_at)
    current_comments.each do |comment|%>

      <div class='comment_box <%= (comment.user == current_user) ? 'this_user_' : 'other_user_'%>comment'>
        <%= simple_format(comment.message) %>
        <%= "by #{comment.user.name} #{comment.user.last_name} #{time_ago_in_words(comment.updated_at)} ago" %>

  <% end %>
  <%= form_for(Comment.new(:line_number => line_number, :source_file => source_file)) do |f| %>
    <%= f.hidden_field :source_file_id %>
    <%= f.hidden_field :line_number %>

      <%= f.text_area :message %> <%= f.submit '+' %>

    <%= if current_comments.empty? then 'Add Comment' else 'Reply' end%>
  <% end %>

  <% current_comments = source_file.comments.select{ |c| c.line_number == line_number }
    current_comments.each do |comment|%>

      <div class='comment_box <%= (comment.user == current_user) ? 'this_user_' : 'other_user_'%>comment'>
        <%= simple_format(comment.message) %>
        <%= "by #{comment.user.name} #{comment.user.last_name} #{time_ago_in_words(comment.updated_at)} ago" %>

  <% end %>
  <%= form_for(Comment.new(:line_number => line_number, :source_file => source_file)) do |f| %>
    <%= f.hidden_field :source_file_id %>
    <%= f.hidden_field :line_number %>

      <%= f.text_area :message %> <%= f.submit '+' %>

    <%= if current_comments.empty? then 'Add Comment' else 'Reply' end%>
  <% end %>

Improve performance for comment loading

Improve performance for comment loading

The “where” statement was hitting the database a lot which was
degrading performance. Using a lambda expression “select” to work with
the data in memory improves performance dramatically.


<%= render :partial => '/admin/merchandise/sub_header'%>

 Brands

    Name

  <% for brand in @brands %>

      <%= link_to brand.name, admin_merchandise_brand_path(brand) %>
      <%= link_to "Edit", edit_admin_merchandise_brand_path(brand) %>
      <%= link_to "Delete", admin_merchandise_brand_path(brand), confirm: 'Are you sure?', method: :delete %>

  <% end %>

<%= link_to "New Brand", new_admin_merchandise_brand_path, :class => 'button' %>

Move 'Delete' to separate cell

Move 'Delete' to separate cell


<% @page_title = "Results: #{@event.date.year}: #{@event.full_name}" %>

<% cache cache_key(@event, @page, @races) do %>

<%= @event.year %> <%= @event.full_name %>

  <%= render partial: "calculations/date_and_parent", locals: { event: @event } %>
  <%= render partial: "calculation", locals: { calculation: @calculation } %>
  <%= render partial: "calculations/years", locals: { calculation: @calculation } %>
  <%= render partial: "calculations/group_events", locals: { calculation: @calculation } %>
  <% if @many_races %>
    <%= render partial: "separate_races", locals: { races: @races } %>
  <% else %>
    <%= render partial: "races", locals: { races: @races } %>
  <% end %>
  <%= render partial: "notes", locals: { event: @event } %>

Updated <%= @event.updated_at.to_formatted_s :long_and_friendly_date_and_time %>

Updated <%= @event.updated_at.to_s :short %>

  <%= will_paginate @results %>
  <%= render partial: "paginated_results", locals: { event: @event, race: @races.first, results: @results } %>
  <%= will_paginate @results %>
<% end %>

<% @page_title = "Results: #{@event.date.year}: #{@event.full_name}" %>

<% cache cache_key(@event, @page, @races) do %>

<%= @event.year %> <%= @event.full_name %>

  <%= render partial: "calculations/date_and_parent", locals: { event: @event } %>
  <%= render partial: "calculation", locals: { calculation: @calculation } %>
  <%= render partial: "calculations/years", locals: { calculation: @calculation } %>
  <%= render partial: "calculations/group_events", locals: { calculation: @calculation } %>
  <% if @many_races %>
    <%= render partial: "separate_races", locals: { races: @races } %>
  <% else %>
    <%= render partial: "races", locals: { races: @races } %>
  <% end %>
  <%= render partial: "notes", locals: { event: @event } %>

Updated <%= @event.updated_at.to_formatted_s :long_and_friendly_date_and_time %>

Updated <%= @event.updated_at.to_s :short %>

  <%= will_paginate @results, class: "pagination hidden-xs" %>
  <%= will_paginate @results, class: "pagination visible-xs", inner_window: 0 %>
  <%= render partial: "paginated_results", locals: { event: @event, race: @races.first, results: @results } %>
  <%= will_paginate @results, class: "pagination hidden-xs" %>
  <%= will_paginate @results, class: "pagination visible-xs", inner_window: 0 %>
<% end %>

Use smaller pagination for mobile

Use smaller pagination for mobile


<%# Marking state set to complete but there is at least one nil mark %>
document.getElementById('criterion_incomplete_error').innerHTML = '<%= @result.errors[:base] %>';
document.getElementById('criterion_incomplete_error').style.display = '';

document.getElementById('marking_state').value = '<%= Result::MARKING_STATES[:partial] %>';

<%# Marking state set to complete but there is at least one nil mark %>
document.getElementById('criterion_incomplete_error').innerHTML = '<%= @result.errors[:base].to_sentence %>';
document.getElementById('criterion_incomplete_error').style.display = '';

document.getElementById('marking_state').value = '<%= Result::MARKING_STATES[:partial] %>';

Remove quotes/brackets around error message in results view


<% text_for :title do %>
  Enter the total amount (before deductions like Income Tax and National Insurance) of your employee’s earnings on paydays between <%= format_date(calculator.relevant_period_from) %> and <%= format_date(calculator.relevant_period_to) %>.
<% end %>

<% govspeak_for :body do %>
  Different rules apply for [directors of limited companies incorporated before 1 October 2009](/statutory-sick-pay-how-different-employment-types-affect-what-you-pay)

<% end %>

<% text_for :error_message do %>
  Please enter a number greater than 0
<% end %>

<% text_for :title do %>
  Enter the total amount (before deductions like Income Tax and National Insurance) of your employee’s earnings on paydays between <%= format_date(calculator.relevant_period_from) %> and <%= format_date(calculator.relevant_period_to) %>.
<% end %>

<% govspeak_for :hint do %>
  Different rules apply for [directors of limited companies incorporated before 1 October 2009](/statutory-sick-pay-how-different-employment-types-affect-what-you-pay)
<% end %>

<% text_for :error_message do %>
  Please enter a number greater than 0
<% end %>

Fix missing helper text for total employee earnings question

The guidance text for this question was not being displayed as the
question type doesn't support body text. However it does support hint
text.


Question: avg(last_1h):max:bosh.healthmonitor.system.disk.persistent.percent{deployment:cf-elk-3az} by {deployment,index,job} > 90

Healthmonitor reports that the persistent disk usage is > 90% in the past 60 minutes on:
{{deployment.name}},
{{job.name}},
{{index.name}}
@pagerduty-datadog-monitoringAndMetrics-<%= environment %>

<%= environment %> logsearch-3AZ: Persistent disk usage greater than 90%

Question: avg(last_1h):max:bosh.healthmonitor.system.disk.persistent.percent{deployment:cf-elk-3az} by {deployment,index,job} > 90

Healthmonitor reports that the persistent disk usage is > 90% in the past 60 minutes on:
{{deployment.name}},
{{job.name}},
{{index.name}}
@cloudops@pivotallabs.com

Switch logsearch persistent disk usage alert to go to cloudops

[#106223354]

Signed-off-by: Rohit Kumar <bf9db8c0f4342eaf27792a19d3daba493b5df7cd@pivotal.io>


---
user: <%= mongrel_user %>
group: <%= mongrel_group %>
cwd: <%= current_path %>
log_file: <%= mongrel_log_dir %>/mongrel.log
port: "<%= mongrel_port.to_s %>"
environment: <%= mongrel_environment %>
address: <%= mongrel_address %>
pid_file: <%= mongrel_pid_dir %>/mongrel.pid
servers: <%= mongrel_servers.to_s %>

---
user: <%= app_user %>
group: <%= app_group %>
cwd: <%= current_path %>
log_file: <%= mongrel_log_dir %>/mongrel.log
port: "<%= mongrel_port.to_s %>"
environment: <%= mongrel_environment %>
address: <%= mongrel_address %>
pid_file: <%= mongrel_pid_dir %>/mongrel.pid
servers: <%= mongrel_servers.to_s %>

Use generic user and group variable names


<!DOCTYPE html>

    <title>Personal Website</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, maxmimum-scale=1.0, minimum-scale=1.0  initial-scale=1.0"/>

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

        RL

        <%= yield %>

        About Me
        Services
        Blog
        Contact

          <%= link_to  image_tag('linkedin.png', size: "40x40"), "https://www.linkedin.com/in/ryanlesson" %>
          <%= link_to image_tag('Octocat.png', size:"40x40"), "https://www.GitHub.com/Bigless27" %>

<!DOCTYPE html>

    <title>Personal Website</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, maxmimum-scale=1.0, minimum-scale=1.0  initial-scale=1.0"/>

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

        <%= yield %>

        About Me
        Services
        Blog
        Contact

          <%= link_to  image_tag('linkedin.png', size: "40x40"), "https://www.linkedin.com/in/ryanlesson" %>
          <%= link_to image_tag('Octocat.png', size:"40x40"), "https://www.GitHub.com/Bigless27" %>

Delete text logo in image

Delete text logo in image


<% if AlaveteliConfiguration::responsive_styling || params[:responsive] %>
  <!--[if LTE IE 7]>
  <link href="/assets/responsive/application-lte-ie7.css" media="all" rel="stylesheet" title="Main" type="text/css" />
  <![endif]-->

  <!--[if IE 8]>
  <link href="/assets/responsive/application-ie8.css" media="all" rel="stylesheet" title="Main" type="text/css" />
  <![endif]-->

  <!--[if GT IE 8]><!-->
  <link href="/assets/responsive/application.css" media="all" rel="stylesheet" title="Main" type="text/css" />
  <!--<![endif]-->

<% else %>
  <link type="text/css" title="Main" rel="stylesheet" media="screen" href="/assets/application.css">

<% end %>

<% if AlaveteliConfiguration::responsive_styling || params[:responsive] %>
  <!--[if LTE IE 7]>
  <link href="/assets/responsive/application-lte-ie7.css" media="all" rel="stylesheet" title="Main" type="text/css" />
  <![endif]-->

  <!--[if IE 8]>
  <link href="/assets/responsive/application-ie8.css" media="all" rel="stylesheet" title="Main" type="text/css" />
  <![endif]-->

  <!--[if GT IE 8]><!-->
  <link href="/assets/responsive/application.css" media="all" rel="stylesheet" title="Main" type="text/css" />
  <!--<![endif]-->
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<% else %>
  <link type="text/css" title="Main" rel="stylesheet" media="screen" href="/assets/application.css">

<% end %>

Add viewport to head when using responsive styles.


[global]
# Time between retries for failed endpoint operations.
#EndpointRetryTimeMillis = 500
# Time between complete resyncs
#ResyncIntervalSecs = 1800
# Plugin and ACL manager addresses
PluginAddress = <%= @controller %>
ACLAddress    = <%= @controller %>
# Metadata IP and port. If there is no metadata configuration, set to None
#MetadataIP    = 127.0.0.1
#MetadataPort  = 9697

[log]
# Log file path.
LogFilePath = /var/log/calico/felix.log
# Log severities for the Felix log and for syslog.
#LogSeverityFile   = INFO
#LogSeveritySys    = ERROR
#LogSeverityScreen = ERROR

[connection]
# Time with no data on a connection after which we give up on the
# remote entity
#ConnectionTimeoutMillis = 40000
# Time between sending of keepalives
#ConnectionKeepaliveIntervalMillis = 2000

[global]
# Time between retries for failed endpoint operations.
#EndpointRetryTimeMillis = 500
# Time between complete resyncs
#ResyncIntervalSecs = 1800
# Plugin and ACL manager addresses
PluginAddress = <%= @controller %>
ACLAddress    = <%= @controller %>
# Metadata IP (or host) and port. If no metadata configuration, set to None
#MetadataAddr  = 127.0.0.1
#MetadataPort  = 9697

[log]
# Log file path.
LogFilePath = /var/log/calico/felix.log
# Log severities for the Felix log and for syslog.
#LogSeverityFile   = INFO
#LogSeveritySys    = ERROR
#LogSeverityScreen = ERROR

[connection]
# Time with no data on a connection after which we give up on the
# remote entity
#ConnectionTimeoutMillis = 40000
# Time between sending of keepalives
#ConnectionKeepaliveIntervalMillis = 2000

Change MetadataIP to MetadataAddr in config


# Generated by Chef
# host definitions

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

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

<% end -%>

Fix formatting so the ERB writes out correctly


<!DOCTYPE html>

    <%= erb(:headers) %>

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

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

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

        <%= yieldall %>

      <%= erb(:footer) %>

<!DOCTYPE html>

    <%= erb(:headers) %>

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

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

        <%= yieldall %>

      <%= erb(:footer) %>

Comment out version 3 -> version 2 doc redirect


<% content_for :page_title, "New corporate information page for #{@organisation.name}" %>
<% content_for :back_link, (render "govuk_publishing_components/components/back_link", {
    href: admin_editions_path
  })
%>
<% content_for :error_summary, render('shared/error_summary', object: @edition, parent_class: "edition", class_name: @edition.format_name) %>

    <%= render "govuk_publishing_components/components/title", {
      title: sanitize("Add new corporate information page to #{link_to(@organisation.name, [:admin, @organisation], class: 'govuk-link')}")
    } %>

    <%= render "form", edition: @edition %>

<% content_for :page_title, "New corporate information page for #{@organisation.name}" %>
<% content_for :back_link, (render "govuk_publishing_components/components/back_link", {
    href: admin_editions_path
  })
%>
<% content_for :error_summary, render('shared/error_summary', object: @edition, parent_class: "edition", class_name: @edition.format_name) %>

  <%= render "govuk_publishing_components/components/title", {
    title: sanitize("Add new corporate information page to #{link_to(@organisation.name, [:admin, @organisation], class: 'govuk-link')}")
  } %>

  <%= render "components/secondary_navigation", {
    aria_label: "Document navigation tabs",
    items: secondary_navigation_tabs_items(@edition, request.path)
  } %>

    <%= render "form", edition: @edition %>

Add tabs to new corporate information page


<%
  extra_class ||= ""
  extra_classes =
    if defined?(edition_counter)
      extra_class + " item-#{edition_counter}"
    else
      extra_class
    end
  image_size ||= :s300
  show_meta ||= false
%>
<%= content_tag_for(:article, edition, nil, class: "#{edition_organisation_class(edition)} #{extra_classes.strip}") do %>

      <%= link_to edition.image_tag(image_size), public_document_path(edition), title: t("document.read", title: edition.title), class: 'img'%>

      <% if show_meta %>

<%= absolute_date(edition.public_timestamp) %> — <%= t_display_type edition %>

      <% end %>

<%= link_to edition.title, public_document_path(edition) %>

      <% unless edition.summary.blank? %>

<%= truncate(edition.summary, length: 150, separator: ' ') %>

      <% end %>

<% end %>

<%
  extra_class ||= ""
  extra_classes =
    if defined?(edition_counter)
      extra_class + " item-#{edition_counter}"
    else
      extra_class
    end
  image_size ||= :s300
  show_meta ||= false
%>
<%= content_tag_for(:article, edition, nil, class: extra_classes.strip) do %>

      <%= link_to edition.image_tag(image_size), public_document_path(edition), title: t("document.read", title: edition.title), class: 'img'%>

      <% if show_meta %>

<%= absolute_date(edition.public_timestamp) %> — <%= t_display_type edition %>

      <% end %>

<%= link_to edition.title, public_document_path(edition) %>

      <% unless edition.summary.blank? %>

<%= truncate(edition.summary, length: 150, separator: ' ') %>

      <% end %>

<% end %>

Remove organisation classes from featured news

They don't actually provide any help being there but sometimes cause the
colours of the links to get confused if the precidence of the department
is in question.

https://www.pivotaltracker.com/story/show/38430517


<% if (cs = subject.contact_subjects(:direction => :sent)).present? %>

    <%= cs.count %> <%= t('contact', :count => cs.count) %>

      <% cs.each do |contact| %>
        <%= link_to(image_tag(contact.logo.url(:contact), :alt => contact.name, :title => contact.name, :size => "small"), contact) %>
      <% end %>

<% end %>

<% if (cs = subject.contact_subjects(:direction => :sent)).present? %>

    <%= cs.count %> <%= t('contact', :count => cs.count) %>

      <% cs.each do |contact| %>
        <%= link_to(image_tag(contact.logo.url(:small), :alt => contact.name, :title => contact.name, :size => "small"), contact) %>
      <% end %>

<% end %>

Fix subject avatars in toolbar

Fix subject avatars in toolbar


user: <%=@user.name%>

Created Surveys
Taken Surveys

User: <%=@user.name%>

Created Surveys

<% @user.surveys.each do |survey| %>

<a href="/surveys/<%="#{survey.id}"%>"><%=survey.title%>

<% end %>

Taken Surveys

Add user display surveys erb

Add user display surveys erb


Billcrush: <%= @group.name %>

Members:
<% @group.members.each do |member| %>
  <%= member.name %>
<% end %>

<%= form_for [@group, @new_member] do |f| %>
  <%= f.label(:name) %>
  <%= f.text_field(:name) %>
  <%= f.submit %>
<% end %>

Billcrush: <%= @group.name %>

Members:
<% @members.each do |member| %>
  <%= member.name %>
<% end %>

<% @transactions.each do |transaction| %>
  <%= transaction.description %> - <%= transaction.amount_cents %>
<% end %>

<%= form_for [@group, @new_member] do |f| %>
  <%= f.label(:name) %>
  <%= f.text_field(:name) %>
  <%= f.submit %>
<% end %>

<%= form_for [@group, @new_transaction] do |tf| %>
  <%= tf.label :payee %>
  <%= collection_select(:transaction, :payee, @group.members, :id, :name) %>
  <%= tf.label :amount_cents, "Total amount" %>
  <%= tf.text_field :amount_cents %>
  <% @members.each do |member| %>
    <label for="transaction_<%= member.to_param %>_amount"><%= member.name %>
    <input id="transaction_<%= member.to_param %>_amount" name="transaction[members][][<%= member.to_param %>][amount]" size="6" type="text" />
  <% end %>
  <%= tf.submit %>
<% end %>

Add views to show and add transactions. not actually hooked up yet


    <form class="col s6" action="/topics" method="POST">
      <%= tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s, :value => form_authenticity_token) %>

          comment
          <input placeholder="Title" name="topic[title]" type="text" class="validate">
          <textarea placeholder="Description" name="topic[description]" class="materialize-textarea"></textarea>
           <button class="btn-floating btn-large waves-effect waves-light right red" type="submit">
              add
          </button>

    </form>

comment Create a Topic

      <form action="/topics" method="POST">
       <%= tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s, :value => form_authenticity_token) %>

          <input placeholder="Title" name="topic[title]" type="text" class="validate">
          <textarea placeholder="Description" name="topic[description]" class="materialize-textarea"></textarea>
           <button class="btn-floating btn-medium waves-effect waves-light right red" type="submit">add
          </button>

      </form>

Update style for root page

Update style for root page


<%= simple_form_for @user, :html => { :class => 'form-horizontal' } do |f| %>
  <%= f.input :email %>
  <%= error_span(@user[:email]) %>
  <%= f.input :first_name %>
  <%= error_span(@user[:first_name]) %>
  <%= f.input :last_name %>
  <%= error_span(@user[:last_name]) %>
  <%= f.input :phone %>
  <%= error_span(@user[:phone]) %>
  <%= f.input :admin %>
  <%= error_span(@user[:admin]) %>
  <%= f.input :ngo_admin %>
  <%= error_span(@user[:ngo_admin]) %>

  <%= f.button :submit, :class => 'btn-primary' %>
  <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
                users_path, :class => 'btn btn-default' %>
<% end %>

<%= simple_form_for @user, :html => { :class => 'form-horizontal' } do |f| %>
  <%= f.input :email %>
  <%= error_span(@user[:email]) %>
  <%= f.input :first_name %>
  <%= error_span(@user[:first_name]) %>
  <%= f.input :last_name %>
  <%= error_span(@user[:last_name]) %>
  <%= f.input :phone %>
  <%= error_span(@user[:phone]) %>
  <% if current_user && current_user.admin? %>
    <%= f.input :admin %>
    <%= error_span(@user[:admin]) %>
    <%# Only admins can set users to be NGO admins %>
    <%= f.input :ngo_admin %>
    <%= error_span(@user[:ngo_admin]) %>
  <% end %>

  <%= f.button :submit, :class => 'btn-primary' %>
  <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
                users_path, :class => 'btn btn-default' %>
<% end %>

Hide admin and NGO admin fields from non-admins


Les utilisateurs n'appartenant pas à un groupe ont tous les droits.

    <%= link_to(icon_label_text('glyphicon glyphicon-plus', 'Créer un nouvel utilisateur'),
                new_user_path,
                :class => 'btn btn-default btn-sm') %>

      Adresse email
      Groupe
      Remarque
      Actions

    <%= render(@users) %>

<%= page_navigation_links(@users) %>

<%= render('users/owner_instructions') %>

Add info about groups on users list.

Add info about groups on users list.


PIDFILE=/var/run/bprobe.pid
TLS_KEY=/etc/bprobe/key.pem
TLS_CA=/etc/bprobe/ca.pem
TLS_CERT=/etc/bprobe/cert.pem

## WARNING: Do not modify the values below unless
## you know what you are doing!
COLLECTOR=tls://<%= collector %>:<%= collector_port %>
FLOW_MAP_SIZE=1048576
FLOW_PAUSE=0

PIDFILE=/var/run/bprobe.pid
TLS_KEY=/etc/bprobe/key.pem
TLS_CA=/etc/bprobe/ca.pem
TLS_CERT=/etc/bprobe/cert.pem

## WARNING: Do not modify the values below unless
## you know what you are doing!
COLLECTOR=tls://<%= @collector %>:<%= @collector_port %>
FLOW_MAP_SIZE=1048576
FLOW_PAUSE=0

Resolve DEPRECATION WARNING by using @-variables

Puppet 3.2 warns about this.


<% if @before_start -%>
    <%= @before_start %>
<% end -%>
<% if @remove_container_on_start -%>
    /usr/bin/<%= @docker_command %> rm <% if @remove_volume_on_start %>-v<% end %> <%= @sanitised_title %> >/dev/null 2>&1
<% end -%>

<% if @pull_on_start -%>
    /usr/bin/<%= @docker_command %> pull <%= @image %>
<% end -%>

/usr/bin/<%= @docker_command %> create \
<%= @docker_run_flags %> \
--name <%= @sanitised_title %> \
<%= @image %> <% if @command %> \ <%= @command %><% end %>

<% if @after_create %><%= @after_create %><% end %>
<% if @net.is_a? Array%>
  <% @net.each do |n| %>
/usr/bin/<%= @docker_command %> network connect <%= n %> <%= @sanitised_title %>
  <% end %>
<% end %>

/usr/bin/<%= @docker_command %> start <% if ! @valid_detach %>-a<% end %> <%= @sanitised_title %>
<% if @after_start -%>
    <%= @after_start %>
<% end -%>

Fix misplaced backslash in start template

During a recent refactor a backslash intended to be an end of line
escape was inadvertantly placed into the middle of a line when a
container command is specified. This fix reinserts the newline the
slash was meant to escape.

Fixes #661


Announcements

<% @announcements.each do |announcement| %>

    <% if announcement.current? %>
      Active
    <% end %>
    Created <%= announcement.created_at %>, expires <%= announcement.expiry %>.
    <% if announcement.current? %>
      <%= link_to "Expire now", announcements_expire_path(announcement), class: "text-danger", method: :post, data: { confirm: "Are you sure? This can't be undone" } %>
    <% end %>

  <%= render "announcements/announcement", announcement: announcement %>

<% end %>

Announcements

<% @announcements.each do |announcement| %>

    <% if announcement.current? %>
      Active
    <% end %>
    Created <%= announcement.created_at %>, expires <%= announcement.expiry %>.
    <% if announcement.current? && current_user&.has_role?(:admin) %>
      <%= link_to "Expire now", announcements_expire_path(announcement), class: "text-danger", method: :post, data: { confirm: "Are you sure? This can't be undone" } %>
    <% end %>

  <%= render "announcements/announcement", announcement: announcement %>

<% end %>

Fix link from appearing for non-admins

Fix link from appearing for non-admins


<!DOCTYPE html>

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

        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">

        </button>
        plusone.io

<%= yield %>

<!DOCTYPE html>

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

        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">

        </button>
        plusone.io

<%= yield %>

Remove turbolinks crap from HTML tags

Remove turbolinks crap from HTML tags


<%
  self.page_title = "Pages"
  self.page_description = "All pages / " + link_to("Deleted pages", deleted_admin_pages_path(@locale))

  if PagesCore.config.localizations?
    self.page_description_links = 'In ' + PagesCore.config.locales.map{ |l, n| link_to_unless_current n, admin_pages_path(l) }.join(link_separator)
  end
%>

<% content_for :sidebar do %>
<% end %>

<div class="content">
  <% cache Page.visible.roots.to_a + [current_user] do %>
    <%= react_component(
      "PageTree", {
        pages: @pages.map { |p| page_json(p) },
        locale: @locale,
        permissions: [(:create if policy(Page).create?)] }
    ) %>
  <% end %>
</div>

<%
  self.page_title = "Pages"
  self.page_description = "All pages / " + link_to("Deleted pages", deleted_admin_pages_path(@locale))

  if PagesCore.config.localizations?
    self.page_description_links = 'In ' + PagesCore.config.locales.map{ |l, n| link_to_unless_current n, admin_pages_path(l) }.join(link_separator)
  end
%>

<% content_for :sidebar do %>
<% end %>

<div class="content">
  <% cache Page.visible.roots.to_a + [current_user, @locale] do %>
    <%= react_component(
      "PageTree", {
        pages: @pages.map { |p| page_json(p) },
        locale: @locale,
        permissions: [(:create if policy(Page).create?)] }
    ) %>
  <% end %>
</div>

Add locale to cache key for Pages index

Add locale to cache key for Pages index


<%= link_to 'Add user', new_admin_user_path, class: 'button' %>

      <%= t('user_id') %>
      <%= t('user_first_name') %>
      <%= t('user_last_name') %>
      <%= t('user_email') %>
      <%= t('user_organisation') %>
      <%= t('user_is_admin') %>

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

          <%= user.id %>

          <%= user.first_name %>

          <%= user.last_name %>

          <%= user.email %>

          <%= user.organisation && user.organisation.display_name %>

          <%= user.is_admin ? fa_icon('check') : '' %>

          <%= link_to(edit_admin_user_path(user)) { fa_icon "pencil" } %>

          <%= link_to(
            admin_user_path(user),
            method: :delete,
            data: { confirm: t('delete_are_you_sure') }){ fa_icon "trash" }
          %>

    <% end %>

Add temporary button to add new user

Add temporary button to add new user


<div id="comment-<%= comment.id %>" class="comment-box">

     <%= comment.commenter %>  on
     <%= comment.created_at.strftime("%b %d, %l:%M %p") %>  said:

    <%= comment.body.html_safe %>

  <% if admin? %>

      <%= link_to 'delete', [comment.post, comment],
                                     method: :delete,
                                     data: { confirm: 'Delete comment?' } %>

  <% end %>

<div id="comment-<%= comment.id %>" class="comment-box">

    <% if admin? %>

        <%= link_to '', [comment.post, comment],
                                       method: :delete,
                                       data: { confirm: 'Delete comment?' },
                                       class: "glyphicon glyphicon-remove pull-right" %>

    <% end %>

     <%= comment.commenter %>  on
     <%= comment.created_at.strftime("%b %d, %l:%M %p") %>  said:

    <%= comment.body.html_safe %>

Edit delete button to be an icon in top right corner


<%= notice %>

Listing Food Trucks

<% @food_trucks.each do |food_truck| %>

<%= link_to food_truck.name, food_truck%>

  <%= food_truck.rating %>

<%= food_truck.intersection %>

  <% unless food_truck.phone == "0" %>
    <a href="tel:<%= food_truck.phone %>">

<%= number_to_phone food_truck.phone, area_code: true %>

  <% end %>

<%= food_truck.genres %>

  <% if current_user.admin %>
    <%= link_to 'Show', food_truck %> |
    <%= link_to 'Edit', edit_food_truck_path(food_truck) %> |
    <%= link_to 'Delete', food_truck, method: :delete, data: { confirm: 'Are you sure?' } %>
  <% end %>

<% end %>

<%= link_to 'New Food truck', new_food_truck_path %>

<%= notice %>

Listing Food Trucks

<% @food_trucks.each do |food_truck| %>

<%= link_to food_truck.name, food_truck%>

  <%= food_truck.rating %>

<%= food_truck.intersection %>

  <% unless food_truck.phone == "0" %>
    <a href="tel:<%= food_truck.phone %>">

<%= number_to_phone food_truck.phone, area_code: true %>

  <% end %>

<%= food_truck.genres %>

  <% if user_signed_in? && current_user.admin %>
    <%= link_to 'Show', food_truck %> |
    <%= link_to 'Edit', edit_food_truck_path(food_truck) %> |
    <%= link_to 'Delete', food_truck, method: :delete, data: { confirm: 'Are you sure?' } %>
  <% end %>

<% end %>

<%= link_to 'New Food truck', new_food_truck_path %>

Fix error when logged out

Fix error when logged out


<%= form_for(@confession, html: { :class => "form--confession"}) do |f| %>
  <% if @confession.errors.any? %>

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

      <% @confession.errors.full_messages.each do |message| %>

<%= message %>

      <% end %>

  <% end %>

    <%= f.text_area :body %>

    <%= f.submit "Add", :class => "button button--green" %>

<% end %>

<%= form_for(@confession, html: { :class => "form--confession"}) do |f| %>
  <% if @confession.errors.any? %>

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

      <% @confession.errors.full_messages.each do |message| %>

<%= message %>

      <% end %>

  <% end %>

    <%= f.text_area :body %>

    <% if f.object.new_record? %>
      <%= f.submit 'Add', class: 'button button--green' %>
    <% else %>
      <%= f.submit 'Edit', class: 'button button--green' %>
    <% end %>

<% end %>

Add correct form button text

Add correct form button text


<%= form_tag(site_mappings_path(@site), method: 'get', role: 'form', class: 'form-inline') do %>

    <%= label_tag :contains, class: 'control-label' do %>
      Filter by path <% if params[:contains] and params[:contains].length > 0 %>(<%= link_to 'Remove filter', site_mappings_path(@site) %>)<% end %>
    <% end %>

          <%= text_field_tag :contains, params[:contains], class: 'form-control', placeholder: 'eg /home'  %>

            <%= submit_tag 'Filter', name: nil, class: 'btn btn-default ' %>

<% end %>

<%= form_tag(site_mappings_path(@site), method: 'get', role: 'form', class: 'form') do %>

      <%= label_tag :contains, class: 'control-label' do %>
        Filter by path <% if params[:contains] and params[:contains].length > 0 %>(<%= link_to 'Remove filter', site_mappings_path(@site) %>)<% end %>
      <% end %>

        <%= text_field_tag :contains, params[:contains], class: 'form-control', placeholder: 'eg /home'  %>

          <%= button_tag 'Filter', name: nil, class: 'btn btn-default ' %>

<% end %>

Fix very short filter input in Firefox

Fix very short filter input in Firefox

* Rearrange order of wrappers, placing label in grid cell too and
removing form-group wrapper
* Convert filter from input to button for correct height, it seems
bootstrap 3 doesn’t like input type submit much,
http://stackoverflow.com/questions/18542343/is-there-a-way-a-aligning-my
-input-group-on-firefox-using-bootstrap-3


<%= form_for listing do |f| %>

    Category: <% cat_array = categories.map {|c| c.title} %>
    <%= select_tag(:category, options_for_select(cat_array) ) %>

    <%= f.label "your email" %>

    <%= f.text_field :owner_email %>

    <%= f.label :title %>

    <%= f.text_field :title %>

    <%= f.label :location %>

    <%= f.text_field :location %>

    <%= f.label :price %>

    $ <%= f.text_field :price %>

    <%= f.label :content %>

    <%= f.text_area :content %>

    <%= f.submit %>

<% end %>

  <%= button_to "Delete", listing_path(listing), method: :delete %>

Add edit form with delete button.

Add edit form with delete button.


// Automatically upgrade packages from these (origin, archive) pairs
Unattended-Upgrade::Allowed-Origins {
        "<%= @lsbdistid %> stable";
        "<%= @lsbdistid %> <%= @lsbdistcodename %>-security";
//      "<%= @lsbdistid %> <%= @lsbdistcodename %>-updates";
//      "<%= @lsbdistid %> <%= @lsbdistcodename %>-proposed-updates";
};

// List of packages to not update
Unattended-Upgrade::Package-Blacklist {
//      "vim";
//      "libc6";
//      "libc6-dev";
//      "libc6-i686";
};

// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. The package 'mailx'
// must be installed or anything that provides /usr/bin/mail.
Unattended-Upgrade::Mail "2nd-line-support@digital.cabinet-office.gov.uk";

// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
//Unattended-Upgrade::Remove-Unused-Dependencies "false";

// Automatically reboot *WITHOUT CONFIRMATION* if a
// the file /var/run/reboot-required is found after the upgrade
//Unattended-Upgrade::Automatic-Reboot "false";

// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
//Acquire::http::Dl-Limit "70";

// Automatically upgrade packages from these (origin, archive) pairs
Unattended-Upgrade::Allowed-Origins {
        "<%= @lsbdistid %> stable";
        "<%= @lsbdistid %> <%= @lsbdistcodename %>-security";
//      "<%= @lsbdistid %> <%= @lsbdistcodename %>-updates";
//      "<%= @lsbdistid %> <%= @lsbdistcodename %>-proposed-updates";
};

// List of packages to not update
Unattended-Upgrade::Package-Blacklist {
//      "vim";
//      "libc6";
//      "libc6-dev";
//      "libc6-i686";
};

// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. The package 'mailx'
// must be installed or anything that provides /usr/bin/mail.
Unattended-Upgrade::Mail "machine.email@digital.cabinet-office.gov.uk";

// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
//Unattended-Upgrade::Remove-Unused-Dependencies "false";

// Automatically reboot *WITHOUT CONFIRMATION* if a
// the file /var/run/reboot-required is found after the upgrade
//Unattended-Upgrade::Automatic-Reboot "false";

// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
//Acquire::http::Dl-Limit "70";

Upgrade emails should not go to 2nd-line list