Useful links

<a target="_blank" href="https://sentry.io/govuk/app-<%= @app_name %>/">Errors for for <%= @app_name %> (Sentry)

<a target="_blank" href="https://errbit.<%= @app_domain %>/">Errbit

<a target="_blank" href="https://alert.<%= @app_domain %>/">Icinga

<a target="_blank" href="https://docs.publishing.service.gov.uk/apps/<%= @docs_name %>.html"><%= @app_name %> documentation

Dashboard feedback

Useful links

Add Sentry to deploy dashboards

Add Sentry to deploy dashboards

https://trello.com/c/fX3CeVrk


  <% if logged_in? and (@page_tab.owner_profile and user.is_admin? @page_tab.owner_profile) %>
    <%= button :edit, t('fb_app_plugin.views.page_tab.edit_catalog'), {controller: :fb_app_plugin_myprofile, profile: @page_tab.owner_profile.identifier},
      target: '_parent' %>
  <% elsif user.is_admin? environment or (@data[:page][:admin] rescue false) %>
    <%= button :edit, t('fb_app_plugin.views.page_tab.edit_catalog'), {controller: :fb_app_plugin_page_tab, action: :admin, signed_request: @signed_requests, page_id: @page_ids},
      onclick: "noosfero.modal.url(this.href); return false;"  %>
  <% end %>

  <% if logged_in? %>
    <% if @page_tab.owner_profile and user.is_admin? @page_tab.owner_profile %>
      <%= button :edit, t('fb_app_plugin.views.page_tab.edit_catalog'), {controller: :fb_app_plugin_myprofile, profile: @page_tab.owner_profile.identifier},
        target: '_parent' %>
    <% elsif user.is_admin? environment or (@data[:page][:admin] rescue false) %>
      <%= button :edit, t('fb_app_plugin.views.page_tab.edit_catalog'), {controller: :fb_app_plugin_page_tab, action: :admin, signed_request: @signed_requests, page_id: @page_ids},
        onclick: "noosfero.modal.url(this.href); return false;"  %>
    <% end %>
  <% end %>

Fix for non logged users

Fix for non logged users


Log in

<%= simple_form_for(resource, as: resource_name, url: session_path(resource_name), html: {class: "pure-form pure-form-stacked"}) do |f| %>

    <%= f.input :email, required: false, autofocus: true, input_html: {class: "pure-u-1-1"} %>
    <%= f.input :password, required: false, input_html: {class: "pure-u-1-1"} %>
    <%= f.input :remember_me, as: :boolean, label_html: {class: "pure-checkbox"}, if devise_mapping.rememberable? %>

    <%= f.button :submit, "Log in", class: "pure-button pure-button-primary" %>

<% end %>

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

Log in

<%= simple_form_for(resource, as: resource_name, url: session_path(resource_name), html: {class: "pure-form pure-form-stacked"}) do |f| %>

    <%= f.input :email, required: false, autofocus: true, input_html: {class: "pure-u-1-1"} %>
    <%= f.input :password, required: false, input_html: {class: "pure-u-1-1"} %>
    <%= f.input :remember_me, as: :boolean, label_html: {class: "pure-checkbox"} if devise_mapping.rememberable? %>

    <%= f.button :submit, "Log in", class: "pure-button pure-button-primary" %>

<% end %>

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

Fix syntax error in sign in form

Fix syntax error in sign in form


---
- job:
    name: <%= @job_name %>
    display-name: <%= @job_display_name %>
    project-type: freestyle
    description: |
      Rebuild new search indexes with up to date settings and mappings, and reindex all content from the existing indexes.
    logrotate:
      numToKeep: 10
<% if @cron_schedule %>
    triggers:
        - timed: '<%= @cron_schedule %>'
<% end %>
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    builders:
        - shell: ssh deploy@$(govuk_node_list -c search --single-node) "cd /var/apps/<%= @target_application %> && govuk_setenv <%= @target_application %> bundle exec rake search:migrate_schema SEARCH_INDEX=all"
    wrappers:
      - ansicolor:
          colormap: xterm
      - timestamps

---
- job:
    name: <%= @job_name %>
    display-name: <%= @job_display_name %>
    project-type: freestyle
    description: |
      Rebuild new search indexes with up to date settings and mappings, and reindex all content from the existing indexes.
    logrotate:
      numToKeep: 10
<% if @cron_schedule %>
    triggers:
        - timed: '<%= @cron_schedule %>'
<% end %>
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    parameters:
      - choice:
          name: SEARCH_INDEX
          description: The search index to reindex. Defaults to all.
          choices:
              - all
              - detailed
              - government
              - govuk
              - licence-finder
              - metasearch
              - page-traffic
    builders:
        - shell: ssh deploy@$(govuk_node_list -c search --single-node) "cd /var/apps/<%= @target_application %> && govuk_setenv <%= @target_application %> bundle exec rake search:migrate_schema SEARCH_INDEX=\"$SEARCH_INDEX\""
    wrappers:
      - ansicolor:
          colormap: xterm
      - timestamps

Add index selection to Search Reindex job

This will allow us to select the index to reindex, which will be faster
than reindexing everything when only one is required.

Also will allow us to remove a section of the developer documentation
where a single index can only be reindexed by running a rake task.


<!DOCTYPE html>

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

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

<% unless @suppress_navbar %>
  <%= render partial: 'shared/navbar' %>
<% end %>

  <%= render partial: 'shared/flashes' %>
  <%= render partial: 'shared/announcements' %>

  <%= yield %>

© Jason Morrison 2012

      •

Source Code and Issues

      •
      <%= nav_link_to 'Privacy Policy', page_path('privacy') %>
      •
      <%= nav_link_to 'Terms of Service', page_path('terms') %>
      <% if signed_in? %>
        •
        <%= nav_link_to 'Sign Out', sign_out_path %>
      <% end %>

<%= javascript_include_tag "application" %>
<%= yield :javascript %>

<!DOCTYPE html>

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

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

<% unless @suppress_navbar %>
  <%= render partial: 'shared/navbar' %>
<% end %>

  <%= render partial: 'shared/flashes' %>
  <%= render partial: 'shared/announcements' %>

  <%= yield %>

© Jason Morrison 2012.  All Rights Reserved.  CLAHub is a trademark of Jason Morrison.

      •

Source Code and Issues

      •
      <%= nav_link_to 'Privacy Policy', page_path('privacy') %>
      •
      <%= nav_link_to 'Terms of Service', page_path('terms') %>
      <% if signed_in? %>
        •
        <%= nav_link_to 'Sign Out', sign_out_path %>
      <% end %>

<%= javascript_include_tag "application" %>
<%= yield :javascript %>

Add all rights reserved and trademark in footer


<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <title><%= content_for?(:title) ? yield(:title) : 'nghbor.ly' %></title>

    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "vendor/modernizr" %>
    <%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
    <%= csrf_meta_tags %>

<%= link_to image_tag('nghborly-logo-tiny.png'), root_path %>

Menu

Profile

My neighbors

Move neighborhoods

Log out

    <%= yield %>

Add group reassignment link to menu bar

Add group reassignment link to menu bar


Add new posts

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

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

Add new posts

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

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

Add action, method attributes to form

Add action, method attributes to form


  <%= f.field_container :name, class: ['form-group'], 'data-hook' => 'name' do %>
    <%= f.label :name, Spree.t(:name) %>
    <%= f.text_field :name, class: 'form-control' %>
    <%= f.error_message_on :name %>
  <% end %>

  <%= f.field_container :iso_name, class: ['form-group'], 'data-hook' => 'iso_name' do %>
    <%= f.label :iso_name, Spree.t(:iso_name) %>
    <%= f.text_field :iso_name, class: 'form-control' %>
    <%= f.error_message_on :iso_name %>
  <% end %>

      <%= f.check_box :states_required %>
      <%= Spree.t(:states_required) %>

  <%= f.field_container :name, class: ['form-group'], 'data-hook' => 'name' do %>
    <%= f.label :name, Spree.t(:name) %>
    <%= f.text_field :name, class: 'form-control' %>
    <%= f.error_message_on :name %>
  <% end %>

  <%= f.field_container :iso_name, class: ['form-group'], 'data-hook' => 'iso_name' do %>
    <%= f.label :iso_name, Spree.t(:iso_name) %>
    <%= f.text_field :iso_name, class: 'form-control' %>
    <%= f.error_message_on :iso_name %>
  <% end %>

  <%= f.field_container :iso, class: ['form-group'], 'data-hook' => 'iso' do %>
    <%= f.label :iso, Spree.t(:iso) %>
    <%= f.text_field :iso, class: 'form-control' %>
    <%= f.error_message_on :iso %>
  <% end %>

  <%= f.field_container :iso3, class: ['form-group'], 'data-hook' => 'iso3' do %>
    <%= f.label :iso3, Spree.t(:iso3) %>
    <%= f.text_field :iso3, class: 'form-control' %>
    <%= f.error_message_on :iso3 %>
  <% end %>

      <%= f.check_box :states_required %>
      <%= Spree.t(:states_required) %>

Update form to allow input & edit of iso and iso3


<% content_for :title do %>
  Check your State Pension age
<% end %>

<% content_for :meta_description do %>
  Work out your State Pension age and Pension Credit qualifying age
<% end %>

<% content_for :body do %>
  Check when you’ll reach State Pension age, Pension Credit qualifying age.

  You can also find out when you’ll be eligible for free bus travel.

<% end %>

<% content_for :title do %>
  Check your State Pension age
<% end %>

<% content_for :meta_description do %>
  Work out your State Pension age and Pension Credit qualifying age
<% end %>

<% content_for :body do %>
  Check when you’ll reach State Pension age and Pension Credit qualifying age.

  You can also find out when you’ll be eligible for free bus travel.

<% end %>

Update copy on state pension age start page

Replace comma with ‘and’ inline with other occurrences in the smart answer


  <%= link_to "View source", (locals.key?(:page) ? page.try(:source_url) : false) || current_page.data.source_url || "https://github.com/alphagov/govuk-developer-docs/blob/master/source/#{current_page.file_descriptor[:relative_path]}" %>
  <%= link_to "Report problem", "https://github.com/alphagov/govuk-developer-docs/issues/new?labels=bug&title=Problem with '#{current_page.data.title}'&body=Problem with '#{current_page.data.title}' (#{config[:tech_docs][:host]}#{current_page.url})" %>

Add link to report a problem

Add link to report a problem

This links to the GitHub issue page with some info automatically filled
in.


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Add appointment link for explanatory letter


#!/bin/bash
mkdir -p /var/opt/chef-marketplace/
touch /var/opt/chef-marketplace/cloud_init_running
chef-marketplace-ctl setup --preconfigure
touch /var/opt/chef-marketplace/preconfigured
rm -rf /var/opt/chef-marketplace/cloud_init_running

#!/bin/bash
export HOME="/root"

mkdir -p /var/opt/chef-marketplace/
touch /var/opt/chef-marketplace/cloud_init_running
chef-marketplace-ctl setup --preconfigure && touch /var/opt/chef-marketplace/preconfigured

rm -rf /var/opt/chef-marketplace/cloud_init_running

Set HOME directory for Metered AWS offering.

This ports the changes from cset 4d6a136 to the Merered AWS offering.
The metered offer bakes the cloud-init user data scripts into the AMI
which I didn't previously realize.


ZSH_THEME="theunraveler"
plugins=(git rails brew bundler gem sublime)

source $ZSH/oh-my-zsh.sh
source <%= ENV['HOME'] %>/aliases.zsh

if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi

cd ~/Projects

