<% content_for :title do %>
  Check if someone can rent your residential property
<% end %>

<% content_for :meta_description do %>
  You need to check if a tenant is allowed to rent private residential property in England
<% end %>

<% content_for :body do %>
  Find out if someone can rent your private residential property in England.

  You must check anyone aged 18 or over who pays to use your property as their main home, eg tenants, sub-tenants and paying house guests.

  %You might  [get a fine](/penalties-illegal-renting) if you rent your property to someone who doesn’t have the right to rent.%

  If you've bought a property that already has tenants, you need proof that their last landlord did the check. You’ll still be responsible for carrying out [further checks on your tenants](/check-tenant-right-to-rent-documents/further-checks) in future.

  ^Read more about the [right to rent documents](/government/publications/right-to-rent-document-checks-a-user-guide) you can accept.^

<% end %>

<% content_for :title do %>
  Check if someone can rent your residential property
<% end %>

<% content_for :meta_description do %>
  You need to check if a tenant is allowed to rent private residential property in England
<% end %>

<% content_for :body do %>
  Find out if someone can rent your private residential property in England.

  You must check anyone aged 18 or over who pays to use your property as their main home, for example, tenants, sub-tenants and paying house guests.

  %You might  [get a fine](/penalties-illegal-renting) if you rent your property to someone who doesn’t have the right to rent.%

  Because of coronavirus (COVID-19) there are [temporary changes to the way you can check documents](/guidance/coronavirus-covid-19-landlord-right-to-rent-checks). These changes include asking for documents digitally, making checks on a video call, and what to do if someone cannot provide any accepted documents.

  If you've bought a property that already has tenants, you need proof that their last landlord did the check. You’ll still be responsible for carrying out [further checks on your tenants](/check-tenant-right-to-rent-documents/further-checks) in future.

  ^Read more about the [right to rent documents](/government/publications/right-to-rent-document-checks-a-user-guide) you can accept.^

<% end %>

Update Landlord Immigration Check start page


<%= content_tag_for(:div, attachment, class: "attachment embedded") do %>
  <%= link_to(attachment.url) do %>
    <% if attachment.pdf? %>
      <%= image_tag(attachment.url(:thumbnail), alt: "") %>
    <% else %>
      <%= image_tag('pub-cover.png', alt: "") %>
    <% end %>
    Download <%= attachment.title %>
  <% end %>

Type

<%= humanized_content_type(attachment.file_extension) %>

Size

<%= number_to_human_size(attachment.file_size) %>

    <% if attachment.number_of_pages.present? %>

Length

<%= pluralize(attachment.number_of_pages, "page") %>

    <% end %>

  <% unless attachment.accessible? %>
    This file may not be accessible
  <% end %>
<% end %>

<%= content_tag_for(:div, attachment, class: "attachment embedded") do %>
  <%= link_to(attachment.url, class: "title") do %>
    <% if attachment.pdf? %>
      <%= image_tag(attachment.url(:thumbnail), alt: "") %>
    <% else %>
      <%= image_tag('pub-cover.png', alt: "") %>
    <% end %>
    Download <%= attachment.title %>
  <% end %>

Type

<%= humanized_content_type(attachment.file_extension) %>

Size

<%= number_to_human_size(attachment.file_size) %>

    <% if attachment.number_of_pages.present? %>

Length

<%= pluralize(attachment.number_of_pages, "page") %>

    <% end %>

  <% unless attachment.accessible? %>
    This file may not be accessible
  <% end %>
<% end %>

Add some classes to the attachment box for testing/styling purposes


<%= title('Lesson Preview Tool') %>

Lesson Preview Tool

Paste markdown contents here to check how they'll look on the website!

        <%= react_component("lesson-preview/index", {}) %>

Update lesson preview page Add webpage title, heading and one line detail about the tool


If you wish to speak to someone about this information, please contact:

    <% if (name = contact.name).present? %>

Name:

<%= name %>

    <% end %>
    <% if (postal_address = contact.postal_address).present? %>

Postal address:

<%= format_postal_address postal_address %>

    <% end %>
    <% if (email_address = contact.email_address).present? %>

Email address:

<%= format_email_address email_address %>

    <% end %>
    <% if (website_url = contact.website_url).present? %>

Website URL:

<%= format_website_url website_url %>

    <% end %>
    <% if (opening_hours = contact.opening_hours).present? %>

Opening hours:

<%= format_opening_hours opening_hours %>

    <% end %>

Add contact detail introduction and static call to action


ogr2ogr -skipfailures
-f "FileGDB"
<%= file_name %>
PG:"host=<%= db_config[:host] %>
  user=<%= db_config[:username] %>
  <% unless db_config[:password].nil? %>
    password=<%= db_config[:password] %>
  <% end %>
  dbname=<%= db_config[:database] %>"
-sql "<%= query %>"
-nlt "<%= geom_type.upcase %>"
-nln "<%= feature_name %>"

ogr2ogr -update -skipfailures
-f "FileGDB"
<%= file_name %>
PG:"host=<%= db_config[:host] %>
  user=<%= db_config[:username] %>
  <% unless db_config[:password].nil? %>
    password=<%= db_config[:password] %>
  <% end %>
  dbname=<%= db_config[:database] %>"
-sql "<%= query %>"
-nlt "<%= geom_type.upcase %>"
-nln "<%= feature_name %>"

Add -update flag to gdb export so to write on existing gdb file


  <%= form_for @bill do |form| %>
    <%= render partial: 'fields', locals: { form: form } %>

        <%= form.submit 'Save changes', class: "button-primary u-full-width" %>

        <%= link_to 'Cancel', bills_url, class: "button u-full-width" %>

  <% end %>

  <%= link_to 'Delete this bill', bill_url(@bill), method: :delete, class: "button u-full-width" %>

  <%= form_for @bill do |form| %>
    <%= render partial: 'fields', locals: { form: form } %>

        <%= form.submit 'Save changes', class: "button-primary u-full-width" %>

        <%= link_to 'Cancel', bills_url, class: "button u-full-width" %>

  <% end %>

  <%= button_to 'Delete this bill', bill_url(@bill), method: :delete, class: "button u-full-width" %>

Change link to button since jquery ujs is gone.


    We the Entities adds rich entities, sentiment analysis, and other text-based analysis
    on petitions taken from the White House's
    We the People application.

    It provides a summary of the "entities" (e.g. people, places, organizations), themes, and
    phrases from petitions. It also discerns the sentiment of the author
    towards these entities (i.e. negative, neutral or positive).

    <%= link_to(:controller => :petitions, :action => :index) do %>

Petition Browser

            <%= image_tag("health_facets.png", :alt => "Petition Browser") %>

    <% end %>
    <%= link_to(:controller => :home, :action => :api) do %>

Developer API

            <%= image_tag("themes_json.png", :alt => "Developer API") %>

    <% end %>
    <%= link_to(:controller => :home, :action => :gallery) do %>

API Gallery

            <%= image_tag("gallery/we_the_visualization.png", :alt => "API Gallery") %>

    <% end %>

Add link to API Gallery from the homepage.


<%= @item.name %>

    <% if is_admin? %>

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

    <% end %>

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

    <%end%>

Description: <%= @item.description %>

Quantity: <%= @item.quantity %>

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

  <% if logged_in? %>
    <%= button_to "Add To Cart",  add_to_cart_path %>
  <% end %>

Move location of Add To Cart button

Move location of Add To Cart button


This is where each individual user profile info will go.

<%= link_to "Orders", orders_path %>

 Username: <%= @user.username%>

 Email: <%= @user.email%>

<%= link_to "Edit Account", edit_user_path %> | <%= link_to "Delete Account", @user, method: :delete %>

 Cart: <%= @user.shopping_cart%>

Remove Cart contents from being visiible on the user show page


Добрый день<%= @user.name ? ', ' + @user.name : '' %>.

<%= yield %>

--
Сайт кафедры РИС, ИМОП, СПбГПУ.
<%= root_url %>

Слава Роботам!<%= ' Убить всех человеков!' if rand(10) == 1 %>

Add political slogan to mail signature

Add political slogan to mail signature


<script src="https://cdn.auth0.com/js/lock-7.9.min.js"></script>
<script>

  var lock = new Auth0Lock('mV3LbBNO393VYjWHySzgONZT2t7kjqDh', 'nghborly.auth0.com');
  var url = (document.location.origin + "/auth/auth0/callback")

  lock.show({
      container: 'root'
    , callbackURL: url
    , responseType: 'code'
    , authParams: {
      scope: 'openid profile'
    }
  });
</script>

Add sessions folder in views with initial view template


<%= form_with(model: [:admin, @doctor], local: true) do |f| %>
  <%= render 'shared/error_messages', object: @doctor %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.label :email %>

    <%= f.text_field :email %>

<%= f.submit 'Submit' %>

<% end %>

<%= form_with(model: [:admin, @doctor], local: true) do |f| %>
  <%= render 'shared/error_messages', object: @doctor %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.label :email %>

    <%= f.email_field :email %>

<%= f.submit 'Submit' %>

<% end %>

Use appropriate field type for email

Use appropriate field type for email


Log in

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

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

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

      <% if devise_mapping.rememberable? -%>

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

      <% end -%>

          <%= f.submit "Log in", class: "btn btn-primary btn-lg", id: "button-color" %>

    <% end %>

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

Remove specific styling on login page

Remove specific styling on login page


<!DOCTYPE html>
<html ng-app="app">
<head>
  <title>Pienancial</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>
</head>
<body ng-controller="AppCtrl">

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html ng-app="app">
<head>
  <title>Pienancial</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= csrf_meta_tags %>
</head>
<body ng-controller="AppCtrl">

<%= yield %>

  <%= javascript_include_tag 'application' %>

</body>
</html>

Move Javascript includes to end of page

Move Javascript includes to end of page


<!DOCTYPE html>
<html>
  <head>
    <title><%= full_title(yield(:title)) %></title>
    <%= stylesheet_link_tag "application", media: "all",
                                           "data-turbolinks-track" => true %>
    <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
    <%= csrf_meta_tags %>
    <%= render 'layouts/shim' %>
  </head>
  <body>
    <%= render 'layouts/header' %>
    <div class="container">
      <%= yield %>
      <%= render 'layouts/footer' %>
      <%= debug(params) if Rails.env.development? %>
    </div>
  </body>
</html>

<!DOCTYPE html>

    <title><%= full_title(yield(:title)) %></title>
    <%= stylesheet_link_tag "application", media: "all",
                                           "data-turbolinks-track" => true %>
    <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
    <%= csrf_meta_tags %>
    <%= render 'layouts/shim' %>

    <%= render 'layouts/header' %>

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

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

Add flash render to layout.

Add flash render to layout.


<!DOCTYPE html>
<html lang="<%= I18n.locale %>">
  <%= render 'layouts/head' %>

      <%= render 'layouts/navigation' %>

      <%= yield :jumbotron %>

        <%= render 'layouts/flash' %>

        <%= yield %>

    <%= render 'layouts/footer'%>

    <%= javascript_include_tag "application" %>
    <%= render 'layouts/ga' if Rails.env.production?  %>

    <%= yield :document_ready %>

<!DOCTYPE html>
<html lang="<%= I18n.locale %>">
  <%= render 'layouts/head' %>

      <%= render 'layouts/navigation' %>

      <%= yield :jumbotron %>

        <%= yield %>

    <%= render 'layouts/footer'%>

    <%= javascript_include_tag "application" %>
    <%= render 'layouts/ga' if Rails.env.production?  %>

    <%= yield :document_ready %>

Remove flashes from the main layout.

Remove flashes from the main layout.

If the first request to the app is a request with a flash set on the session, we would cache the flashes.

