    <li role="presentation" class="<%= cp('/admin/stats') %>">Stats

    <li role="presentation" class="<%= cp('/admin/stats/github') %>">GitHub Stats

    <li role="presentation" class="<%= cp('/admin/project_suggestions') %>">

        Suggestions
        <% count = ProjectSuggestion.all.select(&:pending).length %>
        <% if count > 0 %>
          <%= count %>
        <% end %>

    <li role="presentation" class="<%= cp('/admin/projects/deprecated') %>">Deprecated

    <li role="presentation" class="<%= cp('/admin/projects/unmaintained') %>">Unmaintained

    <li role="presentation" class="<%= cp('/admin/github_repositories/deprecated') %>">Deprecated Repos

    <li role="presentation" class="<%= cp('/admin/github_repositories/unmaintained') %>">Unmaintained Repos

    <li role="presentation" class="<%= cp('/admin/stats') %>">Stats

    <li role="presentation" class="<%= cp('/admin/stats/github') %>">GitHub Stats

    <li role="presentation" class="<%= cp('/admin/project_suggestions') %>">

        Suggestions
        <% count = ProjectSuggestion.all.joins(:project).reject(&:done?).length %>
        <% if count > 0 %>
          <%= count %>
        <% end %>

    <li role="presentation" class="<%= cp('/admin/projects/deprecated') %>">Deprecated

    <li role="presentation" class="<%= cp('/admin/projects/unmaintained') %>">Unmaintained

    <li role="presentation" class="<%= cp('/admin/github_repositories/deprecated') %>">Deprecated Repos

    <li role="presentation" class="<%= cp('/admin/github_repositories/unmaintained') %>">Unmaintained Repos

Handle deleted projects in suggestions

Handle deleted projects in suggestions


Signup for Blog App

    <%= render "shared/errors", article: @user %>

            <%= form_for @user, html: { class: "mdl-card mdl-shadow--2dp card-form" } do |f|%>

                        <%= f.label :username, class: "mdl-textfield__label" %>
                        <%= f.text_field :username, class: "mdl-textfield__input" %>

                        <%= f.label :email, class: "mdl-textfield__label" %>
                        <%= f.email_field :email, class: "mdl-textfield__input" %>

                        <%= f.label :password, class: "mdl-textfield__label" %>
                        <%= f.password_field :password, class: "mdl-textfield__input" %>

                    <%= f.submit "Sign Up", class: "mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" %>
                    <%= link_to "Back to the list", articles_path, class: "mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" %>

            <% end %>

Signup for Blog App

    <%= render 'form' %>

Refactor new user template and render form partial


#!/bin/sh
exit 0

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

T=$(mktemp -d -t -p /var/tmp forum.XXXXXXXXXX)
D=$(date +%Y-%m-%d)
B=forum-$D.tar.gz

mkdir $T/forum-$D
mysqldump --user=forum --password=<%= @passwords["database"] %> --opt forum > $T/forum-$D/forum.sql
ln -s /srv/forum.openstreetmap.org $T/forum-$D/www

export GZIP="--rsyncable -9"
export RSYNC_RSH="ssh -ax"

nice tar --create --gzip --dereference --directory=$T --file=$T/$B forum-$D
nice rsync $T/$B backup::backup

rm -rf $T

#!/bin/sh

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

T=$(mktemp -d -t -p /var/tmp forum.XXXXXXXXXX)
D=$(date +%Y-%m-%d)
B=forum-$D.tar.gz

mkdir $T/forum-$D
echo '[mysqldump]' > $T/mysqldump.opts
echo 'user=forum' >> $T/mysqldump.opts
echo 'password=<%= @passwords["database"] %>' >> $T/mysqldump.opts
mysqldump --defaults-file=$T/mysqldump.opts --opt forum > $T/forum-$D/forum.sql
ln -s /srv/forum.openstreetmap.org $T/forum-$D/www

export GZIP="--rsyncable -9"
export RSYNC_RSH="ssh -ax"

nice tar --create --gzip --dereference --directory=$T --file=$T/$B forum-$D
nice rsync $T/$B backup::backup

rm -rf $T

Enable backups for the forum

Enable backups for the forum


 All Categories

<% @categories.each do |category| %>

<%= link_to category.name,  category_path(category.id)%>

<%end%>

 Select a Category for your Track

<% @categories.each do |category| %>

<%= link_to category.name,  new_category_track_path(category.id)%>

<%end%>

Change links to point new_category_track_path


<% content_for :before_title do "#{@course.title} Timeline - " end %>

<%= render :partial => 'nav', :locals => {:page => 3, :course => @course} %>

<%= render :partial => 'header', :locals => {:page => 3} %>

  <% if @course.weeks.count > 0 %>
    <% @course.weeks.each_with_index do |week, i| %>
      <%= render :partial => 'weeks/row', :locals => {:week => week, :i => (i + 1)} %>
    <% end %>
  <% else %>

<%= t("course.weeks_none", title: @course.title) %>

  <% end %>

<%= link_to t("course.new_week", title: @course.title), new_course_week_path(course_id: @course.slug) %>

Add comment in view to maintain developer sanity


The Venue

The wedding is to be held at the Briery Wood Hotel,
near Windermere in the Lake District.

The ceremony is to start at 11:30am, followed by the wedding breakfast
and a disco and buffet in the evening. If the weather is nice, there'll be a BBQ!

<address>
    Briery Wood Hotel

    Ambleside Road

    Windermere

    LA23 1ES

    Phone: 01539 433316
</address>

The Venue

The wedding is to be held at the Briery Wood Hotel,
near Windermere in the Lake District.

<address>
    Briery Wood Hotel

    Ambleside Road

    Windermere

    LA23 1ES

    Phone: 01539 433316
</address>

Revert "Added some basic information about the day (this might be moved)"

This reverts commit 86680e2a7d7d8583c4738c0983d424632593a000.


<% if logged_in? && @project.maintained? && @project.needs_suggestions? && @project.project_suggestions.where(user: current_user).count.zero? %>

    We're missing some data for this project, can you help out by adding it? <a href="<%= project_suggestions_path(@project.to_param) %>" class="alert-link">Suggest an improvement

<% end %>

<% if @project.is_removed? %>

    This project has been removed from <%= @project.platform %> and cannot be used anymore.

<% elsif @project.is_deprecated? %>

    This project has been marked as deprecated you can use it but you might want to use an alternative.

<% elsif @project.is_unmaintained? %>

    This project has been marked as unmaintained you can use it but it is no longer being updated.

<% end %>

  Using this project? Take our survey Help make open source software more dependable.

Add survey link to project pages

Add survey link to project pages


My Votes

<% if @ward != nil %>

My Ward: Ward <%= @ward.ward_number %> - <%= @ward.name %>

My Councillor: <%= link_to("#{@councillor.first_name} #{@councillor.last_name}", councillor_path(@councillor)) %>

<% else %>

Add your address to your profile to find out your ward and councillor!

<% end %>

<% if @votes == nil %>

You have no votes. Get Voting!

<% else %>

					Number
					Title
					My Vote

				<% @votes.each do |vote| %>

						<%= link_to vote.item.number, item_path(vote.item) %>
						<%= link_to vote.item.title, item_path(vote.item) %>
						<td class="vote-<%=vote.vote.downcase %>">
							<%= vote.vote %>

				<% end %>

<% end %>

<%= paginate @votes %>

My Votes

<% if @ward != nil %>

My Ward: Ward <%= @ward.ward_number %> - <%= @ward.name %>

My Councillor: <%= link_to("#{@councillor.first_name} #{@councillor.last_name}", councillor_path(@councillor)) %>

<% else %>

To see your ward and councillor, add an address to your profile.

<% end %>

<% if @votes == nil %>

You have no votes. Get Voting!

<% else %>

					Number
					Title
					My Vote

				<% @votes.each do |vote| %>

						<%= link_to vote.item.number, item_path(vote.item) %>
						<%= link_to vote.item.title, item_path(vote.item) %>
						<td class="vote-<%=vote.vote.downcase %>">
							<%= vote.vote %>

				<% end %>

<% end %>

<%= paginate @votes %>

Edit message if user has no address in profile


      <%= form_tag('/vote', :method=>'post', :class=>'upvote') do %>
        <%= hidden_field_tag "vote[value]", 1 %>

<%= image_submit_tag("orange-arrow.png") %>

      <% end %>

      <%= form_tag('/vote', :method=>'post', :class=>'downvote') do %>
        <%= hidden_field_tag "vote[value]", -1 %>

<%= image_submit_tag("orange-arrow.png") %>

      <% end %>

      <%= form_tag request_votes_path(request_obj), :method=>'post', :class=>'upvote' do %>
        <%= hidden_field_tag "vote[value]", 1 %>

<%= image_submit_tag("orange-arrow.png") %>

      <% end %>

      <%= form_tag request_votes_path(request_obj), :method=>'post', :class=>'downvote' do %>
        <%= hidden_field_tag "vote[value]", -1 %>

<%= image_submit_tag("orange-arrow.png") %>

      <% end %>

Refactor the form to submit to the correct path.


<%= form_for [:admin, government], as: :government, html: {class: 'government-form'} do |government_form| %>
  <%= government_form.errors %>

<%= government_form.text_field :name, {placeholder: "eg 2005 to 2010 Labour government"} %>

<%= government_form.text_field :start_date, {placeholder: "eg 2005-05-06"} %>

<%= government_form.text_field :end_date, {placeholder: "eg 2010-05-11"} %>

    Warning: changes to government information will appear instantly on the live site.

  <%= government_form.save_or_cancel(cancel: admin_organisations_path) %>
<% end %>

<%= form_for [:admin, government], as: :government, html: {class: 'government-form'} do |government_form| %>
  <%= government_form.errors %>

<%= government_form.text_field :name, {placeholder: "eg 2005 to 2010 Labour government"} %>

<%= government_form.text_field :start_date, {placeholder: "eg 2005-05-06"} %>

<%= government_form.text_field :end_date, {placeholder: "eg 2010-05-11"} %>

    Warning: changes to government information will appear instantly on the live site.

  <%= government_form.save_or_cancel(cancel: admin_governments_path) %>
<% end %>

Make "cancel" button on gov edit go to gov list.


<ul class="repository-item">
	<%= render partial: 'repositories/resource-add' %>
  <% subject_resources(profile_or_current_subject, {:scope => scope, :limit => 0}).each do |resource| %>
    	<%= render :partial => 'repositories/resource', :locals => { :resource => resource } %>
  <% end %>
</ul>

<%= content_for :javascript do %>
  $(document).ready(function() {
    console.log($(".resource").width());
    $(".resource").fitText(0.4);
  });
<% end %>

<ul class="repository-item">
	<%= render partial: 'repositories/resource-add' %>
  <% subject_resources(profile_or_current_subject, {:scope => scope, :limit => 0}).each do |resource| %>
    	<%= render :partial => 'repositories/resource', :locals => { :resource => resource } %>
  <% end %>
</ul>

<%= content_for :javascript do %>
  $('a[href="#tab3"]').on('shown', function (e) {
    $(".resource").fitText(0.4);
  });
<% end %>

Fix resources icon scale javascript

Fix resources icon scale javascript


  <%= category.description %>
  <%= link_to '', edit_category_path(category), class: 'btn btn-default btn-xs glyphicon glyphicon-pencil' %>

  <button type="button" class="btn btn-primary pull-right" data-create-item data-category="<%= category.id %>" data-category-desc="<%= category.description %>" data-category-sizes="<%= category.sizes.join(',') %>">
    Create Item
  </button>

      Description
      <% if category.sizes.present? %>
        Size
      <% end %>
      Quantity In Stock
      Quantity Requested

    <% items.each do |item| %>

        <%= item.description %>
        <% if category.sizes.present? %>
          <%= item.size %>
        <% end %>
        <%= item.current_quantity %>
        <%= item.requested_quantity %>

          <%= link_to '', edit_item_path(item.id), class: 'btn btn-default btn-block-xs glyphicon glyphicon-pencil' %>

    <% end %>

  <%= category.description %>
  <%= link_to '', edit_category_path(category), class: 'btn btn-default btn-xs glyphicon glyphicon-pencil' %>

  <button type="button" class="btn btn-primary pull-right" data-create-item data-category="<%= category.id %>" data-category-desc="<%= category.description %>" data-category-sizes="<%= category.sizes.join(',') %>">
    Create Item
  </button>

      Description
      <% if category.sizes.present? %>
        Size
      <% end %>
      Quantity In Stock
      Quantity Requested

    <% items.each do |item| %>

        <%= item.description %>
        <% if category.sizes.present? %>
          <%= item.size %>
        <% end %>
        <%= item.current_quantity %>
        <%= item.requested_quantity %>

          <%= link_to '', edit_item_path(item.id), class: 'btn btn-default btn-xs glyphicon glyphicon-pencil' %>

    <% end %>