ZSH_THEME="theunraveler"
plugins=(git rails brew bundler gem sublime)

source $ZSH/oh-my-zsh.sh
source <%= ENV['HOME'] %>/.aliases

if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi

cd ~/Projects

Fix the aliases file including

Fix the aliases file including


<% attachable_type = @attachable.class.name.underscore.humanize.downcase %>
<% page_title "Attachments for #{attachable_type}" %>
<% page_class "attachments index" %>

Attachments for <%= attachable_type %>

    <%= attachable_editing_tabs(@attachable) do %>

          <%= link_to 'Upload new file attachment', new_admin_edition_attachment_path(@attachable) %>

          <%= link_to 'Bulk upload from Zip file'.html_safe, new_admin_edition_bulk_upload_path(@attachable) %>

          <%= link_to 'Add new HTML attachment', new_admin_edition_attachment_path(@attachable, html: true) %>

      <%= render('attachments', attachable: @attachable) if @attachable.attachments.any? %>
    <% end %>

<% attachable_type = @attachable.class.name.underscore.humanize.downcase %>
<% page_title "Attachments for #{attachable_type}" %>
<% page_class "attachments index" %>

Attachments for <%= attachable_type %>

    <%= attachable_editing_tabs(@attachable) do %>

          <%= link_to 'Upload new file attachment', new_polymorphic_path([:admin, typecast_for_attachable_routing(@attachable), Attachment]) %>

          <%= link_to 'Bulk upload from Zip file'.html_safe, new_admin_edition_bulk_upload_path(@attachable) %>

          <%= link_to 'Add new HTML attachment', new_polymorphic_path([:admin, typecast_for_attachable_routing(@attachable), Attachment], html: true) %>

      <%= render('attachments', attachable: @attachable) if @attachable.attachments.any? %>
    <% end %>

Make attachment partial links attachable-agnostic


  <% if can? :manage, Performance %>

Verwalten

    <%= nav_link_to icon_tag("user") + " Benutzer", jmd_users_path if can? :manage, User %>
    <%= nav_link_to icon_tag("list") + " Kategorien", jmd_categories_path if can? :manage, Category %>
    <%= nav_link_to icon_tag("globe") + " Wettbewerbe", jmd_competitions_path if can? :manage, Competition %>
    <%= nav_link_to icon_tag("time") + " Aktuelle Vorspiele", list_current_jmd_performances_path %>

  <% elsif can? :list_current, Performance %>

Einsehen

    <%= nav_link_to icon_tag("time") + " Aktuelle Vorspiele", list_current_jmd_performances_path %>

  <% end %>

  <% if can? :manage, Competition %>

Aktuelle Wettbewerbe

    <% Competition.current.each do |competition| %>
      <%= nav_link_to competition.name, jmd_competition_path(competition) %>
     <% end %>
  <% end %>

  <% if can? :manage, Competition %>

Verwalten

    <%= nav_link_to icon_tag("user") + " Benutzer", jmd_users_path if can? :manage, User %>
    <%= nav_link_to icon_tag("list") + " Kategorien", jmd_categories_path if can? :manage, Category %>
    <%= nav_link_to icon_tag("globe") + " Wettbewerbe", jmd_competitions_path if can? :manage, Competition %>

  <% elsif JUMU_ROUND > 1 and can? :list_current, Performance %>

Einsehen

    <%= nav_link_to icon_tag("time") + " Aktuelle Vorspiele", list_current_jmd_performances_path %>

  <% end %>

  <% if can? :read, Competition %>

Aktuelle Wettbewerbe

    <% Competition.current.accessible_by(current_ability).each do |competition| %>
      <%= nav_link_to competition.name, jmd_competition_path(competition) %>
     <% end %>
  <% end %>

Add link for each accessible competition to sidebar, hide admin features from mortals


description "Memcached instance <%= @instance -%>"

start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5

exec /usr/bin/memcached \
  -m <%= @memory %> \
  -U <%= @udp_port %> \
  -p <%= @port %> \
  -u <%= @user %> \
  -l <%= @listen %> \
  -c <%= @maxconn %> \
  -I <%= @max_object_size %><% if @experimental_options.any? %> \
  -o <%= @experimental_options.join(', ') %><% end %><% if @threads %> \
  -t <%= @threads %><% end %>

description "Memcached instance <%= @instance -%>"

start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5

limit nofile <%= @ulimit -%> <%= @ulimit -%>

exec /usr/bin/memcached \
  -m <%= @memory %> \
  -U <%= @udp_port %> \
  -p <%= @port %> \
  -u <%= @user %> \
  -l <%= @listen %> \
  -c <%= @maxconn %> \
  -I <%= @max_object_size %><% if @experimental_options.any? %> \
  -o <%= @experimental_options.join(', ') %><% end %><% if @threads %> \
  -t <%= @threads %><% end %>

Add ulimit support to upstart

Add ulimit support to upstart

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


<?php
# DO NOT EDIT - This file is being maintained by Chef
wfLoadExtensions( array( 'ConfirmEdit', 'ConfirmEdit/ReCaptchaNoCaptcha' ) );
$wgCaptchaClass = 'ReCaptchaNoCaptcha';
$wgReCaptchaSendRemoteIP = true;
$recaptcha_public_key = '<%= @public_key %>';
$recaptcha_private_key = '<%= @private_key %>';

$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['create'] = true;

$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true;

<?php
# DO NOT EDIT - This file is being maintained by Chef
wfLoadExtensions( array( 'ConfirmEdit', 'ConfirmEdit/ReCaptchaNoCaptcha' ) );
$wgCaptchaClass = 'ReCaptchaNoCaptcha';
$wgReCaptchaSendRemoteIP = true;
$wgReCaptchaSiteKey = '<%= @public_key %>';
$wgReCaptchaSecretKey = '<%= @private_key %>';

$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['create'] = true;

$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true;

Fix ReCaptcha key variable names

mediawiki: Fix ReCaptcha key variable names


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

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

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

##What you need to do

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

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

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

## Fees

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

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

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

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

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

##What you need to do

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

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

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

## Fees

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

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

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

Replace 'civil partnership' with 'marry'

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


Welcome to Pizza Shop!

<button class="btn btn-success btn-lg">Click me!</button>

Welcome to Pizza Shop!

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

Add onclick JS function for button

Add onclick JS function for button


<fieldset>
  <legend>Scheduled publication</legend>
  <%= hidden_field_tag :scheduled_publication_active, 0, id: "" %>
  <%= label_tag :scheduled_publication_active, nil, class: [:checkbox, "js-toggle-scheduled-publication-date-picker"] do %>
    <%= check_box_tag :scheduled_publication_active, "1", params[:scheduled_publication_active] == "1" || form.object.scheduled_publication.present? %> Schedule for publication
  <% end %>
  <div class="scheduled_publication">
    <%= form.label :scheduled_publication %>
    <%= form.datetime_select :scheduled_publication, {default: Time.zone.parse(Time.zone.now.strftime("%Y-%m-%d 09:30"))}, {class: :date} %>
  </div>
</fieldset>

<fieldset>
  <legend>Scheduled publication</legend>
  <%= hidden_field_tag :scheduled_publication_active, 0, id: "" %>
  <%= label_tag :scheduled_publication_active, nil, class: [:checkbox, "js-toggle-scheduled-publication-date-picker"] do %>
    <%= check_box_tag :scheduled_publication_active, "1", params[:scheduled_publication_active] == "1" || form.object.scheduled_publication.present? %> Schedule for publication
  <% end %>
  <div class="scheduled_publication">
    <%= form.label :scheduled_publication %>
    <%= form.datetime_select :scheduled_publication, {default: Time.zone.parse(Time.zone.now.strftime("%Y-%m-%d 09:30")), minute_step: 15}, {class: :date} %>
  </div>
</fieldset>

Use steps of 15 minutes when setting scheduled publication


Editing bookmark

<%= form_for @bookmark, :action => 'update' do |f| %>

    <%= label_tag 'Title' %>

    <%= f.text_field :title %>

    <%= label_tag 'Url' %>

    <%= f.text_field :url %>

    <%= label_tag 'Description' %>

    <%= f.text_area :description %>

    <%= f.submit 'Update' %> |
	<%= link_to 'Back', :action => 'list', :id => @bookmark.topic_id %>

<% end %>

Editing bookmark

<%= form_for @bookmark, :action => 'update' do |f| %>

    <%= label_tag 'Title' %>

    <%= f.text_field :title, :required => true %>

    <%= label_tag 'Url' %>

    <%= f.text_field :url, :required => true %>

    <%= label_tag 'Description' %>

    <%= f.text_area :description, :required => true %>

    <%= f.submit 'Update' %> |
	<%= link_to 'Back', :action => 'list', :id => @bookmark.topic_id %>

<% end %>

Check if all fields when editing bookmark are present


Release Newsfeed

    <%= render collection: @subscriptions, partial: 'dashboard/new_version', as: :subscription  %>

Recommended Libraries

    <%= render collection: @projects, partial: 'project' %>

Release Newsfeed

    <%= render collection: @subscriptions, partial: 'dashboard/new_version', as: :subscription  %>
    <%= will_paginate @subscriptions, renderer: BootstrapPagination::Rails, page_links: false %>

Recommended Libraries

    <%= render collection: @projects, partial: 'project' %>

Add pagination link to homepage

Add pagination link to homepage


  <%= form.label :name %>

  <%= form.text_field :name %>

  <%= form.label :from %>

  <%= form.text_field :from %>

  <%= form.label :subject %>

  <%= form.text_field :subject %>

  <%= form.label :vat_number, 'VAT number' %>

  <%= form.text_field :vat_number %>

  <%= form.label :intro %>

  <%= form.text_area :intro %>

  <%= form.label :html, 'Template HTML' %>

  <%= form.text_area :html %>

  <%= form.label :name %>

  <%= form.text_field :name %>

  <%= form.label :domain %>

  <%= form.text_field :domain %>

  <%= form.label :from %>

  <%= form.text_field :from %>

  <%= form.label :subject %>

  <%= form.text_field :subject %>

  <%= form.label :vat_number, 'VAT number' %>

  <%= form.text_field :vat_number %>

  <%= form.label :intro %>

  <%= form.text_area :intro %>

  <%= form.label :html, 'Template HTML' %>

  <%= form.text_area :html %>

Include domain attribute in profiles form


<%= @question.title %>

  <%= @question.body %>

    <%= button_to 'Edit Question', {action: "edit", id: @question.id}, method: :get %>
    <%= button_to 'Delete Question', {action: "destroy", id: @question.id}, method: :delete %>

 Answers

    <% @question.answers.each do |answer| %>
      <%= answer.body %>

    <% end %>

<%= @question.title %>

  <%= @question.body %>

    <% if session[:user_id] == @question.user_id %>
      <%= button_to 'Edit Question', {action: "edit", id: @question.id}, method: :get %>
      <%= button_to 'Delete Question', {action: "destroy", id: @question.id}, method: :delete %>
    <% end %>

 Answers

 <%= link_to 'Post an Answer', new_question_answer_path(@article) %>

    <% @question.answers.each do |answer| %>
      <%= answer.body %>

    <% end %>

Edit / Delete buttons show if user is logged in.


  <a href="mailto:?subject=<%= t('excursion.invite.email.subject', :title => CGI::escape(title)) %>&body=<%= t('excursion.invite.email.body', { :url => url, :name => CGI::escape(name) }) %>">
    <%= image_tag('icons/icon-message.png',:class=> "email_toolbar") + ' ' + t('excursion.invite.email.link') %>

  <a href="mailto:?subject=<%= t('excursion.invite.email.subject', :title => CGI::escape(title || "")) %>&body=<%= t('excursion.invite.email.body', { :url => url, :name => CGI::escape(name) }) %>">
    <%= image_tag('icons/icon-message.png',:class=> "email_toolbar") + ' ' + t('excursion.invite.email.link') %>