Since no admin pages are cached, this avoids this problem.


<li class="nav-item dropdown <%= get_nav_link_class('reports') %>">
	<%= link_to reports_path, :class => "dropdown-toggle", :data => {"toggle" => "dropdown"} do %>

Reports

	<% end %>

			<%= link_to reports_path  do %>
				 All
			<% end %>

		<% ReportType.all.each do | rt | %>
			<% if rt.reports.count > 0 %>

					<%= link_to reports_path(:report_type => rt.id)  do %>
						<i class="<%= rt.display_icon_name %> fa-fw"> <%= rt.name.pluralize(2) %>
					<% end %>

						<% rt.reports.each do |report| %>
							<% if current_user.is_in_roles? report.role_names %>

									<%= link_to report_path(report)  do %>
										<i class="<%= report.report_type.display_icon_name %> fa-fw"> <%= report.name %>
									<% end %>

							<% end %>
						<% end %>

			<% end %>
		<% end %>

Refactor the reports menu and move it to a partial


---
title: Foodcritic - A lint tool for your Opscode Chef cookbooks
---

  <%= partial "splash", :locals => {:rules => rules} %>

  <%= partial "rules_list", :locals => {:rules => rules} %>

  <%= partial "rules_detail", :locals => {:rules => rules} %>

  <%= partial "choosing_rules" %>

  <%= partial "extra_rules" %>

  <%= partial "rule_api" %>

---
title: Foodcritic - A lint tool for your Opscode Chef cookbooks
---

  <%= partial "splash" %>

  <%= partial "rules_list" %>

  <%= partial "rules_detail" %>

  <%= partial "choosing_rules" %>

  <%= partial "extra_rules" %>

  <%= partial "rule_api" %>

Remove unnecessary local pass to partials.


Host *.amazonaws.com
    User ubuntu
    IdentityFile ~/.ssh/ops.pem

Host vagrant
    HostName localhost
    Port 2222
    User vagrant
    StrictHostKeyChecking no
    IdentityFile ~/.vagrant.d/insecure_private_key

<% @config['hosts'].each do |host| %>
Host <%= host['host'] %>
    HostName <%= host['hostname'] %>
    User <%= host['user'].nil? ? @config['default']['user'] : host['user'] %>
    IdentityFile <%= host['identityfile'].nil? ? @config['default']['identityfile'] : host['identityfile'] %>
<% end %>

Host *.amazonaws.com
    User ubuntu
    IdentityFile ~/.ssh/ops.pem

Host vagrant
    HostName localhost
    Port 2222
    User vagrant
    StrictHostKeyChecking no
    IdentityFile ~/.vagrant.d/insecure_private_key

<% @config['hosts'].each do |host| %>
Host <%= host['host'] %>
    HostName <%= host['hostname'] %>
    <% if host['port'] %>
    Port <%= host['port'] %>
    <% end %>
    User <%= host['user'].nil? ? @config['default']['user'] : host['user'] %>
    IdentityFile <%= host['identityfile'].nil? ? @config['default']['identityfile'] : host['identityfile'] %>
<% end %>

Allow the ssh port to be set

Allow the ssh port to be set


# Ignoring a Commit

Some code changes, such as editing a Readme, may not require a Buildkite build. If you want Buildkite to ignore a commit, add `[ci skip]` or `[skip ci]` anywhere in the commit message.

For example, the following commit message will cause Buildkite to ignore the commit and not create a corresponding build:

```
Fix readme typos [skip ci]
```

Multi-line commit messages are also supported. For example, the following commit message will also cause Buildkite to ignore the commit:

```
Fix readme typos

* Fixed the build badge
* Fixed broken GitHub link

[skip ci]
```

Skipping Commits with Bitbucket Server

Not all webhooks from Bitbucket Server contain the commit's message. When a commit message is not included in a webhook, the build will run.

Add note about bitbucket server webhook commit messages


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

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

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

If you are marrying a British or other Commonwealth national who is resident in Kenya you may be able to obtain a marriage certificate from a UK Register Office under the [British Subject Facilities Acts](/marriages-civil-partnerships/what-you-need-to-do).

Registrars in Kenya may accept a no trace letter issued by the General Register Office instead of a marriage certificate. You should check with the Kenyan authorities whether a no trace letter can be accepted.  A no trace letter costs £50 and can be obtained from the General Register Office by calling +44 (0)300 123 1837 (8am to 8pm Monday to Friday).  You should ask for a search to be made and quote the reference number "SEARCH 123".

*[CNI]:certificate of no impediment

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

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

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

If you are marrying a British or other Commonwealth national who is resident in Kenya you may be able to obtain a marriage certificate from a UK Register Office under the [British Subject Facilities Acts](/marriages-civil-partnerships/what-you-need-to-do).

Registrars in Kenya may accept a no trace letter issued by the General Register Office instead of a marriage certificate. You should check with the Kenyan authorities whether a ‘no trace letter’ can be accepted. ‘No trace letters’ cost £50 for each 10 year period from age 16 or when you entered the UK. Specify how many years you need the search to cover and quote reference ‘SEARCH 123’. It can take up to 3 weeks for a ‘no trace letter’ to be issued.

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

*[CNI]:certificate of no impediment

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

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

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


<% if document.pre_publication? %>

Preview

<% else %>
  <% history = document.change_history %>

<%= t('change_notes.published_at') %>:

<%= absolute_date(history.last.public_timestamp) %>

  <% unless history.newly_published? -%>

<%= t('change_notes.updated_at') %>:

      <%= absolute_date(history.most_recent_change) %>
      <% if footer_meta -%>, <%= t('change_notes.see_all_updates') %><% end -%>

  <% end %>
<% end %>

<% if document.pre_publication? %>

Preview

<% else %>
  <% history = document.change_history %>

<%= t('change_notes.published_at') %>:

<%= absolute_date(history.last.public_timestamp) %>

  <% unless history.newly_published? -%>

<%= t('change_notes.updated_at') %>:

      <%= absolute_date(history.most_recent_change) %><% if footer_meta -%>, <%= t('change_notes.see_all_updates') %><% end -%>

  <% end %>
<% end %>

Remove whitespace before the comma on "Last updated:" change note lines

- This looked weird and annoyed me.
- Tried every combination of <%- and -%> etc., to no avail, and joining
  the two lines into this really long one was the only solution that
  worked.


<!DOCTYPE html>
<html>
  <head>
    <title>Shrine Demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="Shrine demo featuring multiple file uploads to S3 with Uppy" />
    <meta charset="utf-8" />

    <script src="https://unpkg.com/babel-polyfill@6.26.0/dist/polyfill.min.js"></script>
    <script src="https://unpkg.com/whatwg-fetch@3.4.1/fetch.js"></script>
    <script src="https://transloadit.edgly.net/releases/uppy/v1.21.2/uppy.min.js"></script>

    <link href="https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css" media="screen" rel="stylesheet" />
    <link href="https://transloadit.edgly.net/releases/uppy/v1.21.2/uppy.min.css" rel="stylesheet" />
    <%= assets(:css) %>
  </head>

  <body>
    <div class="container">
      <%= yield %>
    </div>

    <%= assets(:js) %>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title>Shrine Demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="Shrine demo featuring multiple file uploads to S3 with Uppy" />
    <meta charset="utf-8" />

    <script src="https://unpkg.com/babel-polyfill@6.26.0/dist/polyfill.min.js"></script>
    <script src="https://unpkg.com/whatwg-fetch@3.4.1/fetch.js"></script>
    <script src="https://transloadit.edgly.net/releases/uppy/v1.21.2/uppy.min.js"></script>

    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" media="screen" rel="stylesheet" />
    <link href="https://transloadit.edgly.net/releases/uppy/v1.21.2/uppy.min.css" rel="stylesheet" />
    <%= assets(:css) %>
  </head>

  <body>
    <div class="container">
      <%= yield %>
    </div>

    <%= assets(:js) %>
  </body>
</html>

Update Bootstrap to 4.5.2 in demo app

Update Bootstrap to 4.5.2 in demo app


<!DOCTYPE html>
<html>
  <head>
    <title>Shrine Demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="Shrine demo featuring multiple file uploads to S3 with Uppy" />

    <script src="https://unpkg.com/babel-polyfill@6.26.0/dist/polyfill.min.js"></script>
    <script src="https://unpkg.com/whatwg-fetch@2.0.3/fetch.js"></script>
    <script src="https://unpkg.com/uppy@0.22.0/dist/uppy.min.js"></script>

    <link href="https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css" media="screen" rel="stylesheet" />
    <link href="https://unpkg.com/uppy@0.22.0/dist/uppy.min.css" rel="stylesheet" />
    <%= assets(:css) %>

    <script type="text/template" id="template-photo">
      <%= partial("albums/photo", locals: { photo: Photo.new, idx: "{{index}}" }) %>
    </script>

    <%= csrf_metatag %>
  </head>

  <body>
    <div class="container">
      <%= yield %>
    </div>

    <%= assets(:js) %>
  </body>
</html>

Add doctype declaration in the demo

Add doctype declaration in the demo


Backups for <%= @selected_application %>

	<input type="submit" value="Create Backup" id="manual_backup_button" data-application-name="<%= @selected_application %>"/>

<% if @backups && !@backups.empty? %>

				Date (dd-mm-yyyy)
				Size (MB)
				Type
				Options

			<% @backups.page(@current_page).each do |b| %>

					<%= b.date %>
					<%= b.size_mb %>
					<%= b.type %>
					<a href="<%= link_to(b) %>">Download

			<% end %>

	<%= erb :pagination %>
<% else %>

No backups available

<% end %>

	Back

Backups for <%= @selected_application %>

	<input type="submit" value="Create Backup" id="manual_backup_button" data-application-name="<%= @selected_application %>"/>

<% if @backups && !@backups.empty? %>

				Date
				Size (MB)
				Type
				Options

			<% @backups.page(@current_page).each do |b| %>

					<%= b.date %>
					<%= b.size_mb %>
					<%= b.type %>
					<a href="<%= link_to(b) %>">Download

			<% end %>

	<%= erb :pagination %>
<% else %>

No backups available

<% end %>

	Back

Remove dateformat description from heading


---
title: Frostburn - Registration
date: '2015-11-03'
tags: []
---
  %h1
    Register All the Things
    %p
      Theme Camps: We are looking forward to see how you are planning on sharing
      the warmth in your theme camps Frostburn #{data.event.year}. Please
      =link_to('register here', 'https://docs.google.com/forms/d/1GRbAMW_5jSgs-sLsRUJ3p41hCByrujFG_bK1Zj1-g-I/viewform')
      so the placement elves can get you situated.
    %p
      Events: Get your event listed in the What, Where, When guide for
      #{data.event.year}. Are you hosting the next Miss Frostburn Pageant,
      Serving Noodles at Dusk, Extolling the Virtues of the Tantric Reverse
      Sneeze, Hosting round table on Frostburn Survival, or just a nice
      DPW and chill.
      =link_to('Event Registration', 'http://goo.gl/forms/LCq0SgV5t1')
    %p
      Art and Art Cars: Do you have a 4x4 / Snow capable art car? Do you have
      large art you would like to have placed and or described in the What, Where,
      When? Send your details to
      =mail_to( 'support@frostburn.org', subject: 'Art and Art Car Registration')
    %p
      Early Access and Pre-Build: You have a big theme camp, some art to build,
      you just can't get enough and you want to help setup Frostburn. Submit
      your
      =link_to('Early Access Request','')
      form and we will get back to you. Early access and Pre-Build approval is
      not guaranteed. If you are requesting non-specific pre-build or early
      access your approval is dependent on having an entry on the
      =link_to('Volunteer Interest Form', 'http://goo.gl/forms/dRhzKivFmq')