Reduce size of item edit button

Reduce size of item edit button


Welcome to Pizza Shop!

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

				<%= p.title %>

				<img src='<%= p.path_to_image %>'  width='200px' height='150px' />

				<%= p.description %>

				Size: <%= p.size %> cm.

				Price: <%= p.price %> RUB.

	<% end %>

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

Welcome to Pizza Shop!

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

				<%= p.title %>

				<img src='<%= p.path_to_image %>'  width='200px' height='150px' />

				<%= p.description %>

				Size: <%= p.size %> cm.

				Price: <%= p.price %> RUB.

				<button type="button" class="btn btn-sm btn-success">Add to cart</button>

	<% end %>

Add button to each product

Add button to each product


    Commands: <%= %w[next previous open branch tag].map { |word| "(#{word[0..0]})#{word[1..-1]}" } * ' / ' %>

  Annotations for ‘<%= htmlize(shorten(@file_path)) %>’ on branch ‘<%= git.branch.current_name %>’

    <%=
    formatted_options = [["current", ""]] + @log_entries.map{|le| ["#{short_rev(le[:rev])} - #{relative_date(le[:date])} - #{le[:author]} - #{le[:msg].split("\n").first}", short_rev(le[:rev])] }

    select_box( "rev",
      options_for_select(formatted_options, revision),
      :onchange => "show_annotation($F(this))"
    ) %>

    Commands: <%= %w[next previous open branch tag].map { |word| "(#{word[0..0]})#{word[1..-1]}" } * ' / ' %>

  Annotations for ‘<%= htmlize(shorten(@file_path)) %>’ on branch ‘<%= git.branch.current_name %>’

    <%=
    formatted_options = [["current", ""]] + @log_entries.map do |le|
      unless le[:msg].nil?
        msg = le[:msg].split("\n").first
      else
        msg = ''
      end

      le_str = [short_rev(le[:rev]), relative_date(le[:date]), le[:author], msg].compact.join(' - ')
      [le_str, short_rev(le[:rev])]
    end

    select_box( "rev",
      options_for_select(formatted_options, revision),
      :onchange => "show_annotation($F(this))"
    ) %>

Fix breaking when the message doesn't have a new line in it.


window.App = Em.Application.create
  LOG_TRANSITIONS: <%= Rails.env == 'development' %>

Em.RSVP.configure 'onerror', (e) ->
  console.log(e.message)
  console.log(e.stack)

Configure Ember.RSVP to log error messages


Share this petition

    <%= share_via_facebook(petition, rel: 'external') %>

    <%= share_via_email(petition, rel: 'external') %>

    <%= share_via_twitter(petition, rel: 'external') %>

    <%= share_via_whatsapp(petition, rel: 'external') %>

Share this petition

    <%= share_via_facebook(petition, rel: 'external', target: '_blank') %>

    <%= share_via_email(petition, rel: 'external', target: '_blank') %>

    <%= share_via_twitter(petition, rel: 'external', target: '_blank') %>

    <%= share_via_whatsapp(petition, rel: 'external', target: '_blank') %>

Make sharing links open in a new tab

Make sharing links open in a new tab


<!DOCTYPE html>

Backbeat Activity Report

    <% if report[:inconsistent][:counts].empty? %>

No inconsistent workflows for this period

    <% else %>
      <%= render_table "Workflow Inconsistencies", report[:inconsistent][:counts] %>

Inconsistent workflow data stored at <%= report[:inconsistent][:filename] %> on <%= report[:inconsistent][:hostname] %>

    <% end %>

    <% if report[:completed][:counts].empty? %>

No completed workflows for this period

    <% else %>
      <%= render_table "Workflow Activity", report[:completed][:counts] %>
    <% end %>

Report finished in <%= report[:time_elapsed] %> seconds

Processing window: <%= report[:range][:lower_bound].to_s %> to <%= report[:range][:upper_bound].to_s %>

Set default font weight in activity report email


<% rvp = Product.find(:all,
          :conditions => ["id IN (?)", session['recently_viewed_products'].split(', ')]) %>

  <% rvp.each do |p| %>

<%= link_to p.name, p %>

  <% end -%>

<%
  rvp_ids = session['recently_viewed_products'].nil? ? [] :
              session['recently_viewed_products'].split(', ')
  rvp = Product.find(:all, :conditions => ["id IN (?)", rvp_ids])
%>

  <% rvp.each do |p| %>

<%= link_to p.name, p %>

  <% end -%>

Fix bug with empty session['recently_viewed_products']


<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />

<%= csrf_meta_tags %>

<title>
  <%= "Spree #{Spree.t('administration')}: " %>
  <%= Spree.t(controller.controller_name, :default => controller.controller_name.titleize) %>
</title>

<!-- Get "Open Sans" font from Google -->
<link href='//fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600&subset=latin,cyrillic,greek,vietnamese' rel='stylesheet' type='text/css'>

<%= stylesheet_link_tag 'spree/backend' %>

<%= javascript_include_tag 'spree/backend' %>

<%= render "spree/admin/shared/translations" %>
<%= render "spree/admin/shared/routes" %>

<%= javascript_tag do -%>
  jQuery.alerts.dialogClass = 'spree';
  <%== "var AUTH_TOKEN = #{form_authenticity_token.inspect};" %>
<% end -%>

<%= yield :head %>

<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />

<%= csrf_meta_tags %>

<title>
  <% if content_for? :page_title %>
    <%= yield :page_title %>
  <% else %>
    <%= "Spree #{Spree.t('administration')}: " %>
    <%= Spree.t(controller.controller_name, :default => controller.controller_name.titleize) %>
  <% end %>
</title>

<!-- Get "Open Sans" font from Google -->
<link href='//fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600&subset=latin,cyrillic,greek,vietnamese' rel='stylesheet' type='text/css'>

<%= stylesheet_link_tag 'spree/backend' %>

<%= javascript_include_tag 'spree/backend' %>

<%= render "spree/admin/shared/translations" %>
<%= render "spree/admin/shared/routes" %>

<%= javascript_tag do -%>
  jQuery.alerts.dialogClass = 'spree';
  <%== "var AUTH_TOKEN = #{form_authenticity_token.inspect};" %>
<% end -%>

<%= yield :head %>

Add ability to set page title for admin pages using a content_for :page_title


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

      <%= t('.forum') %>
      <%= t('.topics') %>
      <%= t('.posts') %>

    <% @forums.each do |forum| %>
      <tr class="forum <%= cycle("odd", "even") %>">

          <%= link_to forum.title, forum_path(forum) %>

<%= forum.description %>

          <% if forum.last_post %>

              <%= t('.last_post') %>: <%= link_to(forum.last_post.topic, forum_topic_path(forum, forum.last_post.topic)) -%> by <%= forum.last_post.user %> <%= t('time_ago_in_words', :time => time_ago_in_words(forum.last_post.created_at)) -%>

          <% end %>

        <%= forum.topics.count %>
        <%= forum.posts.count %>

    <% end %>

<% if forem_admin? %>
  <%= link_to "Admin Area", admin_root_path %>
<% end %>

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

      <%= t('.forum') %>
      <%= t('.topics') %>
      <%= t('.posts') %>

    <% @forums.each do |forum| %>
      <tr class="forum <%= cycle("odd", "even") %>">

          <%= link_to forum.title, forum_path(forum), :class => "title" %>

<%= forum.description %>

          <% if forum.last_post %>

              <%= t('.last_post') %>: <%= link_to(forum.last_post.topic, forum_topic_path(forum, forum.last_post.topic)) -%> by <%= forum.last_post.user %> <%= t('time_ago_in_words', :time => time_ago_in_words(forum.last_post.created_at)) -%>

          <% end %>

        <%= forum.topics.count %>
        <%= forum.posts.count %>

    <% end %>

<% if forem_admin? %>
  <%= link_to "Admin Area", admin_root_path %>
<% end %>

Add class for forum title in forums/index


<% if no_petitions_yet? %>

The new Petitions service launched today

We're expecting the first petitions to go live in the next few hours

<% end %>

<%= render "pages/home/actioned_petitions" %>

<% unless no_petitions_yet? %>
  <%= render "pages/home/search_petitions", search_path: petitions_path %>
  <%= render "pages/home/trending_petitions" %>
<% end %>

<%= render "pages/home/explanation_petitions" %>

<% unless no_petitions_yet? %>
  <%= render "pages/home/local_petitions" %>
<% end %>

Start a petition

Anyone can start a petition as long as they are a British citizen or UK resident

  <%= link_to "Start a petition", check_petitions_path, :class => 'button' %>

<% if no_petitions_yet? %>

The Petitions service re-opened today

We’re expecting the first petitions to go live in the next few hours

<% end %>

<%= render "pages/home/actioned_petitions" %>

<% unless no_petitions_yet? %>
  <%= render "pages/home/search_petitions", search_path: petitions_path %>
  <%= render "pages/home/trending_petitions" %>
<% end %>

<%= render "pages/home/explanation_petitions" %>

<% unless no_petitions_yet? %>
  <%= render "pages/home/local_petitions" %>
<% end %>

Start a petition

Anyone can start a petition as long as they are a British citizen or UK resident

  <%= link_to "Start a petition", check_petitions_path, :class => 'button' %>

Update the first day message

Update the first day message

It's no longer the new Petitions service.


    <% if context.present? %>
      No results in <%= context %> for “<%= @search_term %>”
    <% else %>
      No results for “<%= @search_term %>”
    <% end %>

Please try

Searching again using different words

Browsing from the GOV.UK home page

Visiting the  support pages if you need more assistance

Older content

    Not all department publications from before May 2010 were migrated to
    GOV.UK. To find publications from before May 2010 try searching
    <a href="http://webarchive.nationalarchives.gov.uk/adv_search/?<%= { query: @search_term }.to_param %>">The National Archives.

    <% if context.present? %>
      No results in <%= context %> for “<%= @search_term %>”
    <% else %>
      No results for “<%= @search_term %>”
    <% end %>

Please try

Searching again using different words

Browsing from the GOV.UK home page

Visiting the help pages if you need more assistance

Older content

    Not all department publications from before May 2010 were migrated to
    GOV.UK. To find publications from before May 2010 try searching
    <a href="http://webarchive.nationalarchives.gov.uk/adv_search/?<%= { query: @search_term }.to_param %>">The National Archives.

Update help link in search results page.


<% if @slider_products %>

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

            <%= link_to product_image(product), product %>

<%= product.name %> - <%= product.sku %>

              <%= product.description.html_safe %>

              <%= form_for :order, :url => populate_orders_path do |f| %>

                  <%= product.display_price %>

                <%= number_field_tag (product.has_variants? ? :quantity : "variants[#{product.master.id}]"),
                  1, :class => 'title', :in => 1..Spree::Stock::Quantifier.new(product.master).total_on_hand, :min => 1 %>
                <%= button_tag :id => 'add-to-cart-button', :type => :submit do %>
                  <%= content_tag(:i, '', :class => 'icon-plus') + " " + Spree.t(:add_to_cart) %>
                <% end %>
              <% end %>

      <% end %>

<% end %>

<% if @slider_products %>

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

            <%= link_to product_image(product), product %>

<%= product.name %> - <%= product.sku %>

              <%= product.description.html_safe if product.description %>

              <%= form_for :order, :url => populate_orders_path do |f| %>

                  <%= product.display_price %>

                <%= number_field_tag (product.has_variants? ? :quantity : "variants[#{product.master.id}]"),
                  1, :class => 'title', :in => 1..Spree::Stock::Quantifier.new(product.master).total_on_hand, :min => 1 %>
                <%= button_tag :id => 'add-to-cart-button', :type => :submit do %>
                  <%= content_tag(:i, '', :class => 'icon-plus') + " " + Spree.t(:add_to_cart) %>
                <% end %>
              <% end %>

      <% end %>

<% end %>

Fix exception being thrown if a product description is empty

