<% content_for :title, "#{@section} - Trade Tariff - GOV.UK" %>
<% content_for :head do %>
  <link rel='alternate' type='application/json' href='<%= section_url(@section, format: :json) %>' title='Section information page in JSON format' />
<% end %>

Section <%= @section.numeral %>

<%= link_to @section, sections_path(request.query_parameters.symbolize_keys) %>

        <%= render @chapters %>

  <%= render partial: 'note', locals: { section_note: @section.section_note } %>

<% content_for :title, "#{@section} - Trade Tariff - GOV.UK" %>
<% content_for :head do %>
  <link rel='alternate' type='application/json' href='<%= section_url(@section, format: :json) %>' title='Section information page in JSON format' />
<% end %>

<%= render 'shared/tariff_breadcrumbs', section: @section %>

      <%= render @chapters %>

  <%= render partial: 'note', locals: { section_note: @section.section_note } %>

Add new breadcrumb to sections page

Add new breadcrumb to sections page


<% content_for :middle do %>

tunefl ♮ Finally, music for social-networking.

The orchestra is tuning.
Follow us, to get a good seat in time for the opening notes.

  Follow @tunefl :)

<% end %>

<% content_for :middle do %>

tunefl ♮ Inspiring musical-creativity.

The conductor is walking to the podium.
You are invited to the concert, which begins 19:30 Wed 27 Jun 2012 (GMT +01:00).

  Follow @tunefl :)

<% end %>

Update placeholder page, to announce launch.


      <%= email_address.title %>

      <%= mail_to email_address.email %>

      <%= email_address.description %>

      <%= email_address.title %>

      <%= mail_to email_address.email %>

      <%= govspeak email_address.description %>

Format email address description with govspeak

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


	<%= link_to 'Newer', send("#{resource.class.name.demodulize.downcase}_path", resource.newer), class: 'previous_page', rel: 'prev' if resource.newer %>
	<%= link_to 'Older', send("#{resource.class.name.demodulize.downcase}_path", resource.older), class: 'next_page', rel: 'next' if resource.older %>

<%- resource_route = "#{resource.class.name.demodulize.downcase}_path" -%>

<div class="pagination">
	<%- if resource.newer -%>
		<%= link_to 'Newer', send(resource_route, resource.newer), class: 'previous_page', rel: 'prev', title: "Navigate to “#{resource.newer.title}”" %>
	<%- end -%>
	<%- if resource.older -%>
		<%= link_to 'Older', send(resource_route, resource.older), class: 'next_page', rel: 'next', title: "Navigate to “#{resource.older.title}”" %>
	<%- end -%>
</div>

Refactor single resource pagination partial.


#!/bin/sh
exec 2>&1

DIR=/opt/opscode/embedded/service/oc_id
export RAILS_ENV=production
export PATH=/opt/opscode/embedded/bin:$PATH
export LD_LIBRARY_PATH=/opt/opscode/embedded/lib
cd $DIR
exec chpst -P -u <%= node['private_chef']['user']['username'] %> -U <%= node['private_chef']['user']['username'] %> /opt/opscode/embedded/bin/bundle exec rails server -p <%= node['private_chef']['oc_id']['port'] %> -b <%= node['private_chef']['oc_id']['vip'] %>

#!/bin/sh
exec 2>&1

DIR=/opt/opscode/embedded/service/oc_id
export RAILS_ENV=production
export PATH=/opt/opscode/embedded/bin:$PATH
export LD_LIBRARY_PATH=/opt/opscode/embedded/lib
export HOME=$DIR

cd $DIR
exec chpst -P -u <%= node['private_chef']['user']['username'] %> -U <%= node['private_chef']['user']['username'] %> /opt/opscode/embedded/bin/bundle exec rails server -p <%= node['private_chef']['oc_id']['port'] %> -b <%= node['private_chef']['oc_id']['vip'] %>

Set HOME in oc_id's runsv script

[oc_id] Set HOME in oc_id's runsv script

Upstream omnibus-software no longer builds Ruby with readline. This
means that 'require "readline"' now picks up the rb-readline that oc_id
installs into our ruby environment. Bundler internally does a require on
readline during `bundle exec`. Unfortunately rb-readline fails if it is
required with HOME unset. This leads to oc_id failing to start.

This is similar to 5e7d19bc13edac17c045ef141ca03527b628b188


<%# add navigation links to this file %>
<% if user_signed_in? -%>
  <% if current_user.privileged_user? -%>

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

  <% end -%>

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

<% else -%>

<%= link_to 'Sign in', new_user_session_path %>

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

<% end -%>
<% if user_signed_in? -%>
  <% if current_user.admin? -%>

<%= link_to 'Users', users_path %>

  <% end -%>
  <% if current_user.admin? -%>

<%= link_to 'Settings', setting_path(Setting.first) %>

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

<%# add navigation links to this file %>
<% if user_signed_in? -%>
  <% if current_user.privileged_user? -%>

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

  <% end -%>

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

<% else -%>

<%= link_to 'Sign in', new_user_session_path %>

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

<% end -%>
<% if user_signed_in? -%>
  <% if current_user.admin? -%>

<%= link_to 'Users', users_path %>

  <% end -%>
  <% if current_user.admin? || current_user.presidency? -%>

<%= link_to 'Settings', setting_path(Setting.first) %>

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

Allow the presidency to modify settings.


#!/bin/bash
set -e -x

cd /var/vcap/packages/acceptance-tests

export GOROOT=/var/vcap/packages/golang
export PATH=/var/vcap/packages/cli/bin:$GOROOT/bin:$PWD/bin:$PATH
export CONFIG=$PWD/integration_config.json

cat > integration_config.json <<EOF
{
  "api_url":       "<%= p('cf.api_url') %>",
  "apps_domain":   "<%= p('cf.apps_domain') %>",
  "admin_user":    "<%= p('cf.admin_username') %>",
  "broker_host":   "<%= p('broker.host') %>",
  "service_name":  "<%= p('service.name') %>",
  "plans": [
  <% plans = p('service.plans')
  plans.each do |plan| %>
    {
      "plan_name": "<%= plan['plan_name'] %>",
      "max_storage_mb": <%= plan['max_storage_mb'] %>
  <% if plan != plans.last %>
    },
  <% else %>
    }
  <% end
  end%>
  ],
  "skip_ssl_validation": <%= p('cf.skip_ssl_validation') %>,
  "max_user_connections": <%= p('mysql.max_user_connections') %>,
  "storage_capacity_mb": <%= p('mysql.storage_capacity_mb') %>,
EOF

# don't expose passwords
set +x

cat >> integration_config.json <<EOF
  "admin_password":   "<%= p('cf.admin_password') %>"
}
EOF

set -x

bin/test

#!/bin/bash
set -e -x

cd /var/vcap/packages/acceptance-tests

export GOROOT=/var/vcap/packages/golang
export PATH=/var/vcap/packages/cli/bin:$GOROOT/bin:$PWD/bin:$PATH
export CONFIG=$PWD/integration_config.json

cat > integration_config.json <<EOF
{
  "api_url":       "<%= p('cf.api_url') %>",
  "apps_domain":   "<%= p('cf.apps_domain') %>",
  "admin_user":    "<%= p('cf.admin_username') %>",
  "broker_host":   "<%= p('broker.host') %>",
  "service_name":  "<%= p('service.name') %>",
  "plans": [
  <% plans = p('service.plans')
  plans.each do |plan| %>
    {
      "plan_name": "<%= plan['plan_name'] %>",
      "max_storage_mb": <%= plan['max_storage_mb'] %>
  <% if plan != plans.last %>
    },
  <% else %>
    }
  <% end
  end%>
  ],
  "skip_ssl_validation": <%= p('cf.skip_ssl_validation') %>,
  "max_user_connections": <%= p('mysql.max_user_connections') %>,
EOF

# don't expose passwords
set +x

cat >> integration_config.json <<EOF
  "admin_password":   "<%= p('cf.admin_password') %>"
}
EOF

set -x

bin/test

Remove unused storage_capacity_mb from integration config

Removed from the script which generates it

[#74071960]


Global feature toggles

<%= form_tag admin_global_feature_toggles_path, method: 'PUT' do %>

  <% Ability::FEATURES.each do |feature|
    enabled = @enabled_features.include? feature
    %>

      <%= check_box_tag "features[#{feature}]", "1", enabled %>
      <%= h feature %>

  <% end %>

  <% dead_features.each do |feature| %>

      <%= check_box_tag "features[#{feature}]", "1", true %>
      <%= h feature %>

  <% end %>

  <%= submit_tag 'Save', class: 'btn', :'data-disable-with' => "Saving..." %>
<% end %>

Global feature toggles

<%= form_tag admin_global_feature_toggles_path, method: 'PUT' do %>

  <% Ability::FEATURES.each do |feature|
    enabled = @enabled_features.include? feature
    %>

      <%= check_box_tag "features[#{feature}]", "1", enabled %>
      <%= h feature %>

  <% end %>

  <% dead_features.each do |feature| %>

      <%= check_box_tag "features[#{feature}]", "1", true %>
      <%= h feature %>

  <% end %>

  <%= submit_tag 'Save', class: 'button', :'data-disable-with' => "Saving..." %>
<% end %>

Use new button in admin

Use new button in admin


<!DOCTYPE html>

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

<%= notice %>

<%= alert %>

<ng-view>
</ng-view>
<%= yield %>

<!DOCTYPE html>
<html>
<head>
  <title>Pathway</title>
  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.10/angular-ui-router.js"></script>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>

</head>
<body ng-app="pathwayApp">

<ui-view>
</ui-view>

</body>
</html>

Change app name to pathwayApp and add angularjs and ui router cdn script


#!/bin/sh
# GitLab pre-install script

DEST_DIR=<%= install_dir %>

mkdir -p /var/log/gitlab/reconfigure

skip_migrations_file=/etc/gitlab/skip-auto-migrations

main() {
  if [ -e "${skip_migrations_file}" ] ; then
    # The user wants us to do nothing
    return
  fi

  if [ -d ${DEST_DIR}/service/unicorn ] ; then
    notify "Backing up GitLab SQL database (excluding Git repositories, uploads)"
    if ! ${DEST_DIR}/bin/gitlab-rake gitlab:backup:create SKIP=repositories,uploads,builds,artifacts,lfs ; then
      notify
      notify "Backup failed! If you want to skip this backup, run the following command and"
      notify "try again:"
      notify
      notify "  sudo touch ${skip_migrations_file}"
      notify
      exit 1
    fi
  fi
}

notify() {
  echo "gitlab preinstall: $1"
}

if [ -n "${GITLAB_DEBUG}" ] ; then
  notify "debug: arguments: $@"
fi

case "$1" in
  2)
    # Looks like an RPM upgrade
    main
    ;;
  upgrade)
    # Looks like a DEB upgrade
    main
    ;;
  *)
    # This is not an upgrade, nothing to do.
    ;;
esac

#!/bin/sh
# GitLab pre-install script

DEST_DIR=<%= install_dir %>

mkdir -p /var/log/gitlab/reconfigure

skip_migrations_file=/etc/gitlab/skip-auto-migrations