Add Registration page and navigation

Add Registration page and navigation


      <%= tab("Users", users_path, params[:controller] == "users" && params[:action] != "deleted") %>

      <% if current_user.can_invite_user? %>
        <%= tab("Invites", user_invitations_path, params[:controller] == "user_invitations") %>
      <% end %>

      <% if current_user.can_delete_user? %>
        <%= tab("Deleted Users", deleted_users_path, params[:controller] == "users" && params[:action] == "deleted") %>
      <% end %>

  <% if current_user.can_invite_user? %>

        <%= link_to "Invite User", new_user_invitation_path, class: "btn btn-primary" %>

  <% end %>

      <%= tab("Users", users_path, params[:controller] == "users" && params[:action] != "deleted") %>

      <% if current_user.can_invite_user? %>
        <%= tab("Open Invites", open_user_invitations_path, params[:controller] == "user_invitations" && params[:action] == "open") %>
        <%= tab("Closed Invites", closed_user_invitations_path, params[:controller] == "user_invitations" && params[:action] == "closed") %>
      <% end %>

      <% if current_user.can_delete_user? %>
        <%= tab("Deleted Users", deleted_users_path, params[:controller] == "users" && params[:action] == "deleted") %>
      <% end %>

  <% if current_user.can_invite_user? %>

        <%= link_to "Invite User", new_user_invitation_path, class: "btn btn-primary" %>

  <% end %>

Change tabs for user invites to open and closed


<<<<<<< HEAD

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

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

<%=trip.destination_address.city %>

<%= trip.arriving_at %>

Remove leftover merge conflict trash

Remove leftover merge conflict trash


<!DOCTYPE html>

  <link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:700' rel='stylesheet' type='text/css'>
  <title>Kiwi</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>

Kiwi Overflow

        <% if logged_in? %>

Welcome, <%= current_user.name %>

<%= link_to("Log Out", session_path(current_user), method: :delete) %>

        <% else %>

<%= link_to "Register", new_user_path %>

<%= link_to "Login", new_session_path %>

        <% end %>

<%= link_to "All Questions", questions_path %>

      <%= yield %>

2016 © Jeff, Luis, Zach, and Nicola

<!DOCTYPE html>

 <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,900' rel='stylesheet' type='text/css'>
  <title>Kiwi Overflow</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>

Kiwi Overflow

        <% if logged_in? %>

welcome, <%= current_user.name %>
 |

<%= link_to("Log Out", session_path(current_user), method: :delete) %>
 ||
        <% else %>

<%= link_to "Register", new_user_path %>
 |

<%= link_to "Login", new_session_path %>
 ||
        <% end %>

<%= link_to "All Questions", questions_path %>

      <%= yield %>

2016 © Jeff, Luis, Zach, and Nicola

Add font link and reformat layout for navbar


<% page_title "Topics" %>
<% page_class "topics-index index-list-page" %>

Topics

What is the government doing about…

    <% if @topics.any? %>

            <%= render partial: "list", locals: { topics: @topics } %>

        <% else %>

We don't have any topics with published documents at present.

    <% end %>
    <% if @topical_events.any? %>

Topical events

            <%= render partial: "list", locals: { topics: @topical_events } %>

    <% end %>

Move closing div inside if block.

Move closing div inside if block.

This was causing invalid markup when there were no topics.


<% content_for(:context_bar) do %>
  <%= render 'shared/breadcrumbs', breadcrumbs: categories %>
<% end %>

    insert tool here

You may also be interested in...

From this section

        <%= render 'shared/tool_category_links',
                   categories: categories %>

More from the Money Advice Service

      <%= render 'shared/directory',
                 items: categories_for_directory_en, heading_level: 4 %>

Use section element instead of div for tool-nav


set daemon 30

set logfile /var/log/monit.log
set idfile /var/lib/monit/id
set statefile /var/lib/monit/state

set eventqueue
    basedir /var/lib/monit/events
    slots 100

# set mailserver smtp.gmail.com port 587
#     username "admin@example.com" password "mysecretpassword"
#     using tlsv1
#     with timeout 30 seconds

# set alert admin@example.com

set httpd port 2812
	allow admin: "mysecretpassword"

# check system blog_server
#   if loadavg(5min) > 2 for 2 cycles then alert
#   if memory > 75% for 2 cycles then alert
#   if cpu(user) > 75% for 2 cycles then alert

include /etc/monit/conf.d/*

Fix on monit config template

Fix on monit config template


      Class
      Failed
      Completed

    <% @job_stats.each_with_index do |(name, info), i| %>

        <td id='job_<%= name %>'><%= name %>
        <td id='failed_<%= name %>'><%= info[:failed] || 0 %>
        <td id='completed_<%= name %>'><%= info[:completed] || 0 %>

    <% end %>

      Total:
      <%= @failed_total %>
      <%= @completed_total %>

Remove static mock data. Add dynamic data.


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

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

<%= form_for [@order, @return_authorization] do |f| %>
  <fieldset class="no-border-top">
    <%= render :partial => 'form', :locals => { :f => f } %>

      <%= button Spree.t(:continue), 'arrow-right' %>
      <%= Spree.t(:or) %>
      <%= button_link_to Spree.t('actions.cancel'), admin_order_return_authorizations_url(@order), :icon => 'remove' %>

  </fieldset>
<% end %>

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

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

<%= form_for [@order, @return_authorization] do |f| %>
  <fieldset class="no-border-top">
    <%= render :partial => 'form', :locals => { :f => f } %>

      <%= button Spree.t(:continue), 'arrow-right' %>
      <%= Spree.t(:or) %>
      <%= button_link_to Spree.t('actions.cancel'), orders_return_authorizations_search_url, :icon => 'remove' %>

  </fieldset>
<% end %>

Fix incorrect path of cancel button in customer facing RMA form


<%= form_for [:admin, @user], :remote => true do |f| %>
  <%= error_messages_for(@user) %>
  Name<%= f.text_field :name %>

  Email <%= f.text_field :email %>

  <% if @user.new_record? %>
    Password <%= f.password_field :password %>

    Password confirmation <%= f.password_field :password_confirmation %>

  <% end %>
  Is manager <%= f.check_box :is_manager %>
<% end %>

<%= form_for [:admin, @user], :remote => true do |f| %>
  <%= error_messages_for(@user) %>
  Name<%= f.text_field :name %>

  Email <%= f.text_field :email %>

  <% if @user.new_record? %>
    Password <%= f.password_field :password %>

    Password confirmation <%= f.password_field :password_confirmation %>

  <% end %>
  <% if current_user.is_manager? %>
    Is manager <%= f.check_box :is_manager %>
  <% end %>
<% end %>

Hide is_manager controller if user is not a manager


/* DO NOT EDIT: File is auto-generated */
package <%= repository.imit.ioc_package %>;

<%= description_javadoc_for(repository, "") %>@javax.annotation.Generated( "Domgen" )
@SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public class <%= repository.imit.services_module_name %>
  extends com.google.gwt.inject.client.AbstractGinModule
{
  @Override
  protected void configure()
  {
<%
  repository.data_modules.select{|data_module| data_module.imit? && data_module.gwt_rpc?}.each do |data_module|
    data_module.services.select{|service| service.imit? && service.gwt_rpc?}.each do |service|
%>    bind( <%= service.imit.qualified_name %>.class ).to( <%= service.imit.qualified_proxy_name %>.class );
<%
    end
  end
%>  }
}

/* DO NOT EDIT: File is auto-generated */
package <%= repository.imit.ioc_package %>;

<%= description_javadoc_for(repository, "") %>@javax.annotation.Generated( "Domgen" )
@SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public class <%= repository.imit.services_module_name %>
  extends com.google.gwt.inject.client.AbstractGinModule
{
  @Override
  protected void configure()
  {
    bind( org.realityforge.replicant.client.ChangeMapper.class ).to( <%= repository.imit.qualified_change_mapper_name %>.class );
<%
  repository.data_modules.select{|data_module| data_module.imit? && data_module.gwt_rpc?}.each do |data_module|
    data_module.services.select{|service| service.imit? && service.gwt_rpc?}.each do |service|
%>    bind( <%= service.imit.qualified_name %>.class ).to( <%= service.imit.qualified_proxy_name %>.class );
<%
    end
  end
%>  }
}

Add changemapper to set of services bound in generated module


      Warning: changes to take part pages appears instantly on the live site.

    <%= form_for take_part_page, url: [:admin, take_part_page] do |form| %>
      <%= form.errors %>
      <%= form.text_field :title %>
      <%= form.text_area :summary, rows: 2, class: 'js-summary-length-counting', data: { 'count-message-threshold' => 140, 'count-message-selector' => '.summary-length-info' }%>

Summary text should be 140 characters or fewer.

      <%= form.text_area :body, "class" => "previewable" %>
      <%= form.upload :image, horizontal: true %>
      <%= form.text_field :image_alt_text, horizontal: true, label_text: "Image description (alt text)" %>
      <%= form.save_or_cancel cancel: admin_take_part_pages_path %>
    <% end %>

    <%= simple_formatting_sidebar %>

Add live edits warning and govspeak helper to take part pages form


<script type="text/javascript"><!--
'use strict';
$(() => {

  $('button#create-custom').click(() => {
    const url = '/custom-chooser/index_kata'
    window.location = url;
  });

});
//--></script>

<button id="create-custom">
  create a new custom session
</button>

<script type="text/javascript"><!--
'use strict';
$(() => {

  $('button#create-custom').click(() => {
    const url = '/custom-chooser/index_group'
    window.location = url;
  });

});
//--></script>

<button id="create-custom">
  create a new custom session
</button>

Fix incorrect copy/paste path for new custom-chooser service


        <%= link_to image_tag(@tie.receiver_subject.logo.url(tie),
                              :size => "100x100",
                              :alt => @tie.receiver_subject.name),
                     @tie.receiver_subject %>

<%= t('message')+":" %>

         <%= form_for @tie,
                      :remote => true do |f| %>
           <%= f.hidden_field :receiver_id %>
           <%= f.hidden_field :sender_id %>
           <%= f.hidden_field :relation_name %>
           <% if @tie.relation!.granted %>
             <%= f.text_area :message,   :class =>"input_new_tie" %>
           <% end %>

             <%= submit_tag t('send', :scope => @tie.relation_name), :class => "tie_btn" %>

         <% end %>

        <%= link_to image_tag(@tie.receiver_subject.logo.url(:tie),
                              :size => "100x100",
                              :alt => @tie.receiver_subject.name),
                     @tie.receiver_subject %>

<%= t('message')+":" %>

         <%= form_for @tie,
                      :remote => true do |f| %>
           <%= f.hidden_field :receiver_id %>
           <%= f.hidden_field :sender_id %>
           <%= f.hidden_field :relation_name %>
           <% if @tie.relation!.granted %>
             <%= f.text_area :message,   :class =>"input_new_tie" %>
           <% end %>

             <%= submit_tag t('send', :scope => @tie.relation_name), :class => "tie_btn" %>

         <% end %>

Fix bug in tie_new partial

Fix bug in tie_new partial


---
- job:
    name: whitehall_run_broken_link_checker
    display-name: whitehall_run_broken_link_checker
    project-type: freestyle
    description: "