Fixed by calling .html_safe on description only if a description exists.


This is where each individual user profile info will go.

<%= link_to "Orders", order_path %>

 Username: <%= @user.username%>

 Email: <%= @user.email%>

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

This is where each individual user profile info will go.

<%= link_to "Orders", orders_path %>

 Username: <%= @user.username%>

 Email: <%= @user.email%>

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

Update path to Orders index page

Update path to Orders index page


<div class="section <%= generator_name %>">

<%= visibility.to_s.capitalize %> <%= scope.to_s.capitalize %> Method Summary

  <%= yield object %>

<div class="section <%= generator_name %> <%= scope %> <%= visibility %>">

<%= visibility.to_s.capitalize %> <%= scope.to_s.capitalize %> Method Summary

  <%= yield object %>

Add scope and visibility to method summary's div class name for better styling


<%= render partial: 'disable_turbolinks' %>

Sign up

    <% if params[:guest] %>

      Thanks for trying out the demo! If you can imagine Volition helping you to become more productive, sign up below!

    <% end %>

    <%= render partial: "sessions/google_sign_in" %>

    <%= form_with url: '/login', id: 'google_signin', html: { style: 'display: none' } do |form| %>
      <%= form.hidden_field :google_id_token, id: 'google_id_token' %>
    <% end %>

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

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

        <%= f.label :email %>
        <%= f.text_field :email %>

        <%= f.label :password %>
        <%= f.password_field :password %>

        <%= f.submit 'Sign up' %>
        <% unless params[:guest] %>
          <%= link_to 'or log in', login_path %>
        <% end %>

    <% end %>

<%= render partial: 'disable_turbolinks' %>

Sign up

    <% if params[:guest] %>

      Thanks for trying out the demo! If you can imagine Volition helping you to become more productive, sign up below!

    <% end %>

    <%= render partial: "sessions/google_sign_in" %>

    <%= form_with url: '/users', id: 'google_signin', html: { style: 'display: none' } do |form| %>
      <%= form.hidden_field :google_id_token, id: 'google_id_token' %>
    <% end %>

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

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

        <%= f.label :email %>
        <%= f.text_field :email %>

        <%= f.label :password %>
        <%= f.password_field :password %>

        <%= f.submit 'Sign up' %>
        <% unless params[:guest] %>
          <%= link_to 'or log in', login_path %>
        <% end %>

    <% end %>

Use correct url for google sign up form.


Here are all the questions

Click a question to view more

<% @questions.each do |question| %>
  Votes: | <%= question.votes.count %>
  Answers: | <%= question.answers.count %>
  <%= link_to("#{question.title}", question_path(question)) %>
<% end %>

Put questions index page in an ordered list


<% question = question_page.questions.first; question_index = 0; begin %>

    <%= question.title %>
    <%- if question.multiple_responses? -%>

      <%- question.response_labels(@presenter.accepted_responses[number_questions_so_far + question_index]).each do |label| -%>

<%= label %>

      <%- end -%>

    <%- else -%>

      <%= question.response_label(@presenter.accepted_responses[number_questions_so_far + question_index]) %>
    <%- end -%>

      <% if question_page.questions.count == 1 %>
        <%= link_to @presenter.change_collapsed_question_link(number_questions_so_far + 1) do %>
          Change answer to "<%=question_page.questions.first.title%>"
        <% end %>
      <% else %>
        <%= link_to @presenter.change_collapsed_question_link(number_questions_so_far + 1, question_page.questions.count) do %>
          <% titles = question_page.questions.map { |question| "\"#{question.title}\"" }.join(",") %>
          Change answer to <%=titles%>
        <% end %>
      <% end %>

<% end %>

<% question = question_page.questions.first; question_index = 0; begin %>

    <%= question.title %>
    <%- if question.multiple_responses? -%>

      <%- question.response_labels(@presenter.accepted_responses[number_questions_so_far + question_index]).each do |label| -%>

<%= label %>

      <%- end -%>

    <%- else -%>

      <%= question.response_label(@presenter.accepted_responses[number_questions_so_far + question_index]) %>
    <%- end -%>

      <%= link_to @presenter.change_collapsed_question_link(number_questions_so_far + 1) do %>
        Change answer to "<%=question_page.questions.first.title%>"
      <% end %>

<% end %>

Remove more multiple Q-per-pg support collapsed_question partial

We no longer support multiple questions per page and so
`question_page.questions.count` is only ever `1` and so the `else` block is
never executed.


 Select a Category for your Track

<% @categories.each do |category| %>

<%= link_to category.name,  new_category_track_path(category.id)%>

<%end%>

Add class row and 1 column layout

Add class row and 1 column layout


<% if is_followed? @listing.id %>
    <%= button_to [ :unfollow, @listing ] do %>
    <% content_tag(:i, "", :class => "fa fa-eye-slash") %>
    Un-Watch
    <% end %>
<% else %>
    <%= button_to [ :follow, @listing ] do %>
    <%= content_tag(:i, "", :class => "fa fa-eye fa-lg") %>
    Watch
    <% end %>
<% end %>

<!-- This whole chunk of code compiles to HTML as:
<button><i class="fa fa-eye fa-lg">Watch</button>

It's okay to wrap the whole chunk of code in a <div> or any regular HTML element if you need to
-->

<!-- button_to compiles to:
<button>Watch</button>
-->

<!-- content_tag compiles to:
<i class="fa fa-eye fa-lg"></i>
which is the Font Awesome eyeball icon -->

<% if is_followed? @listing.id %>
    <%= button_to [ :unfollow, @listing ] do %>
    <%= content_tag(:i, "", :class => "fa fa-eye-slash fa-lg") %>
    Un-Watch
    <% end %>
<% else %>
    <%= button_to [ :follow, @listing ] do %>
    <%= content_tag(:i, "", :class => "fa fa-eye fa-lg") %>
    Watch
    <% end %>
<% end %>

<!-- This whole chunk of code compiles to HTML as:
<button><i class="fa fa-eye fa-lg">Watch</button>

It's okay to wrap the whole chunk of code in a <div> or any regular HTML element if you need to
-->

<!-- button_to compiles to:
<button>Watch</button>
-->

<!-- content_tag compiles to:
<i class="fa fa-eye fa-lg"></i>
which is the Font Awesome eyeball icon -->

Add icon to 'un-watch' listing button

Add icon to 'un-watch' listing button


<fieldset class="excluded_nations <% if edition.errors[:nation_inapplicabilities].any? %>alert-danger form-errors field_with_errors<% end %>" >
  <legend>Excluded nations</legend>

  <%= label_tag('edition[all_nation_applicability]') do %>
    <%= check_box 'edition', 'all_nation_applicability', {checked: false}, '1', '0' %>
    Applies to all UK nations
  <% end %>

  <% Nation.potentially_inapplicable.each do |nation| %>
    <% inapplicability = edition.nation_inapplicabilities.detect {|i| i.nation == nation } || edition.nation_inapplicabilities.build(nation: nation) %>

    <%= form.fields_for :nation_inapplicabilities, inapplicability do |ni_fields| %>
      <%= content_tag_for(:div, ni_fields.object.nation, class: 'control-group') do %>

          <%= ni_fields.check_box :excluded, label_text: nation.name, checked: ni_fields.object.excluded? %>

          <%= ni_fields.text_field :alternative_url %>
          <%= ni_fields.hidden_field :nation_id %>

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

<fieldset class="excluded_nations <% if edition.errors[:nation_inapplicabilities].any? %>alert-danger form-errors field_with_errors<% end %>" >
  <legend>Excluded nations</legend>

  <%= label_tag('edition[all_nation_applicability]') do %>
    <%= check_box 'edition', 'all_nation_applicability', {checked: false}, '1', '0' %>
    Applies to all UK nations
  <% end %>

  <% Nation.potentially_inapplicable.each do |nation| %>
    <% inapplicability = edition.nation_inapplicabilities.detect {|i| i.nation == nation } || edition.nation_inapplicabilities.build(nation: nation) %>

    <%= form.fields_for :nation_inapplicabilities, inapplicability do |ni_fields| %>
      <%= content_tag_for(:div, ni_fields.object.nation, class: 'control-group') do %>

          <%= ni_fields.check_box :excluded, label_text: "Does not apply to #{nation.name}", checked: ni_fields.object.excluded? %>

          <%= ni_fields.text_field :alternative_url, label_text: "URL of corresponding content" %>
          <%= ni_fields.hidden_field :nation_id %>

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

Update copy for excluded nation fields

Update copy for excluded nation fields


    <%= t :level_up %>

 <%= (t :solve_more_exercises_to_level_up).html_safe %>

Add title to level_up modal

Add title to level_up modal


#!/bin/bash

<% if defined?(@barbican_branch) %>
export BARBICAN_BRANCH="<%= @barbican_branch %>"
<% else %>
export BARBICAN_BRANCH="stable/kilo"
<% end %>

<% if defined?(@hostname_manager) %>
export BARBICAN_HOST_HREF="http://<%= @hostname_manager %>:9311"
<% else %>
export BARBICAN_HOST_HREF="http://localhost:9311"
<% end %>

#!/bin/bash

<% if defined?(@barbican_branch) %>
export BARBICAN_BRANCH="<%= @barbican_branch %>"
<% elsif defined?(@devstack_branch) %>
export BARBICAN_BRANCH="<%= @devstack_branch %>"
<% else %>
export BARBICAN_BRANCH="stable/kilo"
<% end %>

<% if defined?(@hostname_manager) %>
export BARBICAN_HOST_HREF="http://<%= @hostname_manager %>:9311"
<% else %>
export BARBICAN_HOST_HREF="http://localhost:9311"
<% end %>

Use devstack_branch if no barbican_branch defined


<% content_for :page_title do %>
  <%= "#{this_blog.blog_name} - #{t('.sign_in', :default => "Sign in")}" %>
<% end %>

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

      <%= f.label :login %>

      <%= f.text_field :login, class: 'form-control', autofocus: true %>

      <%= f.label :password %>

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

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

      <%= f.submit t('.sign_in'), class: 'btn btn-lg btn-success btn-block' %>

  </fieldset>
<% end %>

<% content_for :account_links do %>
  <%= render "devise/shared/links" %>
<% end %>

<% content_for :page_title do %>
  <%= "#{this_blog.blog_name} - #{t('.sign_in', :default => "Sign in")}" %>
<% end %>

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

      <%= f.label :login %>

      <%= f.text_field :login, class: 'form-control', autofocus: true %>

      <%= f.label :password %>

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

      <%= f.label :remember_me do%>
        <%= f.check_box :remember_me %>
        <%= User.human_attribute_name(:remember_me) %>
      <% end %>

      <%= f.submit t('.sign_in'), class: 'btn btn-lg btn-success btn-block' %>

  </fieldset>
<% end %>

<% content_for :account_links do %>
  <%= render "devise/shared/links" %>
<% end %>

Fix layout for log in form

Fix layout for log in form


#!/bin/bash

set -e

RUN_DIR=/var/vcap/sys/run/revok
LOG_DIR=/var/vcap/sys/log/revok
PIDFILE=${RUN_DIR}/revok.pid

source /var/vcap/packages/pid_utils_revok/pid_utils.sh

case $1 in

  start)
    pid_guard $PIDFILE "revok"

    mkdir -p $RUN_DIR
    chown -R vcap:vcap $RUN_DIR

    mkdir -p $LOG_DIR
    chown -R vcap:vcap $LOG_DIR

    mkdir -p <%= p("revok.work_dir") %>
    chown -R vcap:vcap <%= p("revok.work_dir") %>

    echo $$ > $PIDFILE
    chown -R vcap:vcap $PIDFILE

    exec chpst -u vcap:vcap -L $PIDFILE /var/vcap/packages/cred-alert/bin/revok-worker \
        --config-file /var/vcap/jobs/revok/config/config.yml                           \
        1>>$LOG_DIR/revok.stdout.log                                                   \
        2>>$LOG_DIR/revok.stderr.log

    ;;

  stop)
    kill_and_wait $PIDFILE

    ;;

  *)
    echo "Usage: ctl {start|stop}"

    ;;

esac

#!/bin/bash

set -e

RUN_DIR=/var/vcap/sys/run/revok
LOG_DIR=/var/vcap/sys/log/revok
PIDFILE=${RUN_DIR}/revok.pid

source /var/vcap/packages/pid_utils_revok/pid_utils.sh