Fix excursions show when title is blank

Fix excursions show when title is blank


<!doctype html>
<html>

<head>

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

  <title><%= current_page.data.title || "Pomodoro Meter" %></title>
  <link rel="stylesheet" href="/css/bootstrap.min.css" />
  <link rel="stylesheet" href="/css/app.css" />
  <script src="/js/platform.js"></script>
  <script src="/js/app.js"></script>

</head>

<body class="page_classes">

  <%= yield %>

</body>
</html>

<!doctype html>
<html>

<head>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scale=no" />
  <meta name="theme-color" content="#5bc0de" />
  <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />

  <title><%= current_page.data.title || "Pomodoro Meter" %></title>
  <link rel="stylesheet" href="/css/bootstrap.min.css" />
  <link rel="stylesheet" href="/css/app.css" />
  <script src="/js/platform.js"></script>
  <script src="/js/app.js"></script>

</head>

<body class="page_classes">

  <%= yield %>

</body>
</html>

Disable viewport scaling and add theme-color


<script id="ga-params" type="text/javascript">
  var GOVUK = GOVUK || {};
  GOVUK.Analytics = GOVUK.Analytics || {};
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26179049-1']);
  if(document.domain=='www.gov.uk') {
    _gaq.push(['_setDomainName', '.www.gov.uk']);
  } else {
    _gaq.push(['_setDomainName', document.domain]);
  }
  _gaq.push(['_setAllowLinker', true]);
</script>
<%# This is here rather than in application to guarantee that GOVUK and _gaq exist %>
<%= javascript_include_tag 'analytics' %>

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

<script id="ga-params" type="text/javascript">
  var GOVUK = GOVUK || {};
  GOVUK.Analytics = GOVUK.Analytics || {};
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26179049-1']);
  if(document.domain=='www.gov.uk') {
    _gaq.push(['_setDomainName', '.www.gov.uk']);
  } else {
    _gaq.push(['_setDomainName', document.domain]);
  }
  _gaq.push(['_setAllowLinker', true]);
    // track pixel density ratio
  if (window.devicePixelRatio) {
    _gaq.push(['_setCustomVar', 11, 'Pixel Ratio', String(window.devicePixelRatio), 2 ]);
  }
</script>
<%# This is here rather than in application to guarantee that GOVUK and _gaq exist %>
<%= javascript_include_tag 'analytics' %>

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

Add pixel ratio density tracking in Google Analytics

I've added this to the _google_analytics partial that gets included in the main template because I couldn't find a relevant place to add it in the analytics javascript files are they tracking event success.

I did try adding this to core.js but that would have required another page tracking call to GA which I was worried may have impacted our analytics. Custom Variables must be set before any tracking calls, and as this is where the main tracking call is made, it made sense to me to add it here.

If this is incorrect or there is a better home for this please let me know.


<% unless @projects.empty? %>

<%= link_to "Today's projects", projects_path %>

    <%= render partial: 'projects/project', collection: @projects %>

<% else %>

You're not working on any project

<% end %>

<% unless @projects.empty? %>

<%= link_to "Today's projects", projects_path %>

    <%= render partial: 'projects/project', collection: @projects %>

<% else %>

You're not working on any project

Create a <%= link_to "new project", new_project_path %> to start collecting aggregate statistics

<% end %>

Add link to new project on blank state

Add link to new project on blank state


CREATE OR REPLACE FUNCTION <%= GEOCODER_CLIENT_SCHEMA %>._<%= name %> (user_id name, tx_id bigint, <%= params_with_type %>)
RETURNS Geometry AS $$
  CONNECT <%= GEOCODER_CLIENT_SCHEMA %>._server_conn_str();
  SELECT cdb_geocoder_server.<%= name %> (user_id, tx_id, <%= params %>);
$$ LANGUAGE plproxy;

CREATE OR REPLACE FUNCTION <%= GEOCODER_CLIENT_SCHEMA %>._<%= name %> (user_id name, tx_id bigint, <%= params_with_type %>)
RETURNS <%= return_type %> AS $$
  CONNECT <%= GEOCODER_CLIENT_SCHEMA %>._server_conn_str();
  SELECT cdb_geocoder_server.<%= name %> (user_id, tx_id, <%= params %>);
$$ LANGUAGE plproxy;

Use function return_type instead of hardcoded Geometry


<fieldset class="js-change-notes">

To save this document please complete the following

Select an option:

    <%= form.label :minor_change_true do %>
      <%= form.radio_button(:minor_change, true) %>
      Update the document silently – for minor changes like fixes to typos, links, GOV.UK style or metadata
    <% end %>

    <%= form.label :minor_change_false do %>
      <%= form.radio_button(:minor_change, false) %>
      Alert the public to what’s changed – for important changes to the content or attached files
    <% end %>

      <%= form.text_area(:change_note, rows: 4, placeholder: 'Input text to display publicly on the live site and in email alerts', label_text:'Public change note', class: 'form-control') %>

</fieldset>

<fieldset class="js-change-notes">

What sort of change are you making?

    <%= form.label :minor_change_true do %>
      <%= form.radio_button(:minor_change, true) %>
      A typo, style change or similar (this won’t send an email to subscribed users)
    <% end %>

    <%= form.label :minor_change_false do %>
      <%= form.radio_button(:minor_change, false) %>
      A significant edit to the page, such as a change of address (your note will be visible on the page, and emailed to subscribers)
    <% end %>

      <%= form.text_area(:change_note, rows: 4, placeholder: 'For example, 'Potatoes have been added to the banned import list.' or 'Attached new application form for 2018'', label_text:'Public change note', class: 'form-control') %>

Read the guidance about change notes (opens in a new tab).

</fieldset>

Copy updates to change notes question

Copy updates to change notes question

Comes from https://trello.com/c/02Ne29hy/518-update-whitehall-ui-text-for-change-notes
We're trying to improve the quality of change notes.


				<%= link_to question.title, question %>

				<%= truncate(question.content, :length => 150) %>

				Submitted by <%= link_to question.user.username, question.user %>
				at <%= question.created_at.to_s(:short) %>

				<% if question.accepted_answer %>
				<%= glyph 'ok-sign', 2, 'accepted' %>
				<% else %>
				<%= glyph 'ok-sign', 2 %>
				<% end %>

				<%= content_tag :div, :title => pluralize(question.comments.count, "comment"), :class => 'label label-info' do %>
				<%= question.comments.count %>
				<%= glyph :comment %>
				<% end %>

				<%= content_tag :div, :title => pluralize(question.answers.count, "answer"), :class => 'label label-success' do %>
				<%= question.answers.count %>
				<%= glyph :lightbulb %>
				<% end %>

Add markup to describe accepted state and comments/answers for each question


[zfs]
<% if @kmod -%>
name=ZFS on Linux for EL7 - kmod
baseurl=http://download.zfsonlinux.org/epel/7/kmod/$basearch/
<% else -%>
name=ZFS on Linux for EL7 - dkms
baseurl=http://download.zfsonlinux.org/epel/7/$basearch/
<% end -%>
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<% end -%>
<% unless @include.empty? -%>
includepkgs=<%= @include.to_a.join(' ') %>
<% end -%>

[zfs-source]
name=ZFS on Linux for EL7 - Source
baseurl=http://download.zfsonlinux.org/epel/7/SRPMS/
<% if @source -%>
enabled=1
<% else -%>
enabled=0
<% end -%>
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<% end -%>
<% unless @include.empty? -%>
includepkgs=<%= @include.to_a.join(' ') %>
<% end -%>

[zfs]
<% if @kmod -%>
name=ZFS on Linux for EL7.4 - kmod
baseurl=http://download.zfsonlinux.org/epel/7.4/kmod/$basearch/
<% else -%>
name=ZFS on Linux for EL7.4 - dkms
baseurl=http://download.zfsonlinux.org/epel/7.4/$basearch/
<% end -%>
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<% end -%>
<% unless @include.empty? -%>
includepkgs=<%= @include.to_a.join(' ') %>
<% end -%>

[zfs-source]
name=ZFS on Linux for EL7.4 - Source
baseurl=http://download.zfsonlinux.org/epel/7.4/SRPMS/
<% if @source -%>
enabled=1
<% else -%>
enabled=0
<% end -%>
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<% end -%>
<% unless @include.empty? -%>
includepkgs=<%= @include.to_a.join(' ') %>
<% end -%>

Update ZFS repo URI for EL7.4

Update ZFS repo URI for EL7.4


  <%= _('%{code}.') % {:code => session.code} %>
  <%= link_to session.name, {:action => 'edit', :id => session.id } %>

    <%= _('Orders') %>
    <%= datetime_period_short(session.start, session.finish) %>

    <%= _('Delivery') %>
    <%= datetime_period_short(session.delivery_start, session.delivery_finish) %>

<%= render :partial => 'timeline', :locals => {:session => session} if session.status != 'new' if timeline %>

  <%= _('%{code}.') % {:code => session.code} %>
  <%= link_to session.name, {:action => 'edit', :id => session.id } %>
  <%= n_("(1 confirmed order)","(%{orders} confirmed orders)",session.orders_confirmed.count) % {:orders => session.orders_confirmed.count} %>

    <%= _('Orders') %>
    <%= datetime_period_short(session.start, session.finish) %>

    <%= _('Delivery') %>
    <%= datetime_period_short(session.delivery_start, session.delivery_finish) %>

<%= render :partial => 'timeline', :locals => {:session => session} if session.status != 'new' if timeline %>

Add number of confirmed orders on session index


<%= button :product, 'Configurar Loja', :controller => :fb_app_ecosol_store, :action => :admin, :page_id => @page_ids  %>

<%= render :file => "#{Rails.root}/app/views/catalog/index.html.erb" %>

<%= render 'load' %>

<% if @config['page']['admin'] %>
  <%= button :product, 'Configurar Loja', :controller => :fb_app_ecosol_store_plugin, :action => :admin, :page_id => @page_ids, :class => 'colorbox'  %>
<% end %>

<%= render :file => "#{Rails.root}/app/views/catalog/index.html.erb" %>

<%= render 'load' %>

Check if the user is an admin

Check if the user is an admin


# <%= app_name.humanize %>

## Getting Started

After you have cloned this repo, run this setup script to set up your machine
with the necessary dependencies to run and test this app:

    % ./bin/setup

It assumes you have a machine equipped with Ruby, Postgres or MySQL, Node, Qt.