main() {
  if [ -e "${skip_migrations_file}" ] ; then
    # The user wants us to do nothing
    return
  fi

  if [ -d ${DEST_DIR}/service/unicorn ] ; then
    notify "Automatically backing up only the GitLab SQL database (excluding everything else!)"
    if ! ${DEST_DIR}/bin/gitlab-rake gitlab:backup:create SKIP=repositories,uploads,builds,artifacts,lfs ; then
      notify
      notify "Backup failed! If you want to skip this backup, run the following command and"
      notify "try again:"
      notify
      notify "  sudo touch ${skip_migrations_file}"
      notify
      exit 1
    fi
  fi
}

notify() {
  echo "gitlab preinstall: $1"
}

if [ -n "${GITLAB_DEBUG}" ] ; then
  notify "debug: arguments: $@"
fi

case "$1" in
  2)
    # Looks like an RPM upgrade
    main
    ;;
  upgrade)
    # Looks like a DEB upgrade
    main
    ;;
  *)
    # This is not an upgrade, nothing to do.
    ;;
esac

Update auto backup message in the pre install script.


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

<VirtualHost *:80>
	ServerName piwik.openstreetmap.org
	ServerAlias piwik.osm.org
	ServerAdmin webmaster@openstreetmap.org

	CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
	ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log

	Options -Indexes

	DocumentRoot /srv/piwik.openstreetmap.org
	RedirectPermanent /index.php https://piwik.openstreetmap.org/index.php
</VirtualHost>

<VirtualHost *:443>
	ServerName piwik.openstreetmap.org
	ServerAdmin webmaster@openstreetmap.org

	SSLEngine on
	SSLProtocol all -SSLv2
	SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
	SSLCertificateFile /etc/ssl/certs/openstreetmap.pem
	SSLCertificateKeyFile /etc/ssl/private/openstreetmap.key

	CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
	ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log

	Options -Indexes

	DocumentRoot /srv/piwik.openstreetmap.org
</VirtualHost>

<Directory /srv/piwik.openstreetmap.org>
	Require all granted
</Directory>

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

<VirtualHost *:80>
	ServerName piwik.openstreetmap.org
	ServerAlias piwik.osm.org
	ServerAdmin webmaster@openstreetmap.org

	CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
	ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log

	Options -Indexes

	DocumentRoot /srv/piwik.openstreetmap.org
	RedirectPermanent /index.php https://piwik.openstreetmap.org/index.php
</VirtualHost>

<VirtualHost *:443>
	ServerName piwik.openstreetmap.org
	ServerAdmin webmaster@openstreetmap.org

	SSLEngine on

	CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
	ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log

	Options -Indexes

	DocumentRoot /srv/piwik.openstreetmap.org
</VirtualHost>

<Directory /srv/piwik.openstreetmap.org>
	Require all granted
</Directory>

Make piwik use default SSL configuration