Triggers the broken link checker rake task on whitehall-backend-1.
"
    builders:
        - shell: |
            ssh deploy@whitehall-backend-1.backend 'cd /var/apps/whitehall; govuk_setenv whitehall nohup bundle exec rake generate_broken_link_reports[/tmp/bad_link_reports,departments-policy-content@digital.cabinet-office.gov.uk]'
            echo "Broken link checker run"
    triggers:
        - timed: '0 2 1 * *'
    wrappers:
        - ansicolor:
            colormap: xterm
    publishers:
        - email:
            recipients: govuk-ci-notifications@digital.cabinet-office.gov.uk
    logrotate:
      artifactNumToKeep: 10

---
- job:
    name: whitehall_run_broken_link_checker
    display-name: whitehall_run_broken_link_checker
    project-type: freestyle
    description: "
Triggers the broken link checker rake task on whitehall-backend-1.
"
    builders:
        - shell: |
            ssh deploy@whitehall-backend-1.backend 'cd /var/apps/whitehall; govuk_setenv whitehall nohup bundle exec rake generate_broken_link_reports[/tmp/bad_link_reports,second-line-content@digital.cabinet-office.gov.uk]'
            echo "Broken link checker run"
    triggers:
        - timed: '0 2 1 * *'
    wrappers:
        - ansicolor:
            colormap: xterm
    publishers:
        - email:
            recipients: govuk-ci-notifications@digital.cabinet-office.gov.uk
    logrotate:
      artifactNumToKeep: 10

Update broken link report email

Update broken link report email