case $1 in

  start)
    if [ -f "$PIDFILE" ]; then
      echo "pidfile already exists; exiting"
      exit 1
    fi

    mkdir -p $RUN_DIR
    chown -R vcap:vcap $RUN_DIR

    mkdir -p $LOG_DIR
    chown -R vcap:vcap $LOG_DIR

    mkdir -p <%= p("revok.work_dir") %>
    chown -R vcap:vcap <%= p("revok.work_dir") %>

    echo $$ > $PIDFILE
    chown -R vcap:vcap $PIDFILE

    exec chpst -u vcap:vcap -L $PIDFILE /var/vcap/packages/cred-alert/bin/revok-worker \
        --config-file /var/vcap/jobs/revok/config/config.yml                           \
        1>>$LOG_DIR/revok.stdout.log                                                   \
        2>>$LOG_DIR/revok.stderr.log

    ;;

  stop)
    kill_and_wait $PIDFILE

    ;;

  *)
    echo "Usage: ctl {start|stop}"

    ;;

esac

Remove pid_guard from revok worker

Remove pid_guard from revok worker

Add simple check for existing pidfile and bail when it exists. chpst -L
will handle locking the pidfile.


Welcome to Prayerly

"Encourage one another daily, as long as it is called Today…" Hebrews 3:13

<%= button_to "Come in", categories_path, :method => :get, id: "enter_button", class: "btn btn-primary" %>

    <%= video_tag "lit_candle.mp4", autoplay: :autoplay, loop: :loop, :class => "img-responsive" %>

Put closing div in vdieo container

Put closing div in vdieo container


Pour qui faut-il voter ?

    <% if Item.total_points(0) == Item.total_points(1) %>
    <%= image_tag "bedzoum.png", alt: "BEDzoum" %>
    Il faut voter BEDzoum
    Parce qu'en cas d'égalité, ce sont toujours eux qui gagnent.
    <% else %>
    <%= image_tag "list#{@best_list}.jpg", alt: Item::LIST_NAMES[@best_list] %>
    Il faut voter <%= Item::LIST_NAMES[@best_list] %>
    <% end %>

<%= render 'scores' %>

<% @items.each do |i| %>
  <li class="list<%= i.list %>">
    <strong class="<%= if i.points > 0 then 'pos' else 'neg' end %>">
      <%= image_tag "list#{i.list}.jpg", alt: Item::LIST_NAMES[@best_list] %>
      <%= i.points %> pts

    <%=auto_link i.title %>

<% end %>

Pour qui faut-il voter ?

    <% if Item.total_points(0) == Item.total_points(1) %>
    <%= image_tag "bedzoum.png", alt: "BEDzoum" %>
    Il faut voter BEDzoum
    Parce qu'en cas d'égalité, ce sont toujours eux qui gagnent.
    <% else %>
    <%= image_tag "list#{@best_list}.jpg", alt: Item::LIST_NAMES[@best_list] %>
    Il faut voter <%= Item::LIST_NAMES[@best_list] %>
    <% end %>

<%= link_to "Voir la liste des challenges en cours", challenges_path %>

<%= render 'scores' %>

<% @items.each do |i| %>
  <li class="list<%= i.list %>">
    <strong class="<%= if i.points > 0 then 'pos' else 'neg' end %>">
      <%= image_tag "list#{i.list}.jpg", alt: Item::LIST_NAMES[@best_list] %>
      <%= i.points %> pts

    <%=auto_link i.title %>

<% end %>

Revert "remove link on home page"

Revert "remove link on home page"

This reverts commit 347913dfa9bb9f23fc630efdd4afcc4f85da7c18.


<!-- this is a partial, a box that pops up over an album -->
<!-- can pick img on device or upload from url -->
<!-- can select multiple images -->
<!-- can X out of this partial to cancel uploading images to this album -->

<%= cloudinary_js_config %>

<%= form_for :image, url: album_images_path do |f| %>
  <%= render "shared/errors" %>

  <%= f.file_field(:image_url) %>

  <%= f.label :caption %>
  <%= f.text_field :caption %>

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

<!-- this is a partial, a box that pops up over an album -->
<!-- can pick img on device or upload from url -->
<!-- can select multiple images -->
<!-- can X out of this partial to cancel uploading images to this album -->

<%= cloudinary_js_config %>

<%= form_for :image, url: album_images_path do |f| %>
  <%= render "shared/errors" %>

  <%= f.file_field(:image_url) %>
  -or-
  <label for="image_url">Image Url</label>
  <input type="text" name="image[image_url]" id="image_url">

  <%= f.label :caption %>
  <%= f.text_field :caption %>

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

Add ability to upload image from url, missing logic to prevent user from uploading from device and url at same time


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

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

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

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

<%= t '.loading' %>

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

<%= javascript_include_tag '//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js' %>

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

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

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

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

<%= t '.loading' %>

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

<%= javascript_include_tag '//ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js' %>

Use Angular js 1.0.8 (latest stable version) instead of 1.0.7.


extension <%= model.name %> {
    public init(json: [String: Any]) {
        let id: Int = json["id"] as! Int
        <% model.properties_exclude_id.each do |property| %>
        <%= """let #{property.key}: #{property.type} = json[\"#{property.key}\"] as! #{property.type}
        """ %>
        <% end %>

        self.init(<%= model.property_key_value_pairs %>)
    }

    public init(jsonData: NSData) throws {
        let json = try NSJSONSerialization.JSONObjectWithData(jsonData, options: .AllowFragments) as! [String: Any]
        self.init(json: json)
    }
}

extension <%= model.name %> {
    public static func parse(json: [String: Any]) -> Person {
        let id: Int = json["id"] as! Int
        <% model.properties_exclude_id.each do |property| %>
        <%= """let #{property.key}: #{property.type} = json[\"#{property.key}\"] as! #{property.type}
        """ %>
        <% end %>
        return Person(<%= model.property_key_value_pairs %>l)
    }

    public static func parse(jsons: [[String: Any]]) -> [<%= model.name %>] {
        var results: [<%= model.name %>] = []
        for json in jsons {
            results.append(<%= model.name %>.parse(json))
        }
        return results
    }

    public static func parse(data: NSData) throws -> <%= model.name %> {
        let json = try NSJSONSerialization.JSONObjectWithData(data, options: .AllowFragments) as! [String: Any]
        return <%= model.name %>.parse(json)
    }

    public static func parses(data: NSData) throws -> [<%= model.name %>] {
        let json = try NSJSONSerialization.JSONObjectWithData(data, options: .AllowFragments) as! [[String: Any]]
        return <%= model.name %>.parse(json)
    }

}

Use parse method instead of constructoR

Use parse method instead of constructoR


Bunny login

<%= standard_flashes %>
<% form_tag bunny_sessions_path do -%>

Username

  <%= text_field_tag "username" %>

Password

  <%= password_field_tag "password" %>

<%= submit_tag "Lemme in!" %>

<% end -%>

Forgotten your password? <%= link_to("Click here to reset it.", new_password_reset_path) %>

Add link to password reset to the login form

git-svn-id: 801577a2cbccabf54a3a609152c727abd26e524a@1243 a18515e9-6cfd-0310-9624-afb4ebaee84e


<% if question %>
  <%= question %>
<% end %>
<% if @permit.errors[attribute].length >= 1 %>

    <% permit.errors[attribute].each do | msg | %>

<%= msg %>

    <% end %>

<% end %>

<% option.each do | op | %>

    <%= f.label attribute, op[:value], value: op[:value] do %>
      <%= f.radio_button attribute, op[:value], id: op[:value] %>
      <%= op[:label] %>
    <% end %>

<% end %>

<% if question %>
  <%= question %>
<% end %>
<% if @permit.errors[attribute].length >= 1 %>

    <% permit.errors[attribute].each do | msg | %>

<%= msg %>

    <% end %>

<% end %>

<% option.each do | op | %>

    <%= f.radio_button attribute, op[:value] %>
    <%= f.label attribute, op[:label], value: op[:value] %>

<% end %>

Fix radio label issues, but screwed up the position of it


About 40days

These stones are to be a memorial to the people ... forever." (Joshua 4:7)

40days is a series of daily reflections for the 40 days leading up to Easter (Feb. 22 - Apr. 8).  This year, the reflections are centered around "stones of remembrance" - reflections of when/how/where God has impacted people in the past ... even if only recognized years later.

These are traditional devotionals, stories (fictional or not), thoughts, pictures, poems, paintings, songs, recipes, and who knows what else.  They are not written by "spiritual giants", and they're not just from people who are "artists", but rather ordinary people on a journey with God.

<%= link_to 'Sign up to be a 40days contributor here', new_contributor_registration_path %>

Add sign up as contributor link on about page


<%= @room.title %>

Messages:

      <% @chat.messages.each do |message| %>
        <div <%= 'align=right' if current_user.id == message.user_id %>>
          <div class="message-body <%= "current-user" if current_user.id == message.user_id %>">

<%= User.find(message.user_id).email %>

<%= message.text %>

      <% end %>

      <%= form_for @chat.messages.new, url: chats_messages_path do |f| %>

          <%= f.text_area :text, class: "form-control", style: "width: 80%; height: 80px" %>

          <%= f.submit 'Send Message', class: "btn btn-danger" %>

      <% end %>

<%= @room.title %>

Messages:

      <% @chat.messages.each do |message| %>
        <div <%= 'align=right' if current_user.id == message.user_id %>>
          <div class="message-body <%= "current-user" if current_user.id == message.user_id %>">

<%= User.find(message.user_id).email %>

            <p id="<%= "last" if message == Message.last %>"><%= message.text %>

      <% end %>

      <%= form_for @chat.messages.new, url: chats_messages_path do |f| %>

          <%= f.text_area :text, class: "form-control", style: "width: 80%; height: 80px" %>

          <%= f.submit 'Send Message', class: "btn btn-danger" %>

      <% end %>

  <%= render 'rooms/options' %>

Add anchor for chat message

Add anchor for chat message


<%= @user.name %>'s Profile

Current Savings: $<%= @user.savings.total_savings %>

Planned Purchases:

  <% @user.purchases.each do |purchase| %>

<%= purchase.title %> for <%= purchase.cost %>

<%= link_to "Add savings", new_saving_path %>

<%= link_to "Add a new purchase", new_purchase_path %>

<%= @user.name %>'s Profile

Current Savings: $<%= @user.savings.total_savings %>

Planned Purchases:

  <% @user.purchases.each do |purchase| %>

<%= purchase.title %> for <%= purchase.cost %>

  <% end %>

<%= link_to "Add savings", new_saving_path %>

<%= link_to "Add a new purchase", new_purchase_path %>

Fix ruby error to profile view

Fix ruby error to profile view


<% scope = [:users, :show] %>

<% content_for :header do %>

<%= "#{t_view(:heading, scope)} #{@user.name}" %>

<% end %>

<% content_for :content do %>

<%= User.human_attribute_name :name %>

<%= @user.name %>

<%= User.human_attribute_name :email %>

<%= @user.email %>

<%= User.human_attribute_name :location %>

<%= @user.full_street_address %>

<% end %>

<% scope = [:users, :show] %>

<% content_for :header do %>

<%= "#{t_view(:heading, scope)} #{@user.name}" %>

<% end %>

<% content_for :content do %>

<%= User.human_attribute_name :name %>

<%= @user.name %>

    <% if current_user.admin? %>

<%= User.human_attribute_name :email %>

<%= @user.email %>

    <% end %>

<%= User.human_attribute_name :location %>

<%= @user.full_street_address %>

<% end %>

Hide user email for non-admins

Hide user email for non-admins


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

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

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

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

<% end %>

<% if current_user && current_user.admin %>

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

<% end %>

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

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

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

<% end %>

Update root_path so new_item_path link is only visible if you are admin


<%= video_tag("/videos/bgclouds.mp4", controls: false, autoplay: true, :loop => true, :class => "bgvid") %>

<%= image_tag("plane_side.png", :id => "plane") %>

Add div container to post index

Add div container to post index


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

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

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

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :email %>

    <%= f.text_field :email %>

    <%= f.label :apikey %>

    <%= f.text_field :apikey %>

    <%= f.submit %>

<% end %>

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

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

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

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :email %>

    <%= f.text_field :email %>

    <%= f.label :apikey %>

    [ <%= @user.apikey %> ]

    <%= f.submit %>