/* 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;
  }
}

/* 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
@javax.transaction.Transactional( javax.transaction.Transactional.TxType.REQUIRED )
<% 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;
  }
}

Apply transaction attribtue when a cdi bean


<%= @question.title %>

 <%= link_to("Add new Answer", new_question_answer_path(@question)) %>
 Question Comment form <%= render partial: "form"%>
<% @question.comments.each do |comment| %>
  <%= comment.content %>

<% end %>

<% if @question.best %>

Best Answer

<%= @question.best.content %>

<% end %>
<% @question.answers.each do |answer| %>
  Answer:<%= answer.content %>

      Answer Comment form <%= render partial: "answers/form", locals: {answer: answer}%>
  <% answer.comments.each do |comment| %>
    <%= comment.content %>
  <% end %>

<% end %>

<%= @question.title %>

 <%= link_to("Add new Answer", new_question_answer_path(@question)) %>

 Question Comment form <%= render partial: "form"%>
<% @question.comments.each do |comment| %>
  <%= comment.content %>

<% end %>

<% if @question.best %>

Best Answer

<%= link_to("Up Vote", "/") %>

<%= @question.best.content %>

<% end %>
<% @question.answers.each do |answer| %>
  Answer:<%= answer.content %>

  Votes: <%= answer.votes.count %>
  <%= link_to("Up Vote", '/', class: "up-vote-answer", data: { answer_id: answer.id, question_id: @question.id, votable_type: "Answer" }) %>
      Answer Comment form <%= render partial: "answers/form", locals: {answer: answer}%>
  <% answer.comments.each do |comment| %>
    <%= comment.content %>
  <% end %>

<% end %>

Add upvote links to answers

Add upvote links to answers


  <button type="button" id="close_bootstrap_modal_button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

<%= title %>

  <%= yield :modal_body %>

  <%= yield :modal_footer %>

<% body ||= nil %>
<% footer ||= nil %>

  <button type="button" id="close_bootstrap_modal_button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

<%= title %>

  <%= body || yield(:modal_body) %>

  <%= footer || yield(:modal_footer) %>

Make modal layout work without content for but locals.


<% form_for [:admin, @page] do |f| %>
  <%= f.error_messages  %>
  <div class="field">
    <%= f.label :title %>
    <%= f.text_field :title, :class => "larger", :style => 'width: 944px' %>
  </div>
  <%= render :partial => "form_page_parts", :locals => {:f => f} %>

  <%= render :partial => "form_advanced_options", :locals => {:f => f} %>

  <%= render :partial => "/shared/admin/form_actions", :locals => {:f => f, :continue_editing => true} %>

  <%= render :partial => "form_new_page_parts", :locals => {:f => f} if RefinerySetting.find_or_set(:new_page_parts, false) %>
<% end %>

<% content_for :head do %>
  <script type='text/javascript'>
    $(document).ready(function(){
      var page_parts = <%= RefinerySetting.find_or_set(:new_page_parts, false) == true ? 'true' : 'false' %>;
      var new_part_url = "<%= new_admin_page_part_url(:only_path => true) %>";
      var del_part_url = "<%= admin_page_parts_url(:only_path => true) %>";
      page_options.init(page_parts, new_part_url, del_part_url);
    });
  </script>
<% end %>

<% url_opts = action_name == 'edit' ? {:url => admin_page_path(@page.id)} : {} %>
<% form_for [:admin, @page], url_opts do |f| %>
  <%= f.error_messages  %>
  <div class="field">
    <%= f.label :title %>
    <%= f.text_field :title, :class => "larger", :style => 'width: 944px' %>
  </div>
  <%= render :partial => "form_page_parts", :locals => {:f => f} %>

  <%= render :partial => "form_advanced_options", :locals => {:f => f} %>

  <%= render :partial => "/shared/admin/form_actions", :locals => {:f => f, :continue_editing => true} %>

  <%= render :partial => "form_new_page_parts", :locals => {:f => f} if RefinerySetting.find_or_set(:new_page_parts, false) %>
<% end %>

<% content_for :head do %>
  <script type='text/javascript'>
    $(document).ready(function(){
      var page_parts = <%= RefinerySetting.find_or_set(:new_page_parts, false) == true ? 'true' : 'false' %>;
      var new_part_url = "<%= new_admin_page_part_url(:only_path => true) %>";
      var del_part_url = "<%= admin_page_parts_url(:only_path => true) %>";
      page_options.init(page_parts, new_part_url, del_part_url);
    });
  </script>
<% end %>

Allow page forms to work

Allow page forms to work


<% text_for :title do %>
  Your weekly childcare costs are <%= format_money(weekly_cost) %>.
<% end %>

<% govspeak_for :body do %>
  Use this figure on your claim form.
<% end %>

<% text_for :title do %>
  Your weekly childcare costs are <%= format_money(calculator.weekly_cost) %>.
<% end %>

<% govspeak_for :body do %>
  Use this figure on your claim form.
<% end %>

Fix issue for weekly costs result page show error

This is due an missing reference to the calculator from previous work
deprecating old flow syntax.


  describe "<%= @resource.uri_partial %>" do
    let(:route) { "<%= @resource.uri_partial %>" }
    <% @resource.methods.each do |method| %>
    describe "<%= method.method.upcase %>" do
      let(:response_body) do<% body = method.responses.first.bodies.first.example.split("\n") %>
        <%= body.join("\n        ").gsub(/\:/, " =>") %>.to_json
      end

      it "<%= method.description.downcase %>" do
        <%= method.method %> route
        expect(last_response.body).to eql response_body
      end

      it "returns status <%= method.responses.first.code %>" do
        <%= method.method %> route
        expect(last_response.status).to eql <%= method.responses.first.code %>
      end
    end<% end %>
  end

  describe "<%= @resource.to_s %>" do
    let(:route) { "<%= @resource.to_s %>" }
    <% @resource.http_methods.each do |method| %>
    describe "<%= method.method.upcase %>" do
      let(:response_body) do<% body = method.responses.first.bodies.first.example.split("\n") %>
        <%= body.join("\n        ").gsub(/\:/, " =>") %>.to_json
      end

      it "<%= method.description.downcase %>" do
        <%= method.method %> route
        expect(last_response.body).to eql response_body
      end

      it "returns status <%= method.responses.first.status_code %>" do
        <%= method.method %> route
        expect(last_response.status).to eql <%= method.responses.first.status_code %>
      end
    end<% end %>
  end

Improve use of RamlModels classes in template


<!DOCTYPE html>

  <title>Forest Guardian</title>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

  <%= javascript_include_tag  'fg_mobile' %>
  <%= stylesheet_link_tag 'fg_mobile', media: 'all' %>

Move layer creation after ready event.

Move layer creation after ready event.


    <%= image_tag(firesize(product.poster_image.url, '96x96', 'g_center'), class: 'app-icon', width: '100%', alt: product.name) %>

<%= product.name %>

<%= product.pitch %>

        <% product.followers.limit(6).each do |user| %>

            <%= avatar_tag(user, 18) %>

        <% end %>

          + <%= product.followers.count %>

        Started <%= product.created_at.strftime("%B %d, %Y") %>

    <%= app_icon(product, size: 48*2) %>

<%= product.name %>

<%= product.pitch %>

        <% product.followers.limit(6).each do |user| %>

            <%= avatar_tag(user, 18) %>

        <% end %>

          + <%= product.followers.count %>

        Started <%= product.created_at.strftime("%B %d, %Y") %>

Use the app icon helper in greelit chip

Use the app icon helper in greelit chip


	   <form method="POST" action="/login">

Username:

<textarea name="username" rows="1" cols="50"placeholder="Enter Username"></textarea>

Password:

<input type="password" name="password" rows="1" cols="50" placeholder="Enter Password"></input>

<input type="submit" value="Login">

  	 </form>

    <form method="GET" action="/sign_up/new">

<input type="submit" value="Create a new account">

    </form>

    <form method="POST" action="#">

<input type="submit" value="Play as a guest">

    </form>

	   <form method="POST" action="/login">

Username:

<textarea name="username" rows="1" cols="50"placeholder="Enter Username"></textarea>

Password:

<input type="password" name="password" rows="1" cols="50" placeholder="Enter Password"></input>

<input type="submit" value="Login">

  	 </form>

    <form method="GET" action="/sign_up/new">

<input type="submit" value="Create a new account">

    </form>

    <form method="GET" action="/guest/deck_view">

<input type="submit" value="Play as a guest">

    </form>

Add get fix for guest

Add get fix for guest


       <% link_to '/matcha-nerdz' do %>
         <%= image_tag 'Between_Screens_Logo_Cube_Up.svg', alt: 'Logo cube' %>
       <% end %>

<%= link_to 'Code', '/matcha-nerdz' %>

<%= link_to 'Design', '/matcha-nerdz' %>

<%= link_to 'About', '/pages/about.html' %>

       <% link_to '/matcha-nerdz' do %>
         <%= image_tag 'Between_Screens_Logo_Cube_Up.svg', alt: 'Logo cube' %>
       <% end %>

<%= link_to 'about', '/pages/about.html' %>

<%= link_to 'design', '/matcha-nerdz' %>

<%= link_to 'code', '/matcha-nerdz' %>

Change order of nav links

Change order of nav links


Sign in

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

    <%= f.label :email %>

    <%= f.email_field :email, autofocus: true %>

    <%= f.label :password %>

    <%= f.password_field :password, autocomplete: "off" %>

  <% if devise_mapping.rememberable? -%>

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

  <% end -%>

    <%= f.submit "Log in" %>

<% end %>

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

Sign in

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

    <%= f.label :email %>

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

    <%= f.label :password %>

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

  <% if devise_mapping.rememberable? -%>

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

  <% end -%>

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

<% end %>

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

Add bootstrap styling for sign in page

Add bootstrap styling for sign in page


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

<% content_for :navbar_items do %>
  <% if current_user.resource_manager? %>
    <%= active_link_to 'Manage guiders', users_path, wrap_tag: :li %>
    <%= active_link_to 'Manage groups', groups_path, wrap_tag: :li %>
  <% end %>
<% end %>

<% content_for :body_end do %>
  <script>
  var loadedModules = [];
  $(document).on('turbolinks:load', function() {
    var modules = $('[data-module]');

    if (loadedModules.length) {
      return;
    }

    modules.each(function() {
      var $el = $(this),
      type = $el.data('module'),
      config = $el.data('config');

      loadedModules.push(new PWTAP[type]($el, config));
    });
  });
  </script>
<% end %>

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

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

<% content_for :navbar_items do %>
  <% if current_user.resource_manager? %>
    <%= active_link_to 'Manage guiders', users_path, wrap_tag: :li %>
  <% end %>
<% end %>

<% content_for :body_end do %>
  <script>
  var loadedModules = [];
  $(document).on('turbolinks:load', function() {
    var modules = $('[data-module]');

    if (loadedModules.length) {
      return;
    }

    modules.each(function() {
      var $el = $(this),
      type = $el.data('module'),
      config = $el.data('config');

      loadedModules.push(new PWTAP[type]($el, config));
    });
  });
  </script>
<% end %>

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

Remove redundant link to manage groups

Remove redundant link to manage groups

This is not necessary now we manage groups and assignments via the
chosen guiders.


<% content_for :content do %>
  Skip to main content
  <%= render 'shared/opt_out_bar' %>
  <%= render 'shared/header' %>

    <%= yield %>

  <%= render 'shared/footer' %>
<% end %>

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

Add tabindex to the skip to main content link


<!DOCTYPE html>

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

            <% if user_signed_in? %>
              <%= link_to "#{current_user.username} abmelden", destroy_user_session_path, method: :delete %>
            <% else %>
              <%= link_to 'Anmelden', new_user_session_path %>
            <% end %>

        <%= bootstrap_flash %>

    <%= yield %>

<!DOCTYPE html>

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

        <% if user_signed_in? %>

              <%= link_to 'Faxe', faxes_path %>

              <%= link_to 'Arztbriefe', reports_path %>

              <%= link_to "#{current_user.username} abmelden", destroy_user_session_path, method: :delete %>

        <% else %>

              <%= link_to 'Anmelden', new_user_session_path %>

        <% end %>

        <%= bootstrap_flash %>

    <%= yield %>

Add navigation links for signed in users.


Help pages

<%= link_to_unless_current "Introduction", help_about_path %>

<%= link_to_unless_current "Making requests", help_requesting_path %>

<%= link_to_unless_current "Your privacy", help_privacy_path %>

<%= link_to_unless_current "FOI officers", help_officers_path %>

<%= link_to_unless_current "About the software", help_alaveteli_path %>

<%= link_to_unless_current "Downloads", "/help/downloads" %>

<%= link_to_unless_current "Credits", help_credits_path %>

<%= link_to_unless_current "Programmers API", help_api_path %>

<%= link_to_unless_current "Advanced search", advanced_search_path %>

Contact us

If your question isn't answered here, or you just wanted to let us know
  something about the site, <a href="<%= help_contact_path %>">contact us.

Help pages

<%= link_to_unless_current "Introduction", help_about_path %>

<%= link_to_unless_current "Making requests", help_requesting_path %>

<%= link_to_unless_current "Your privacy", help_privacy_path %>

<%= link_to_unless_current "FOI officers", help_officers_path %>

<%= link_to_unless_current "About the software", help_alaveteli_path %>

<%= link_to_unless_current "Downloads", "/help/downloads" %>

Contact us

If your question isn't answered here, or you just wanted to let us know
  something about the site, <a href="<%= help_contact_path %>">contact us.

Remove pages that haven't been updated for Uganda.


<!DOCTYPE html>

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

  © 2016 Developed by David Kim

<!DOCTYPE html>

  <title>Whats Good</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>

  © 2016 Developed by David Kim

Set viewport to device width

Set viewport to device width


<!-- _lights_list.erb-->
<div class="row button-actions-container" style="padding-left: 10px; padding-right: 10px;">
  <%= label_tag "Select all", "Select all", class: "button bar-button", id: "select_all_btn" %>
  <%= label_tag "Toggle selection", "Toggle selection", class: "button bar-button", id: "toggle_all_btn" %>
  <%= label_tag "Deselect all", "Deselect all", class: "button bar-button", id: "deselect_all_btn" %>
</div>
<% [4, 7, 5, 2, 6, 3].each do |i| %>
    <%= render partial: 'bulb_controls', locals: {light: find_light(i)} %>
<% end %>

<!-- _lights_list.erb-->
<div class="button-actions-container">
  <%= label_tag "Select all", "Select all", class: "button bar-button", id: "select_all_btn" %>
  <%= label_tag "Toggle selection", "Toggle selection", class: "button bar-button", id: "toggle_all_btn" %>
  <%= label_tag "Deselect all", "Deselect all", class: "button bar-button", id: "deselect_all_btn" %>
</div>
<% [4, 7, 5, 2, 6, 3].each do |i| %>
    <%= render partial: 'bulb_controls', locals: {light: find_light(i)} %>
<% end %>

Fix padding of light list buttons

Fix padding of light list buttons


<% if Translation.find_by_key('site.twitter.query') %>
  <% content_for :side do %>
    <% content_for :head do %>

    <% end %>

Latest Tweets

  <% end %>
<% end %>

<% twitter_username = Translation.find_by_key('site.twitter.username').try(:value) %>
<% twitter_query    = Translation.find_by_key('site.twitter.query').try(:value) %>

<% if twitter_username.present? || twitter_query.present? %>

  <% content_for :head do %>

  <% end %>

  <% content_for :side do %>

Latest Tweets

  <% end %>

<% end %>

Allow twitter name to be used with jquery.tweet


<div class="alert <%= colour == 'bg-negative' ? 'text-white' : 'text-dark' %> <%= colour %>" role="alert">

      <%= fa_icon(icon + '') %>

<%= content %>

    <% if buttons %>
      <% buttons.each do |title, path| %>

          <%= link_to title, path, class: 'btn btn-light btn rounded-pill font-weight-bold', role: 'button' %>

      <% end %>
    <% end %>

<div class="row alert <%= colour == 'bg-negative' ? 'text-white' : 'text-dark' %> <%= colour %>" role="alert">

    <%= fa_icon(icon) %>

  <% if buttons %>
    <div class='<%= "col-lg-#{11 - buttons.size * 2}" %>'>

<%= content %>

    <% buttons.each do |title, path| %>

        <%= link_to title, path, class: "btn btn-light btn rounded-pill font-weight-bold" %>

    <% end %>
  <% else %>

<%= content %>

  <% end %>

Update to sort out buttons a bit better

Update to sort out buttons a bit better


# Generated by Chef
# host definitions

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

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

<% end -%>

# Generated by Chef
# host definitions

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

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

<% end -%>

Add the nodes to the host groups for their chef environment


<% title "#{@project} published releases on #{@project.platform_name} - Libraries" %>
<% content_for :atom, auto_discovery_link_tag(:atom, project_versions_url({format: "atom"}.merge(@project.to_param))) %>

  <%= link_to @project, project_path(@project.to_param) %> Releases

<% if @versions.any? %>

    <% @versions.each do |version| %>

      <%= link_to version, version_path(version.to_param) %>
      <% if version.published_at.present? %>
      - <%= version.published_at.to_s(:long) %>
      <% end %>

    <% end %>

  <%= will_paginate @versions, page_links: false %>
  <%= link_to project_versions_path(@project.to_param.merge(format: :atom)) do %>
    <%= fa_icon "rss-square" %>
    Subscribe to an RSS feed of <%= @project %> releases
  <% end %>
<% else %>

    No releases found, go back to <%= link_to @project, project_path(@project.to_param) %>.

<% end %>

Break version rss feed link onto a new line


#!/bin/bash

<% if_p('env.http_proxy') do |http_proxy| %>
export HTTP_PROXY=<%= http_proxy %>
export http_proxy=<%= http_proxy %>
<% end %>

<% if_p('env.https_proxy') do |https_proxy| %>
export HTTPS_PROXY=<%= https_proxy %>
export https_proxy=<%= https_proxy %>
<% end %>

<% if_p('env.no_proxy') do |no_proxy| %>
export NO_PROXY=<%= no_proxy %>
export no_proxy=<%= no_proxy %>
<% end %>

read INPUT

BOSH_PACKAGES_DIR=${BOSH_PACKAGES_DIR:-/var/vcap/packages}
BOSH_JOBS_DIR=${BOSH_JOBS_DIR:-/var/vcap/jobs}

export PATH=$BOSH_PACKAGES_DIR/ruby_vcloud_cpi/bin:$BOSH_PACKAGES_DIR/bosh_vcloud_cpi_mkisofs/bin:$PATH

export BUNDLE_GEMFILE=$BOSH_PACKAGES_DIR/bosh_vcloud_cpi/Gemfile

bundle_cmd="$BOSH_PACKAGES_DIR/ruby_vcloud_cpi/bin/bundle"

echo $INPUT | $bundle_cmd exec $BOSH_PACKAGES_DIR/bosh_vcloud_cpi/bin/vcloud_cpi \
$BOSH_JOBS_DIR/vcloud_cpi/config/cpi.json

exit 0

#!/bin/bash

<% if_p('env.http_proxy') do |http_proxy| %>
export HTTP_PROXY=<%= http_proxy %>
export http_proxy=<%= http_proxy %>
<% end %>

<% if_p('env.https_proxy') do |https_proxy| %>
export HTTPS_PROXY=<%= https_proxy %>
export https_proxy=<%= https_proxy %>
<% end %>

<% if_p('env.no_proxy') do |no_proxy| %>
export NO_PROXY=<%= no_proxy %>
export no_proxy=<%= no_proxy %>
<% end %>

read INPUT

BOSH_PACKAGES_DIR=${BOSH_PACKAGES_DIR:-/var/vcap/packages}
BOSH_JOBS_DIR=${BOSH_JOBS_DIR:-/var/vcap/jobs}

export PATH=$BOSH_PACKAGES_DIR/ruby_vcloud_cpi/bin:$BOSH_PACKAGES_DIR/bosh_vcloud_cpi_mkisofs/bin:$PATH

export BUNDLE_GEMFILE=$BOSH_PACKAGES_DIR/bosh_vcloud_cpi/Gemfile

bundle_cmd="$BOSH_PACKAGES_DIR/ruby_vcloud_cpi/bin/bundle"

exec $bundle_cmd exec $BOSH_PACKAGES_DIR/bosh_vcloud_cpi/bin/vcloud_cpi \
  $BOSH_JOBS_DIR/vcloud_cpi/config/cpi.json < <(echo $INPUT)

Use `exec` to avoid second bash process

Use `exec` to avoid second bash process

[#119609491](https://www.pivotaltracker.com/story/show/119609491)

Signed-off-by: Felix Riegger <9c2aa7530239a330bbac6ac4f56e0946781dfd29@sap.com>


<% room_offer = notification.activity.trackable %>
<% graetzl = Graetzl.memoized(post.graetzl_id) %>

<%= content_tag(:li, id: dom_id(notification), data: { behavior: 'notification-item' }, class: 'notification-item') do %>
  <%= link_to room_offer do %>
    <%= attachment_image_tag room_offer, :avatar, :fill, 40, 40, fallback: 'avatar/user/40x40.png', class: 'img-round' %>

vor <%= time_ago_in_words(notification.activity.created_at) %>

      <%= notification.activity.owner.username %> hat einen neuen Raum im Grätzl <%= graetzl.name %> erstellt

  <% end %>
<% end %>

<% room_offer = notification.activity.trackable %>
<% graetzl = Graetzl.memoized(room_offer.graetzl_id) %>

<%= content_tag(:li, id: dom_id(notification), data: { behavior: 'notification-item' }, class: 'notification-item') do %>
  <%= link_to room_offer do %>
    <%= attachment_image_tag room_offer, :avatar, :fill, 40, 40, fallback: 'avatar/user/40x40.png', class: 'img-round' %>

vor <%= time_ago_in_words(notification.activity.created_at) %>

      <%= notification.activity.owner.username %> hat einen neuen Raum im Grätzl <%= graetzl.name %> erstellt

  <% end %>
<% end %>

Fix new room offer notification

Fix new room offer notification


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

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

Change some visual style in generated functions


Error report from <%= @request.host %> <%= Time.now %>

Message: <%= @exception.message %>
Location: <%= @env['REQUEST_URI'] %>
Controller: <%= @params.delete('controller') %>
Action: <%= @params.delete('action') %>
Query: <%= @env['QUERY_STRING'] %>
Method: <%= @env['REQUEST_METHOD'] %>
SSL: <%= @request.ssl? ? "true" : "false"  %>
Agent: <%= @env['HTTP_USER_AGENT']  %>

= Backtrace =
<%= @trace.to_a.join("\n") -%>

= Params =
<% for key, val in @params -%>
  <%= key %>
  <%= val.to_yaml.to_a.join("\n") %>
<% end if @params -%>

Error report from <%= @request.host %> <%= Time.now %>

Message: <%= @exception.message %>
Location: <%= @env['REQUEST_URI'] %>
Controller: <%= @params.delete('controller') %>
Action: <%= @params.delete('action') %>
Query: <%= @env['QUERY_STRING'] %>
Method: <%= @env['REQUEST_METHOD'] %>
SSL: <%= @request.ssl? ? "true" : "false"  %>
Agent: <%= @env['HTTP_USER_AGENT']  %>

= Backtrace =
<%= @trace.to_a.join("\n") -%>

= Params =
<% for key, val in @params -%>
  <%= key %>
  <%= val %>
<% end if @params -%>

Make error mailer work with Ruby 1.9

Make error mailer work with Ruby 1.9


<% if @number_of_events == 0 %>

          Não há eventos no momento. <%= link_to "Criar evento.", new_event_path, class: "link link-green" %>

<% end %>

<% if @number_of_events == 0 %>

          Não há eventos no momento em <%= @city.name %>. <%= link_to "Criar evento.", new_event_path, class: "link link-green" %>

<% end %>

Adjust on alert which is visible when do not exist events


#!/bin/sh

<% target = (dockerfile.split("/").last.split("-").last) %>
<% if target == "elasticsearch" %>

set -e

if [ -z ${FLUENT_ELASTICSEARCH_USER} ] ; then
   sed -i  '/FLUENT_ELASTICSEARCH_USER/d' /fluentd/etc/${FLUENTD_CONF}
fi

if [ -z ${FLUENT_ELASTICSEARCH_PASSWORD} ] ; then
   sed -i  '/FLUENT_ELASTICSEARCH_PASSWORD/d' /fluentd/etc/${FLUENTD_CONF}
fi
<% end %>

exec fluentd -c /fluentd/etc/${FLUENTD_CONF} -p /fluentd/plugins --gemfile /fluentd/Gemfile ${FLUENTD_OPT}

#!/bin/sh

<% target = (dockerfile.split("/").last.split("-").last) %>
<% if target == "elasticsearch" %>

set -e

if [ -z ${FLUENT_ELASTICSEARCH_SED_DISABLE} ] ; then
  if [ -z ${FLUENT_ELASTICSEARCH_USER} ] ; then
    sed -i  '/FLUENT_ELASTICSEARCH_USER/d' /fluentd/etc/${FLUENTD_CONF}
  fi

  if [ -z ${FLUENT_ELASTICSEARCH_PASSWORD} ] ; then
    sed -i  '/FLUENT_ELASTICSEARCH_PASSWORD/d' /fluentd/etc/${FLUENTD_CONF}
  fi
fi
<% end %>

exec fluentd -c /fluentd/etc/${FLUENTD_CONF} -p /fluentd/plugins --gemfile /fluentd/Gemfile ${FLUENTD_OPT}

Add FLUENT_ELASTICSEARCH_SED_DISABLE envvar to disable sed execution

Signed-off-by: Masahiro Nakagawa <0f51a8c574c157b13d3ee3d2579e24fcb2f5df0d@gmail.com>


#!/bin/zsh

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

while read oldrev newrev refname
do
  if [[ "$refname" = "refs/heads/master" ]]
  then
    for rev in $(git rev-list ${newrev} ^${oldrev})
    do
      sudo -u trac /usr/bin/trac-admin /var/lib/trac changeset added "<%= @repository %>" "${rev}"
    done
  fi
done

#!/bin/zsh

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

while read oldrev newrev refname
do
  if [[ "$refname" = "refs/heads/master" ]]
  then
    for rev in $(git rev-list ${oldrev}..${newrev})
    do
      sudo -u trac /usr/bin/trac-admin /var/lib/trac changeset added "<%= @repository %>" "${rev}"
    done
  fi
done

Fix git hook to avoid the shell misinterpreting ^revision as a glob


      Notificações
      Ajuda
      Sugestões

        Franco
        (fmolina)

Meus dados

Faturas

Planos

Sair

  <%- unless current_page.data.show_topbar_title %>

<%= link_to 'Revenda Email Marketing', 'base' %>

  <% end %>

Create a little partial for topbar

Create a little partial for topbar


<% if !@posts.empty? %>
	<% @posts.each do |post| %>

<a href="/posts/<%=post.id%>"><%= post.title %>

<%= post.content %>

<%= post.requests_for_responses %>

<%= post.additional_resources %>

				<% if current_user %>

					<a href="/posts/<%=post.id%>/responses/new">Write Response
				<% elsif current_user == post.writer %>
					<a href="/posts/<%post.id%>/edit">Edit Post
				<% end %>

	<% end %>
<% else %>

There are currently no published posts for this topic.

<%end%>

<% if !@posts.empty? %>
	<% @posts.each do |post| %>

<a href="/posts/<%=post.id%>"><%= post.title %>

<%= post.content %>

<%= post.requests_for_responses %>

<%= post.additional_resources %>

					<% if post.responses %>
					  <% post.responses.each do |response| %>
							<% if response.approved || current_user == post.writer %>

<a href="/posts/<%=post.id%>/responses/<%=response.id%>"><%= response.title %>

<%= response.content %>

<%=response.writer.username %>

<%=response.created_at %>

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

				<% if current_user && current_user != post.writer %>

					<a href="/posts/<%=post.id%>/responses/new">Write Response
				<% elsif current_user == post.writer %>
					<a href="/posts/<%post.id%>/edit">Edit Post
				<% end %>

	<% end %>
<% else %>

There are currently no published posts for this topic.

<% end %>

Add only approved responses to view for non-logged in users


  <%= link_to t(".sign_up"), new_registration_path(resource_name) %>

  <%= link_to t("devise.shared.links.forgot_your_password"), '#', id: 'modal-new-password-link', data: {toggle: 'modal', target: '#new-password-modal'} %>

  <%= link_to t('devise.shared.links.didn_t_receive_confirmation_instructions'), '#', id: 'modal-confirmation-link', data: {toggle: 'modal', target: '#confirmation-modal'} %>

  <%= link_to t(".sign_up"), new_registration_path(resource_name) %>

  <%= link_to t("devise.shared.links.forgot_your_password"), new_password_path(resource_name) %>

  <%= link_to t('devise.shared.links.didn_t_receive_confirmation_instructions'), new_confirmation_path(resource_name) %>

Fix bug in shared modal links.

Fix bug in shared modal links.


<%= t 'event.title' %>

    <%= l Date.today, :format => :long %>

    <% bow = Time.now.beginning_of_week %>

    <% 28.times do |i| %>
      <% day = bow + i.days %>

      <%= raw cycle("
", *6.times.map{""}, :name => "tr_start") %>
      <td<%= " class=\"fc-state-highlight\"".html_safe if day.today? %>>
        <%= link_to day.day, polymorphic_path([profile_or_current_subject, Event.new], :at => day.to_i) %>

      <%= raw cycle(*6.times.map{""}, '
', :name => "tr_end") %>
    <% end %>

<%= t 'event.title' %>

    <%= l Date.today, :format => :long %>

    <% bow = Time.now.beginning_of_week %>

    <% 28.times do |i| %>
      <% day = bow + i.days %>

      <%= raw cycle(*(Array.wrap("
") + 6.times.map{""}) + Array.wrap(:name => "tr_start")) %>
      <td<%= " class=\"fc-state-highlight\"".html_safe if day.today? %>>
        <%= link_to day.day, polymorphic_path([profile_or_current_subject, Event.new], :at => day.to_i) %>

      <%= raw cycle(*(6.times.map{""} + Array.wrap('
') + Array.wrap(:name => "tr_end"))) %>
    <% end %>

Fix view for ruby 1.8

Fix view for ruby 1.8


<canvas id="scribing-canvas"
				style="border:1px solid black;"
				width=700
				height=500
				data-qid="<%= qid %>"
				<% if question.document  %>
					data-url="<%= question.document.file.to_s %>"
				<% else %>
					data-url=""
				<% end %>
				></canvas>

<%= hidden_field('answers', qid, value: answer.content) %>

	<a class="btn" title="Enter Scribing Mode" id="scribing-mode-<%= qid %>">

	<a class="btn btn-danger" title="Delete Selection" id="scribing-delete-<%= qid %>">

<canvas class="scribing-canvas"
        id="scribing-canvas-<%= qid %>"
				style="border:1px solid black;"
				width=700
				height=500
				data-qid="<%= qid %>"
				<% if question.document  %>
					data-url="<%= question.document.file.to_s %>"
				<% else %>
					data-url=""
				<% end %>
				></canvas>

<%= hidden_field('answers', qid, value: answer.content) %>

Update view to enable multi canvas per page


      <%= t('dashboard.file_list.edit.name') %>
      <%= t('dashboard.file_list.edit.mime_type') %>
      <%= t('dashboard.file_list.edit.size') %>
      <%= t('dashboard.file_list.edit.actions') %>

    <% file_version_memberships.each do |membership| %>
      <tr id="<%= dom_id membership %>" data-controller="filename-editor">

          <%= membership.title %>
          <%# render 'inline_filename_editor', membership: membership %>

        <%= membership.mime_type %>
        <%= number_to_human_size membership.size %>

          <%# link_to t('dashboard.file_list.edit.rename'),
                      edit_dashboard_file_path(membership),
                      data: { action: 'click->filename-editor#toggleForm' } %>
          <%= link_to t('dashboard.file_list.edit.delete'),
                      dashboard_file_path(membership),
                      method: :delete,
                      class: 'remove',
                      data: { confirm: 'Are you sure?' } %>

    <% end %>

      <%= t('dashboard.file_list.edit.name') %>
      <%= t('dashboard.file_list.edit.mime_type') %>
      <%= t('dashboard.file_list.edit.size') %>
      <%= t('dashboard.file_list.edit.actions') %>

    <% file_version_memberships.each do |membership| %>
      <tr id="<%= dom_id membership %>">

          <%= membership.title %>

        <%= membership.mime_type %>
        <%= number_to_human_size membership.size %>

          <%= link_to t('dashboard.file_list.edit.delete'),
                      dashboard_file_path(membership),
                      method: :delete,
                      class: 'remove',
                      data: { confirm: 'Are you sure?' } %>

    <% end %>

Remove references to file editor controller

Previously, filename_editor_controller.js enable inline editing of
filenames, but that feature has been disabled for now. However, the
stimulus controller was still being loaded in the form, which was
causing errors in the console. Although this didn't affect the function
of the form, it's better to not have the errors popping up.

References to the js controller have been removed, but the controller is
still there in case we want to reenable these features in the future.


Items In Stock

<%= link_to "CATEGORIES", categories_path %>

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

      <%= link_to item.name, item_path(item) %>
      <% if !item.image.blank? %>
          <img src="<%= item.image %>" height="100" width="100">
        <% else %>

        <%end%>

      <% if current_user %>
        <%= link_to "Add To Cart", @item, method: :add_to_cart %>
      <% end %>

  <% end %>

Items In Stock

<%= link_to "CATEGORIES", categories_path %>

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

      <%= link_to item.name, item_path(item) %>
      <% if !item.image.blank? %>
          <img src="<%= item.image %>" height="100" width="100">
        <% else %>

        <%end%>

  <% end %>

Remove "Add To Cart button from index, will move to item show page"


  <div class="medium-9 columns" style="background: #fff <%# for unauthenticated form %>">

    <%= render 'form' %>

Fix unauthenticated ticket form styling

Fix unauthenticated ticket form styling


Choose a new passphrase

<%= form_for(resource, :as => resource_name, :url => [resource_name, :password_expired], :html => { :method => :put }) do |f| %>
  <%= devise_error_messages! %>

<%= f.label :current_password, "Current passphrase" %>
  <%= f.password_field :current_password %>

<%= f.label :password, "New passphrase" %>
  <%= f.password_field :password %>

<%= f.label :password_confirmation, "Confirm new passphrase" %>
  <%= f.password_field :password_confirmation %>

<%= f.submit "Change my passphrase" %>

<% end %>

Add 'passphrase expired' template so it can look like the rest of the app


      <%= t('suppliers_plugin.views.product.index.filter') %>

    <% form_remote_tag :update => 'search-results',:loading => "distribution.setLoading('filter');", :loaded => "distribution.unsetLoading('filter');", :url => {:action => :index}, :html => {:id => 'filter-form'}, :method => :get do %>

        <% if type == :supplier %>
          <%= render :partial => 'suppliers_plugin_myprofile/filter_fields' %>
        <% elsif type == :product %>
          <%= render :partial => 'suppliers_plugin_product/filter_fields' %>
        <% end %>

        <%= submit_tag t('suppliers_plugin.views.product.index.filter_it'), :onclick => "var field = this; function name_form_submit() {field.form.onsubmit();}; setTimeout(name_form_submit, 300);" %>

  <% end %>

Create shared partial for filter

[suppliers] Create shared partial for filter


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

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

Remove domain for Google Analytics settings.


         <%= content_for(:sidebar) %>

      <%= yield %>

      <%= yield %>

         <%= content_for(:sidebar) %>

Switch sidebar with main content

Switch sidebar with main content

For accessibility reasons, it's preferred to have a screen reader
present the main content first, before it presents any sidebar content.
Because of layout reasons, this content was appearing *after* the
sidebar. Using Bootstrap's reordering classes, we can present the main
content fist in the page structure, but have it display second, after
the sidebar.


<!DOCTYPE html>

    <title><%= yield :title %> - GOV.UK</title>
    <%= stylesheet_link_tag "application", integrity: false %>
    <%= stylesheet_link_tag "print", media: "print" %>
    <%= javascript_include_tag 'application', integrity: false %>
    <%= csrf_meta_tags %>
    <%= yield :head %>

    <% if params[:page] || params[:keywords] || params[:q] %>
      <meta name="robots" content="noindex">
    <% end %>
    <meta name="govuk:base_title" content="<%= yield :meta_title %> - GOV.UK">
    <%= explore_menu_variant.analytics_meta_tag.html_safe if explore_menu_testable? %>

  <body class="<%= yield :body_classes %>">

      <%= yield :breadcrumbs %>

          <%= yield %>

        <%= render 'govuk_publishing_components/components/feedback' %>

<!DOCTYPE html>

    <title><%= yield :title %> - GOV.UK</title>
    <%= stylesheet_link_tag "application", integrity: false %>
    <%= stylesheet_link_tag "print", media: "print" %>
    <%= javascript_include_tag 'application', integrity: false %>
    <%= csrf_meta_tags %>
    <%= yield :head %>

    <% if params[:page] || params[:keywords] || params[:q] %>
      <meta name="robots" content="noindex">
    <% end %>
    <meta name="govuk:base_title" content="<%= yield :meta_title %> - GOV.UK">
    <%= explore_menu_variant.analytics_meta_tag.html_safe %>

  <body class="<%= yield :body_classes %>">

      <%= yield :breadcrumbs %>

          <%= yield %>

        <%= render 'govuk_publishing_components/components/feedback' %>

Remove conditional from A/B test meta tag

This was only being output on the page when on the "B" side of the test; the meta tag should be added to the page for all sides of the test so it can be picked up by analytics and the browser extension.


  <%= image_tag 'thanks.png' %>

Thank you for submitting!

    <%= link_to 'railsgirls.com/krakow', 'http://railsgirls.com/krakow' %>

    An email saying if you were accepted should be in your inbox any time soon.

    If you don't receive it, you might have mistyped your address.

    In that case drop us a line at
    <%= mail_to 'railsgirlskrakow@gmail.com', 'railsgirlskrakow@gmail.com' %>
    to make sure that we can contact you :)

  <%= image_tag 'thanks.png' %>

Thank you for submitting!

    <%= link_to 'railsgirls.com/krakow', 'http://railsgirls.com/krakow' %>

    An email saying if you were accepted should be in your inbox after the registration closes.

    If you don't receive it, you might have mistyped your address.

    In that case drop us a line at
    <%= mail_to 'railsgirlskrakow@gmail.com', 'railsgirlskrakow@gmail.com' %>
    to make sure that we can contact you :)

Change thank you page - email after the registration closes


#!/bin/sh
tar --absolute-names -cf - /var/lib/jenkins/jobs /var/lib/jenkins/secrets /var/lib/jenkins/credencials*.xml | /usr/local/bin/bup split -r root@managesf.<%= @fqdn %>: -n jenkins

#!/bin/sh
tar --absolute-names -cf - /var/lib/jenkins/jobs /var/lib/jenkins/secret* /var/lib/jenkins/credentials*.xml | /usr/local/bin/bup split -r root@managesf.<%= @fqdn %>: -n jenkins

Fix typo in backuped files for Jenkins credentials

- Typo in credentials.xml
- In addtion to the secrets directory include also secret.key

Change-Id: I414c7b8473876705983d6649831a4bbf2a27811d


<div class="promotion_action promotion-block <%= promotion_action.type.to_s.demodulize.underscore %>" id="<%= dom_id promotion_action %>">
  <% type_name = promotion_action.class.name.demodulize.underscore %>

<%= Spree.t("promotion_action_types.#{type_name}.description") %>

  <% if can?(:destroy, promotion_action) %>
    <%= link_to_with_icon 'trash', '', spree.admin_promotion_promotion_action_path(@promotion, promotion_action), remote: true, method: :delete, class: 'delete' %>
  <% end %>

  <% param_prefix = "promotion[promotion_actions_attributes][#{promotion_action.id}]" %>
  <%= hidden_field_tag "#{param_prefix}[id]", promotion_action.id %>

  <%= render partial: "spree/shared/error_messages", locals: { target: promotion_action } %>
  <%= render partial: "spree/admin/promotions/actions/#{type_name}",
             locals: { promotion_action: promotion_action, param_prefix: param_prefix } %>

<div class="promotion_action promotion-block <%= promotion_action.type.to_s.demodulize.underscore %>" id="<%= dom_id promotion_action %>">
  <% type_name = promotion_action.class.name.demodulize.underscore %>

<%= promotion_action.class.human_attribute_name(:description) %>

  <% if can?(:destroy, promotion_action) %>
    <%= link_to_with_icon 'trash', '', spree.admin_promotion_promotion_action_path(@promotion, promotion_action), remote: true, method: :delete, class: 'delete' %>
  <% end %>

  <% param_prefix = "promotion[promotion_actions_attributes][#{promotion_action.id}]" %>
  <%= hidden_field_tag "#{param_prefix}[id]", promotion_action.id %>

  <%= render partial: "spree/shared/error_messages", locals: { target: promotion_action } %>
  <%= render partial: "spree/admin/promotions/actions/#{type_name}",
             locals: { promotion_action: promotion_action, param_prefix: param_prefix } %>

Use i18n method for promo action description

Now we can call the human_attribute_name method to grab the description
for these promotion actions


<%= logo_image_tag(ENV['OOD_DASHBOARD_LOGO']) %>

OnDemand provides an integrated, single access point for all of your HPC resources.

<%= render @motd_file if @motd_file.exist? %>

<%= logo_image_tag(ENV['OOD_DASHBOARD_LOGO']) %>

OnDemand provides an integrated, single access point for all of your HPC resources.

<%# This assumes @motd_file responds to `to_partial_path` %>
<%= render @motd_file if @motd_file.exist? %>

Add a comment about the assumption of the rendering object


Lista de exercício

        <%= form_for @exercise do |f| %>
          <%= render 'shared/error_messages', object: f.object %>

            <%= f.label "Título" %>
            <%= f.text_field :title, class: "form-control" %>

            <%= f.label "Descrição" %>
            <%= f.text_area :description, class: "form-control" %>

          <%= f.submit yield(:button_text), class: "btn btn-primary pull-right" %>
        <% end %>

Add simplemde markdown editor to form

Add simplemde markdown editor to form


<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-71948481-1']);
  _gaq.push(['_trackPageview']);

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

</script>

<script>
  window.addEventListener('load', function(){
    if(jQuery('.alert-info:contains("Your registration is complete. Please review your information below.")').is(':visible')){
      gtag('event', 'submit', {
        'event_category' : 'form',
        'event_label' : 'job seeker'
      });
    }
  });
</script>

Add event tracking code for registrations


server {
  listen 80;
  server_name logging.*;

  location / {
    proxy_pass http://logging.management.production/;
    proxy_set_header Host $http_host;
  }
}

server {
  listen 443;
  server_name errbit.*;

  location / {
    proxy_pass https://exception-handler-1.management.production/;
    proxy_set_header Host $http_host;
  }
}

server {
  listen 80;
  server_name monitoring.*;

  location / {
    proxy_pass http://monitoring.management.production/;
    proxy_set_header Host $http_host;
  }
}

server {
  listen 443;
  server_name monitoring.* nagios.*;

  location / {
    proxy_pass https://monitoring.management.production/;
    proxy_set_header Host $http_host;
  }
}

server {
  listen 443;
  server_name graphite.*;

  location / {
    proxy_pass http://graphite.cluster/;
    proxy_set_header Host $http_host;
  }
}

server {
  listen 80;
  server_name logging.*;

  location / {
    proxy_pass http://logging.management.production/;
    proxy_set_header Host $http_host;
  }
}

server {
  listen 80;
  server_name monitoring.*;

  location / {
    proxy_pass http://monitoring.management.production/;
    proxy_set_header Host $http_host;
  }
}

server {
  listen 443;
  server_name monitoring.* nagios.*;

  location / {
    proxy_pass https://monitoring.management.production/;
    proxy_set_header Host $http_host;
  }
}

server {
  listen 443;
  server_name graphite.*;

  location / {
    proxy_pass http://graphite.cluster/;
    proxy_set_header Host $http_host;
  }
}

Remove errbit from monitoring proxy nginx


You may be able to register a civil partnership or get married at the British embassy or consulate in Peru.

[Make an appointment at the embassy in Lima.](https://www.book-consular-appointment.service.gov.uk/TimeSelection?location=125&service=10)

##What documents you’ll need

You need to have been living in Peru for 21 days. You and your partner will need to sign a declaration and provide proof of residence for example, an employer’s letter or a bank statement.

You’ll both need your original passports. If either of you have been divorced, widowed or in a civil partnership before, you’ll also need either:

- a [decree absolute or final order](/copy-decree-absolute-final-order)
- the [death certificate](/order-copy-birth-death-marriage-certificate/)

##What you need to do

At your appointment the embassy or consulate will give you:

-  a notice of registration
-  a declaration that you and your partner will need to swear, stating that you’re legally entitled to marry or enter into a civil partnership

Once you’ve completed these and paid the registration fee, the embassy or consulate will display your notice publicly for 14 days.

As long as nobody registers an objection you can get married or enter into a civil partnership up to 3 months after you gave notice.

You’ll need to bring two witnesses to your ceremony - they’ll need to show their photo ID (for example passport or driver’s licence).

You’ll need to pay a fee to register your marriage or civil partnership and a fee for your marriage or civil partnership certificate.

^All same-sex marriages must take place under English and Welsh or Scottish law even if you live in or are from Northern Ireland. Tell the embassy or consulate which law you want to get married under at your appointment.^

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

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

## Fees

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

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

You can pay by cash or credit card, but not by personal cheque.

It’s not possible to get legal recognition for your same-sex relationship in Peru.

Remove same-sex option for Peru - other, British 1


It’s not possible to get legal recognition for your same-sex relationship in Peru.

You may be able to get married or register a civil partnership at the British embassy in Peru.

[Make an appointment at the embassy in Lima](https://www.book-consular-appointment.service.gov.uk/TimeSelection?location=125&service=10). You’ll need to have been in Peru for at least 7 full days before your appointment.

##What documents you’ll need

At the appointment, you and your partner will both need to bring:

- proof of residence, such as an employer’s letter or a bank statement
- your passport

If either of you have been divorced, widowed or in a civil partnership before, you’ll also need either:

- a [decree absolute or final order](/copy-decree-absolute-final-order)
- the [death certificate](/order-copy-birth-death-marriage-certificate) for a deceased husband, wife or civil partner

##What you need to do

At the appointment, you and your partner will need to sign a declaration that you’re legally entitled to marry or enter into a civil partnership.

The embassy will then give you a notice of registration. Once you've paid the registration fee, the notice will be displayed publicly for 14 days.

As long as nobody raises an objection, you can then get married or enter into a civil partnership up to 3 months after you gave notice.

You’ll need to bring two witnesses to your ceremony at the embassy. The witnesses will need to bring a photo ID, such as a passport or a driver’s licence.

You’ll need to pay a fee to register your marriage or civil partnership and a fee for your marriage or civil partnership certificate.

## Fees

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

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

You can pay by cash or credit card, but not by personal cheque.

Update other ceremony, British partner 1


        <img src="/assets/navimg/logo-trans-small.png" alt="<%= site_name %>">

        <%=link_to _("Download original attachment"), @attachment_url %>

(<%=h @attachment.name_of_content_type %>)

    <%= _('This is an HTML version of an attachment to the Freedom of Information request')%>
    '<%=link_to h(@info_request.title), incoming_message_path(@incoming_message)%>'.

Use paragraph here to make styling easier


var grid = $('#picture_grid');

<% @pictures.each do |picture| %>
  grid.append('<%= j render picture %>');
<% end %>

$('#gallery .pagination').html('<%= j render 'pagination_links' %>');

$(document).trigger('content:update');

var grid = $('#picture_grid');
var pictures = [];

<% @pictures.each do |picture| %>
  var picture = $('<%= j render picture %>');
  grid.append(picture);
  pictures.push(picture);
<% end %>

$('#gallery .pagination').html('<%= j render 'pagination_links' %>');

$(document).trigger('content:update');

if (typeof ReactRailsUJS !== 'undefined') {
  pictures.forEach(function (picture) {
    ReactRailsUJS.mountComponents(picture);
  });
}

Fix endless scrolling in client encrypted galleries


Propose a New Experiment

Enter the Proposal Information Below

<%= form_for @project do |f| %>
  <%= f.label :title %>:
  <%= f.text_field :title %>

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

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

  <%= f.label :time_budget %>:
  <%= f.number_field :time_budget %>

  <%= f.label :students %>:

  <% @students.each do |student| %>
  	<%= f.label student.name %>:
  	<%= check_box('students[ids]', student.id) %>

  <% end %>

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

Propose a New Experiment

Enter the Proposal Information Below

<%= form_for @project do |f| %>
  <%= f.label :title %>:
  <%= f.text_field :title %>

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

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

  <%= f.label :time_budget %>:
  <%= f.number_field :time_budget %>

  <%= f.label :students %>:

  <% @students.each do |student| %>
  	<%= f.label student.name %>:
  	<%= check_box('students[ids]', student.id) %>

  <% end %>

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

Switch the summary and hypothesis entries in the form


Child <%= number %>

<fieldset>
  <legend>When did you start getting Child Benefit for a new child?</legend>

    <% date_to_use = defined?(child) ? DateTime.new(child["year"].to_i, child["month"].to_i, child["day"].to_i) : @calculator.child_benefit_start_date %>
    <%= select_date date_to_use, :prefix => "starting_children[]", :order => [:day, :month, :year] %>

</fieldset>

Child <%= number %>

<fieldset>
  <legend>When did you start getting Child Benefit for a new child?</legend>

    <% date_to_use = defined?(child) ? DateTime.new(child["year"].to_i, child["month"].to_i, child["day"].to_i) : @calculator.child_benefit_start_date %>
    <%= select_date date_to_use, :prefix => "starting_children[]", :order => [:day, :month, :year], :end_year => @calculator.child_benefit_end_date.year, :start_year => @calculator.child_benefit_start_date.year %>

</fieldset>

Add start and end date limits to children date selects


# Autogenerated by Chef.
<% @sysadmins.each do |sa| -%>
<% if !sa["htpasswd"].nil? and sa["htpasswd"].length > 0 -%>
<%= sa["id"] %>:<%= sa["htpasswd"] %>
<% end -%>
<% end -%>

# Autogenerated by Chef.
<% @sysadmins.each do |sa| -%>
<% if sa["htpasswd"] and sa["htpasswd"].length > 0 -%>
<%= sa["id"] %>:<%= sa["htpasswd"] %>
<% end -%>
<% end -%>

Clean up syntax per jtimberman

Clean up syntax per jtimberman


You've reached errol, the OpenStreetMap dev server.

If you are a user...

You probably want OpenStreetMap itself.

If you are a developer...

You might be interested in live instances of various Rails Port code branches in SVN for testing clients against.

You've reached errol, the OpenStreetMap dev server.

If you are a user...

You probably want OpenStreetMap itself.

If you are a developer...

You might be interested in live instances of various Rails Port code branches for testing clients against.

Update links on dev server homepage

Update links on dev server homepage

Update some links on our little dev server homepage.
* The rails port install instructions are now in github.
* It's no longer serving up SVN branches (These days it's all github. That branches list is maintained here in chef https://github.com/openstreetmap/chef/blob/master/roles/dev.rb#L100 but I think that would be a bit of tangled thing to link to from this homepage)


#!/bin/bash
set -x
set -e
export PATH=/var/vcap/packages/ruby/bin:$PATH
cd /var/vcap/packages/acceptance-tests

export NYET_TARGET='<%= p("cf.api_url") %>'
export NYET_ADMIN_USERNAME='<%= p("cf.admin_username") %>'
export NYET_ADMIN_PASSWORD='<%= p("cf.admin_password") %>'
export NYET_REGULAR_USERNAME='<%= p("cf.regular_username") %>'
export NYET_REGULAR_PASSWORD='<%= p("cf.regular_password") %>'
export NYET_RAISE_ALL_ERRORS="1"
export NYET_APPS_DOMAIN='<%= p("cf.apps_domain") %>'

bundle exec rspec -fd services_spec/cf_mysql_spec.rb:79

#!/bin/bash
set -e -x
export PATH=/var/vcap/packages/ruby/bin:$PATH
cd /var/vcap/packages/acceptance-tests

# Don't expose passwords
set +x

export NYET_ADMIN_PASSWORD='<%= p("cf.admin_password") %>'
export NYET_REGULAR_PASSWORD='<%= p("cf.regular_password") %>'

set -x

export NYET_TARGET='<%= p("cf.api_url") %>'
export NYET_ADMIN_USERNAME='<%= p("cf.admin_username") %>'
export NYET_REGULAR_USERNAME='<%= p("cf.regular_username") %>'
export NYET_RAISE_ALL_ERRORS="1"
export NYET_APPS_DOMAIN='<%= p("cf.apps_domain") %>'

bundle exec rspec -fd services_spec/cf_mysql_spec.rb:79

Update to use acceptance tests errand that does not expose credentials


{
    "title": "<%= @run.respond_to?(:name) ? @run.to_s : "" %>",
    "attempt_count": <%= @run.respond_to?(:attempts) ? @run.attempts : 0 %>,
    "start_delay": "<%= Time.at(@run.offset || 0).utc.strftime("%-H:%-M:%S").strip %>",
    "splits": [
        <% @run.splits.each_with_index do |split, index| %>
        {
            "title": "<%= split.name %>",
            "time": "<%= split.skipped ? "0.000000" : Time.at(split.finish_time).utc.strftime("%H:%M:%S.%6N").strip %>",
            "best_time": "<%= Time.at(split.finish_time || 0).utc.strftime("%H:%M:%S.%6N").strip %>",
            "best_segment": "<%= Time.at(split.best || split.duration).utc.strftime("%H:%M:%S.%6N").strip %>"
        }<%= ',' unless @run.splits.size - 1 == index %>
        <% end %>
    ]
}

{
    "title": "<%= @run.respond_to?(:name) ? @run.to_s : "" %>",
    "attempt_count": <%= @run.respond_to?(:attempts) ? @run.attempts : 0 %>,
    "start_delay": "<%= Time.at(@run.offset || 0).utc.strftime("%-H:%-M:%S").strip %>",
    "splits": [
        <% @run.segments.each_with_index do |segment, index| %>
        {
            "title": "<%= segment.name %>",
            "time": "<%= segment.skipped ? "0.000000" : Time.at((segment.end_milliseconds || 0) / 1000).utc.strftime("%H:%M:%S.%6N").strip %>",
            "best_time": "<%= Time.at((segment.end_milliseconds || 0).to_f / 1000).utc.strftime("%H:%M:%S.%6N").strip %>",
            "best_segment": "<%= Time.at((segment.shortest_duration_milliseconds || segment.duration_milliseconds || 0).to_f / 1000).utc.strftime("%H:%M:%S.%6N").strip %>"
        }<%= ',' unless @run.segments.size - 1 == index %>
        <% end %>
    ]
}

Fix some Urn nil issues

Fix some Urn nil issues


apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: versions-list-update-monthly
  labels:
    name: versions-list-update-monthly
spec:
  concurrencyPolicy: Forbid
  schedule: "0 0 1 * *"
  jobTemplate:
    spec:
      template:
        metadata:
          labels:
            name: versions-list-update-monthly
        spec:
          restartPolicy: "OnFailure"
          containers:
          - name: versions-list-update-monthly
            image: quay.io/rubygems/rubygems.org:<%= current_sha %>
            args: ["rake", "compact_index:update_versions_file"]
            resources:
              <% if environment == 'production' %>
              requests:
                cpu: 500m
                memory: 1Gi
              limits:
                cpu: 2000m
                memory: 3Gi
              <% else %>
              requests:
                cpu: 200m
                memory: 1Gi
              limits:
                cpu: 500m
                memory: 2Gi
              <% end %>
            env:
            - name: RAILS_ENV
              value: "<%= environment %>"
            - name: ENV
              value: "<%= environment %>"
            - name: STATSD_IMPLEMENTATION
              value: "datadog"
            - name: STATSD_HOST
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: status.hostIP
            - name: STATSD_ADDR
              value: $(STATSD_HOST):8125
            - name: SECRET_KEY_BASE
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: secret_key_base
            - name: AWS_REGION
              value: "us-west-2"
            - name: S3_KEY
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: aws_access_key_id
            - name: S3_SECRET
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: aws_secret_access_key
            - name: AWS_ACCESS_KEY_ID
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: aws_access_key_id
            - name: AWS_SECRET_ACCESS_KEY
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: aws_secret_access_key
            - name: NEW_RELIC_LICENSE_KEY
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: new_relic_license_key
            - name: HONEYBADGER_API_KEY
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: honeybadger_api_key
            - name: DATABASE_URL
              valueFrom:
                secretKeyRef:
                  name: <%= environment %>
                  key: database_url
            securityContext:
              privileged: false

Add soft link for versions.list cronjob

Add soft link for versions.list cronjob


<?xml version="1.0" encoding="UTF-8"?>
<!-- DO NOT EDIT: File is auto-generated -->
<module>
  <inherits name='org.realityforge.gwt.datatypes.Datatypes'/>
<% if repository.imit? -%>
  <inherits name="<%= repository.imit.qualified_replicant_module_name %>"/>
<% end -%>
<% if repository.keycloak? -%>
  <inherits name="org.realityforge.gwt.keycloak.Keycloak"/>
<% end -%>
</module>

<?xml version="1.0" encoding="UTF-8"?>
<!-- DO NOT EDIT: File is auto-generated -->
<module>
  <inherits name='org.realityforge.gwt.datatypes.Datatypes'/>
<% if repository.imit? -%>
  <inherits name="<%= repository.imit.qualified_replicant_module_name %>"/>
<% else -%>
  <inherits name="com.google.gwt.json.JSON"/>
  <inherits name="com.google.gwt.inject.Inject"/>
<% end -%>
<% if repository.keycloak? -%>
  <inherits name="org.realityforge.gwt.keycloak.Keycloak"/>
<% end -%>
</module>

Add "Inherit" for necessary modules when not using replicant

Replicant module is providing JSON & Inject


<% provide(:title, "Maps")%>
<% provide(:meta_description, "Paul Bogard’s Map Illustrations.")%>

Maps

As might be obvious from many of my other <%= link_to("projects", root_path) %>, I enjoy maps, so I’ve created a few map illustrations.

  <%= render partial: "project_tile", locals: { name: "PAX West Area Map", caption: "Map of convention venues and hotels", path: maps_path(map: "pax-west-area-map") } %>
  <%= render partial: "project_tile", locals: { name: "Interstate Grid", caption: "Intersections of major US interstates", path: maps_path(map: "interstate-grid") } %>
  <%= render partial: "project_tile", locals: { name: "Nashville Hex", caption: "Nashville’s freeways on a hex grid", path: maps_path(map: "nashville-hex") } %>

<% provide(:title, "Maps")%>
<% provide(:meta_description, "Paul Bogard’s map illustrations.")%>

Maps

As might be obvious from many of my other <%= link_to("projects", root_path) %>, I enjoy maps, so I’ve created a few map illustrations.

  <%= render partial: "project_tile", locals: { name: "PAX West Area Map", caption: "Map of convention venues and hotels", path: maps_path(map: "pax-west-area-map") } %>
  <%= render partial: "project_tile", locals: { name: "Interstate Grid", caption: "Intersections of major US interstates", path: maps_path(map: "interstate-grid") } %>
  <%= render partial: "project_tile", locals: { name: "Nashville Hex", caption: "Nashville’s freeways on a hex grid", path: maps_path(map: "nashville-hex") } %>

Fix capitalization on Maps meta text

Fix capitalization on Maps meta text


<li class="ui-state-default issue collapsed" data-prioritized-issue-path="<%= prioritized_issue_move_to_bucket_path(issue) %>">
  <%= form_tag "/", :class => "issue-state-toggle" do %>
    <%= check_box_tag :state, issue.closed?, issue.closed? %>
  <% end %>
  <%= link_to issue.title, github_issue_url(issue), :class => "issue-link" %>

    <%= link_to "#{issue.owner} / #{issue.repository}", github_repository_url(issue), :class => "issue-repository-label" %>
    <%= link_to "@#{issue.assignee}", github_user_url(issue), :class => "issue-assignee" if issue.assignee %>
    <% issue.labels.each do |label| %>
      <%= label %>
    <% end %>

  <%= link_to image_tag("/assets/expand.png"), "#", :class => "issue-expand issue-toggle js-issue-toggle" %>
  <%= link_to image_tag("/assets/collapse.png"), "#", :class => "issue-collapse issue-toggle js-issue-toggle" %>

<li class="ui-state-default issue collapsed" data-prioritized-issue-path="<%= prioritized_issue_move_to_bucket_path(issue) %>">
  <%= form_tag "/", :class => "issue-state-toggle" do %>
    <%= check_box_tag :state, issue.closed?, issue.closed? %>
  <% end %>
  <%= link_to issue.title, github_issue_url(issue), :class => "issue-link" %>

    <%= link_to "#{issue.owner} / #{issue.repository}", github_repository_url(issue), :class => "issue-repository-label" %>
    <% if issue.assignee %>
      <%= link_to "@#{issue.assignee}", github_user_url(issue), :class => "issue-assignee" %>
    <% else %>
      <%= link_to "claim or assign", "#", :class => "issue-assignee js-issue-assignee" %>
    <% end %>
    <% issue.labels.each do |label| %>
      <%= label %>
    <% end %>

  <%= link_to image_tag("/assets/expand.png"), "#", :class => "issue-expand issue-toggle js-issue-toggle" %>
  <%= link_to image_tag("/assets/collapse.png"), "#", :class => "issue-collapse issue-toggle js-issue-toggle" %>

Add claim or assign button

Add claim or assign button


<%= @pq.uin %>

    <% if @pq.question_type == 'NamedDay' %>
      N
    <% end %>
    <% if @pq.transferred %>
      T
    <% end %>
    <% if @pq.i_will_write %>
      IWW
    <% end %>
    <span id="pq-details-progress" class="label flag-<%= @pq.progress.classname %>"><%= @pq.progress.name %>

  <div id='trim_area_<%= @pq.id %>' class="col-md-3 trim_area trim_area_header">
    <%= render partial: 'shared/trim_links', locals: {question: @pq} %>

    <% if !@pq.preview_url.nil? %>
      <a href="<%= @pq.preview_url %>" rel="external">View PQ in Q&A Tool
    <% end %>

Fix tag imbalance in the Details page.

Fix tag imbalance in the Details page.


  <%= link_to image_tag("quickbits_logo.svg", :border=>0, :class => 'header_image', :size => "253x61"), "/" %>

 We currently do not support this browser.  We recommend using  Firefox.

    <%= render '/status' %>

   FAQ

<%= javascript_include_tag "file_receiver" %>

  <%= link_to image_tag("quickbits_logo.svg", :border=>0, :class => 'header_image', :size => "253x61"), "/" %>

 We currently do not support this browser.  We recommend using  Firefox.

    <%= render '/status' %>

© 2013 Team Quickbits

|

FAQ
|

GitHub

<%= javascript_include_tag "file_receiver" %>

Add jake's revised footer to receiver view


Startups

A collection of internet companies made with  in PR

<% @startups.each do |startup| %>

            <%= image_tag(startup.image_url(:thumb), :class => "startup-image") %>

<%= startup.name %>

<%= startup.pitch %>

<%= startup.markets %>

<%= startup.website %>

<%= startup.product %>

<% end %>

<%= link_to 'New Startup', new_startup_path %>

Remove create startup link from index

Remove create startup link from index


      <%= link_to image_tag("BHC Logo.jpg", alt: "BHC Logo"), root_path %>
      <%= link_to image_tag("BHC Lettering.png", alt: "BHC Logo"), root_path %>

        <% if logged_in? %>

<%= link_to "Home", root_path %>

<%= link_to "Search", '#' %>

<%= link_to "Initiatives", '#' %>

<%= link_to "Volunteers", '#' %>

<%= link_to "Members", '#' %>

                Account

<%= link_to "Profile", current_user %>

<%= link_to "Settings", '#' %>

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

        <% else %>

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

        <% end %>

      <%= link_to image_tag("BHC Logo.jpg", alt: "BHC Logo"), root_path %>
      <%= link_to image_tag("BHC Lettering.png", alt: "Building Healthy Communities in Dumfries and Galloway"),
                  root_path %>

        <% if logged_in? %>

<%= link_to "Home", root_path %>

<%= link_to "Search", '#' %>

<%= link_to "Initiatives", '#' %>

<%= link_to "Volunteers", '#' %>

<%= link_to "Members", '#' %>

                Account

<%= link_to "Profile", current_user %>

<%= link_to "Settings", '#' %>

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

        <% else %>

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

        <% end %>

Fix alt for header image

Fix alt for header image


<% content_for :tabs do %>
  <nav>
    <ul class="tabs" data-hook="admin_settings_checkout_tabs">
      <% if can?(:display, Spree::RefundReason) %>
        <%= settings_tab_item Spree::RefundReason.model_name.human(count: :other), admin_refund_reasons_path %>
      <% end %>

      <% if can?(:display, Spree::ReimbursementType) %>
        <%= settings_tab_item Spree::ReimbursementType.model_name.human(count: :other), admin_reimbursement_types_path %>
      <% end %>

      <% if can?(:display, Spree::ReturnReason) %>
        <%= settings_tab_item Spree::ReturnReason.model_name.human(count: :other), admin_return_reasons_path %>
      <% end %>

      <% if can?(:display, Spree::AdjustmentReason) %>
        <%= settings_tab_item Spree::AdjustmentReason.model_name.human(count: :other), admin_adjustment_reasons_path %>
      <% end %>
    </ul>
  </nav>
<% end %>

Add settings_checkout_tabs sub section partial

This partial will be related for settings related to actions related to
checking out including refund reasons, reimbursement types, return
reasons, and adjustment reasons.


      AMEElabs

... the coolest new experiments from AMEE

      AMEE Labs

... the coolest new experiments from AMEE

Fix naming in labs header

Fix naming in labs header


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

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public class <%= repository.ejb.services_module_name %>
  extends org.realityforge.guiceyloops.server.FlushingTestModule
{
  public <%= repository.ejb.services_module_name %>( final org.realityforge.guiceyloops.server.Flushable flushable )
  {
    super( true, flushable );
  }

  @java.lang.Override
  protected void configure()
  {
<%
  repository.data_modules.select{|data_module| data_module.ejb?}.each do |data_module|
    data_module.services.select{|service| service.ejb?}.each do |service|
      if service.ejb.standard_implementation?
-%>
    bind( <%= service.ejb.qualified_service_name %>.class ).to( <%= service.ejb.qualified_service_name %>EJB.class ).in( javax.inject.Singleton.class );
<%
        if service.ejb.generate_boundary?
-%>
    bindService( <%= service.ejb.qualified_boundary_interface_name %>.class, <%= service.ejb.qualified_boundary_implementation_name %>.class );
<%
        end
      end
    end
  end
-%>
  }
}

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

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public class <%= repository.ejb.services_module_name %>
  extends org.realityforge.guiceyloops.server.FlushingTestModule
{
  public <%= repository.ejb.services_module_name %>( final org.realityforge.guiceyloops.server.Flushable flushable )
  {
    super( flushable );
  }

  @java.lang.Override
  protected void configure()
  {
<%
  repository.data_modules.select{|data_module| data_module.ejb?}.each do |data_module|
    data_module.services.select{|service| service.ejb?}.each do |service|
      if service.ejb.standard_implementation?
-%>
    bind( <%= service.ejb.qualified_service_name %>.class ).to( <%= service.ejb.qualified_service_name %>EJB.class ).in( javax.inject.Singleton.class );
<%
        if service.ejb.generate_boundary?
-%>
    bindService( <%= service.ejb.qualified_boundary_interface_name %>.class, <%= service.ejb.qualified_boundary_implementation_name %>.class );
<%
        end
      end
    end
  end
-%>
  }
}

Upgrade to use guiceyloops 0.54 API

Upgrade to use guiceyloops 0.54 API


<% if result.format == "recommended-link" %>
<li class="section-<%= result.section %> type-guide external">
<% else %>
<li class="section-<%= result.section %> type-<%= result.format %>">
<% end %>

<a href="<%= result.link %>" title="View <%= result.title %>"<% if result.format == "recommended-link" %> rel="external"<% end %>><%= result.title %>

<%= result.description %>

  <% if result.format == "recommended-link" %>

External site

  <% elsif result.format == 'specialist_guidance' %>

    <li class="<%= result.format %>"><%= result.presentation_format %>

    <% if result.section %>

<a href="/browse/<%= result.section %>"><%= result.formatted_section_name %>

    <% end %>

  <% end %>

<% if result.format == "recommended-link" %>
<li class="section-<%= result.section %> type-guide external">
<% else %>
<li class="section-<%= result.section %> type-<%= result.format %>">
<% end %>

<a href="<%= result.link %>" title="View <%= result.title %>"<% if result.format == "recommended-link" %> rel="external"<% end %>><%= result.title %>

<%= result.description %>

  <% if result.format == "recommended-link" %>

External site

  <% elsif result.format == 'specialist_guidance' %>

    <li class="<%= result.format %>"><%= result.humanized_format %>

  <% end %>

Use correct format name when displaying specialist

Also removes attempt to display section for specialist


  <fieldset>
  <%= f.input :text, :hint => (link_to_remove_association "Remove option", f, :class => "inline") %>
  <%= f.input :value, :class => "span1", :hint => (link_to_add_association 'Add followup to this option', f, :follow_up)  %>

    <%= f.simple_fields_for :follow_up do |followup| %>
      <%= render 'question_fields', :f => followup %>
    <% end %>
  </fieldset>

  <fieldset>
  <%= f.input :text, :hint => (link_to_remove_association "Remove option", f, :class => "inline") %>
  <%= f.input :value, :class => "span1" %>

  <% link_to_add_association 'Add followup to this option', f, :follow_up %>

    <%= f.simple_fields_for :follow_up do |followup| %>
      <%= render 'question_fields', :f => followup %>
    <% end %>
  </fieldset>

Undo Add followup to option move

Undo Add followup to option move


      Models looking for collaborators

    <% if @models_wanting_help.empty? %>

        No models looking for collaborators

    <% else %>
      <% @models_wanting_help.each do |model| %>
        <div class="news_post<% if model.author?(@person) %> your_news<% end %>">

	    <%= model_thumb_image(model) %>

              <a href="<%= url_for(:controller => :account, :action => :mypage, :id => model.person.id) %>"><%= model.person.fullname %>

	      <%= model_link(model) %>

              Below

      <% end %>
    <% end %>

      Models looking for additional collaborators

    <% if @models_wanting_help.empty? %>

      No models looking for collaborators

    <% else %>
    <% @models_wanting_help.each do |model| %>
    <div class="news_post<% if model.author?(@person) %> your_news<% end %>">

	<a href="<%= url_for(:controller => "browse", :action => "one_model", :id => model.id) %>">
	  <% if !model.previews.nil? and !model.previews.empty? %>
	  <img src="<%= url_for :controller => :browse, :action => :display_preview, :id => model.id, :size => 'thumb' %>" />
	  <% end %>

          <a href="<%= url_for(:controller => :account, :action => :mypage, :id => model.person.id) %>"><%= model.person.fullname %>

	  <%= model_link(model) %>

          <%= model.all_collaborators.count, 'collaborator' %>

    <% end %>
    <% end %>

Improve look of collaboration help box

Improve look of collaboration help box

Former-commit-id: 8c77ce32616d906d4d285d5db372041ce9e54c7b


<%- if controller_name != 'sessions' %>
  <% scope = Devise::Mapping.find_scope!(resource_name) %>
  <%= link_to "Sign in", send(:"new_#{scope}_session_path") }")br />
<% end -%>

<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
  <%= link_to "Sign up", new_registration_path(resource_name) %>

<% end -%>

<%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
  <%= link_to "Forgot your password?", new_password_path(resource_name) %>

<% end -%>

<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
  <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %>

<% end -%>

<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
  <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %>

<% end -%>

<%- if controller_name != 'sessions' %>
  <% scope = Devise::Mapping.find_scope!(resource_name) %>
  <%= link_to "Sign in", send(:"new_#{scope}_session_path") %>

<% end -%>

<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
  <%= link_to "Sign up", new_registration_path(resource_name) %>

<% end -%>

<%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
  <%= link_to "Forgot your password?", new_password_path(resource_name) %>

<% end -%>

<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
  <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %>

<% end -%>

<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
  <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %>

<% end -%>

Fix bad code in shared/links devise partial


<div id="chart_wrapper_<%= chart %>" class="col-md-auto chart-wrapper">
  <% unless content.find_out_more_chart_title.blank? %>

<%= content.find_out_more_chart_title %>

  <% end %>
  <%= chart_tag(school, chart.to_s, wrap: false, show_advice: false, chart_config: {y_axis_units: '£'}, html_class: 'analysis-chart find-out-more') %>

<% unless content.find_out_more_chart_title.blank? %>

<%= content.find_out_more_chart_title %>

<% end %>
<div id="chart_wrapper_<%= chart %>" class="col-md-auto chart-wrapper">
  <%= chart_tag(school, chart.to_s, wrap: false, show_advice: false, chart_config: {y_axis_units: '£'}, html_class: 'analysis-chart find-out-more') %>

Move title outside chart div

Move title outside chart div


set nonumber
noremap <PageUp> :bp<CR>
noremap <Left> :bp<CR>
noremap <PageDown> :bn<CR>
noremap <Right> :bn<CR>

<% @buffers.each do |buffer| %>
b <%= buffer[:num] %>
<% if buffer[:code] %>
<%= buffer[:code][:start] %>,<%= buffer[:code][:end] %>SyntaxInclude <%= buffer[:code][:language] %>
<% end %>
<% buffer[:comments].each do |comment| %>
call matchadd("Comment", "<%= comment %>")
<% end %>
<% end %>
b 1

Disable Vim's line numbering when showing slides


<%= size = Resque::Failure.count %> Jobs Failed

Showing <%= start = params[:start].to_i %> to <%= start + 20 %>

    Queue
    Worker
    Failed
    Class
    Args
    Error

  <% for job in Resque::Failure.all(start, 20) %>

    <%= job['queue'] %>
    <a href="<%= url(:workers, job['worker']) %>"><%= job['worker']['to_s'].split(':')[0...2].join(':') %>
    <%= job['failed_at'] %>
    <%= job['payload']['class'] %>

      <%= Array(job['payload']['args']).size %>

<%=h show_args(job['payload']['args']) %>

      <%= h(job['error']) %>

<%=h job['backtrace'].join("\n") %>

  <% end %>
  <%= partial :next_more, :start => start, :size => size %>

<%= size = Resque::Failure.count %> Jobs Failed

Showing <%= start = params[:start].to_i %> to <%= start + 20 %>

    Queue
    Worker
    Failed
    Class
    Args
    Error

  <% for job in Resque::Failure.all(start, 20) %>

    <%= job['queue'] %>
    <a href="<= url(:workers, job['worker']) %>"><%= job['worker'].split(':')[0...2].join(':') %>
    <%= job['failed_at'] %>
    <%= job['payload']['class'] %>

      <%= Array(job['payload']['args']).size %>

<%=h show_args(job['payload']['args']) %>

      <%= h(job['error']) %>

<%=h job['backtrace'].join("\n") %>

  <% end %>
  <%= partial :next_more, :start => start, :size => size %>

Revert "fixes broken failures table"

Revert "fixes broken failures table"

This reverts commit ced2cf75b9070b1752fa18bd17ad2a20d9883e8b.


  <%= tab :products, :match_path => '/products' %>
  <%= tab :option_types, :match_path => '/option_types' %>
  <%= tab :properties %>
  <%= tab :prototypes %>
  <%= tab :taxonomies %>
  <%= tab :taxons %>

  <%= tab *Spree::BackendConfiguration::PRODUCT_TABS %>
  <%= tab :option_types, :match_path => '/option_types' %>
  <%= tab :properties %>
  <%= tab :prototypes %>
  <%= tab :taxonomies %>
  <%= tab :taxons %>

Use BackendConfiguration tab in product sub menu