To install Ruby, read the [rbenv guide](https://github.com/rbenv/rbenv#installation)
or the [rvm guide](https://rvm.io/rvm/install).

To install Postgres:

    $ brew install postgresql

To install MySQL:

    $ brew tap homebrew/versions
    $ brew install mysql55
    $ brew link --force mysql55

To install Node:

    $ brew install node

To install Qt:

    $ brew install qt5
    $ brew link --force qt5

After setting up, you can run the application using [Heroku Local]:

    % heroku local

[Heroku Local]: https://devcenter.heroku.com/articles/heroku-local

# <%= app_name.humanize %>

## Getting Started

After you have cloned this repo, run this setup script to set up your machine
with the necessary dependencies to run and test this app:

    % ./bin/setup

It assumes you have a machine equipped with Ruby, Postgres or MySQL, Node, Qt and ImageMagick.

To install Ruby, read the [rbenv guide](https://github.com/rbenv/rbenv#installation)
or the [rvm guide](https://rvm.io/rvm/install).

To install Postgres:

    $ brew install postgresql

To install MySQL:

    $ brew tap homebrew/versions
    $ brew install mysql55
    $ brew link --force mysql55

To install Node:

    $ brew install node

To install Qt:

    $ brew install qt5
    $ brew link --force qt5

To install ImageMagick:

    $ brew install imagemagick

After setting up, you can run the application using [Heroku Local]:

    % heroku local

[Heroku Local]: https://devcenter.heroku.com/articles/heroku-local

Add info to install image magick

Add info to install image magick


<% page_title "Feature item for #{@promotional_feature.title}" %>

feature item for <%= @promotional_feature.title %>

<%= render "form", promotional_feature_item: @promotional_feature_item, promotional_feature: @promotional_feature, organisation: @organisation %>

<% page_title "Feature item for #{@promotional_feature.title}" %>

Editing feature item for <%= @promotional_feature.title %>

<%= render "form", promotional_feature_item: @promotional_feature_item, promotional_feature: @promotional_feature, organisation: @organisation %>

Tweak promotional feature item edit page title


<IfModule <%= ifmodule %>>
RPAFenable <%= real_enable %>
RPAFsethostname <%= real_sethostname %>
RPAFproxy_ips <%= proxy_ips.join(" ") %>
RPAFheader <%= header %>
</IfModule>

<IfModule <%= @ifmodule %>>
RPAFenable <%= @real_enable %>
RPAFsethostname <%= @real_sethostname %>
RPAFproxy_ips <%= @proxy_ips.join(" ") %>
RPAFheader <%= @header %>
</IfModule>

Use instance variables in the template

Use instance variables in the template

Using local variables is deprecated.


--without-pear
--with-gd
--with-jpeg-dir=/usr
--with-png-dir=/usr
--enable-exif
--enable-zip
--with-zlib
--with-zlib-dir=/usr
--with-openssl
--with-mcrypt=/usr
--with-pdo-sqlite
--enable-soap
--enable-xmlreader
--with-xsl
--enable-ftp
--with-curl=/usr
--with-tidy
--with-xmlrpc
--enable-sysvsem
--enable-sysvshm
--enable-shmop
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
--enable-pcntl
--with-readline
--enable-mbstring
--with-curl
--with-pgsql
--with-pdo-pgsql
--enable-intl
--with-gettext
--enable-sockets
--with-bz2
--enable-bcmath

--enable-intl
--with-openssl
--without-pear
--with-gd
--with-jpeg-dir=/usr
--with-png-dir=/usr
--enable-exif
--enable-zip
--with-zlib
--with-zlib-dir=/usr
--with-mcrypt=/usr
--with-pdo-sqlite
--enable-soap
--enable-xmlreader
--with-xsl
--with-curl=/usr
--with-tidy
--with-xmlrpc
--enable-sysvsem
--enable-sysvshm
--enable-shmop
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
--enable-pcntl
--with-readline
--enable-mbstring
--with-curl
--with-pgsql
--with-pdo-pgsql
--with-gettext
--enable-sockets
--with-bz2
--enable-bcmath

Drop ftp extension, helps with 11.10 compilation issues.

Move intl and openssl (that cause 11.10 build failures) to the top so that they are easy to disable for testing.


<% content_for :head do %>
  <link type="text/css" rel="stylesheet" href="https://s3.amazonaws.com/spree-analytics/css/spree_ui.css" media="all" />

<% end %>

<% if SpreeAnalytics.configured? %>

<% else %>

Spree Analytics has not been configured correctly. Make sure you add the initializer file

<% end %>

Fix dashboard for IE 7

Fix dashboard for IE 7


        <% if language %>
          <% exercises = exercises_available_for(language) %>
          <% if exercises.any? %>
            <%= dashboard_assignment_nav(language) %>
            <% exercises.each do |exercise| %>
              <%= dashboard_assignment_nav(language, exercise.slug) %>
            <% end %>
          <% end %>
        <% end %>

    <%= erb :ongoing_assignments, locals: {ongoing: current_user.ongoing} %>
    <%= erb :completed_assignments, locals: {completed: current_user.done } %>

Read about the feedback cycle.

      <% if current_user.nitpicker? %>

Read about how to nitpick

      <% end %>

    <% if (language && current_user.nitpicks_trail?(language)) || current_user.nitpicker? %>
      <%= erb :pending, locals: {submissions: submissions, filters: filters, exercise: exercise} %>
    <% else %>
      <%= erb :about %>
    <% end %>

        <% if language %>
          <% exercises = exercises_available_for(language) %>
          <% if exercises.any? %>
            <%= dashboard_assignment_nav(language) %>
            <% exercises.each do |exercise| %>
              <%= dashboard_assignment_nav(language, exercise.slug) %>
            <% end %>
          <% end %>
        <% end %>

    <%= erb :ongoing_assignments, locals: {ongoing: current_user.ongoing} %>
    <%= erb :completed_assignments, locals: {completed: current_user.done } %>

Read about the feedback cycle.

      <% if current_user.nitpicker? %>

Read about how to nitpick

      <% end %>

    <% if (language && current_user.nitpicks_trail?(language)) || (!language && current_user.nitpicker?) %>
      <%= erb :pending, locals: {submissions: submissions, filters: filters, exercise: exercise} %>
    <% else %>
      <%= erb :about %>
    <% end %>

Fix edge case on welcome pages

Fix edge case on welcome pages


# This file is managed by puppet (/epflsti_coreos/templates/bashrc.erb)

# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output.  So make sure this doesn't display
# anything or bad things will happen !

# Test for an interactive shell.  There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
	# Shell is non-interactive.  Be done now!
	return
fi

# Add kubectl autocompletion
#   -- see https://kubernetes.io/docs/tasks/tools/install-kubectl/#on-linux-using-bash
# source <(kubectl completion bash)
# bash_completion is not installed on CoreOs (sadly) - see
# https://www.binarysludge.com/2014/10/21/install-bash-completion-on-coreos/
# for a fix

alias kc="kubectl"
alias kgp="kubectl get pods"
alias kga="kubectl get all"

# This file is managed by puppet (/epflsti_coreos/templates/bashrc.erb)

# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output.  So make sure this doesn't display
# anything or bad things will happen !

# Test for an interactive shell.  There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
	# Shell is non-interactive.  Be done now!
	return
fi

# Add kubectl autocompletion
#   -- see https://kubernetes.io/docs/tasks/tools/install-kubectl/#on-linux-using-bash
# source <(kubectl completion bash)
# bash_completion is not installed on CoreOs (sadly) - see
# https://www.binarysludge.com/2014/10/21/install-bash-completion-on-coreos/
# for a fix

alias kc="kubectl"
alias kgp="kubectl get pods -o wide"
alias kga="kubectl get all -o wide"

Add "-o wide" to all Kubernetes aliases

Add "-o wide" to all Kubernetes aliases

It's actually @ponsfrilus who wrote this.


<%- model_class = MaterialFolder -%>

Materials: <%= @folder.name %>

<% if @folder.description %>

Folder Description

<%= @folder.description %>

<% end %>

      <% if can? :manage, Material %>
      <%= render :partial => 'folder_controls' %>
      <% end %>

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

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

<%- model_class = MaterialFolder -%>

Materials: <%= @folder.name %>

<% if @folder.description %>

Folder Description

<%= @folder.description %>

  <% if can? :manage, Material %>
    <%= render :partial => 'folder_controls' %>
  <% end %>

<% end %>

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

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

Move folder controls (for now.)

Move folder controls (for now.)


Menu de operações

         <%= link_to exercises_path do %>

           Meus exercícios
         <% end %>

        Multilevel

Link in level 2

Link in level 2

Menu de operações

         <%= link_to exercises_path do %>

           Meus exercícios
         <% end %>

         <%= link_to teams_path do %>

           Minhas turmas
         <% end %>

        Multilevel

Link in level 2

Link in level 2

Update sidebar with 'my_teams' link

Update sidebar with 'my_teams' link


<%= content_tag_for(:div, worldwide_organisation, :class => 'worldwide-organisation') do %>

      <% worldwide_organisation.sponsoring_organisations.each do |organisation| %>
        <%= content_tag_for(:div, organisation, :class => 'sponsoring-organisation') do %>
          <span class="<%= logo_classes(class_name: 'single-identity', size: 'medium', stacked: false) %>">
            <%= organisation.name %>

        <% end %>
      <% end %>

<%= link_to worldwide_organisation.name, worldwide_organisation %>

<%= worldwide_organisation.summary %>

<%= link_to t('worldwide_organisation.find_out_more'), worldwide_organisation %>

  <%= render('contacts/contact', contact: worldwide_organisation.main_office) if worldwide_organisation.main_office.present? %>
<% end %>

<%= content_tag_for(:div, worldwide_organisation, :class => 'worldwide-organisation') do %>

      <% worldwide_organisation.sponsoring_organisations.each do |organisation| %>

          <span class="<%= logo_classes(class_name: 'single-identity', size: 'medium', stacked: false) %>">
            <%= organisation.name %>

      <% end %>

<%= link_to worldwide_organisation.name, worldwide_organisation %>

<%= worldwide_organisation.summary %>

<%= link_to t('worldwide_organisation.find_out_more'), worldwide_organisation %>

  <%= render('contacts/contact', contact: worldwide_organisation.main_office) if worldwide_organisation.main_office.present? %>
<% end %>

Fix incorrect rendering of multiple same Id

Current use of content_tag_for in the worldwide_organisation partial is
causing html to be rendered that has multiple Ids that are the same on a
single page. This is incorrect.

Remove content_tag_for and replace it with a hand coded div.
Drop the use of `id` in the div.


    <%= hidden_field_tag :stock_management, true %>
    <%= f.field_container :quantity do %>
      <%= f.label :quantity, t(:quantity) %>
      <%= f.number_field :quantity, class: 'fullwidth', min: 1, value: 1 %>
    <% end %>

    <%= f.field_container :stock_location do %>
      <%= f.label :stock_location_id, t(:stock_location) %>
      <%= collection_select 'stock_movement', 'stock_location_id', Spree::StockLocation.all, :id, :name,
        {}, class: 'select2 fullwidth' %>
    <% end %>

    <%= f.field_container :variant_id do %>
      <%= label_tag 'stock_item[variant_id]', t(:variant) %>
      <%= collection_select 'stock_item', 'variant_id', @variants, :id, :sku,
        {}, class: 'select2 fullwidth' %>
    <% end %>

  <%= button t(:add_stock), 'icon-plus' %>
  <%= t(:or) %>
  <%= link_to_with_icon 'icon-remove', t('actions.cancel'), collection_url, :class => 'button' %>

    <%= hidden_field_tag :stock_management, true %>
    <%= f.field_container :quantity do %>
      <%= f.label :quantity, t(:quantity) %>
      <%= f.number_field :quantity, class: 'fullwidth', value: 1 %>
    <% end %>

    <%= f.field_container :stock_location do %>
      <%= f.label :stock_location_id, t(:stock_location) %>
      <%= collection_select 'stock_movement', 'stock_location_id', Spree::StockLocation.all, :id, :name,
        {}, class: 'select2 fullwidth' %>
    <% end %>

    <%= f.field_container :variant_id do %>
      <%= label_tag 'stock_item[variant_id]', t(:variant) %>
      <%= collection_select 'stock_item', 'variant_id', @variants, :id, :sku,
        {}, class: 'select2 fullwidth' %>
    <% end %>

  <%= button t(:add_stock), 'icon-plus' %>
  <%= t(:or) %>
  <%= link_to_with_icon 'icon-remove', t('actions.cancel'), collection_url, :class => 'button' %>

Allow for negative stock movements to reduce inventory


---
- scm:
    name: tagging-sync-check
    scm:
        - git:
            url: git@github.com:alphagov/finding-things-migration-checker.git
            branches:
              - master

- job:
    name: tagging-sync-check
    display-name: Tagging sync check
    project-type: freestyle
    description: "This job checks if taggings are in sync between Rummager and Publishing API. See https://github.com/alphagov/finding-things-migration-checker"
    scm:
      - tagging-sync-check
    logrotate:
        artifactNumToKeep: 100
    builders:
        - shell: |
            bundle install --path "${HOME}/bundles/${JOB_NAME}"
            PUBLISHING_API_BEARER_TOKEN=<%= @publishing_api_bearer_token %> bin/run_automated_checks
    wrappers:
        - ansicolor:
            colormap: xterm
        - timestamps
    publishers:
        - archive:
            artifacts: '*.csv'

---
- scm:
    name: tagging-sync-check
    scm:
        - git:
            url: git@github.com:alphagov/finding-things-migration-checker.git
            branches:
              - master

- job:
    name: tagging-sync-check
    display-name: Tagging sync check
    project-type: freestyle
    description: |
      This job checks if taggings are in sync between Rummager and Publishing API.
      See https://github.com/alphagov/finding-things-migration-checker

      Only runs the "MissingLinks" check. This check verifies that tags from
      publishing-api are synced correctly with the search index.
    scm:
      - tagging-sync-check
    logrotate:
        artifactNumToKeep: 100
    builders:
        - shell: |
            bundle install --path "${HOME}/bundles/${JOB_NAME}"
            PUBLISHING_API_BEARER_TOKEN=<%= @publishing_api_bearer_token %> bin/run_automated_checks MissingLinks
    wrappers:
        - ansicolor:
            colormap: xterm
        - timestamps
    publishers:
        - archive:
            artifacts: '*.csv'

Make tagging migration checker only look at "MissingLinks"

See description for explanation.


<%= locals[:selected_type] %>

    <% if locals[:roles] && locals[:roles].length > 0 %>
      <% locals[:roles].each do |role| %>

            <%= image_tag role.user.gravatar_url(size: 150) %>

Name: <%= role.user.user_name %>

Email: <%= role.user.email %>

GitHub: <%= role.user.github_link %>

LinkedIn: <%= role.user.linkedin_link %>

Personal website: <%= role.user.blog_link %>

Self Introduction: <%= role.user.self_introduction %>

      <% end %>
    <% else %>
      No data to show
    <% end %>

Fix responsiveness of Gravatar images and text


<%- if attributes.present? -%>
  <%- attributes.each do |attribute| -%>
    <%- if attribute.reference? -%>
<%%= f.association :<%= attribute.name %> %>
    <%- else -%>
<%%= f.input :<%= attribute.name %> %>
    <%- end -%>
  <%- end -%>
<%- else -%>
<%%#= f.input :attribute_name %>
<%- end -%>

<%- if attributes.present? -%>
  <%- attributes.each do |attribute| -%>
    <%- if attribute.reference? -%>
      <%- if attribute.name =~ /media_item/ -%>
<%%= f.association :<%= attribute.name %>, as: :image %>
      <%- else -%>
<%%= f.association :<%= attribute.name %> %>
      <%- end -%>
    <%- else -%>
      <%- if attribute.name =~ /date/ -%>
<%%= f.input :<%= attribute.name %>, as: :datepicker %>
      <%- elsif attribute.name =~ /text/ -%>
<%%= f.input :<%= attribute.name %>, markdown: true %>
      <%- else -%>
<%%= f.input :<%= attribute.name %> %>
      <%- end -%>
    <%- end -%>
  <%- end -%>
<%- else -%>
<%%#= f.input :attribute_name %>
<%- end -%>

Update block generator to infer custom simpleform inputs


<% page_title "Policy teams" %>

    <%= link_to "Create policy team", new_admin_policy_team_path, class: "btn new_resource", title: "Create a policy team" %>

Policy teams

        Name
        Email

      <% @policy_teams.each do |policy_team| %>
        <%= content_tag_for(:tr, policy_team) do %>
          <%= policy_team.name %>
          <%= link_to policy_team.email, edit_admin_policy_team_path(policy_team), title: "Edit policy team #{policy_team.email}" %>
        <% end %>
      <% end %>

<% page_title "Policy teams" %>

    <%= link_to "Create policy team", new_admin_policy_team_path, class: "btn new_resource", title: "Create a policy team" %>

Policy teams

        Name
        Email

      <% @policy_teams.each do |policy_team| %>
        <%= content_tag_for(:tr, policy_team) do %>
          <%= link_to policy_team.name, edit_admin_policy_team_path(policy_team), title: "Edit policy team #{policy_team.name}" %>
          <%= policy_team.email %>
        <% end %>
      <% end %>

Make policy team admin more consistent.

Make policy team admin more consistent.

We typically have an entity's name be a link to the edit page for that
entity. Originally a policy team only had an email address and not a
name which is why the email address was previously the link the admin
page. This is particularly confusing, because elsewhere in the admin
interface, the email address is a "mailto" link.


---
layout: default
title: Categories
---

Not just Macs

There are currently <%= @site.categories.count %> categories on the site.

<% @site.categories.keys.sort.each do |slug| %>

    <a href="/categories/<%= slug %>/" title="All the <%= @site.categories[slug].name %> interviews."><%= @site.categories[slug].name %>

    <%= @site.categories[slug].posts.count %> interview<% if @site.categories[slug].posts.count != 1 %>s<% end %>.

<% end %>

Switch to an h2 element

Switch to an h2 element


# this script originally created by https://github.com/witscher
description "Tomcat Server <%= @instance -%>"

  start on runlevel [2345]
  stop on runlevel [!2345]
  respawn
  respawn limit 10 5

  setuid tomcat_<%= @instance %>
  setgid tomcat_<%= @instance %>

  <% @env_vars.each do |h| -%>
    <% h.each_pair do |k,v| -%>
  env <%= k -%>="<%= v -%>"
    <% end -%>
  <% end -%>

  exec $CATALINA_HOME/bin/catalina.sh start

  # cleanup temp directory after stop
  post-stop script
    rm -rf $CATALINA_HOME/temp/*
  end script

# this script originally created by https://github.com/witscher
description "Tomcat Server <%= @instance -%>"

  start on runlevel [2345]
  stop on runlevel [!2345]
  respawn
  respawn limit 10 5

  setuid tomcat_<%= @instance %>
  setgid tomcat_<%= @instance %>

  <% @env_vars.each do |h| -%>
    <% h.each_pair do |k,v| -%>
  env <%= k -%>="<%= v -%>"
    <% end -%>
  <% end -%>

  exec $CATALINA_BASE/bin/catalina.sh run

  # cleanup temp directory after stop
  post-stop script
    rm -rf $CATALINA_BASE/temp/*
  end script

Fix upstart script to function

Fix upstart script to function


alsa-lib
apr
apr-util
bluez-libs
bluez-utils
cpp
dmidecode
drupal7
drupal7-ctools
drupal7-features
drupal7-views
elinks
emacs
emacs-common
emacs-nox
fuse
fuse-libs
gcc
giflib
glibc
glibc-common
glibc-devel
glibc-headers
gmp
httpd
irssi
java-1.6.0-openjdk
jpackage-utils
kernel-headers
libart_lgpl
libgcc
libgomp
libxslt
libXtst
lynx
mod_ssl
mysql
mysql-server
nc
neon
nfs-utils
nfs-utils-lib
nscd
ntp
openssh
openssh-clients
openssh-server
pciutils
perl-DBD-MySQL
perl-DBI
perl-URI
php
php-mysql
pkgconfig
postgresql-libs
postgresql-server
rhino
ruby
ruby-irb
ruby-rdoc
rubygems
screen
subversion
telnet
tree
tzdata-java
vim
virt-what
vsftpd
yum-plugin-priorities
zsh

alsa-lib
apr
apr-util
bluez-libs
bluez-utils
cpp
dmidecode
drupal7
drupal7-ctools
drupal7-features
drupal7-views
elinks
emacs
emacs-common
emacs-nox
fuse
fuse-libs
gcc
giflib
glibc
glibc-common
glibc-devel
glibc-headers
gmp
httpd
irssi
java-1.6.0-openjdk
jpackage-utils
kernel-headers
libart_lgpl
libgcc
libgomp
libxslt
libXtst
lynx
mod_ssl
mysql
mysql-server
nc
neon
nfs-utils
nfs-utils-lib
nscd
ntp
openssh
openssh-clients
openssh-server
patch
pciutils
perl-DBD-MySQL
perl-DBI
perl-URI
php
php-mysql
pkgconfig
postgresql-libs
postgresql-server
rhino
ruby
ruby-irb
ruby-rdoc
rubygems
screen
subversion
telnet
tree
tzdata-java
vim
virt-what
vsftpd
yum-plugin-priorities
zsh

Add patch as a cached package.

Add patch as a cached package.


Avg of cf.collector.cc.job_queue_length.cc_generic over * by ip

cf.collector.cc.thread_info.event_machine.threadqueue.size

cf.collector.cc.thread_info.event_machine.resultqueue.size

cf.collector.cc.thread_info.event_machine.connection_count

cf.collector.cc.thread_info.thread_count

cf.collector.cc.thread_info.event_machine.threadqueue.num_waiting

cf.collector.cc.thread_info.event_machine.resultqueue.num_waiting

created by <%= cloudops_email %>

cloud_controller_ng Event Machine statistics

Add dashboard for cloud controller statistics

[#88729728]

Signed-off-by: Tushar Dadlani <30e3adf538ecf64bd912d5b2c65f5b8659805406@pivotal.io>


<% text_for :title do %>
  National Minimum Wage and Living Wage calculator for employers
<% end %>

<% text_for :meta_description do %>
  Check if you’re paying a worker the National Minimum Wage, the National Living Wage or if you owe them payments for the previous year.
<% end %>

<% govspeak_for :body do %>
  Check if:

  - you’re paying a worker the National Minimum Wage
  - you’re paying a worker the National Living Wage
  - you owe your employee payments from the previous year because you underpaid them

  ^Your employee must be at least 23 years old to get the national living wage.^

Check [National Minimum Wage and National Living Wage rates](/national-minimum-wage-rates) before March 2021.
<% end %>

<% text_for :title do %>
  National Minimum Wage and Living Wage calculator for employers
<% end %>

<% text_for :meta_description do %>
  Check if you’re paying a worker the National Minimum Wage, the National Living Wage or if you owe them payments for the previous year.
<% end %>

<% govspeak_for :body do %>
  Check if:

  - you’re paying a worker the National Minimum Wage
  - you’re paying a worker the National Living Wage
  - you owe your employee payments from the previous year because you underpaid them

  ^Your employee must be at least 23 years old to get the National Living Wage.^

Check [National Minimum Wage and National Living Wage rates](/national-minimum-wage-rates) before March 2021.
<% end %>

Correct capitalisation of National Living Wage

This has been requested by the department for consistency.


<fieldset class="js-change-notes">

To save this document please complete the following

Select an option:

    <%= form.label :minor_change_true, class: 'radio' do %>
      <%= form.radio_button(:minor_change, true) %>
      Update the document silently - for corrections to typos, links, style or metadata
    <% end %>

    <%= form.label :minor_change_false, class: 'radio' do %>
      <%= form.radio_button(:minor_change, false) %>
      Alert the public to what's changed - for substantive updates to the content or attached files
    <% end %>

      <%= form.text_area(:change_note, rows: 4, placeholder: 'Input text to display publicly in email alerts and page history', label_text:"Public change note".html_safe) %>

</fieldset>

<fieldset class="js-change-notes">

To save this document please complete the following

Select an option:

    <%= form.label :minor_change_true, class: 'radio' do %>
      <%= form.radio_button(:minor_change, true) %>
      Update the document silently - for minor changes like fixes to typos, links, GOV.UK style or metadata
    <% end %>

    <%= form.label :minor_change_false, class: 'radio' do %>
      <%= form.radio_button(:minor_change, false) %>
      Alert the public to what's changed - for important changes to the content or attached files
    <% end %>

      <%= form.text_area(:change_note, rows: 4, placeholder: 'Input text to display publicly on the live site and in email alerts', label_text:"Public change note".html_safe) %>

</fieldset>

Update copy on new change notes layout in admin

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


<% recent_activity_item ||= nil %>
<% item = recent_activity_item %>

    <% if item.unread %>

<%= t(:unread, "Unread") %>

    <% end %>

    <a href="<%= item.path %>" class="content_summary">
      <%= item.context.name %>
      <%= item.state %>
      <%= item.summary %>

    <%= friendly_datetime(item.updated_at, context: item.context, tag_type: :span) %>

    <% translated_close = t :close, 'close' %>
    <a class="close ignore-item" href="#" data-url="<%= dashboard_ignore_stream_item_url(item.stream_item_id) %>" data-remove='tr' title="<%= translated_close %>" aria-label="<%= translated_close %>" role="button">×

<% recent_activity_item ||= nil %>
<% item = recent_activity_item %>

    <% if item.unread %>

<%= t(:unread, "Unread") %>

    <% end %>

    <a href="<%= item.path %>" class="content_summary">
      <%= item.context.name %>
      <%= item.state %>
      <%= item.summary %>

    <%= friendly_datetime(item.updated_at, context: item.context, tag_type: :span) %>

    <% translated_close = t 'Ignore' %>
    <a class="close ignore-item" href="#" data-url="<%= dashboard_ignore_stream_item_url(item.stream_item_id) %>" data-remove='tr' title="<%= translated_close %>" aria-label="<%= translated_close %>" role="button">×

Change "close" to "Ignore" on dashboard recent activity screen

There are no automated tests present with this commit because
it is only a wording change.

closes CNVS-30378

Test Plan:
  - Go to the dashboard
  - Toggle to recent activity view (because you should be in the
    new UI because that's a thing)
  - Expand one of the notification categories
  - Use a SR to navigate to the X
  - It should read as "Ignore" not "Close"

Change-Id: If7000897f7ea19e2ce29067b2d0018e65e70b495
Reviewed-on: https://gerrit.instructure.com/84846
Tested-by: Jenkins
Reviewed-by: Matthew Sessions <c7196251943e6fd2cf96a68670e4730c7e7c63b5@instructure.com>
Product-Review: Matthew Sessions <c7196251943e6fd2cf96a68670e4730c7e7c63b5@instructure.com>
QA-Review: Jahnavi Yetukuri <ed2b2672ccc2e59e56c0615df7f01b579202e014@instructure.com>


User#show

<%= @header %>

<% if @user.photo %>
  <%= image_tag @user.photo(:thumb) %>
<% end %>

<%= @user.first_name + ' ' + @user.last_name %>

Email: <%= @user.email %>

Phone: <%= @user.phone %>

<% if @user == current_user %>
  <%= link_to 'Edit Profile', edit_user_registration_path %>
<% end %>

User#show

<%= @header %>

<% if @user.photo %>
  <%= image_tag @user.photo(:thumb) %>
<% end %>

Email: <%= @user.email %>

Phone: <%= @user.phone %>

<% if @user == current_user %>
  <%= link_to 'Edit Profile', edit_user_registration_path %>
<% end %>

Delete faulty line in user show

Delete faulty line in user show


      <%= t 'users.sign-up.header' %>

        <%= simple_form_for @user, url: users_path do |f| %>
          <div class="error-transition <%= @user.errors.any? ? '' : 'hide' %>"><%= f.error_notification %>

          <%= f.input :email_address, hint: t('users.sign-up.edu-only_html') %>
          <%= f.button :submit, t('simple_form.labels.user.sign-up') %>
          <%= f.hint t 'users.sign-up.terms-of-service.html' %>
        <% end %>

          <%#= t 'users.sign-up.pitch.header' %>

          <%# t('users.sign-up.pitch.features').each do |feature| %>

              <%#= feature %>

          <%# end %>

Remove marketing language from sign up page


<% @options[:queue_count].times do |i| %>
  check process resque_worker_<%= @options[:queue] %>_<%= i %>
  with pidfile <%= @options[:app_path] %>/tmp/pids/resque_worker_<%= @options[:queue] %>_<%= i %>.pid
  start program = "/usr/bin/env HOME=/home/<%= @user %> /bin/sh -l -c 'cd <%= @options[:app_path] %>; nohup bundle exec rake environment resque:work RAILS_ENV=<%= @rails_env %> QUEUE=<%= @options[:queue] %> INTERVAL=<%= @options[:interval] %> VERBOSE=1 PIDFILE=<%= @options[:app_path] %>/tmp/pids/resque_worker_<%= @options[:queue] %>_<%= i %>.pid >> <%= @options[:app_path] %>/log/resque_worker_<%= @options[:queue] %>.log 2>&1'" as uid <%= @user %> and gid <%= @group %>
  stop program = "/bin/sh -c 'kill -3 $(cat <%= @options[:app_path] %>/tmp/pids/resque_worker_<%= @options[:queue] %>_<% i %>.pid) && rm -f <%= @options[:app_path] %>/tmp/pids/resque_worker_<%= @options[:queue] %>_<% i %>.pid; exit 0;'"
  if totalmem is greater than <%= @options[:total_mem] %> for <%= @options[:total_mem_cycles] %> cycles then restart  # eating up memory?
  group resque_workers
<% end %>

Update indentation to make easier to read on server


Fatal error

Couldn't get user authentication data.

Ruby on Rails is running in the production environment.

In this environment, GLSAMaker recieves the name of the logged in user via the
REMOTE_USER variable. This variable is empty.

Please get in touch with the administrative contact
(<%= h GLSAMAKER_ADMIN_EMAIL %>) to fix this issue.

Fatal error

Couldn't get user authentication data.

Ruby on Rails is running in the production environment.

In this environment, GLSAMaker recieves the name of the logged in user via the
REMOTE_USER or HTTP_AUTHORIZATION variables which both are empty.

Please get in touch with the administrative contact
(<%= h GLSAMAKER_ADMIN_EMAIL %>) to fix this issue.

Fix missing auth error message

Fix missing auth error message


# Ship logs off to loggly (https://loggly.com/)
# This file generated by Puppet; don't modify directly!

$template LogglyFormat,"<%%pri%>%protocol-version%
%timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid%
%[<%= @token %>] %msg%\n"

*.* @@<%= @loghost %>:514; LogglyFormat

Fix template by removing linebreaks

Fix template by removing linebreaks


#!/bin/bash

### BEGIN INIT INFO
# Provides:          solr
# Required-Start:
# Required-Stop:
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Short-Description: init script for solr search
# Description:       init script for solr search
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

PIDFILE=<%= @pid_file %>

LOG_FILE=<%= @log_file %>

NAME="Solr"

DESC="start/stop Solr Server"

start() {
    if [ -f $PIDFILE ]; then
        PID=`cat $PIDFILE`
        echo $NAME already running: $PID
    else
        action "Starting ${NAME}: " daemon --pidfile $PIDFILE /var/lib/solr.start
    fi
}

stop() {
  action "Stopping ${NAME}: " killproc -p $PIDFILE
}

case $1 in
    start)
        start
        ;;
    stop)
        stop
        ;;
    restart)
        stop
        sleep 2
        start
        ;;
    status)
        status -p $PIDFILE solr
        ;;
    *)
        echo "Usage: $0 {start|stop|restart|status}"
        exit 3
        ;;
esac

#!/bin/bash

### BEGIN INIT INFO
# Provides:          solr
# Required-Start:
# Required-Stop:
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Short-Description: init script for solr search
# Description:       init script for solr search
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

PIDFILE=<%= @pid_file %>

LOG_FILE=<%= @log_file %>

NAME="Solr"

DESC="start/stop Solr Server"

start() {
    if [ -f $PIDFILE ]; then
        status -p $PIDFILE solr
        if [ $? != 0 ]; then
          echo Removing stale PID file: $PIDFILE and starting $NAME
          rm -f $PIDFILE
          start
        fi
    else
        action "Starting ${NAME}: " daemon --pidfile $PIDFILE /var/lib/solr.start
    fi
}

stop() {
  action "Stopping ${NAME}: " killproc -p $PIDFILE
}

case $1 in
    start)
        start
        ;;
    stop)
        stop
        ;;
    restart)
        stop
        sleep 2
        start
        ;;
    status)
        status -p $PIDFILE solr
        ;;
    *)
        echo "Usage: $0 {start|stop|restart|status}"
        exit 3
        ;;
esac

Verify solr process is actually running if PID file exists when attempting to start


deb https://apt.boundary.com/ubuntu/ <%= scope.lookupvar("::lsbdistcodename") %> universe
# deb https://apt.boundary.com/ubuntu/ lucid universe

deb https://apt.boundary.com/<%= scope.lookupvar("::operatingsystem").downcase %>/ <%= scope.lookupvar("::lsbdistcodename") %> <%= if $operatingsystem == "Debian" then "main" else "universe" end %>
# deb https://apt.boundary.com/ubuntu/ lucid universe

Add a fix to use the correct Debian URL

Add a fix to use the correct Debian URL


<%= link_to taxon.name, seo_url(taxon), :class => 'breadcrumbs' %>

  <%= render :partial => 'shared/products', :locals => { :products => taxon_preview(taxon), :taxon => taxon } %>

<%= link_to taxon.name, seo_url(taxon), :class => 'breadcrumbs' %>

  <%= render :partial => 'spree/shared/products', :locals => { :products => taxon_preview(taxon), :taxon => taxon } %>

Fix non-namespaced reference to shared/products partial in taxon partial


<form method="POST" action="/questions/<%= @question.id %>">

Edit your question:

  <input type="hidden" name="_method" value="put">
  <input name="question[title]" value="<%= @question.title %>">

<textarea name="question[body]" value="<%= @question.body %>"></textarea>

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

Make new question edit form

Make new question edit form


# show all surveys

<a href="/users/<%= @current_user.id %>/surveys/new">Create New Survey

<% Survey.all.each do |survey| %>

<%= survey.title %>

<% end %>

Update survey erb file to display all surveys


<%= @user.first_name %>'s Account

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil, sed culpa animi dignissimos ab aspernatur ex quam aperiam quae ipsum impedit officiis, fugit, adipisci, delectus aliquam quod consequatur quo voluptatem.

Sources

Available (click to authorize)

Dropbox

Authorized

Social Networks

Available (click to authorize)

			<% if !destination.twitter_token %>

Twitter

			<% end %>

Authorized

			<% if destination.twitter_token %>

Twitter

Send a tweet

			<% end %>

<%= @user.first_name %>'s Account

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil, sed culpa animi dignissimos ab aspernatur ex quam aperiam quae ipsum impedit officiis, fugit, adipisci, delectus aliquam quod consequatur quo voluptatem.

Sources

Available (click to authorize)

Dropbox

Authorized

Social Networks

Available (click to authorize)

			<% if !destination || !destination.twitter_token %>

Twitter

			<% end %>

Authorized

			<% if !!destination && destination.twitter_token %>

Twitter

Send a tweet

			<% end %>

Fix for nil destination issues

Fix for nil destination issues


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

The following errors prohibited this form from being saved:

    <%% @<%= singular_name %>.errors.full_messages.each do |msg| %>

<%%= msg %>

    <%% end %>

  <%% end %>

<% for attribute in attributes -%>

    <%%= f.label :<%= attribute.name %> %>

    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>

<% end -%>

    <%%= f.submit %>

<%% end %>

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

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

    <%% @<%= singular_name %>.errors.full_messages.each do |msg| %>

<%%= msg %>

    <%% end %>

  <%% end %>

<% for attribute in attributes -%>

    <%%= f.label :<%= attribute.name %> %>

    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>

<% end -%>

    <%%= f.submit %>

<%% end %>

Use pluralize to properly inflect the number of errors.


<% provide(:title, @user.name) %>
<h1>
  <%= @user.name %>
</h1>

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

  <%= @user.name %>

  <%= @user.telephone %>

  <%= @user.dob %>

Modify profile page to show new user information.


<%= render 'cards/ui/alert' %>
<%= render 'cards/ui/notice' %>

<% if user_signed_in? %>

  <%= yield :sidebar_top %>
  <%= render 'cards/user/recent_activity' %>
  <%= yield :sidebar_bottom %>

<% else %>

  <%
    content_type_pool = [Character, Creature, Group, Item, Language, Location, Magic, Race, Religion, Scene, Universe]
    selected_types = content_type_pool.sample(1)

    selected_types.each do |type|
  %>
    <%= render partial: 'cards/intros/content_type_intro', locals: { content_type: type } %>
  <%
    end
  %>

<% end %>

<%#

Things are new!

    You can now plan creatures, races, religions, magic, languages, groups, and scenes in your worlds.

      Read about the update here.

%>

<%= render 'cards/ui/alert' %>
<%= render 'cards/ui/notice' %>

<% if user_signed_in? %>

  <%= yield :sidebar_top %>
  <%= render 'cards/user/recent_activity' %>
  <%= yield :sidebar_bottom %>

<% else %>

  <%
    content_type_pool = [Character, Creature, Group, Item, Language, Location, Magic, Race, Religion, Scene, Universe]
    selected_types = content_type_pool.sample(1)

    selected_types.each do |type|
  %>
    <%= render partial: 'cards/intros/content_type_intro', locals: { content_type: type } %>
  <%
    end
  %>

<% end %>

Subscriptions are here!

    Read about what that means for you and your notebook in our latest blog post.

    You can sign up for a subscription by clicking "Account billing" from the dropdown menu in the top-right of any page, or by
    <%= link_to 'clicking here', subscription_path %>.

Add subscriptions notice to sidebar

Add subscriptions notice to sidebar


      <%= render partial: 'question-summary', collection: @questions, as: 'question' %>

<%= @count %> questions tagged <%= params[:tag] %>

related tags

      <% @related_tags.each do |tag| %>

<%= link_to tag.name, questions_tagged_url(tag: tag.name), class: 'btn btn-default tag' %>

      <% end %>

<%= paginate @questions %>

      <%= render partial: 'question-summary', collection: @questions, as: 'question' %>

    <%= paginate @questions %>

<%= @count %> questions tagged <%= params[:tag] %>

related tags

      <% @related_tags.each do |tag| %>

<%= link_to tag.name, questions_tagged_url(tag: tag.name), class: 'btn btn-default tag' %>

      <% end %>

Add question pagination to the body div on tagged


<%= form_for @topic, remote: (defined? remote ? true : false) do |t|  %>

    <%= t.label :name %>
    <%= t.text_field :name, class: "form-control" %>
    <%= render 'shared/forms/errors_for', model: @topic, field: :name %>

    <%= t.label :content %>
    <%= t.text_area :content, class: "form-control", rows: 10 %>
    <%= render 'shared/forms/errors_for', model: @topic, field: :content %>

  <%= t.submit class: "btn btn-primary" %>
  <% if @topic.persisted? %>
    <button class="btn btn-warning cancel" data-content="<%=j @topic.content%>" data-name="<%=j @topic.name%>">Cancel</button>
  <% end %>
<% end %>

<%= form_for [@topic.forum, @topic], remote: (defined? remote ? true : false) do |t|  %>

    <%= t.label :name %>
    <%= t.text_field :name, class: "form-control" %>
    <%= render 'shared/forms/errors_for', model: @topic, field: :name %>

    <%= t.label :content %>
    <%= t.text_area :content, class: "form-control", rows: 10 %>
    <%= render 'shared/forms/errors_for', model: @topic, field: :content %>

  <%= t.submit class: "btn btn-primary" %>
  <% if @topic.persisted? %>
    <button class="btn btn-warning cancel" data-content="<%=j @topic.content%>" data-name="<%=j @topic.name%>">Cancel</button>
  <% end %>
<% end %>

Fix wrong path in new topic form

Fix wrong path in new topic form


<?xml version="1.0" encoding="UTF-8"?>
<!-- DO NOT EDIT: File is auto-generated -->
<module>
  <inherits name="org.realityforge.gwt.lognice.Lognice"/>
  <inherits name="com.google.gwt.logging.LoggingDisabled"/>

  <set-configuration-property name="CssResource.enableGss" value="true" />
  <set-configuration-property name="CssResource.legacy" value="true" />

  <source path='client'/>
  <source path='shared'/>
</module>

<?xml version="1.0" encoding="UTF-8"?>
<!-- DO NOT EDIT: File is auto-generated -->
<module>
  <inherits name="org.realityforge.gwt.lognice.Lognice"/>
  <inherits name="com.google.gwt.logging.LoggingDisabled"/>
<% if repository.appcache? -%>
  <inherits name="org.realityforge.gwt.appcache.Appcache"/>
<% end -%>

  <set-configuration-property name="CssResource.enableGss" value="true" />
  <set-configuration-property name="CssResource.legacy" value="true" />

  <source path='client'/>
  <source path='shared'/>
</module>

Configure appcache if facet enabled

Configure appcache if facet enabled


<%= @locale.name %> (primary)

Tolk treats primary translations as readonly

All translations

Phrase	Translation

  <% @locale.phrases_with_translation.each do |phrase| %>

        <%= phrase.key %>

        <%= phrase.translation.text %>

  <% end %>

<%= @locale.name %> (primary)

Tolk treats the primary translation as readonly

All translations

Phrase	Translation

  <% @locale.phrases_with_translation.each do |phrase| %>

        <%= phrase.key %>

        <%= phrase.translation.text %>

  <% end %>

Fix the warning for primary locale

Fix the warning for primary locale


<%=
<<-TEMPLATE
require 'cuba'
require 'json'

# If you need extra protection.
# require 'rack/protection'
# Cuba.use Rack::Session::Cookie, secret: Random.new_seed.to_s
# Cuba.use Rack::Protection
# Cuba.use Rack::Protection::RemoteReferrer

# To launch just type: 'rackup' in your console
Cuba.define do
  on get do

    on root do
      data = { first_name: 'Hello', last_name: 'World' }
      res.headers["Content-Type"] = "application/json; charset=utf-8"
      res.write data.to_json
    end

  end
end
TEMPLATE
%>

<%=
<<-TEMPLATE
require 'cuba'
require 'json'

# If you need extra protection.
# require 'rack/protection'
# Cuba.use Rack::Protection
# Cuba.use Rack::Protection::RemoteReferrer

# To launch just type: 'rackup' in your console
Cuba.define do
  on get do

    on root do
      data = { first_name: 'Hello', last_name: 'World' }
      res.headers["Content-Type"] = "application/json; charset=utf-8"
      res.write data.to_json
    end

  end
end
TEMPLATE
%>

Remove session cookie because it breaks RESTfulness


<%= @job.title %>

Employer: <%= @job.user.name %>

Position term: <%= @job.term.label %>

Location: <%= @job.location %>

Experience: <%= @job.experience.label %>

Majors: <%= @job.majors %>

Description: <%= @job.description %>

URL: <%= @job.url %>

Instructions: <%= @job.instructions %>

Deadline: <%= @job.deadline %>

Salary: <%= @job.salary %>

<%= form_for Application.new do |f| %>
  <%= f.hidden_field(:user_id, value: current_user.id) %>
  <%= f.hidden_field(:job_id, value: @job.id) %>
  <%= submit_tag("Apply") %>
<% end %>

Add apply button to show job page

Add apply button to show job page


<fieldset data-hook="store-credit">
  <legend align="center"><%= Spree.t(:store_credit, scope: :store_credit) %></legend>

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

<%= payment.source.category.name%>

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

<%= payment.source.memo %>

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

<%= payment.source.created_by.email %>

<%= Spree.t(:issued_on, scope: [:admin, :store_credits]) %>:

<%= l payment.source.created_at.to_date %>

</fieldset>

Add source view for store credits

Add source view for store credits

Pretty simple, just shows some basic info. Mostly to stop the exception
from happening.


<%= render partial: "header" %>

        <%= render partial: "sidebar" %>

        <% @documentation.sections.each do |section| %>

            <h2 id="<%= section.title %>"><%= section.title %>

            <% section.endpoints.each do |endpoint| %>
              <div class="endpoint" id="<%= endpoint.id %>">

<%= render "method", endpoint: endpoint %>

                <% if endpoint.description %>

                    <%= endpoint.description %>

                <% end %>

                <% if endpoint.request || endpoint.response %>
                  <% if endpoint.request %>
                    <%= render "request", endpoint: endpoint %>
                  <% end %>

                  <% if endpoint.response %>
                    <%= render "response", response: endpoint.response %>
                  <% end %>
                <% end %>

            <% end %>

        <% end %>

<%= render partial: "footer" %>

<%= render partial: "header" %>

        <%= render partial: "sidebar" %>

        <% @documentation.sections.each do |section| %>

            <h2 id="<%= section.title %>"><%= section.title %>

            <% section.endpoints.each do |endpoint| %>
              <div class="endpoint" id="<%= endpoint.id %>">

<%= render "method", endpoint: endpoint %>

                <% if endpoint.data.description %>

                    <%= endpoint.data.description %>

                <% end %>

                <% if endpoint.request || endpoint.response %>
                  <% if endpoint.request %>
                    <%= render "request", endpoint: endpoint %>
                  <% end %>

                  <% if endpoint.response %>
                    <%= render "response", response: endpoint.response %>
                  <% end %>
                <% end %>

            <% end %>

        <% end %>

<%= render partial: "footer" %>

Fix description for index view

Fix description for index view


<%= notice %>

  Benchmark definition id:
  <%= @benchmark_execution.benchmark_definition_id %>

  Status:
  <%= @benchmark_execution.status %>

  Start time:
  <%= @benchmark_execution.start_time %>

  End time:
  <%= @benchmark_execution.end_time %>

<%= link_to 'Edit', edit_benchmark_execution_path(@benchmark_execution) %> |
<%= link_to 'Back', benchmark_executions_path %>

<% log_file = File.join(@benchmark_execution.benchmark_definition.vagrant_directory_path, '.vagrant', 'log', 'vagrant_up.log' ) %>
<% log_content = File.read(log_file) rescue "no vagrant_up.log" %>

<%= log_file %>

<%= text_area_tag :log, log_content, {:readonly => true, :size => "60x25" }%>

<% log_file = File.join(@benchmark_execution.benchmark_definition.vagrant_directory_path, '.vagrant', 'log', 'vagrant_destroy.log' ) %>
<% log_content = File.read(log_file) rescue "no vagrant_destroy.log" %>

<%= log_file %>

<%= text_area_tag :log, log_content, {:readonly => true, :size => "60x25" }%>

Add hacky log file view to benchmark execution view


By filling this form you will send an e-mail, in your own language, to
all of your country's representatives in the European Parliament. Ask them to require the
Moroccan government the cessation of all kind of violence against the
Sahrawi population, and <%= link_to "your own demands", root_url %>.
Please be polite in order to get your petitions heard.

Add English introduction to form

Add English introduction to form


<% 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">
      <%= link_to collection.name, url %>

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

<% end %>

<% if collections.any? %>

  <% collections.each do |collection| %>
    <% url = "t/fabric/collection/#{collection.name}".downcase.gsub(/\s+/, "=") %>
    <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">
      <%= link_to collection.name, url %>

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

<% end %>

Add collections controller and view.

Add collections controller and view.


fuse-sshfs
rrdtool-ruby
ruby-augeas
ruby-RRDtool
ruby-mysql
rubygem-actionmailer
rubygem-actionpack
rubygem-activerecord
rubygem-activeresource
rubygem-activesupport
rubygem-rails
rubygem-rake
rubygem-rspec
rubygem-sqlite3-ruby
rubygem-stomp
rubygems
tmux

fuse-sshfs
rrdtool-ruby
ruby-augeas
ruby-irb
ruby-rdoc
ruby-RRDtool
ruby-mysql
rubygem-actionmailer
rubygem-actionpack
rubygem-activerecord
rubygem-activeresource
rubygem-activesupport
rubygem-rails
rubygem-rake
rubygem-rack
rubygem-rack-test
rubygem-rspec
rubygem-sinatra
rubygem-sqlite3-ruby
rubygem-stomp
rubygems
tmux

Fix the console stack trace

Fix the console stack trace


<%- content_for(:body_id, 'profile') -%>

<%= @user.name %>

<%= gravatar(@user) %>

Github:

<%= link_to "#{@user.login}", "http://github.com/#{@user.login}" %>

E-Mail:

<%= @user.email %>

Token:

<%= @user.tokens.first.token %>

Your Repositories

  Flick the switches below to turn on the Travis service hook for your projects, then push to GitHub.

  For custom build options, like testing against multiple rubies,
  please visit the wiki.

<%= include_javascripts :user_profile %>

<%- content_for(:body_id, 'profile') -%>

<%= @user.name %>

<%= gravatar(@user) %>

Github:

<%= link_to "#{@user.login}", "http://github.com/#{@user.login}" %>

E-Mail:

<%= @user.email %>

Token:

<%= @user.tokens.first.token %>

Your Repositories

  Flick the switches below to turn on the Travis service hook for your projects, then push to GitHub.

  To test against multiple rubies, see
  how to configure custom build options.

<%= include_javascripts :user_profile %>

Update link to build configuration

Update link to build configuration


  Something wrong? Something to add?
  <%= link_to "View source on GitHub", page.source_url %> or
  <%= link_to "edit directly on GitHub", page.edit_url %>.

Fix styling for source bar

Fix styling for source bar


<%= fields_for :settings, OpenObject.new(settings) do |f| %>

        <%= mt :description, "You will need access to an [Academic Benchmark](%{url}) account.", :url => "http://www.academicbenchmarks.com/" %>

        <%= t "The importer will be migrating from API v3 to v4.1. Credentials will not change, but you should ensure your account has access to v4.1 by February 2021." %>

      <%= f.blabel :partner_id, :en => "Partner ID" %>

        <%= f.text_field :partner_id, :size => "90" %>

      <%= f.blabel :partner_key, :en => "Partner Key" %>

        <%= f.text_field :partner_key %>

<% end %>

<%= fields_for :settings, OpenObject.new(settings) do |f| %>

        <%= mt :description, "You will need access to an [Academic Benchmark](%{url}) account.", :url => "http://www.academicbenchmarks.com/" %>

      <%= f.blabel :partner_id, :en => "Partner ID" %>

        <%= f.text_field :partner_id, :size => "90" %>

      <%= f.blabel :partner_key, :en => "Partner Key" %>

        <%= f.text_field :partner_key %>

<% end %>

Remove AB importer upgrade warning in AB Plugin config page

This warning was for an upgrade that took place in Feb 2021

flag=none

Test-plan:
- Navigate to SiteAdmin > Plugins > Academic Benchmark Importer
- In the dropdown select a few different options
- Select |Create Config| to make sure the whole form is present
- Verify the red text with "The importer will be migrating from API
  v3 to v4.1. Credentials will not change...." is NOT present

Change-Id: I31d3a6f7c0f226d42b5b00bda74ef5d9f935fece
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286413
Tested-by: Service Cloud Jenkins <9144042a601061f88f1e1d7a1753ea3e2972119d@instructure.com>
Reviewed-by: Kyle Rosenbaum <08c6582752644f4eca90309d6d9805aeb3128ceb@instructure.com>
QA-Review: Martin Yosifov <6a3824bf5c535ee1ddd50b39e2ac9b6ba130ccb0@instructure.com>
Product-Review: Ben Friedman <9ff7ab9178cb213f349bd6b616f1928aeccb5475@instructure.com>


<% govspeak_for :body do %>
  You can export bereavement benefits to <%= calculator.country_name %> although you won't get any annual increases after you've moved there.

  Claim [Bereavement Allowance](/bereavement-allowance/how-to-claim), [Bereavement Payment](/bereavement-payment#how-to-claim) or [Widowed Parent's Allowance](/widowed-parents-allowance#how-to-claim) before leaving the UK.

  Once you have claimed bereavement benefits, [contact the International Pension Centre](/international-pension-centre) to find out if you can export them.
<% end %>

<% govspeak_for :body do %>
  <% if calculator.country == "bermuda" || calculator.country == "mauritius" %>
    You may be able to export Widowed Parent's Allowance to <%= calculator.country_name %>.

    Claim [Widowed Parent’s Allowance](/widowed-parents-allowance#how-to-claim) before you leave the UK.

    Once you have claimed, [contact the International Pension Centre](/international-pension-centre) to find out if you can export it.
  <% else %>
    You may be able to export bereavement benefits to <%= calculator.country_name %>.

    Claim [Bereavement Support Payment](/bereavement-support-payment/how-to-claim) or [Widowed Parent’s Allowance](/widowed-parents-allowance#how-to-claim) before you leave the UK.

    Once you have claimed bereavement benefits, [contact the International Pension Centre](/international-pension-centre) to find out if you can export them.
  <% end %>
<% end %>

Update /going_abroad non EEA countries

Update /going_abroad non EEA countries

There is a slightly different outcome for Bermuda and Mauritius.


My Blog

This is a skeleton blog site written in Ruby (on Rails).

I've written one blog post!

Hello World

Aims and Expectations

Problem Solving and Being Lazy

My Blog

This is a wonderful blog written in Ruby (on Rails).

I've written one blog post!

Hello World

Aims and Expectations

Problem Solving and Being Lazy

Change skeleton to wonderful in home page


<%= content_for :breadcrumbs do %>
  <%= breadcrumbs @user %>
<% end %>

<%= render partial: 'user_form' %>

<%= content_for :breadcrumbs do %>
  <%= breadcrumbs @user %>
<% end %>

<%= render partial: 'layouts/user_menu' %>

<div class="col-md-9 mu-tab-body">
  <%= render partial: 'user_form' %>
</div>

Add user menu to profile view

Add user menu to profile view


$(document).ready(function(){
  L.mapbox.accessToken = '<%= ENV['MAPBOX_KEY'] %>';
  var map = L.mapbox.map('map', 'mapbox.dark').setView([39.114102, -94.627478], 5);

  var data = [
  { name: 'Location A', category: 'Store', street: 'Market', lat: 39.984, lng: -75.343 },
  { name: 'Location B', category: 'House', street: 'Broad', lat: 39.284, lng: -75.833 },
  { name: 'Location C', category: 'Office', street: 'South', lat: 39.123, lng: -74.534 }
  ];

  var geojson_objects = GeoJSON.parse(data, {Point: ['lat', 'lng']});

  var myLayer = L.mapbox.featureLayer().addTo(map);
  myLayer.on('layeradd', function(e){
    var marker = e.layer;
    feature = marker.feature;
    var content = '
'+ feature.properties.name+'<\/h2>' + '
'+feature.properties.category+'
ClickMe';
    marker.bindPopup(content);
  });

  myLayer.setGeoJSON(geojson_objects);

});

$(document).ready(function(){
  L.mapbox.accessToken = '<%= ENV['MAPBOX_KEY'] %>';
  var map = L.mapbox.map('map', 'mapbox.dark').setView([39.114102, -94.627478], 5);

  var data = [
  { city: "San Francisco", temp: "98.3", latitude: 39.984, longitude: -75.343 },
  { city: "San Francisco", temp: "98.7", latitude: 39.284, longitude: -75.833 },
  { city: "San Francisco", temp: "98.5", latitude: 39.123, longitude: -74.534 }
  ];

  var geojson_objects = GeoJSON.parse(data, {Point: ['latitude', 'longitude']});

  var myLayer = L.mapbox.featureLayer().addTo(map);
  myLayer.on('layeradd', function(e){
    var marker = e.layer;
    feature = marker.feature;
    var content = '
'+ feature.properties.city+'

'+feature.properties.temp+'
';
    marker.bindPopup(content);
  });

  myLayer.setGeoJSON(geojson_objects);

});

Change display information of test points


<!DOCTYPE HTML>

    <title>The Tangent</title>
  	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
    <link rel="stylesheet" href="/stylesheets/main.css">

          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
            Toggle navigation

          </button>
          The Tangent

Articles

Categories

      <%= yield %>

<!DOCTYPE HTML>

    <title>The Tangent</title>
  	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" href="/stylesheets/bootstrap.min.css">

          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
            Toggle navigation

          </button>
          The Tangent

Articles

Categories

      <%= yield %>

Remove main.css from editor layout

Remove main.css from editor layout


<% provide(:title) { title } %>

<%= render Shared::BannerComponent.new("sdg") %>

  <%= link_list(*goal_links, class: "sdg-goal-list") %>

  <% phases.each do |phase| %>
    <section class="sdg-phase" id="sdg_phase_<%= phase.kind %>">

<%= phase.title %>

      <%= render "shared/cards", cards: phase.cards %>

  <% end %>

Use <main> in SDG index

Use <main> in SDG index

Just like we do in the other sections.

We're also moving the banner inside the <main> element because we do it
the same way in other sections.


<% if spree_current_user %>

        <%= spree_current_user.email %>

            <%= spree_current_user.email %>

        <% if spree.respond_to? :root_path %>

              <%= link_to Spree.t(:back_to_store), spree.root_path, :target => '_blank' %>

        <% end %>

            <%= link_to Spree.t(:account), nil, class: "btn btn-default btn-flat" %>

            <%= link_to Spree.t(:logout), spree.admin_logout_path, method: 'delete', class: "btn btn-default btn-flat" %>

<% end %>

<% if current_user %>

        <%= current_user.email %>

            <%= current_user.email %>

        <% if spree.respond_to? :root_path %>

              <%= link_to Spree.t(:back_to_store), spree.root_path, :target => '_blank' %>

        <% end %>

            <%= link_to Spree.t(:account), nil, class: "btn btn-default btn-flat" %>

            <%= link_to Spree.t(:logout), spree.admin_logout_path, method: 'delete', class: "btn btn-default btn-flat" %>

<% end %>

Use current_user in login header

Use current_user in login header

authorization_failure action have no spree_current_user helper method