<% end %>

Replace API Key entry field with text

Replace API Key entry field with text


<%= notice %>

MasterControl Users

        Email

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

          <%= link_to "#{user.email}@mastercontrol.com", user %>
          <%= link_to 'Edit', edit_user_path(user) %>

      <% end %>

<%= notice %>

MasterControl Users

        Email
        Kaizens

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

          <%= link_to "#{user.email}@mastercontrol.com", user %>
          <%= user.kaizens.size %>
          <%= link_to 'Edit', edit_user_path(user) %>

      <% end %>

Add the number of commits to each User entry in the User index page


      <a href="<%= the_law_1_path() %>">¿A quién aplica?

      <a href="<%= the_law_2_path() %>">Tipos de contratos: por el objeto

      <a href="<%= the_law_3_path() %>">Tipos de contratos: por el proceso

      <a href="<%= the_law_4_path() %>">¿Cuándo se permite el uso del procedimiento negociado?

      <a href="<%= the_law_5_path() %>">Obligaciones de publicidad

      <a href="<%= the_law_6_path() %>">Prohibiciones para contratar con las AAPP

      <a href="<%= the_law_7_path() %>">Los tiempos

      <a href="<%= the_law_8_path() %>">Cláusulas de resolución?

    <li class="<%= 'active' if index == 1 %>">
      <a href="<%= the_law_1_path() %>">¿A quién aplica?

    <li class="<%= 'active' if index == 2 %>">
      <a href="<%= the_law_2_path() %>">Tipos de contratos: por el objeto

    <li class="<%= 'active' if index == 3 %>">
      <a href="<%= the_law_3_path() %>">Tipos de contratos: por el proceso

    <li class="<%= 'active' if index == 4 %>">
      <a href="<%= the_law_4_path() %>">¿Cuándo se permite el uso del procedimiento negociado?

    <li class="<%= 'active' if index == 5 %>">
      <a href="<%= the_law_5_path() %>">Obligaciones de publicidad

    <li class="<%= 'active' if index == 6 %>">
      <a href="<%= the_law_6_path() %>">Prohibiciones para contratar con las AAPP

    <li class="<%= 'active' if index == 7 %>">
      <a href="<%= the_law_7_path() %>">Los tiempos

    <li class="<%= 'active' if index == 8 %>">
      <a href="<%= the_law_8_path() %>">Cláusulas de resolución?

Add active class to page navigation

Add active class to page navigation

Closes #31


<% if @order and @order.completed_at? %>
  <% buttons = Spree::PrintInvoice::Config[:print_buttons]
     buttons = buttons.split(",").collect{|b| b.strip } %>
  <%  buttons.each do |button| %>

<%= button_link_to(Spree.t(button.to_s + "_print"), spree.admin_order_path(@order, :pdf , :template => button)) %>

  <% end %>
<% end %>

<% if @order and @order.completed_at? %>
  <% buttons = Spree::PrintInvoice::Config[:print_buttons]
     buttons = buttons.split(",").collect{|b| b.strip } %>
  <%  buttons.each do |button| %>

<%= link_to(Spree.t(button.to_s + "_print"), spree.admin_order_path(@order, :pdf , :template => button), :class => "button icon-print") %>

  <% end %>
<% end %>

Fix styling of print invoice button

Fix styling of print invoice button


New album

<% if @images.any? %>

    The following images will be added to this new album. You can change the
    ordering of the images after the album has been created.

  <%= render 'images/tiles', :images => @images %>
<% end %>

<%= render 'albums/form' %>

<%= link_to 'Back', albums_path %>

Add padding, remove link to go back

Add padding, remove link to go back


<%
  links = [
    {
      text: 'Step by step publisher',
      href: step_by_step_pages_path
    },
    {
      text: @step_by_step_page.title,
      href: @step_by_step_page
    },
    {
      text: 'Edit step'
    }
  ]
%>

<% content_for :breadcrumbs do %>
  <%= render "govuk_publishing_components/components/back_link", {
    href: @step_by_step_page
  } %>
<% end %>

<%= render 'shared/steps/page_title', links: links %>

<%= render 'shared/steps/heading',
  step_nav: @step_by_step_page.title,
  action: 'Edit step'
%>

<%= form_for @step, url: step_by_step_page_step_path(@step.step_by_step_page_id, @step) do |form| %>
  <%= render "form", step: @step, form: form %>
<% end %>

<%
  links = [
    {
      text: 'Step by step publisher',
      href: step_by_step_pages_path
    },
    {
      text: @step_by_step_page.title,
      href: @step_by_step_page
    },
    {
      text: 'Edit step'
    }
  ]
%>

<% content_for :back_link do %>
  <%= render "govuk_publishing_components/components/back_link", {
    href: @step_by_step_page
  } %>
<% end %>

<%= render 'shared/steps/page_title', links: links %>

<%= render 'shared/steps/heading',
  step_nav: @step_by_step_page.title,
  action: 'Edit step'
%>

<%= form_for @step, url: step_by_step_page_step_path(@step.step_by_step_page_id, @step) do |form| %>
  <%= render "form", step: @step, form: form %>
<% end %>

Use the back_link block for back link

Use the back_link block for back link


<%
  @page_title = :edit_task.l
  @tabbed_navigation_items = project_tabbed_navigation(:tasks)

  extra_crumbs = [{:title => :tasks, :url => task_lists_path]
  if not @task_list.nil?
    extra_crumbs << {:title => @task_list.name, :url => task_list_path(:id => @task_list.id)}
  else
    extra_crumbs << {:title => @logged_user.display_name, :url => "/dashboard/my_tasks"}
  end
  @bread_crumbs = project_crumbs(:edit_task, extra_crumbs)

  @page_actions = []

  if ProjectTaskList.can_be_created_by(@logged_user, @active_project)
    @page_actions << {:title => :add_task_list, :url=> new_task_list_path}
  end

  @additional_stylesheets = []
%>
<%= form_tag :controller => 'task', :action => 'edit_task' %>
<%= render :partial => 'task_form' %>
    <button class="submit" type="submit"><%=:edit_task.l %></button>
</form>

<%
  @page_title = :edit_task.l
  @tabbed_navigation_items = project_tabbed_navigation(:tasks)

  extra_crumbs = [{:title => :tasks, :url => task_lists_path}]
  if not @task_list.nil?
    extra_crumbs << {:title => @task_list.name, :url => task_list_path(:id => @task_list.id)}
  else
    extra_crumbs << {:title => @logged_user.display_name, :url => "/dashboard/my_tasks"}
  end
  @bread_crumbs = project_crumbs(:edit_task, extra_crumbs)

  @page_actions = []

  if ProjectTaskList.can_be_created_by(@logged_user, @active_project)
    @page_actions << {:title => :add_task_list, :url=> new_task_list_path}
  end

  @additional_stylesheets = []
%>
<% form_tag task_path(@task), :method => :put do %>
  <%= render :partial => 'form' %>
  <button class="submit" type="submit"><%=:edit_task.l %></button>
<% end %>

Fix edit task without AJAX

Fix edit task without AJAX

Signed-off-by: James Urquhart <d092eb11f6d4ecd368c05e395455102ecf3e697d@gmail.com>


This is where you will edit your user profile information.

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

Add div.form container around edit user form


        <title>You Moved</title>

<%=text %>

        <title>You Moved</title>
        <link href='https://fonts.googleapis.com/css?family=Montserrat:700' rel='stylesheet' type='text/css'>

<%=text %>

Add styles to conform to Yo Guidelines and look more like YoText


      <%= "#{t('spree.date')}/#{t('spree.time')}" %>
      <%= t(:amount, :scope => 'activerecord.attributes.spree/payment') %>
      <%= t(:payment_method) %>
      <%= t(:payment_state) %>

    <% payments.each do |payment| %>
      <tr data-hook="payments_row" class="<%= cycle('odd', 'even')%>">
        <%= pretty_time(payment.created_at) %>
        <%= money(payment.amount) %>
        <%= link_to payment_method_name(payment), admin_order_payment_path(@order, payment) %>
         <span class="state <%= payment.state %>"><%= t(payment.state, :scope => :payment_states, :default => payment.state.capitalize) %>

          <% payment.actions.each do |action| %>
            <%= link_to_with_icon "icon-#{action}", t(action), fire_admin_order_payment_path(@order, payment, :e => action), :method => :put, :no_text => true, :data => {:action => action} %>
          <% end %>

    <% end %>

Align money amount in the center for payments/list


# Defaults for puppet - sourced by /etc/init.d/puppet

# Enable puppet agent service?
# Setting this to "yes" allows the puppet agent service to run.
# Setting this to "no" keeps the puppet agent service from running.
START=<%- if @enable_puppet == true-%>YES<%-else-%>NO<%-end%>

# Startup options
DAEMON_OPTS=""

<% if @http_proxy %>
export http_proxy=<%= @http_proxy %>
<% end %>
<% if @https_proxy %>
export https_proxy=<%= @https_proxy %>
<% end %>

# Defaults for puppet - sourced by /etc/init.d/puppet

# Enable puppet agent service?
# Setting this to "yes" allows the puppet agent service to run.
# Setting this to "no" keeps the puppet agent service from running.
START=<%- if @enable_puppet == true-%>yes<%-else-%>no<%-end%>

# Startup options
DAEMON_OPTS=""

<% if @http_proxy %>
export http_proxy=<%= @http_proxy %>
<% end %>
<% if @https_proxy %>
export https_proxy=<%= @https_proxy %>
<% end %>

Fix in capital letters for puppet enabl

Fix in capital letters for puppet enabl


<% img_root = "computers/old/#{computer["name"].parameterize}" %>
<% img = Rails.application.assets.find_asset("#{img_root}.png") ? "#{img_root}.png" : "#{img_root}.jpg" %>
<div id="<%= computer["name"].parameterize %>" class="container computer-summary">

    <h3 id="<%= computer["name"].parameterize %>"><%= computer["name"] %> <%= [computer["from"],computer["to"]].join("–").html_safe if computer["from"] && computer["to"]%>

    <%= "
#{computer["description"]}
".html_safe if computer["description"] %>

<%= project_image(img, attribution: computer["attribution"]) %>

    <%= "
#{computer["model"]}
".html_safe if computer["model"] %>
    <%= [%Q(
), computer["specs"].map{|spec| "
#{spec}
"}, %Q(
)].join.html_safe if computer["specs"] %>

<% img_root = "https://s3.us-east-2.amazonaws.com/pbogardcom-images/" %>
<% img_path = "computers/old/#{computer["name"].parameterize}" %>

<%
uri = URI("#{img_root}#{img_path}.png")
request = Net::HTTP.new(uri.host)
response = request.request_head(uri.path)
img = response.code.to_i == 200 ? "#{img_path}.png" : "#{img_path}.jpg" %>

Response <%= response.code %>

<div id="<%= computer["name"].parameterize %>" class="container computer-summary">

    <h3 id="<%= computer["name"].parameterize %>"><%= computer["name"] %> <%= [computer["from"],computer["to"]].join("–").html_safe if computer["from"] && computer["to"]%>

    <%= "
#{computer["description"]}
".html_safe if computer["description"] %>

<%= project_image(img, attribution: computer["attribution"]) %>

    <%= "
#{computer["model"]}
".html_safe if computer["model"] %>
    <%= [%Q(
), computer["specs"].map{|spec| "
#{spec}
"}, %Q(
)].join.html_safe if computer["specs"] %>

Update computer summary partial to use AWS S3 images


Module Proposal Received

      <%= @module_proposal.first_name %>,

Thank you for your module proposal. Our team will review the proposal and will reach back out to you if we want to pursue this topic. Feel free to reach out to us at any time at collegestar@ecu.edu.

      Thank you,

      The College STAR Team

Module Proposal Received

      <%= @module_proposal.first_name %>,

Thank you for your module proposal. Our team will review the proposal and will reach back out to you if we want to pursue this topic. Feel free to reach out to us at any time at <%= mail_to "support@collegestar.org" %>.

      Thank you,

      The College STAR Team

Update support email in ModuleProposal::Confirmation view

Changes the email in the confirmation view from collegestar@ecu.edu to
support@collegestar.org.


<%= Alchemy.t('Filter') %>

  <%= select_tag(
    'resource_filter',
    options_for_select(
      resource_filter_select, search_filter_params[:filter]
    ),
    include_blank: Alchemy.t(:all, scope: ['resources', resource_name, 'filters']),
    data: { remote: !!request.xhr? },
    class: 'alchemy_selectbox'
  ) %>

Add a label to resources filter bar

Add a label to resources filter bar


/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.ee.qualified_abstract_app_server_name) %>;