Email changed to second-line-content@digital.cabinet-office.gov.uk as
per
[Trello](https://trello.com/c/RCdWcC28/429-broken-links-report-for-publishers-medium)


Client {
  Name           = <%= @clientcert %>-fd
  Address        = <%= @clientcert %>
  FDPort         = <%= @port %>
  Catalog        = MyCatalog
  Password       = "<%= @password %>"
  File Retention = <%= @file_retention %>
  Job Retention  = <%= @job_retention %>
  AutoPrune      = <%= @autoprune %>
}

Client {
  Name           = <%= @clientcert %>-fd
  Address        = <%= @listen_address %>
  FDPort         = <%= @port %>
  Catalog        = MyCatalog
  Password       = "<%= @password %>"
  File Retention = <%= @file_retention %>
  Job Retention  = <%= @job_retention %>
  AutoPrune      = <%= @autoprune %>
}

Use the address from the export

Use the address from the export


<%
  featured_item = section[:promoted_content].first
  featured_item_layout_class = "taxon-page__featured-item--single" if section[:documents].empty?
%>

  <div class="taxon-page__featured-item <%= featured_item_layout_class %>" <%= "data-module=track-click" if track_click?(section[:promoted_content]) %>>
    <%= render "govuk_publishing_components/components/image_card", {
        large: true,
        href: featured_item[:link].fetch(:path),
        image_src: featured_item[:image][:url],
        heading_text: featured_item[:link].fetch(:text),
        metadata: featured_item[:metadata][:organisations],
        context: {
          date: featured_item[:metadata][:public_updated_at],
          text: featured_item[:metadata][:document_type]
        },
        href_data_attributes: featured_item[:link][:data_attributes]
    } %>

  <% if section[:documents].any? %>
    <div <%= "data-module=track-click" if track_click?(section[:documents]) %>>
      <%= render 'govuk_publishing_components/components/document_list',
        items: section[:documents],
        margin_top: true,
        margin_bottom: true
      %>
  <% else %>

  <% end %>
    <%= render partial: "taxons/sections/see_more_link", locals: { section: section } %>

<%
  featured_item = section[:promoted_content].first
  featured_item_layout_class = "taxon-page__featured-item--single" if section[:documents].empty?
%>

  <div class="taxon-page__featured-item <%= featured_item_layout_class %>">
    <%= render "govuk_publishing_components/components/image_card", {
        large: true,
        href: featured_item[:link].fetch(:path),
        image_src: featured_item[:image][:url],
        heading_text: featured_item[:link].fetch(:text),
        metadata: featured_item[:metadata][:organisations],
        context: {
          date: featured_item[:metadata][:public_updated_at],
          text: featured_item[:metadata][:document_type]
        },
        href_data_attributes: {
          track_category: featured_item[:link][:data_attributes][:track_category],
          track_action: featured_item[:link][:data_attributes][:track_action],
          track_label: featured_item[:link][:data_attributes][:track_label],
          track_options: featured_item[:link][:data_attributes][:track_options]
        }
    } %>

  <% if section[:documents].any? %>

      <%= render 'govuk_publishing_components/components/document_list',
        items: section[:documents],
        margin_top: true,
        margin_bottom: true
      %>
  <% else %>

  <% end %>
    <%= render partial: "taxons/sections/see_more_link", locals: { section: section } %>

Fix multiple events being fired on news and comms supergroup


  <%= index %>

  <%= raw comment_header(comment) %>
  <%- if comment.commented.is_a?(Problem) && comment.mark_fixed? %>
    <%= t('problems.show.marked_as_fixed')%>
  <%- end %>

  close

    <%= comment.created_at.localtime.to_s(:standard_with_date) %>

		<%= raw sanitize("#{comment.text}") %>

<img src="<%= comment.user.profile_photo.url(:large_thumb) %>" alt="" />

  <%= index %>

  <%= raw comment_header(comment) %>
  <%- if comment.commented.is_a?(Problem) && comment.mark_fixed? %>
    <%= t('problems.show.marked_as_fixed')%>
  <%- end %>

  close

    <%= comment.created_at.localtime.to_s(:standard_with_date) %>

		<%= raw simple_format(sanitize("#{comment.text}")) %>

<img src="<%= comment.user.profile_photo.url(:large_thumb) %>" alt="" />

Add simple formatting to comments.

Add simple formatting to comments.


export OS_TENANT_NAME='<%= @tenant %>'
export OS_USERNAME='<%= @user %>'
export OS_PASSWORD='<%= @password.gsub(/'/){ %q(\') } %>'
export OS_AUTH_URL='http://<%= scope.function_hiera(['control_node'])%>:5000/v3'
export OS_AUTH_STRATEGY='keystone'
export OS_REGION_NAME='<%= scope.function_hiera(['region_name']) %>'
export OS_IDENTITY_API_VERSION=3

export OS_TENANT_NAME='<%= @tenant %>'
export OS_USERNAME='<%= @user %>'
export OS_PASSWORD='<%= @password.gsub(/'/){ %q(\') } %>'
export OS_AUTH_URL='http://<%= scope.function_hiera(['control_node'])%>:5000/v3'
export OS_AUTH_STRATEGY='keystone'
export OS_REGION_NAME='<%= scope.function_hiera(['region_name']) %>'
export OS_USER_DOMAIN_ID='default'
export OS_PROJECT_DOMAIN_ID='default'
export OS_IDENTITY_API_VERSION=3

Set OS_DOMAIN stuff for v3 to work

Set OS_DOMAIN stuff for v3 to work


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

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

Enable bcmath by default when compiling PHP


<%= @article.title %>

<%= @article.body %>

	<%= link_to 'delete', article_path(@article), method: :delete %>

<%= link_to "<< Back to Articles List", articles_path %>

<%= @article.title %>

<%= @article.body %>

	<%= link_to 'delete', article_path(@article), method: :delete, data: {confirm: "Are you sure you want to delete this article?"} %>

<%= link_to "<< Back to Articles List", articles_path %>

Add article deletion confirmation to show view


<%= content_for(:head) do %>
  <%= javascript_include_tag "charCount.js" %>

<% end %>

    <%= render partial: "problem_with_votes" %>

    <% if @problem.other_solutions.empty? %>
      <%= link_to "Add Solution", "#", :id => "toggle_solution_form", :class => "btn-light-blue lg-text" %>
    <% else %>

Solutions

      <% @problem.other_solutions.each do |solution| %>
        <%= render partial: "solutions/problem_solution", locals: {:solution => solution} %>
      <% end %>
      <%= link_to "Add Solution", "#", :id => "toggle_solution_form", :class => "btn-light-blue lg-text" %>
    <% end %>

      <%= render partial: "solutions/form" %>

Use jQuery to adjust height of problem vote so solution doesn't bleed


Add a proposal

<%= form_for @proposal, url: {action: 'create'} do |f| %>
  <%= f.collection_select(:speaker_id, @speakers, :id, :name) %>
  <%= f.label(:title) %>
  <%= f.text_field(:title, :class => 'u-full-width medium-height') %>
  <%= f.label(:tags, 'Tags (comma-separated, max 3)') %>
  <%= f.text_field(:tag_list) %>
  <%= f.label(:body) %>
  <%= f.text_area(:body, class: 'u-full-width medium-height', placeholder: "For formatting, you can use Markdown! :-)") %>
  <%= recaptcha_tags %>
  <%= f.submit "Add proposal" %>
<% end %>

<%= link_to 'Back to Speaker Directory', speakers_path %>

Add a proposal

<%= form_for @proposal, url: {action: 'create'} do |f| %>
  <%= f.collection_select(:speaker_id, @speakers, :id, :name) %>
  <%= f.label(:title) %>
  <%= f.text_field(:title, :class => 'u-full-width medium-height') %>
  <%= f.label(:tags, 'Tags (comma-separated, max 3, e.g. "ruby, rails, testing")') %>
  <%= f.text_field(:tag_list) %>
  <%= f.label(:body) %>
  <%= f.text_area(:body, class: 'u-full-width medium-height', placeholder: "For formatting, you can use Markdown! :-)") %>
  <%= recaptcha_tags %>
  <%= f.submit "Add proposal" %>
<% end %>

<%= link_to 'Back to Speaker Directory', speakers_path %>

Add example to tags label

Add example to tags label

From https://twitter.com/nodunayo/status/1107579005925015555


<div id="tweet-<%= tweet.id %>" class="tweet">
  <a href="/user/<%= tweet.user_name %>">
    <img src="http://img.tweetimag.es/i/<%= tweet.user_name %>_b" alt="<%= tweet.user_name %>" />

    <a href="http://twitter.com/<%= tweet.user_name %>"><%= tweet.user_name %>
	<% if !tweet.politician.nil? %>
	(<a href="/party/<%= tweet.politician.party %>"><%= tweet.politician.party %>)
	<% end %>
	: <%= tweet.content %>

		<% source = tweet.details["source"].to_s %>
	      <a href="/tweet/<%= tweet.id %>"><%= time_ago_in_words(tweet.modified) %> verwijderd via <%= source.html_safe %>

<div id="tweet-<%= tweet.id %>" class="tweet">
  <a href="/user/<%= tweet.user_name %>">
    <img src="http://img.tweetimag.es/i/<%= tweet.user_name %>_b" alt="<%= tweet.user_name %>" />

    <a href="http://twitter.com/<%= tweet.user_name %>"><%= tweet.user_name %>
	<% if !tweet.politician.nil? %>
	(<a href="/party/<%= tweet.politician.party.name %>"><%= tweet.politician.party.name %>)
	<% end %>
	: <%= tweet.content %>

		<% source = tweet.details["source"].to_s %>
	      <a href="/tweet/<%= tweet.id %>"><%= time_ago_in_words(tweet.modified) %> verwijderd via <%= source.html_safe %>

Update views for changed db structure.

Update views for changed db structure.


#!/bin/sh

cd <%= node['gitlab'][@options[:rails_app]]['dir'] %>/working

exec 2>&1
<%= render("mount_point_check.erb") %>
exec chpst -e /opt/gitlab/etc/<%= @options[:rails_app] %>/env -P \
  -U <%= @options[:user] %> -u <%= @options[:user] %> \
  /opt/gitlab/embedded/bin/bundle exec sidekiq \
    -q post_receive \
    -q mailers \
    -q archive_repo \
    -q system_hook \
    -q project_web_hook \
    -q gitlab_shell \
    -q incoming_email \
    -q common \
    -q pages \
    -q default \
    -e <%= node['gitlab'][@options[:rails_app]]['environment'] %> \
    -r /opt/gitlab/embedded/service/<%= @options[:rails_app] %> \
    -t <%= @options[:shutdown_timeout] %> \
    -c <%= @options[:concurrency] %>

#!/bin/sh

cd <%= node['gitlab'][@options[:rails_app]]['dir'] %>/working

exec 2>&1
<%= render("mount_point_check.erb") %>
exec chpst -e /opt/gitlab/etc/<%= @options[:rails_app] %>/env -P \
  -U <%= @options[:user] %> -u <%= @options[:user] %> \
  /opt/gitlab/embedded/bin/bundle exec sidekiq \
    -q post_receive \
    -q mailers \
    -q archive_repo \
    -q system_hook \
    -q project_web_hook \
    -q gitlab_shell \
    -q incoming_email \
    -q common \
    -q pages \
    -q elasticsearch \
    -q default \
    -e <%= node['gitlab'][@options[:rails_app]]['environment'] %> \
    -r /opt/gitlab/embedded/service/<%= @options[:rails_app] %> \
    -t <%= @options[:shutdown_timeout] %> \
    -c <%= @options[:concurrency] %>

Add sidekiq queue for elasticsearch.

Add sidekiq queue for elasticsearch.


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>de.faxomat.app</string>
  <key>ProgramArguments</key>
  <array>
    <string>bundle</string>
    <string>exec</string>
    <string>unicorn</string>
    <string>--config-file</string>
    <string>config/unicorn.rb</string>
  </array>
  <key>EnvironmentVariables</key>
  <dict>
    <key>PATH</key>
    <string>/usr/local/bin:/usr/local/opt/ruby/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
    <key>RAILS_ENV</key>
    <string>production</string>
  </dict>
  <key>RunAtLoad</key>
  <true/>
  <key>KeepAlive</key>
  <true/>
  <key>WorkingDirectory</key>
  <string><%= current_path %></string>
  <key>UserName</key>
  <string><%= fetch(:user) %></string>
  <key>GroupName</key>
  <string>staff</string>
</dict>
</plist>

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>de.faxomat.app</string>
  <key>ProgramArguments</key>
  <array>
    <string>bundle</string>
    <string>exec</string>
    <string>puma</string>
    <string>--config</string>
    <string>config/puma.rb</string>
  </array>
  <key>EnvironmentVariables</key>
  <dict>
    <key>PATH</key>
    <string>/usr/local/bin:/usr/local/opt/ruby/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
    <key>RAILS_ENV</key>
    <string>production</string>
  </dict>
  <key>RunAtLoad</key>
  <true/>
  <key>KeepAlive</key>
  <true/>
  <key>WorkingDirectory</key>
  <string><%= current_path %></string>
  <key>UserName</key>
  <string><%= fetch(:user) %></string>
  <key>GroupName</key>
  <string>staff</string>
</dict>
</plist>

Update launchd from unicorn to puma.

Update launchd from unicorn to puma.


<%# add navigation links to this file %>

<%= link_to 'About', page_path('about') %>

<%= link_to 'Contact', page_path('contact') %>

Add 'about' and 'contact' (static with layout) pages


Markdown

        <form role="form">
            <textarea class="form-control" rows="2" readonly>[![Haz Commitz Status](<%= base_url %>/repos/<%= repo_path %>/badge.svg)](<%= base_url %>/repos/<%= repo_path %>)</textarea>
        </form>

RDOC

        <form role="form">
            <textarea class="form-control" rows="2" readonly>{<img src="<%= base_url %>/repos/<%= repo_path %>/badge.svg" alt="Haz Commitz Status" />}[<%= base_url %>/repos/<%= repo_path %>]</textarea>
        </form>

HTML

        <form role="form">
            <textarea class="form-control" rows="2" readonly><a href="<%= base_url %>/repos/<%= repo_path %>"><img src="<%= base_url %>/repos/<%= repo_path %>/badge.svg" /></textarea>
        </form>

Markdown

        <form role="form">
            <textarea class="form-control" rows="3" readonly>[![Haz Commitz Status](<%= base_url %>/repos/<%= repo_path %>/badge.svg)](<%= base_url %>/repos/<%= repo_path %>)</textarea>
        </form>

RDOC

        <form role="form">
            <textarea class="form-control" rows="3" readonly>{<img src="<%= base_url %>/repos/<%= repo_path %>/badge.svg" alt="Haz Commitz Status" />}[<%= base_url %>/repos/<%= repo_path %>]</textarea>
        </form>

HTML

        <form role="form">
            <textarea class="form-control" rows="3" readonly><a href="<%= base_url %>/repos/<%= repo_path %>"><img src="<%= base_url %>/repos/<%= repo_path %>/badge.svg" /></textarea>
        </form>

Increase the rows of the code snippets to handle longer hostnames


<% cache "navbar-#{I18n.locale}" do %>

      <%= render 'layouts/navbar/xs_menu_button' %>

      <%= render 'layouts/navbar/xs_sidebar_toggle_button' %>

      <%= link_to read_path, class: 'navbar-brand', id: 'feedbunch-brand' do %>
        <%= image_tag asset_path('feed18x18.png'), alt: 'FeedBunch' %>
        FeedBunch
      <% end %>

        <%= render 'layouts/navbar/show_hide_read_button' %>

        <%= render 'layouts/navbar/feeds_menu' %>

        <%= render 'layouts/navbar/read_all_button' %>

        <%= render 'layouts/navbar/folders_menu' %>

<% end %>

      <%= render 'layouts/navbar/user_menu' %>

<% cache "navbar-#{I18n.locale}" do %>

      <%= render 'layouts/navbar/xs_menu_button' %>

      <%= render 'layouts/navbar/xs_sidebar_toggle_button' %>

      <%= link_to read_path, class: 'navbar-brand', id: 'feedbunch-brand' do %>
        <%= image_tag asset_path('logo18x18.png'), alt: 'FeedBunch' %>
        FeedBunch
      <% end %>

        <%= render 'layouts/navbar/show_hide_read_button' %>

        <%= render 'layouts/navbar/feeds_menu' %>

        <%= render 'layouts/navbar/read_all_button' %>

        <%= render 'layouts/navbar/folders_menu' %>

<% end %>

      <%= render 'layouts/navbar/user_menu' %>

Use new logo in navbar.

Use new logo in navbar.


<article class="response p-comment h-cite" id="response-<%= webmention.id %>">

<%= link_to webmention.entry_name, webmention.entry_url, class: 'u-url p-name' %> references this post.

			<%= link_to raw(%Q{#{image_tag(webmention.author_photo, class: 'u-photo')} #{webmention.author_name}}), webmention.author_url, class: 'p-author h-card' %>
			published this on
			<time class="dt-published" datetime="<%= webmention.published_at.to_s(:iso8601) %>"><%= raw webmention.published_at.to_s(:display) %></time>.

<article class="response p-comment h-cite" id="response-<%= webmention.id %>">

<%= link_to truncate(webmention.entry_name, length: 128, omission: '…'), webmention.entry_url, class: 'u-url p-name' %> references this post.

			<%= link_to raw(%Q{#{image_tag(webmention.author_photo, class: 'u-photo')} #{webmention.author_name}}), webmention.author_url, class: 'p-author h-card' %>
			published this on
			<time class="dt-published" datetime="<%= webmention.published_at.to_s(:iso8601) %>"><%= raw webmention.published_at.to_s(:display) %></time>.

Truncate reference names as they may represent a reference's content and could get long and out of control.


Записаться

На этой странице Вы сможете записаться к нам на стрижку, завивку, маникюр и многое другое:)

<form action="/visit" method="POST" role="form">

    Ваше имя
    <input name="username" type="text" class="form-control" placeholder="Ваше имя">

    Ваш телефон
    <input name="phone" type="text" class="form-control" placeholder="Ваш телефон">

    Когда вас ждать?
    <input name="datetime" type="text" class="form-control" placeholder="Введите дату и время">

  <button type="submit" class="btn btn-primary">Записаться</button>

</form>

Записаться

На этой странице Вы сможете записаться к нам на стрижку, завивку, маникюр и многое другое:)

<form action="/visit" method="POST" role="form">

    Как Вас зовут? (как можно к Вам обращаться?)
    <input name="username" type="text" class="form-control" placeholder="Ваше имя">

    Ваш телефон
    <input name="phone" type="text" class="form-control" placeholder="Ваш телефон">

    Когда вас ждать?
    <input name="datetime" type="text" class="form-control" placeholder="Введите дату и время">

    Выберите парикмахера
    <select class="form-control">
      <option>Катя</option>
      <option>Лиля</option>
      <option>Марина</option>
  </select>

  <button type="submit" class="btn btn-primary">Записаться</button>

</form>

Add a list of personal

Add a list of personal


source 'https://rubygems.org'

gem 'coffee-rails', '~> 4.0.0'
<% if options[:devise] -%>
gem 'devise'
<% end -%>
gem 'dotenv-rails'
gem 'flutie'
gem 'jquery-rails'
gem 'pg'
gem 'rails', '~> 4.0.0'
gem 'sass-rails', '~> 4.0.0'
gem 'simple_form'
gem 'slim-rails'
gem 'uglifier', '>= 1.3.0'

group :development do
  gem 'better_errors'
  gem 'capistrano', '~> 3.0.0'
  gem 'capistrano-bundler'
  gem 'capistrano-rails'
  gem 'capistrano-rbenv', github: 'capistrano/rbenv'
  gem 'guard-rails'
  gem 'mailcatcher'
end

group :development, :test do
  gem 'factory_girl_rails'
  gem 'rspec-rails', '>= 2.14'
end

group :staging, :production do
  gem 'newrelic_rpm', '>= 3.6.7'
end

group :test do
  gem 'capybara-webkit', '>= 1.0.0'
  gem 'database_cleaner'
  gem 'simplecov', require: false
end

source 'https://rubygems.org'

gem 'coffee-rails', '~> 4.0.0'
<% if options[:devise] -%>
gem 'devise'
<% end -%>
gem 'dotenv-rails'
gem 'flutie'
gem 'jquery-rails'
gem 'pg'
gem 'rails', '~> 4.0.0'
gem 'sass-rails', '~> 4.0.0'
gem 'simple_form'
gem 'slim-rails'
gem 'uglifier', '>= 1.3.0'

group :development do
  gem 'better_errors'
  gem 'capistrano', '~> 3.0.0'
  gem 'capistrano-bundler'
  gem 'capistrano-rails'
  gem 'capistrano-rbenv', github: 'capistrano/rbenv'
  gem 'guard-rspec'
  gem 'mailcatcher'
end

group :development, :test do
  gem 'factory_girl_rails'
  gem 'rspec-rails', '>= 2.14'
end

group :staging, :production do
  gem 'newrelic_rpm', '>= 3.6.7'
end

group :test do
<% unless `uname -r`.to_i == 13 -%>
  gem 'capybara-webkit', '>= 1.0.0'
<% end -%>
  gem 'database_cleaner'
  gem 'simplecov', require: false
end

Use guard-rspec instead of guard-rails in Gemfile


---
layout: api_layout
title: Link Checker API
parent: /apis.html
source_url: https://github.com/alphagov/link-checker-api/blob/master/docs/api.md
---

<%= ExternalDoc.fetch(repository: 'alphagov/link-checker-api', path: 'docs/api.md') %>

Add Link Checker API API doc

Add Link Checker API API doc


This is your root view!

It's accessible by making a request to <%= name.capitalize %>'s root path from your browser.

<%%= render "partial" %>

Proof that CoffeeScript works:

The current time is: unknown. Update

Add alt to generator root image

Add alt to generator root image

* /cc @jessicard


Use this format for: Consultations (officially “documents requiring collective agreement across government”, including calls for evidence).

<%= edition_editing_tabs(edition) do %>
  <%= standard_edition_form(edition) do |form| %>
    <fieldset>
      <legend>Associations</legend>

        <%= render 'related_policy_fields', form: form, edition: edition %>

      <%= render 'worldwide_organisation_fields', form: form, edition: edition %>
      <%= render 'worldwide_priority_fields', form: form, edition: edition %>
      <%= render 'world_location_fields', form: form, edition: edition %>
      <%= render 'organisation_fields', form: form, edition: edition %>
      <%= render 'specialist_sector_fields', form: form, edition: edition %>
    </fieldset>
  <% end %>
<% end %>

Use this format for: Case studies that show someone’s experience of a process covered on GOV.UK or a policy problem the government is trying to solve.

<%= edition_editing_tabs(edition) do %>
  <%= standard_edition_form(edition) do |form| %>
    <fieldset>
      <legend>Associations</legend>

        <%= render 'related_policy_fields', form: form, edition: edition %>

      <%= render 'worldwide_organisation_fields', form: form, edition: edition %>
      <%= render 'worldwide_priority_fields', form: form, edition: edition %>
      <%= render 'world_location_fields', form: form, edition: edition %>
      <%= render 'organisation_fields', form: form, edition: edition %>
      <%= render 'specialist_sector_fields', form: form, edition: edition %>
    </fieldset>
  <% end %>
<% end %>

Correct case study format advice

Correct case study format advice

This was incorrectly set to the advise for consultations.


Recurring Jobs

<% if @schedules.length > 0 %>

    thead

      Worker
      Queue
      Next Run
      Actions

    <% @schedules.each do |worker, schedule| %>

          <a href="<%= "#{root_path}sidetiq/#{worker.name}" %>"><%= worker.name %>
        <%= worker.get_sidekiq_options["queue"] %>

          <%= relative_time(schedule.next_occurrence(@time)) %>

          <form action="<%= "#{root_path}sidetiq/#{worker.name}/trigger" %>" method="post">
            <input class="btn btn-danger btn-small" type="submit" name="trigger" value="Trigger" data-confirm="Are you sure you want to trigger this job?" />
          </form>

    <% end %>

<% else %>

No recurring jobs found.

<% end %>

Recurring Jobs

<% if @schedules.length > 0 %>

      Worker
      Queue
      Next Run
      Actions

    <% @schedules.each do |worker, schedule| %>

          <a href="<%= "#{root_path}sidetiq/#{worker.name}" %>"><%= worker.name %>
        <%= worker.get_sidekiq_options["queue"] %>

          <%= relative_time(schedule.next_occurrence(@time)) %>

          <form action="<%= "#{root_path}sidetiq/#{worker.name}/trigger" %>" method="post">
            <input class="btn btn-danger btn-small" type="submit" name="trigger" value="Trigger" data-confirm="Are you sure you want to trigger this job?" />
          </form>

    <% end %>

<% else %>

No recurring jobs found.

<% end %>

Remove stray 'thead' from ERB template.

Remove stray 'thead' from ERB template.


  Show Factlink <%= image_tag(image_url("/system/wheel/{%= opinions.believe.percentage %}-{%= opinions.doubt.percentage %}-{%= opinions.disbelieve.percentage %}.png".html_safe), style: "display: none;") %>
  Loading...

Add "Loading…" message to Factlink indicator

Signed-off-by: tomdev <96835dd8bfa718bd6447ccc87af89ae1675daeca@codigy.nl>


# /etc/munin/munin-node.conf - config-file for munin-node
#
# This file is handled by puppet, any local changes will be lost
#

host_name  <%= fqdn %>
log_level  4
log_file   /var/log/munin/munin-node.log
port       4949
pid_file   /var/run/munin-node.pid
background 1
setsid     1

# Which port to bind to;

user  root
group root

# Regexps for files to ignore

ignore_file ~$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
ignore_file \.puppet-bak$

# Hosts to allow

<% Array(allow).flatten.each do |line|                        -%>
<%   if line.match(/^\d+\.\d+\.\d+\.\d+$/)                    -%>
<%=    line.gsub(".", "\\.").sub(/^/, "allow ^").sub(/$/, "$") %>
<%   elsif line.match(/^\d+\.\d+\.\d+\.\d+\/\d+$/)            -%>
<%=    line.sub(/^/, "cidr_allow ")                            %>
<%   end                                                      -%>
<% end                                                        -%>

<% Array(nodeconfig).each do |line| -%>
<%= line %>
<% end -%>

# /etc/munin/munin-node.conf - config-file for munin-node
#
# This file is handled by puppet, any local changes will be lost
#

host_name  <%= fqdn %>
log_level  4
log_file   /var/log/munin/munin-node.log
port       4949
pid_file   /var/run/munin/munin-node.pid
background 1
setsid     1

# Which port to bind to;

user  root
group root

# Regexps for files to ignore

ignore_file ~$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
ignore_file \.puppet-bak$

# Hosts to allow

<% Array(allow).flatten.each do |line|                        -%>
<%   if line.match(/^\d+\.\d+\.\d+\.\d+$/)                    -%>
<%=    line.gsub(".", "\\.").sub(/^/, "allow ^").sub(/$/, "$") %>
<%   elsif line.match(/^\d+\.\d+\.\d+\.\d+\/\d+$/)            -%>
<%=    line.sub(/^/, "cidr_allow ")                            %>
<%   end                                                      -%>
<% end                                                        -%>

<% Array(nodeconfig).each do |line| -%>
<%= line %>
<% end -%>

Set munin-node pidfile to the debian default


<%= link_to t(:edit_account), edit_account_path, :style => "margin-left:400px;", :class => "button" %>

  <% ["first_name", "last_name", "email", "phone", "address", "zip", "city", "state", "country"].each do |info| %>

<%= t(:"#{info}") %>

<%= current_user.send(info) %>
  <% end %>

<%= link_to t(:edit_account), edit_account_path, :style => "margin-left:400px;", :class => "button" %>

  <% ["first_name", "last_name", "email", "phone", "address", "zip", "city", "state", "country"].each do |info| %>
    <% unless current_user.send(info).blank? %>

<%= t(:"#{info}") %>

<%= current_user.send(info) %>
    <% end %>
  <% end %>

Hide user infos when nil

Hide user infos when nil


$('#list_items_in_cart').replaceWith('<%= escape_javascript(render :partial => 'reservations/list_items_in_cart') %>');
<% # availability updates %>
<% if @item %>
  var add_to_cart_btn = $('<%= "#add_to_cart_#{@item.id}" %>').children('.btn')
  $('<%= "#availability_#{@item.id}" %>').html(<%= @availability_hash[@item.id] %>);
  <% if @availability_hash[@item.id] <= 0 %>
    add_to_cart_btn.replaceWith('<%= button_tag "Add to Cart", :class => "btn disabled add_to_cart_disabled"%>')
  <% else %>
    add_to_cart_btn.replaceWith('<%= link_to "Add to Cart", add_to_cart_path(@item), :method => :put, :remote => true, :class => "btn add_to_cart" %>');
  <% end %>
<% end %>
resume_cart();

<% if (flash[:error].blank? && flash[:notice].blank? && flash[:alert].blank?) %>
  $('#flashes').html('');
<% else %>
  $('#flashes').html('<%= escape_javascript(render :partial => 'layouts/flash_alerts') %>');
  <% flash.clear %>
<% end %>

$('#list_items_in_cart').replaceWith('<%= escape_javascript(render :partial => 'reservations/list_items_in_cart') %>');
<% # availability updates %>
<% if @item %>
  var add_to_cart_btn = $('<%= "#add_to_cart_#{@item.id}" %>').children('.btn')
  $('<%= "#availability_#{@item.id}" %>').html(<%= @availability_hash[@item.id] %>);
  <% if @availability_hash[@item.id] <= 0 %>
    add_to_cart_btn.replaceWith('<%= button_tag "Add to Cart", :class => "btn btn-default disabled add_to_cart_disabled"%>')
  <% else %>
    add_to_cart_btn.replaceWith('<%= link_to "Add to Cart", add_to_cart_path(@item), :method => :put, :remote => true, :class => "btn btn-default add_to_cart" %>');
  <% end %>
<% end %>
resume_cart();

<% if (flash[:error].blank? && flash[:notice].blank? && flash[:alert].blank?) %>
  $('#flashes').html('');
<% else %>
  $('#flashes').html('<%= escape_javascript(render :partial => 'layouts/flash_alerts') %>');
  <% flash.clear %>
<% end %>

Fix add to cart btn forgetting it's a btn issue


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

    <% end %>

Add form error message and new recipe create success message


Redirects

    From
    To
    Added

  <% redirects.order('created_at DESC').each do |redirect| %>

      <%= redirect.created_at.to_formatted_s(:long) %>
      <%= link_to redirect.from_base_path, website_url(redirect.from_base_path), target: '_blank' %>
      <%= link_to redirect.to_base_path, website_url(redirect.to_base_path), target: '_blank' %>

  <% end %>

Redirects

    Added
    From
    To

  <% redirects.order('created_at DESC').each do |redirect| %>

      <%= redirect.created_at.to_formatted_s(:long) %>
      <%= link_to redirect.from_base_path, website_url(redirect.from_base_path), target: '_blank' %>
      <%= link_to redirect.to_base_path, website_url(redirect.to_base_path), target: '_blank' %>

  <% end %>

Fix heading of redirects table

Fix heading of redirects table

The ordering of the table header is currently wrong.


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

  ga('create', 'UA-59146207-1', 'auto');
  ga('send', 'pageview');
</script>

Add Google Analytics script to a shared partial


<div id="wrapper" class="<%= extra_wrapper_css unless not defined? extra_wrapper_css %>">

    <% items.each do |item| %>
      <%= render partial_name(item), :item => item %>
    <% end %>

  <%= paginate items if items.respond_to? :current_page %>

<div id="wrapper" class="<%= extra_wrapper_css unless not defined? extra_wrapper_css %>">

    <% items.each do |item| %>
      <%= render partial_name(item), :item => item, :span => 'span4' %>
    <% end %>

Remove unused pagination from mixed_wall template


Listing needs

<% @needs.each do |need| %>

    <%= link_to 'Show', need %>
    <%= link_to 'Edit', edit_need_path(need) %>
    <%= link_to 'Destroy', need, confirm: 'Are you sure?', method: :delete %>

<% end %>

<%= link_to 'New Need', new_need_path %>

Listing needs

<% @needs.each do |need| %>

    <%= link_to need.title, need %>
    <%= link_to 'Edit', edit_need_path(need) %>
    <%= link_to 'Destroy', need, confirm: 'Are you sure?', method: :delete %>

<% end %>

<%= link_to 'New Need', new_need_path %>

Use a need's title rather than just 'show' in the index


New report

<%= render 'form' %>

<%= link_to 'Back', reports_path %>

New report

<%= render 'form' %>

<%= link_to 'Back', home_path %>

Update to place information displayed in container


   <%= f.label :email, t("activerecord.attributes.user.email", :default => "Email"), :class => :label %>

    <%= f.text_field :email, :class => 'text_field' %>

  <button class="btn primary" type="submit">Save</button> or
	<%= link_to "Cancel", users_path %>

   <%= f.label :email, t("activerecord.attributes.user.email", :default => "Email"), :class => :label %>

    <%= f.text_field :email, :class => 'text_field' %>

  <button class="btn primary" type="submit">Save</button> or
	<%= link_to "Cancel", :back %>

Fix broken link in profile edit

Fix broken link in profile edit

The link was to `/users/` and was resulting in a 404 error page.


<% if book_collection.any? %>

  			Title
  			Author
  			Pages
        <% if logged_in? %>

        <% end %>

      <% book_collection.each do |book| %>

              <% if book.amazon_link %>
          		  <%= link_to book.title, book.amazon_link %>
            	<% else %>
            		<%= book.title %>
            	<% end %>

          	<% if book.subtitle %>

<%= book.subtitle %>

          	<% end %>

<%= book.author.split("\n").map{|a| "
#{a}
"}.join.html_safe %>

            <%= number_with_delimiter(book.page_count, delimeter: ",") %>

          <% if logged_in? %>

              <%= link_to("".html_safe, edit_book_path(book), title: "Edit #{book.title}", class: "btn btn-default") %>

          <% end %>

      <% end %>

<% end %>

<% if book_collection.any? %>

  			Title
  			Author
  			Pages
        <% if logged_in? %>

        <% end %>

      <% book_collection.each do |book| %>

            	<%= book.title %>

          	<% if book.subtitle %>

<%= book.subtitle %>

          	<% end %>

<%= book.author.split("\n").map{|a| "
#{a}
"}.join.html_safe %>

            <%= number_with_delimiter(book.page_count, delimeter: ",") %>

          <% if logged_in? %>

              <%= link_to("".html_safe, edit_book_path(book), title: "Edit #{book.title}", class: "btn btn-default") %>

          <% end %>

      <% end %>

<% end %>

Remove Amazon link from Books index

Remove Amazon link from Books index


<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title><%= page_title %></title>
  <meta name="description" content="<%= page_description %>">

  <%= partial "partials/open_graph" %>
  <%= partial "partials/twitter_card" %>

  <%= stylesheet_link_tag "application" %>
</head>
<body<%= body_class %>>
  <%= yield %>

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

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title><%= page_title %></title>
  <meta name="description" content="<%= page_description %>">

  <%= partial "partials/open_graph" %>
  <%= partial "partials/twitter_card" %>

  <%= stylesheet_link_tag "application" %>
</head>
<body<%= body_class %>>
  <%= yield %>

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

    ga('create', 'UA-11122428-1', 'auto');
    ga('send', 'pageview');

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

Add Google Analytics tracking code

Add Google Analytics tracking code


    <title>Hammerspoon docs: <%= mod['name'] %> module</title>

<%= mod['name'] %>

      <%= GitHub::Markdown.render_gfm(mod['doc']) %>

    <% mod['items'].sort_by{|m|m['def']}.each do |item| %>
    <section id="<%= item['name'] %>">
      <a name="//apple_ref/cpp/<%= item['type'] %>/<%= item['name'] %>" class="dashAnchor">

<a href="#<%= item['name'] %>"><%= item['name'] %>

      <%= item['def'] %>
      <%= GitHub::Markdown.render_gfm(item['doc']) %>

    <% end %>

    <title>Hammerspoon docs: <%= mod['name'] %> module</title>

<%= mod['name'] %>

      <%= GitHub::Markdown.render_gfm(mod['doc']) %>

    <% mod['items'].sort_by{|m|m['def']}.each do |item| %>
    <section id="<%= item['name'] %>">
    <a name="//apple_ref/cpp/<%= item['type'] %>/<%= item['name'] %>" class="dashAnchor">

<a href="#<%= item['name'] %>"><%= item['name'] %>

            Signature
            <%= item['def'] %>

            Type
            <%= item['type'] %>

            Description

                <%= GitHub::Markdown.render_gfm(item['doc']) %>

    <% end %>

Format API docs with a new, hopefully clearer, style


# Hostgroup definitions
# Automatically generated by Chef

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

<% @roles.each do |r| -%>
define hostgroup {
  hostgroup_name <%= r %>
  alias <%= r %>
}
<% end -%>

<% @environments.each do |e| -%>
define hostgroup {
  hostgroup_name <%= e %>
  alias <%= e %>
}
<% end -%>

<% if node['nagios']['multi_os_monitoring'] == true -%>
<% @os.each do |o| -%>
define hostgroup {
	hostgroup_name <%= o %>
	alias <%= o %>
}
<% end -%>
<% end -%>

# Hostgroup definitions
# Automatically generated by Chef

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

<% @roles.each do |r| -%>
define hostgroup {
  hostgroup_name <%= r %>
  alias <%= r %>
}
<% end -%>

<% @environments.each do |e| -%>
define hostgroup {
  hostgroup_name <%= e %>
  alias <%= e %>
}
<% end -%>

<% if os.any? -%>
<% @os.each do |o| -%>
define hostgroup {
	hostgroup_name <%= o %>
	alias <%= o %>
}
<% end -%>
<% end -%>

Switch to any? to check if there are values in the OS array

Former-commit-id: d1955dead4c7cf78c6fdf3bba5b9ce8e57efc578 [formerly 33930c3de64bd69aef953eb98849763ff93714a9] [formerly b0af79e2fd2c9c988d12b5dd315216ed45a3ec13 [formerly cff9407d67788dd0522d90b61ab4fefd91e322f1]]
Former-commit-id: c5e775f17e4ba0c9830c93e4ff7bcb10f21fd135 [formerly b0336d5e6d8af74adb1197fbd2ad6162bb14469c]
Former-commit-id: 2eb22bf50e642eb37f6fc4ac77a8413174a61ee3


  <% if @prev_winner %>
    <%= render partial: "votes/previous_vote_results" %>
  <% end %>

  <%= link_to votes_path(winner: @option1.id, loser: @option2.id), method: :post, :class => "option1-vote pure-u-1 pure-u-md-1-2 " do %>
    <div id="option1" style="background-image: url(<%=@option1.get_image_url%>)" class='animated fadeIn'>

<%= @option1.name %>

  <%end%><%=link_to votes_path(winner: @option2.id, loser: @option1.id), method: :post, :class => "option2-vote pure-u-1 pure-u-md-1-2" do%>
    <div id="option2" style="background-image: url(<%=@option2.get_image_url%>)" class='animated fadeIn'>

<%= @option2.name %>

  <%end%>

  <img src="<%=@preload1.get_image_url%>" alt="">
  <img src="<%=@preload2.get_image_url%>" alt="">

Add precaching, hidden image div

Add precaching, hidden image div


<!DOCTYPE html>

    <meta charset="utf-8"/>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <title><%= yield :title %></title>

    <%= javascript_include_tag 'dashing/application' %>
    <%= stylesheet_link_tag 'dashing/application' %>

    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
    <link rel="icon" href="/favicon.ico">

      <%= yield %>

    <% if Rails.env.development? %>

Paste the following at the top of <%= params[:dashboard] %>.erb

        <textarea id="gridster-code"></textarea>

      Save this layout
    <% end %>

<!DOCTYPE html>

    <meta charset="utf-8"/>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <title><%= yield :title %></title>

    <%= javascript_include_tag 'dashing/application' %>
    <%= stylesheet_link_tag 'dashing/application' %>

    <link href='//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
    <link rel="icon" href="/favicon.ico">

      <%= yield %>

    <% if Rails.env.development? %>

Paste the following at the top of <%= params[:dashboard] %>.erb

        <textarea id="gridster-code"></textarea>

      Save this layout
    <% end %>

Use protocol agnostic URL for Google's font

HTTPS users are happy now :)


<% if collections.any? %>
  <% collections.each do |c| %>
    <%= c.name %>
 <% end %>
<% end %>

<% if collections.any? %>

  <% collections.each do |collection| %>
    <% url = "t/fabric/collection/#{collection.name}" %>
    <li id="product_<%= collection.id %>" class="columns three <%= cycle("alpha", "secondary", "", "omega secondary", :name => "classes") %>" data-hook="products_list_item" itemscope itemtype="http://schema.org/Product">

  <% end %>
  <% reset_cycle("classes") %>

<% end %>

Add collections controller and view.

Add collections controller and view.


---
- scm:
    name: scrape_icinga_alerts_for_dashboard_metrics
    scm:
        - git:
            url: git@github.com:alphagov/govuk-alert-tracker.git
            branches:
              - master

- job:
    name: scrape_icinga_alerts_for_dashboard_metrics
    display-name: Scrape Icinga alerts for dashboard metrics
    project-type: freestyle
    scm:
      - scrape_icinga_alerts_for_dashboard_metrics
    description: "Extracts information about alerts into a Google sheet which the dashboard extracts data from"
    logrotate:
        numToKeep: 10
    triggers:
        - timed: |
            TZ=Europe/London
            0 7 1 * *
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    builders:
       - shell: |
          cd govuk-alert-tracker
          bundle install
          bundle exec rake run_monthly_report
    publishers:
      <% if @enable_slack_notifications %>
      - slack:
          team-domain: <%= @slack_team_domain %>
          auth-token: <%= @slack_auth_token %>
          build-server-url: <%= @slack_build_server_url %>
          notify-start: false
          notify-success: true
          notify-aborted: false
          notify-notbuilt: false
          notify-unstable: false
          notify-failure: true
          notify-backtonormal: true
          notify-repeatedfailure: true
          include-test-summary: false
          room: <%= @slack_room %>
      <% end %>

---
- scm:
    name: scrape_icinga_alerts_for_dashboard_metrics
    scm:
        - git:
            url: git@github.com:alphagov/govuk-alert-tracker.git
            branches:
              - master

- job:
    name: scrape_icinga_alerts_for_dashboard_metrics
    display-name: Scrape Icinga alerts for dashboard metrics
    project-type: freestyle
    scm:
      - scrape_icinga_alerts_for_dashboard_metrics
    description: "Extracts information about alerts into a Google sheet which the dashboard extracts data from"
    logrotate:
        numToKeep: 10
    triggers:
        - timed: |
            TZ=Europe/London
            0 7 1 * *
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    builders:
       - shell: |
          bundle install
          bundle exec rake run_monthly_report
    publishers:
      <% if @enable_slack_notifications %>
      - slack:
          team-domain: <%= @slack_team_domain %>
          auth-token: <%= @slack_auth_token %>
          build-server-url: <%= @slack_build_server_url %>
          notify-start: false
          notify-success: true
          notify-aborted: false
          notify-notbuilt: false
          notify-unstable: false
          notify-failure: true
          notify-backtonormal: true
          notify-repeatedfailure: true
          include-test-summary: false
          room: <%= @slack_room %>
      <% end %>

Update to govuk-alert-tracker Jenkins job

The app files get cloned straignt into the Jenkins workspace, so this command is not needed.


[user]
	name = Comron Sattari
	email = comron@gmail.com

[alias]
  co = checkout
  st = status
  ci = commit

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

[core]
  excludefile = <%= ENV['HOME'] %>/.gitignore
  editor = mvim

[apply]
  whitespce = nowarn

[format]
  pretty = %C(yellow)%h%Creset %s %C(red)(%cr)%Creset

[user]
	name = Comron Sattari
	email = comron@gmail.com

[alias]
  co = checkout
  st = status
  ci = commit

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

[core]
  excludefile = <%= ENV['HOME'] %>/.gitignore
  editor = <%= `which vim` %>

[apply]
  whitespce = nowarn

[format]
  pretty = %C(yellow)%h%Creset %s %C(red)(%cr)%Creset

Use full path to vim, to resolve exit status problems


		<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">

	Found <%=@issue_count%> open issues across <%=@gem_list.count%> gems you depend on. Happy hacking!

	<%= @html_content %>

Set accordion height to match content, not a billion metres high


<IfModule mod_userdir.c>
<% if @disable_root -%>
  UserDir disabled root
<% end -%>
  UserDir <%= @dir %>

  <Directory "<%= @home %>/*/<%= @dir %>">
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options <%= @options.join(' ') %>
    <Limit GET POST OPTIONS>
      <%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
      Require all granted
      <%- else -%>
      Order allow,deny
      Allow from all
      <%- end -%>
    </Limit>
    <LimitExcept GET POST OPTIONS>
      <%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
      Require all granted
      <%- else -%>
      Order allow,deny
      Allow from all
      <%- end -%>
    </LimitExcept>
  </Directory>
</IfModule>

<IfModule mod_userdir.c>
<% if @disable_root -%>
  UserDir disabled root
<% end -%>
  UserDir <%= @home %>/*/<%= @dir %>

  <Directory "<%= @home %>/*/<%= @dir %>">
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options <%= @options.join(' ') %>
    <Limit GET POST OPTIONS>
      <%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
      Require all granted
      <%- else -%>
      Order allow,deny
      Allow from all
      <%- end -%>
    </Limit>
    <LimitExcept GET POST OPTIONS>
      <%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
      Require all granted
      <%- else -%>
      Order allow,deny
      Allow from all
      <%- end -%>
    </LimitExcept>
  </Directory>
</IfModule>

Include full path for UserDir directive

Include full path for UserDir directive


<% if @res %>

<%= @res["title"] %>

  <%= render "show_metadata" %>
  <%= render "show_content" %>

<% else %>

<%= t("item.not_found", default: "Not Found") %>

  <%= t "item.no_item", id: params["id"], default: "No item with identifier #{params["id"]} found!" %>

<% end %>

Remove missing item logic from show template


<% content_for :title, role.title %>

<%= render partial: "header", locals: { role: role } %>

<%= render partial: "organisations", locals: { role: role } %>

<%= render partial: "current_holder", locals: { role: role } %>

    <%= render partial: "contents", locals: { role: role } %>

  <div class="govuk-grid-column-two-thirds" dir="<%= page_text_direction %>" lang="<%= role.locale %>">
    <%= render partial: "responsibilities", locals: { role: role } %>

    <%= render partial: "current_role_holder_with_biography", locals: { role: role } %>

    <%= render partial: "shared/announcements", locals: { announcements: role.announcements, locale: role.locale } %>

Add bottom padding after mini organisation and current holder

This matches the margins in Whitehall.


<%= @list.name.capitalize %>

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

<%= item.name %>

  <% end %>

<%= link_to "Add New Item", new_list_item_path(@list) %>

<%= @list.name.capitalize %>

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

<%= item.name %>

  <% end %>

<%= link_to "Add New Item", new_list_item_path(@list) %>

Remove = from interation interpolation

Remove = from interation interpolation


<%- model_class = User -%>

<%=t '.title', :default => model_class.model_name.human %>

<%= model_class.human_attribute_name(:username) %>:

<%= @user.username %>

<%= model_class.human_attribute_name(:password_digest) %>:

<%= @user.password_digest %>

  <%= link_to t('.back', :default => t("helpers.links.back")),
              users_path, :class => 'btn'  %>
  <%= link_to t('.edit', :default => t("helpers.links.edit")),
              edit_user_path(@user), :class => 'btn btn-primary' %>
  <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
              user_path(@user),
              :method => 'delete',
              :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
              :class => 'btn btn-danger' %>

<%- model_class = User -%>

<%=t '.title', :default => model_class.model_name.human %>

<%= model_class.human_attribute_name(:username) %>:

<%= @user.username %>

  <%= link_to t('.back', :default => t("helpers.links.back")),
              users_path, :class => 'btn'  %>
  <%= link_to t('.edit', :default => t("helpers.links.edit")),
              edit_user_path(@user), :class => 'btn btn-primary' %>
  <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
              user_path(@user),
              :method => 'delete',
              :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
              :class => 'btn btn-danger' %>

Remove password digest from user's page

Remove password digest from user's page


<%= @user.first_name %>

<%= @user.last_name %>

<%= @user.email %>

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

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

Reviews:

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

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

		<% end %>

=======

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

<%= @user.first_name %>

<%= @user.last_name %>

<%= @user.email %>

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

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

Reviews:

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

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

		<% end %>

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

Delete the equle sign form the user profile


Add new Post

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

  	<button type="submit" class="btn btn-danger">Yarr</button>
  </form>

Add new Post

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

  	<button type="submit" class="btn btn-danger">Yarr</button>
  </form>

Add action, method attributes to form

Add action, method attributes to form


  <%= f.label :subscribable do %>
    <%= f.check_box :subscribable %>
    <%= Spree::Variant.human_attribute_name(:subscribable) %>
  <% end %>

Update overrides to comply with new grid system


<% content_for :head do %>
  <script type="text/javascript" charset="utf-8">
    $(document).ready(function(){
      var myTextArea = $('textarea.tagme').tagify();

      myTextArea.tagify('inputField').autocomplete({
        source: <%= raw resource_class.tag_counts.collect { |t| t.name } %>,
        position: { of: myTextArea.tagify('containerDiv') },
        close: function(event, ui) { myTextArea.tagify('add'); },
      });

      $('textarea.tagme').closest("form").submit( function() {
        $('textarea').tagify('serialize');
      });
    });
  </script>
  <style type="text/css" media="all">
    .ui-autocomplete {width:296px;}
  </style>
<% end %>

<%= f.input :tag_list, as: :text, input_html: { class: "tagme" } %>

<% id = "koi-#{ new_uuid }" %>

<% content_for :head do %>

  <script type="text/javascript" charset="utf-8">

    $ (document).ready (function ()
    {
      var input = $ ('#<%= id %>')

      input.tagify ()

      input.tagify ('inputField').autocomplete ({

        source: <%= raw resource_class.tag_counts_on(attr).collect { |t| t.name } %>

      , position: { of: input.tagify ('containerDiv') }

      , close: function (event, ui) { input.tagify ('add') }

      })

      input.closest ('form').submit (function (e)
      {
        input.tagify ('serialize')
      })

    })
  </script>

  <style type="text/css" media="all">
    .ui-autocomplete { width : 296px; }
  </style>
<% end %>

<%= f.input attr, as: :text, input_html: { id: id } %>

Fix for dodgy tags, and allow for other tag field names.


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

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

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

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

  <% end %>

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

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

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

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

  <% end %>

Use wdpa_id instead of slug as URL

Use wdpa_id instead of slug as URL


Home

Video

Pictures

Music

Blog

    ~*~

    *tweet*

    *tweet*

facebook

vimeo

twitter

store

Home

Video

Pictures

Music

Blog

    >>carousel<<

    *tweet*

    *tweet*

facebook

vimeo

twitter

store

Set center div to 8 col.

Set center div to 8 col.


#!/bin/sh

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

for prefix in chef git lists osm-blog osmf-crm osmf-ledgersmb osmf-wiki osqa otrs sotm svn switch2osm thinkup trac wiki
do
  /usr/local/bin/expire-backups --days=3 --weeks=3 --months=3 /store/backup $prefix
done

/usr/local/bin/expire-backups --weeks=5 /store/backup osm

#!/bin/sh

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

for prefix in chef-server chef-repository git lists osm-blog osmf-crm osmf-ledgersmb osmf-wiki osqa otrs sotm svn switch2osm thinkup trac wiki
do
  /usr/local/bin/expire-backups --days=3 --weeks=3 --months=3 /store/backup $prefix
done

/usr/local/bin/expire-backups --weeks=5 /store/backup osm

Update backup expiry script for chef backups


<% if params[:modal] %>
  var $form = $('#modal_form');
  $form.html("<%= j render 'modal_form_layout' %>");
  $form.find('form').trigger('admin:form_init');
<% else %>
  <%
    form_wrap_id = dom_id(resource, 'list_edit')
    html = %[
#{render('form')}
].html_safe
  %>
  $('#<%= form_wrap_id %>').remove();
  $('#list tbody').prepend('<%= j html %>');
  $('#<%= form_wrap_id %> td:first').attr('colspan', $('#list tr:first th').length);
  $('#<%= form_wrap_id %> form').trigger('admin:form_init');
<% end %>

<%= render 'admin/shared/flash', flash: flash %>

<% if params[:modal] %>
  var $form = $('#modal_form');
  $form.html("<%= j render 'modal_form_layout' %>");
  $form.find('form').trigger('admin:form_init');
<% else %>
  <%
    form_wrap_id = dom_id(resource, 'list_edit')
    html = %[
#{render('form')}
].html_safe
  %>
  $('#<%= form_wrap_id %>').remove();
  $('#list tbody:first').prepend('<%= j html %>');
  $('#<%= form_wrap_id %> td:first').attr('colspan', $('#list tr:first th').length);
  $('#<%= form_wrap_id %> form').trigger('admin:form_init');
<% end %>

<%= render 'admin/shared/flash', flash: flash %>

Fix list edit new record

Fix list edit new record


<% content_for :title, raw(finder.name) %>

<%= raw(finder.name) %>

  <% if finder.primary_organisation %>

From:

          <%= link_to finder.primary_organisation.title, finder.primary_organisation.web_url %>

  <% end %>

<%= render finder.facets %>

        <%= render_mustache('result_count', @results.to_hash)%>

        <%= render_mustache('results', @results.to_hash) %>

Use assertive not polite here

Use assertive not polite here

So the new result count is announced immediately rather than waiting for the user to move focus off of the checkbox they've just selected.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%= "#{h(yield(:title))} - Meet.me" %></title>

<link rel="stylesheet" type="text/css" href="/stylesheets/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/stylesheets/formtastic.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/stylesheets/formtastic_changes.css" media="screen" />

      <%= yield :layout %>

Copyright 2009. Meet.me.

Introduce a new layout for home

Introduce a new layout for home


<%= form_for([@user, @report], role: "form") do |f| %>

    <%= f.text_field :school, autofocus: true, required: true, placeholder: 'School', class: "form-control" %>
    <%= f.text_field :dbn, autofocus: true, placeholder: 'DBN', class: "form-control" %>
    <%= f.date_field :date, autofocus: true, required: true, class: "form-control" %>
    <%= f.text_field :purpose, autofocus: true, required: true, placeholder: 'Purpose', class: "form-control" %>
    <%= f.text_field :comments, autofocus: true, required: true, placeholder: 'What questions, concerns, and/or issues were raised?', class: "form-control" %>
    <%= f.text_field :next_steps, autofocus: true, required: true, placeholder: 'Next Steps/Follow-Up', class: "form-control" %>
    <%= f.text_field :additional_info, autofocus: true, required: true, placeholder: 'Anything else?', class: "form-control" %>

<%= f.submit "Submit", class: "btn btn-lg btn-primary btn-block" %>

<% end%>

<%= form_for([current_user, @report], role: "form") do |f| %>

    <%= f.text_field :school, autofocus: true, required: true, placeholder: 'School', class: "form-control" %>
    <%= f.text_field :dbn, autofocus: true, placeholder: 'DBN', class: "form-control" %>
    <%= f.date_field :date, autofocus: true, required: true, class: "form-control" %>
    <%= f.text_field :purpose, autofocus: true, required: true, placeholder: 'Purpose', class: "form-control" %>
    <%= f.text_field :comments, autofocus: true, required: true, placeholder: 'What questions, concerns, and/or issues were raised?', class: "form-control" %>
    <%= f.text_field :next_steps, autofocus: true, required: true, placeholder: 'Next Steps/Follow-Up', class: "form-control" %>
    <%= f.text_field :additional_info, autofocus: true, required: true, placeholder: 'Anything else?', class: "form-control" %>

<%= f.submit "Submit", class: "btn btn-lg btn-primary btn-block" %>

<% end%>

Modify form_for reference to user" "

Modify form_for reference to user"
"