@javax.annotation.Generated( "Domgen" )
public abstract class <%= repository.ee.abstract_app_server_name %>
  extends org.realityforge.guiceyloops.server.glassfish.AbstractAppServer
{
  private static final <%= repository.ee.qualified_provisioner_name %> _<%= Reality::Naming.camelize(repository.name) %>Provisioner = new <%= repository.ee.qualified_provisioner_name %>();

  @javax.annotation.Nonnull
  public <%= repository.ee.qualified_provisioner_name %> get<%= repository.name %>Provisioner()
  {
    return _<%= Reality::Naming.camelize(repository.name) %>Provisioner;
  }

  @java.lang.Override
  protected void preProvision()
  {
    addProvisioner( _<%= Reality::Naming.camelize(repository.name) %>Provisioner );
  }
}

/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.ee.qualified_abstract_app_server_name) %>;

@javax.annotation.Generated( "Domgen" )
public abstract class <%= repository.ee.abstract_app_server_name %>
  extends org.realityforge.guiceyloops.server.glassfish.AbstractAppServer
{
  private final <%= repository.ee.qualified_provisioner_name %> _<%= Reality::Naming.camelize(repository.name) %>Provisioner = create<%= repository.name %>Provisioner();

  @javax.annotation.Nonnull
  protected <%= repository.ee.qualified_provisioner_name %> create<%= repository.name %>Provisioner()
  {
    return new <%= repository.ee.qualified_provisioner_name %>();
  }

  @javax.annotation.Nonnull
  public <%= repository.ee.qualified_provisioner_name %> get<%= repository.name %>Provisioner()
  {
    return _<%= Reality::Naming.camelize(repository.name) %>Provisioner;
  }

  @java.lang.Override
  protected void preProvision()
  {
    addProvisioner( _<%= Reality::Naming.camelize(repository.name) %>Provisioner );
  }
}

Add hook to allow customization of provisioner


# vim:ft=nginx

error_page 410 = @spawner;

location @spawner {
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header Host $http_host;
  proxy_pass http://unix:<%= yeb_socket_path %>;
}

# vim:ft=nginx

error_page 410 = @spawner;

location @spawner {
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header Host $http_host;
  proxy_pass http://unix:<%= yeb_socket_path %>;
  add_header X-Yeb 1;
}

Add custom header to all responses from spawner


<% cache [model, :flexible_content, I18n.locale] do %>

    <% model.content_rows.where(locale: I18n.locale).decorate.each do |row| %>
      <div class="container<%= '-fluid' if row.full_width? %>">
        <% styles = row.styles.map { |k,v| "#{k}: #{v};" }.join %>
        <div class="row <%= row.classes.join(' ') %>" style="<%= styles %>">
          <% row.columns.each do |column| %>
            <div class="col-sm-<%= column.width_sm %> col-md-<%= column.width_md %> col-lg-<%= column.width_lg %> col-xl-<%= column.width_xl %>">
              <% content = column.content.decorate %>

              <% Udongo.config.flexible_content.types.each do |content_type| %>
                <% if content.content_type_is?(content_type) %>
                  <%= render "frontend/flexible_content/#{content_type}", object: content, column: column %>
                <% end %>
              <% end %>

          <% end %>

    <% end %>

<% end %>

Add general rows for flexible content.

Add general rows for flexible content.


<%= render_or_call_method_or_proc_on(self, active_admin_application.site_title) %> <%= title t('active_admin.devise.login.title') %>

  <% email_placeholder = 'Default: admin@example.com' if AdminUser.find_by_email('admin@example.com') %>
  <% password_placeholder = 'Default: password' if AdminUser.find_by_email('admin@example.com') %>

  <% scope = Devise::Mapping.find_scope!(resource_name) %>
  <%= active_admin_form_for(resource, as: resource_name, url: send(:"#{scope}_session_path"), html: { id: "session_new" }) do |f|
    f.inputs do
      resource.class.authentication_keys.each_with_index { |key, index|
        f.input key, label: t('active_admin.devise.'+key.to_s+'.title'), input_html: { autofocus: index.zero?, placeholder: email_placeholder}
      }
      f.input :password, label: t('active_admin.devise.password.title'), input_html: {placeholder: password_placeholder}
      f.input :remember_me, label: t('active_admin.devise.login.remember_me'), as: :boolean if devise_mapping.rememberable?
    end
    f.actions do
      f.action :submit, label: t('active_admin.devise.login.submit'), button_html: { value: t('active_admin.devise.login.submit') }
    end
  end
  %>

  <%= render partial: "active_admin/devise/shared/links" %>

Make the default username and password visible on the login screen when the dummy admin@example.com account is present


<%
  attachments = AttachmentsPresenter.new(document)
  title = t('document.headings.attachments', count: attachments.length) unless local_assigns.include?(:title)
  published_on = '' unless local_assigns.include?(:published_on)
  external ||= false
%>

<%= title %>

        <% attachments.attachments.each do |attachment| %>
          <%= render partial: "documents/attachment",
                    object: attachment,
                    locals: {
                      hide_thumbnail: false,
                      alternative_format_contact_email: document.alternative_format_contact_email,
                      published_on: published_on } %>
        <% end %>

        <% if external %>

This document is hosted on <%= link_to "another website", document.external_url, rel: "external" %>

        <% end %>

<%
  attachments = AttachmentsPresenter.new(document)
  title = t('document.headings.attachments', count: attachments.length) unless local_assigns.include?(:title)
  published_on = '' unless local_assigns.include?(:published_on)
  external = false unless defined?(:external)
%>

<%= title %>

        <% attachments.attachments.each do |attachment| %>
          <%= render partial: "documents/attachment",
                    object: attachment,
                    locals: {
                      hide_thumbnail: false,
                      alternative_format_contact_email: document.alternative_format_contact_email,
                      published_on: published_on } %>
        <% end %>

        <% if external %>

This document is hosted on <%= link_to "another website", document.external_url, rel: "external" %>

        <% end %>

Update default assignment to match house style


<%= provide(:title, "Requests to Join #{@organization.name}") %>

<%= @organization.name %> Organization Management

  <%= render "ccla_signatures/organization_tabs", ccla_signature: @organization.latest_ccla_signature %>

Users who have requested to join and contribute on behalf of this organization.

        <% @pending_requests.each do |request| %>

<%= link_to request.user.name, request.user %> requested to join on <%= request.created_at.to_s(:longish) %>

      <% end %>

<%= provide(:title, "Requests to Join #{@organization.name}") %>

<%= @organization.name %> Organization Management

  <%= render "ccla_signatures/organization_tabs", ccla_signature: @organization.latest_ccla_signature %>

Users who have requested to join and contribute on behalf of this organization.

        <% @pending_requests.each do |request| %>

            <%= link_to request.user.name, request.user %> requested to join on <%= request.created_at.to_s(:longish) %>

<%= link_to 'Accept Request', accept_ccla_signature_contributor_request_path(request.ccla_signature, request), class: 'button secondary tiny' %>

<%= link_to 'Decline Request', decline_ccla_signature_contributor_request_path(request.ccla_signature, request), class: 'button alert tiny' %>

        <% end %>

Allow contributor requests to be accepted/declined from web UI

CCLA admins can accept or decline contributor requests from the
organization admin interface.


<%= display_header title: "Taxonomy Health Warnings",
                   breadcrumbs: ["Taxonomy Health Warnings"] %>

      Date
      Taxon
      Warning message

    <%= render partial: 'shared/table_filter' %>

    <% @taxonomy_health_warnings.each do |taxonomy_health_warning| %>

        <%= time_ago_in_words(taxonomy_health_warning.created_at) %>
        <%= link_to taxonomy_health_warning.internal_name,
                    taxon_path(taxonomy_health_warning.content_id) %>

          <%= taxonomy_health_warning.path %>

        <%= taxonomy_health_warning.message %>

    <% end %>

<%= display_header title: "Taxonomy Health Warnings",
                   breadcrumbs: ["Taxonomy Health Warnings"] %>

      Date
      Taxon
      Warning message

    <%= render partial: 'shared/table_filter' %>

    <% @taxonomy_health_warnings.order(value: :desc).each do |taxonomy_health_warning| %>

        <%= time_ago_in_words(taxonomy_health_warning.created_at) %>
        <%= link_to taxonomy_health_warning.internal_name,
                    taxon_path(taxonomy_health_warning.content_id) %>

          <%= taxonomy_health_warning.path %>

        <%= taxonomy_health_warning.message %>

    <% end %>

Sort the health warnings in the table

Sort the health warnings in the table

In descending order, as with the current metrics, this means the more
extreme issues come out towards the top.


<% content_for :title, @manual.full_title %>
<%= render partial: "header" %>

<%= @manual.summary %>

  <% unless @manual.body.blank? %>

    <%= @manual.body %>

  <% end %>
  <% @manual.section_groups.each do | group | %>
    <% if @manual.hmrc?%>

      <%= render 'hmrc_sections', :group => group %>

    <% else %>

      <% group.sections.each do | section | %>

        <%= link_to section.path, class: "#{section.section_id.present? ? 'subsection-with-id' : ''}" do %>
            <%= section.title %>
            <%= section.summary %>
        <% end %>

      <% end %>

    <% end %>
  <% end %>

Add article tag and labelled by

Add article tag and labelled by

The index pages are the only pages of the manual whose h1 is the h1 in the header. Add the article tag and use labelledby to point to the h1 of the page in the header. This markup is different to the show/updates pages were the header is less important than on the index page


“Accept what life offers you and try to drink from every cup. All wines should be tasted; some should only be sipped, but with others, drink the whole bottle.”

― Paulo Coelho, Brida

<% unless session[:user_id] %>
	<%= link_to "Log In/Sign Up", login_path %>
<% end %>

Add login link to homepage

Add login link to homepage


location / {
  try_files <%= try_files%>;
}

location ~ \.php$ {
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  include fastcgi_params;
  fastcgi_param PATH_INFO         $fastcgi_path_info;
  fastcgi_param SCRIPT_FILENAME   $document_root$fastcgi_script_name;
  fastcgi_index index.php;
  fastcgi_pass  phpfpm<%= port %>;
}

location / {
  try_files <%= try_files%>;
}

location ~ \.php$ {
  try_files $uri =404;
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  include fastcgi_params;
  fastcgi_param PATH_INFO         $fastcgi_path_info;
  fastcgi_param SCRIPT_FILENAME   $document_root$fastcgi_script_name;
  fastcgi_index index.php;
  fastcgi_pass  phpfpm<%= port %>;
}

Fix "uncontrolled requests to PHP" vulnerability

* @see
http://wiki.nginx.org/Pitfalls#Passing_Uncontrolled_Requests_to_PHP


<%= render 'header' %>

      <%= render 'collection_controls' %>
      <%= render 'collection_filters' %>

<%= "All #{resourceful.collection_name}" %>

          <% if resourceful.collection.any? %>
            <%= render 'table' %>
          <% else %>

No entries were found

          <% end %>

          <%= render 'pagination' %>

<%= render 'header' %>

      <%= render 'collection_controls' %>
      <%= render 'collection_filters' unless resourceful.collection.empty? %>

<%= "All #{resourceful.collection_name}" %>

          <% if resourceful.collection.any? %>
            <%= render 'table' %>
          <% else %>

No entries were found

          <% end %>

          <%= render 'pagination' %>

Hide filters if no results

Hide filters if no results


<!DOCTYPE html>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Udongo</title>

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

      <%= yield %>

Fix layout issue with the lightbox template.


Miembros

<% #FIX: hidden id field in members %>
<%= form_for(@project, url:add_members_path(@project)) do |f|  %>

		<%= f.text_field :email %>

		<%= f.submit "Agregar" %>

<% end %>

<%= link_to @owner.name, @owner_path %>
  <% @members.each do |member| %>
    <% #TODO: link_to profile_path(member) %>

<%= link_to member.name, profile_path(member) %>

  <% end %>

Miembros

<% #FIX: hidden id field in members %>
<%= form_for(@project, url:add_members_path(@project)) do |f|  %>

		<%= f.text_field :email %>

		<%= f.submit "Agregar" %>

<% end %>

<%= link_to @owner.name, profile_path(@owner) %>
  <% @members.each do |member| %>

<%= link_to member.name, profile_path(member) %>

  <% end %>

Fix the profile path for the owner

Fix the profile path for the owner


<%-
# The 'available' request form offers the following options:
#   - If the holding is from an NYU sublibrary,
#     - Entire item request
#     - Scanned portion
#   - Otherwise set the appropriate request text for the sublibrary
#     - only offer the entire item option
-%>
<%= request_form(:available) do %>
  <% if (["BOBST", "NCOUR", "NISAW"].include?(holding.sub_library.code)) %>
    <%= entire_request_option(:available) %><br />
    <%= scan_request_option(:available) %>
  <% else %>
    <%= request_option(:available) do %>
      <%= content_tag(:p, available_request_text) %>
      <%= pickup_locations_field_set %>
      <%= delivery_times %>
    <% end %>
  <% end %>
  <%= submit_tag 'Submit' %>
<% end %>

<%-
# The 'available' request form offers the following options:
#   - If the holding is from an NYU sublibrary,
#     - Entire item request
#     - Scanned portion
#   - Otherwise set the appropriate request text for the sublibrary
#     - only offer the entire item option
-%>
<%= request_form(:available) do %>
  <% if (["BOBST", "NCOUR"].include?(holding.sub_library.code)) %>
    <%= entire_request_option(:available) %><br />
    <%= scan_request_option(:available) %>
  <% else %>
    <%= request_option(:available) do %>
      <%= content_tag(:p, available_request_text) %>
      <%= pickup_locations_field_set %>
      <%= delivery_times %>
    <% end %>
  <% end %>
  <%= submit_tag 'Submit' %>
<% end %>

Remove NISAW sublibrary from scannable request because that is handled at length in another PR


<!DOCTYPE html>
<html>
<head>
  <title>Doorkeeper</title>
  <%= stylesheet_link_tag    "doorkeeper/application" %>
  <%= javascript_include_tag "doorkeeper/application" %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>

  <title>Doorkeeper</title>
  <%= stylesheet_link_tag    "http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css" %>
  <%= stylesheet_link_tag    "doorkeeper/application" %>
  <%= javascript_include_tag "doorkeeper/application" %>
  <%= csrf_meta_tags %>

        <% flash.each do |key, message| %>

            <div class="alert-message <%= key %>" data-alert>×
<%= message %>

        <% end %>

        <%= yield %>

Add twitter bootstrap stylesheet to layout


---
extension: xml
---

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>http://usesthis.com/interviews/</loc>
  </url>
  <url>
    <loc>http://usesthis.com/about/</loc>
  </url>
  <url>
    <loc>http://usesthis.com/community/</loc>
  </url>
  <url>
    <loc>http://usesthis.com/api/</loc>
  </url>
  <% site.posts.each do |post| %>
  <url>
    <loc>http://usesthis.com/interviews/<%= post.slug %>/</loc>
    <lastmod><%= post.date.strftime('%Y') %>-<%= post.date.strftime('%m') %>-<%= post.date.strftime('%d') %></lastmod>
  </url>
  <% end %>
</urlset>

---
filename: sitemap
extension: xml
---

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://usesthis.com/about/</loc>
  </url>
  <url>
    <loc>https://usesthis.com/categories/</loc>
  </url>
  <% @site.categories.keys.sort.each do |slug| %>
  <url>
    <loc>https://usesthis.com/categories/<%= slug %></loc>
  </url>
  <% end %>
  <url>
    <loc>https://usesthis.com/interviews/</loc>
  </url>
  <% @site.posts.each do |post| %>
  <url>
    <loc>https://usesthis.com/interviews/<%= post.slug %>/</loc>
    <lastmod><%= post.date.strftime('%Y') %>-<%= post.date.strftime('%m') %>-<%= post.date.strftime('%d') %></lastmod>
  </url>
  <% end %>
</urlset>

Remove old URLs and add all the categories


<% if presented_taxon.tagged_content.any? %>

      <% if presented_taxon.child_taxons.present? %>

<%= presented_taxon.title %> guidance

<%= presented_taxon.description %>

      <% end %>

      <% heading_level = heading_level ? heading_level : false %>
      <%= render 'components/taxon-list', {
          heading_level: heading_level,
          items: taxon_list_params(presented_taxon, data_options_type: :options_for_leaf_content)
      } %>

<% end %>

<% if presented_taxon.tagged_content.any? %>

      <% heading_level = heading_level ? heading_level : false %>
      <%= render 'components/taxon-list', {
          heading_level: heading_level,
          items: taxon_list_params(presented_taxon, data_options_type: :options_for_leaf_content)
      } %>

<% end %>

Remove unnecessary code from world taxon view

This was copied over when we split worldwide taxons from taxons. We don't need this logic any more, as this partial is only called by the leaf view, not leaf and grid (as it was for taxons).


<% content_for :right_side do %>
  <% return_to_url = return_to_calendar(:event => @event) %>
  <a class="base_calendar_url" href="<%= calendar_url_for() %>" style="display: none;">

<a class="return_url calendar_url" href="<%= return_to_url %>"> <%= t 'links.back_to_calendar', "Back to Calendar" %>

      <% if can_do(@event, @current_user, :update) %>

 <%= t 'links.edit', "Edit Calendar Event"%>

        <% unless @event.new_record? %>

<a href="<%= context_url(@context, :context_calendar_event_url, @event.id) %>" class="delete_event_link">  <%= t 'links.delete', "Delete the Event" %>

        <% end %>
      <% end %>

  <%= render :partial => 'shared/wiki_sidebar' %>
<% end %>

<%= render :partial => 'full_calendar_event', :object => @event %>

<% content_for :right_side do %>
  <% return_to_url = return_to_calendar(:context => @context, :event => @event) %>
  <a class="base_calendar_url" href="<%= calendar_url_for() %>" style="display: none;">

<a class="return_url calendar_url" href="<%= return_to_url %>"> <%= t 'links.back_to_calendar', "Back to Calendar" %>

      <% if can_do(@event, @current_user, :update) %>

          <% link_to context_url(@context, :edit_context_calendar_event_url, @event.id) do %>
             <%= t 'links.edit', "Edit Calendar Event" %>
          <% end %>

        <% unless @event.new_record? %>

<a href="<%= context_url(@context, :context_calendar_event_url, @event.id) %>" class="delete_event_link">  <%= t 'links.delete', "Delete the Event" %>

        <% end %>
      <% end %>

  <%= render :partial => 'shared/wiki_sidebar' %>
<% end %>

<%= render :partial => 'full_calendar_event', :object => @event %>

Make "Edit Calendar Event" link go to /edit path.

Fixes #CNVS-3222

Testing Notes:
===========
* The "show" page version of a Calendar Event
   (popup title to read-only view), for users that can edit
   the event, the link on the right "Edit Calendar Event"
   was handled by a javascript handler to change to edit
   mode on the same page. Verify that the link now directs
   to the existing "/edit" path.

Change-Id: I36feb1f7fe9f58653bd845baa3f40501cafd0d8f
Reviewed-on: https://gerrit.instructure.com/17011
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
Reviewed-by: Jon Willesen <eb5ce5e6a76c243326fecfa94534101600f87bd9@instructure.com>
QA-Review: Marc LeGendre <d33c80bc45d65303e33ca83108a9952b745af9ef@instructure.com>


WD = <%= @app_path %>

# Use at least one worker per core
worker_processes <%= node[:unicorn][:worker_processes] %>

# Help ensure your application will always spawn in the symlinked "current" directory that Capistrano sets up
working_directory WD

# Listen on a Unix domain socket, use the default backlog size
listen "/var/run/unicorn/<%= @app_name %>.sock", :backlog => 1024

timeout <%= @worker_timeout %>

pid "/var/run/unicorn/<%= @app_name %>.pid"

# Logs are very useful for trouble shooting, use them
stderr_path "<%= node[:unicorn][:log_path] %>/<%= @app_name %>.stderr.log"
stdout_path "<%= node[:unicorn][:log_path] %>/<%= @app_name %>.stdout.log"

# Use "preload_app true"
preload_app true

before_fork do |server, worker|

end

after_fork do |server, worker|

end

WD = "<%= @app_path %>"

# Use at least one worker per core
worker_processes <%= node[:unicorn][:worker_processes] %>

# Help ensure your application will always spawn in the symlinked "current" directory that Capistrano sets up
working_directory WD

# Listen on a Unix domain socket, use the default backlog size
listen "/var/run/unicorn/<%= @app_name %>.sock", :backlog => 1024

timeout <%= @worker_timeout %>

pid "/var/run/unicorn/<%= @app_name %>.pid"

# Logs are very useful for trouble shooting, use them
stderr_path "<%= node[:unicorn][:log_path] %>/<%= @app_name %>.stderr.log"
stdout_path "<%= node[:unicorn][:log_path] %>/<%= @app_name %>.stdout.log"

# Use "preload_app true"
preload_app true

before_fork do |server, worker|

end

after_fork do |server, worker|

end

Put quotes around the app path

Put quotes around the app path


<%-
  raw_git_url = "https://rawgit.com/rackerlabs/wadl2swagger/gh-pages/swagger/"
  unless swagger_json.nil?
    full_yaml_url = settings.site_url + url_for(swagger_yaml)
    full_json_url = settings.site_url + url_for(swagger_json)
    edit_url = "http://editor.swagger.io/#/edit?import=#{full_yaml_url}"
  end
  unless log_file.nil?
    validation_log = url_for(log_file)
    validation_img = swagger_validation_image(log_file)
  end
-%>

  <%= partial 'partials/file_link', :locals => {:file => wadl } %>
  <%= partial 'partials/file_link', :locals => {:file => swagger_yaml } %>
  <%= partial 'partials/file_link', :locals => {:file => swagger_json } %>
  <%- if swagger_json.nil? -%>
    N/A
    N/A
  <%- else -%>

      <a href="<%= validation_log %>"><img src="<%= validation_img %>" target="_blank"/>

      <a href="<%= edit_url %>">Open on Swagger-Editor

  <%- end -%>

<%-
  raw_git_url = "https://rawgit.com/rackerlabs/wadl2swagger/gh-pages/swagger/"
  unless swagger_json.nil?
    full_yaml_url = settings.site_url + url_for(swagger_yaml)
    full_json_url = settings.site_url + url_for(swagger_json)
    edit_url = "http://editor.swagger.io/#/edit?import=#{full_yaml_url}"
  end
  unless log_file.nil?
    validation_log = settings.site_url + url_for(log_file)
    validation_img = settings.site_url + swagger_validation_image(log_file)
  end
-%>

  <%= partial 'partials/file_link', :locals => {:file => wadl } %>
  <%= partial 'partials/file_link', :locals => {:file => swagger_yaml } %>
  <%= partial 'partials/file_link', :locals => {:file => swagger_json } %>
  <%- if swagger_json.nil? -%>
    N/A
    N/A
  <%- else -%>

      <%= link_to(validation_log) { image_tag validation_img } %>

      <a href="<%= edit_url %>" target="_blank">Open on Swagger-Editor

  <%- end -%>

Fix URLs (subdirectory on github.io)

Fix URLs (subdirectory on github.io)


Edit <%= @book.title %>

    <%= form_for @book, :url => book_path(@book.id) do |f| %>
    <%= render "book_errors" %>

        <%= f.label "Title" %>
        <%= f.text_field :title, class: "form-control", autofocus: true %>

        <%= f.label "Author" %>
        <%= f.text_field :author, class: "form-control", autofocus: true %>

        <%= f.label "Publisher" %>
        <%= f.text_field :publisher, class: "form-control", autofocus: true %>

        <%= f.label "Published Date" %>
        <%= f.text_field :published_date, class: "form-control", autofocus: true %>

        <%= f.label "Category" %>
        <%= f.text_field :categories, class: "form-control", autofocus: true %>

        <%= f.label "Description" %>
        <%= f.text_field :description, class: "form-control", autofocus: true %>

        <%= f.label "Price" %>
        <%= f.text_field :price, class: "form-control", autofocus: true %>

        <%= f.label "ISBN" %>
        <%= f.text_field :isbn, class: "form-control", autofocus: true %>

        <%= f.label "Buy Link" %>
        <%= f.text_field :buy_link, class: "form-control", autofocus: true %>

        <%= f.label "Image Link" %>
        <%= f.text_field :image_link, class: "form-control", autofocus: true %>

        <%= f.submit "Update Book", class: "btn btn-default" %>

    <% end %>

<%= button_to "Back", collection_books_path(@book.collection_ids.first), method: 'get', class: "btn btn-default" %>

Add edit page for book

Add edit page for book


  <form action='/user/<%= @user.id %>/<%= @movie.name %>' method="POST">
    <input type="hidden" name="_method" value="PUT">
    <input type="text" name="movie[name]" value="<%= @movie.name %>">

    <input type="text" name="movie[description]" value="<%= @movie.description %>">

    <input type="text" name="movie[rating]" value="<%= @movie.rating %>">

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

  <form action='/user/<%= @user.id %>/<%= @movie.name %>' method="POST">
    <input type="hidden" name="_method" value="PUT">
    <input type="text" name="movie[name]" value="<%= @movie.name %>">

ADD DROP DOWN FOR GENRE

    <input type="text" name="movie[description]" value="<%= @movie.description %>">

    <input type="text" name="movie[rating]" value="<%= @movie.rating %>">

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

Add reminder to do a drop down for selecting a movie's genre


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

<img class="image" width="100" height="100" src="<%= @user.picture %>" alt="<%= @user.first_name %>">

<%= @user.first_name %>'s Good Nghbor Points: <%= @user.vote_count %>

<%= @user.first_name %>'s Recent Activity:

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

<img class="profpic" width="200" height="200" src="<%= @user.picture %>" alt="<%= @user.first_name %>">

<%= @user.first_name %>'s Good Nghbor Points: <%= @user.vote_count %>

<%= @user.first_name %>'s Recent Activity:

Change size of profile pic

Change size of profile pic


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

<%=link_to 'Edit account', edit_user_registration_path %>

<%=link_to 'Sign out', destroy_user_session_path, :method => :delete %>

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

<%=link_to 'Create a Document', new_user_document %>

<%=link_to 'Edit account', edit_user_registration_path %>

<%=link_to 'Sign out', destroy_user_session_path, :method => :delete %>

Add link for document creation

Add link for document creation


<%= notice %>

<%= image_tag @user.image_url %>

  Name:
  <%= @user.name %>

  Email:
  <%= @user.email %>

<%= link_to 'Edit', edit_user_path(@user) %> |
<%= link_to 'Back', root_path %>

<%= notice %>

<%= image_tag @user.image_url, class: "img-circle", width: "200", height: "200" %>

Name:
  <%= @user.name %>

  Email:
  <%= @user.email %>

<%= link_to 'Edit', edit_user_path(@user) %> |
<%= link_to 'Back', root_path %>

Edit user profile page a bit

Edit user profile page a bit


My Profile

<%= current_user.first_name %> <%= current_user.last_name %>

Email: <%= current_user.email %>

Postal Code: <%= current_user.postal_code %>

<%= link_to("Edit Profile", edit_user_path) %>
<%= link_to("My Votes", user_user_votes_path(@user)) %>

My Profile

<%= current_user.first_name %> <%= current_user.last_name %>

Email: <%= current_user.email %>

Postal Code: <%= current_user.postal_code %>

<%= link_to("Edit Profile", edit_user_path(@user)) %>
<%= link_to("My Votes", myvotes_path(@user)) %>

Fix links to edit profile and my votes on user profile page


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

@javax.annotation.Generated( "Domgen" )
@javax.ejb.Singleton( name = "<%= repository.imit.server_request_manager_name %>" )
@javax.ejb.TransactionAttribute( javax.ejb.TransactionAttributeType.REQUIRED )
@javax.ejb.ConcurrencyManagement( javax.ejb.ConcurrencyManagementType.BEAN )
@javax.ejb.Local( org.realityforge.replicant.server.ee.ReplicationRequestManager.class )
public class <%= repository.imit.server_request_manager_name %>
  extends org.realityforge.replicant.server.ee.AbstractReplicationRequestManager
{
<% if repository.ee.use_cdi? -%>
  @javax.inject.Inject
<% else -%>
  @javax.ejb.EJB
<% end -%>
  private org.realityforge.replicant.server.EntityMessageEndpoint _endpoint;

  @javax.persistence.PersistenceContext( unitName = <%= repository.jpa.qualified_unit_descriptor_name %>.NAME )
  private javax.persistence.EntityManager _entityManager;

  @java.lang.Override
  protected org.realityforge.replicant.server.EntityMessageEndpoint getEndpoint()
  {
    return _endpoint;
  }

  @java.lang.Override
  protected javax.persistence.EntityManager getEntityManager()
  {
    return _entityManager;
  }
}

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

@javax.annotation.Generated( "Domgen" )
<% if repository.ee.use_cdi? -%>
@javax.enterprise.context.ApplicationScoped
<% else -%>
@javax.ejb.Singleton( name = "<%= repository.imit.server_request_manager_name %>" )
@javax.ejb.TransactionAttribute( javax.ejb.TransactionAttributeType.REQUIRED )
@javax.ejb.ConcurrencyManagement( javax.ejb.ConcurrencyManagementType.BEAN )
@javax.ejb.Local( org.realityforge.replicant.server.ee.ReplicationRequestManager.class )
<% end -%>
public class <%= repository.imit.server_request_manager_name %>
  extends org.realityforge.replicant.server.ee.AbstractReplicationRequestManager
{
<% if repository.ee.use_cdi? -%>
  @javax.inject.Inject
<% else -%>
  @javax.ejb.EJB
<% end -%>
  private org.realityforge.replicant.server.EntityMessageEndpoint _endpoint;

  @javax.persistence.PersistenceContext( unitName = <%= repository.jpa.qualified_unit_descriptor_name %>.NAME )
  private javax.persistence.EntityManager _entityManager;

  @java.lang.Override
  protected org.realityforge.replicant.server.EntityMessageEndpoint getEndpoint()
  {
    return _endpoint;
  }

  @java.lang.Override
  protected javax.persistence.EntityManager getEntityManager()
  {
    return _entityManager;
  }
}

Support generation as a CDI bean

Support generation as a CDI bean


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

/var/log/apache2/*.log {
  daily
  size 1G
  missingok
  rotate 28
  compress
  delaycompress
  notifempty
  create 640 root adm
  sharedscripts
  postrotate
    /bin/systemctl reload apache2
  endscript
}

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

/var/log/apache2/*.log {
  daily
  size 1G
  missingok
  rotate 14
  compress
  delaycompress
  notifempty
  create 640 root adm
  sharedscripts
  postrotate
    /bin/systemctl reload apache2
  endscript
}

Reduce log retention on render servers

Reduce log retention on render servers


<?xml version="1.0" encoding="UTF-8"?>
<module>
  <inherits name='org.realityforge.gwt.datatypes.Datatypes'/>

  <inherits name="com.google.gwt.json.JSON"/>
  <inherits name="org.realityforge.replicant.Replicant"/>

<%
packages =
  [
    repository.gwt.client_data_type_package,
    repository.gwt.client_event_package,
    repository.gwt.client_entity_package,
    repository.gwt.client_service_package,
    repository.gwt.shared_data_type_package,
    repository.gwt.shared_service_package,
    repository.imit.client_ioc_package,
    repository.imit.client_comm_package,
    repository.imit.shared_comm_package
  ]

  prefix = repository.imit.model_module.gsub(/\.[^\.]+$/,'')
%>
  <source path=''>
<% packages.select{|p|p =~ /^#{Regexp.escape(prefix)}/}.each do |pkg| -%>
    <include name="<%= pkg.gsub("#{prefix}.",'').gsub('.','/') %>/**/*.java"/>
<% end -%>
  </source>
</module>

<?xml version="1.0" encoding="UTF-8"?>
<module>
  <inherits name='org.realityforge.gwt.datatypes.Datatypes'/>

  <inherits name="com.google.gwt.json.JSON"/>
  <inherits name="org.realityforge.replicant.Replicant"/>
<% if repository.keycloak? -%>
  <inherits name="org.realityforge.gwt.keycloak.Keycloak"/>
<% end -%>

<%
packages =
  [
    repository.gwt.client_data_type_package,
    repository.gwt.client_event_package,
    repository.gwt.client_entity_package,
    repository.gwt.client_service_package,
    repository.gwt.shared_data_type_package,
    repository.gwt.shared_service_package,
    repository.imit.client_ioc_package,
    repository.imit.client_comm_package,
    repository.imit.shared_comm_package
  ]

  prefix = repository.imit.model_module.gsub(/\.[^\.]+$/,'')
%>
  <source path=''>
<% packages.select{|p|p =~ /^#{Regexp.escape(prefix)}/}.each do |pkg| -%>
    <include name="<%= pkg.gsub("#{prefix}.",'').gsub('.','/') %>/**/*.java"/>
<% end -%>
  </source>
</module>

Make sure keycloak dependency is declared when facet enabled


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

MAILTO=brett@bretth.com
TZ=UTC

* * * * * planet /usr/local/bin/osmosis -q --replicate-apidb authFile=/etc/replication/auth.conf allowIncorrectSchemaVersion=true --write-replication workingDirectory=/store/planet/replication/minute
2 * * * * planet /usr/local/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/hour
5 * * * * planet /usr/local/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/day

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

MAILTO=brett@bretth.com
TZ=UTC

* * * * * planet /usr/local/bin/osmosis -q --replicate-apidb authFile=/etc/replication/auth.conf validateSchemaVersion=false --write-replication workingDirectory=/store/planet/replication/minute
2 * * * * planet /usr/local/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/hour
5 * * * * planet /usr/local/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/day

Stop the replication task moaning about schema mismatches


<%= render partial: "common/fco_dashboard", locals: {
    transaction_title: 'Deposit foreign marriage or civil partnership certificates',
    explanatory_copy: <<-HERE
        Service to pay the Foreign & Commonwealth Office (FCO) to deposit a foreign marriage or civil partnership certificate at the General Registry Office.
        Figures on this page include only applications processed in the UK on GOV.UK.
    HERE
} %>

<%= render partial: "common/fco_dashboard", locals: {
    transaction_title: 'Deposit foreign marriage or civil partnership certificates',
    explanatory_copy: <<-HERE
		Figures for applications processed on GOV.UK in the UK for the service to pay the Foreign & Commonwealth Office (FCO) to deposit a foreign marriage or civil partnership certificate at the General Registry Office.
    HERE
} %>

Update deposit foreign marriage description


<% if @guide.owned_by?(current_user) %>
  <%= link_to(icon('edit') + " Edit Guide", {:action => 'edit'}, :class=>'button tiny secondary edit-link') %>
  <%= link_to(icon('trash') + t('.delete_guide'), guide_path(@guide), :method => 'delete', :class=>'button tiny secondary edit-link') %>
<% end %>

Add the file that was missing

Add the file that was missing


<%= form_tag(subscription_path, class: 'newsletter', remote: true) do %>
  <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>

<%= t('newsletter.heading') %>

    <% t('newsletter.benefits').each do |benefit| %>

<%= benefit %>

    <% end %>

  <%= label_tag('subscription[email]', 'Email address', class: 'visually-hidden') %>

      <%= email_field_tag('subscription[email]', nil, class: 'newsletter__input') %>

      <%= button_tag('Sign up', type: 'submit', class: 'button button--input newsletter__button') %>

<% end %>

Change list-benefits modifier class name


description "openconnect vpn client daemon"

start on runlevel [2345]
stop on runlevel [!2345]

respawn
respawn limit 5 120

<% if %w{yes no}.include?(@dnsupdate) -%>
<% @dns_text="export DNS_UPDATE=" + @dnsupdate + "&&" %>
<% end %>

exec <%= @dns_text %> echo <%= @password %> | openconnect <%= @gateway %>/github --no-dtls --script /etc/vpnc/vpnc-script --user <%= @user %> --passwd-on-stdin

description "openconnect vpn client daemon"

start on runlevel [2345]
stop on runlevel [!2345]

respawn
respawn limit 5 120

<% if %w{yes no}.include?(@dnsupdate) -%>
env DNS_UPDATE=<%= @dnsupdate %>
export DNS_UPDATE
<% end -%>
exec echo <%= @password %> | openconnect <%= @gateway %>/github --no-dtls --script /etc/vpnc/vpnc-script --user <%= @user %> --passwd-on-stdin

Use upstart stanza to set openconnect env var.