<!DOCTYPE html>
<html>
<head>
  <title>Hello</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>

  <div class="container">
    <%= render "shared/menu" %>
    <%= render "shared/alerts" %>
    <%= yield %>
  </div>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>The Commute Tracker</title>

  <meta name="viewport" content="width=device-width, initial-scale=1">

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

  <div class="container">
    <%= render "shared/menu" %>
    <%= render "shared/alerts" %>
    <%= yield %>
  </div>

</body>
</html>

Update title and add viewport

Update title and add viewport


<%# The "application" layout is the default layout for public-facing views. %>

<%= render("shared/navbar") if catalog_scoped? %>

<div class="container">

  <%= yield(:extra_nav) %>
  <%= render("shared/flash") %>
  <%= render("shared/page_header") %>

  <%= yield %>

  <%= render("shared/footer") %>

</div>

<% parent_layout "base" %>

<%# The "application" layout is the default layout for public-facing views. %>

<%= render("shared/navbar") if catalog_scoped? %>

<div class="container">

  <%= render("shared/flash") %>
  <%= yield(:extra_nav) %>
  <%= render("shared/page_header") %>

  <%= yield %>

  <%= render("shared/footer") %>

</div>

<% parent_layout "base" %>

Put flash messages above the search bar

Put flash messages above the search bar


<!DOCTYPE html>

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

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

  <% if notice %>

<%= notice %>

  <% end %>
  <% if alert %>

<%= alert %>

  <% end %>

  <% if content_for?(:subtemplate) %>
    <%= yield(:subtemplate) %>
  <% else %>
    <%= yield %>
  <% end %>

  <% if Rails.env.development? %>
    <%= debug params %>
  <% end %>

  <%= render 'shared/footer' %>

<!DOCTYPE html>

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

  <meta name="viewport" content="width=device-width, initial-scale=1">

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

  <% if notice %>

<%= notice %>

  <% end %>
  <% if alert %>

<%= alert %>

  <% end %>

  <% if content_for?(:subtemplate) %>
    <%= yield(:subtemplate) %>
  <% else %>
    <%= yield %>
  <% end %>

  <% if Rails.env.development? %>
    <%= debug params %>
  <% end %>

  <%= render 'shared/footer' %>

Add viewport meta tag for responsive layout on mobile devices


<!DOCTYPE html>

    <title>Elmer</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

<%= notice %>

<%= alert %>

    <%= yield %>

<!DOCTYPE html>

    <title>Affinity</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

<%= notice %>

<%= alert %>

    <%= yield %>

Change title from Elmer to Affinity

Change title from Elmer to Affinity


<!DOCTYPE html>

  <meta charset="utf-8" />
  <title>
<% if @publication %>
      <%= @publication.alternative_title.nil? ? @publication.alternative_title : @publication.title %> |
      <% unless @publication.section.nil? or @publication.section == ''%>
      <%= @publication.section %> |
<% end %>
      Beta.gov.uk
<% else %>
      <%= yield :title %>
<% end %>
  </title>
  <%= stylesheet_link_tag '/stylesheets/publisher.css' %>
<% if @publication %>
  <% if @publication.overview and @publication.overview != '' %>
    <meta name="description" content="<%= @publication.overview %>">
  <% end %>
<% else %>
  <%= yield :description %>
<% end %>
  <%= javascript_include_tag '/javascripts/jquery.mustache.js',"/javascripts/geo-locator.js"  %>
  <%= yield :extra_javascript %>

<% if @publication %>
  <div id="wrapper" class="<%= @publication.type %>">
<% else %>
  <div id="wrapper" class="<%= yield :wrapper_class %>">
<% end %>
	<%= render :partial => 'location_header' %>
<%= yield %>

<!DOCTYPE html>

  <meta charset="utf-8" />
  <title>
<% if @publication %>
      <%= @publication.alternative_title.nil? ? @publication.alternative_title : @publication.title %> |
      <% unless @publication.section.nil? or @publication.section == ''%>
      <%= @publication.section %> |
<% end %>
      Beta.gov.uk
<% else %>
      <%= yield :title %>
<% end %>
  </title>
  <%= stylesheet_link_tag '/stylesheets/publisher.css' %>
<% if @publication %>
  <% if @publication.overview and @publication.overview != '' %>
    <meta name="description" content="<%= @publication.overview %>">
  <% end %>
  <% if @publication.section and @publication.section != '' %>
    <meta name="x-section-name" content="<%= @publication.section %>">
    <meta name="x-section-link" content="/<%= @publication.section.parameterize %>">
  <% end %>
<% else %>
  <%= yield :description %>
<% end %>
  <%= javascript_include_tag '/javascripts/jquery.mustache.js',"/javascripts/geo-locator.js"  %>
  <%= yield :extra_javascript %>

<% if @publication %>
  <div id="wrapper" class="<%= @publication.type %>">
<% else %>
  <div id="wrapper" class="<%= yield :wrapper_class %>">
<% end %>
	<%= render :partial => 'location_header' %>
<%= yield %>

Add headers so 'breadcrumbs' will work

Add headers so 'breadcrumbs' will work


<!DOCTYPE html>

  <meta charset="utf-8">
  <title>BadgeApp</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>

  <%= render 'layouts/header' %>
  <% flash.each do |message_type, message| %>
    <div class="alert alert-<%= message_type %>"><%= message %>

  <% end %>

  <%= yield %>

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

<!DOCTYPE html>

  <meta charset="utf-8">
  <title>BadgeApp</title>
  <meta name=viewport content="width=device-width, initial-scale=1">
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>

  <%= render 'layouts/header' %>
  <% flash.each do |message_type, message| %>
    <div class="alert alert-<%= message_type %>"><%= message %>

  <% end %>

  <%= yield %>

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

Modify layout to add viewport to improve mobile display

  - https://developers.google.com/speed/docs/insights/ConfigureViewport?hl=en
    describes why we should add the viewport.


  <%= form_tag('/search', :id => 'search', :class => 'right', :style => 'text-align:right;', :method => 'get') do %>
    <%= text_field_tag :q, nil, :id => 'query', :class => 'x-large', :size => 20, :width => '160', :placeholder => 'Search...', :style => 'width:50%;' %>
    <%= submit_tag 'Search', :class => 'btn-search', :name => nil, :id => 'query-btn' %>
  <% end %>

  <%= form_tag('/search', :id => 'search', :class => 'right', :style => 'text-align:right;', :method => 'get') do %>
    <%= text_field_tag :q, nil, :id => 'query', :class => 'x-large', :size => 20, :width => '160', :placeholder => 'Search...', :style => 'width:50%;padding-left:6px;' %>
    <%= submit_tag 'Search', :class => 'btn-search', :name => nil, :id => 'query-btn' %>
  <% end %>

Add some padding to the search form

Add some padding to the search form


# Autogenerated by Chef for <%= node['fqdn'] %>
$ActionQueueType LinkedList # use asynchronous processing
$ActionQueueFileName srvrfwd # set file name, also enables disk mode
$ActionResumeRetryCount -1 # infinite retries on insert failure
$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down
$ActionQueueMaxDiskSpace 1g   # 1gb space limit (use as much as possible)
<% @servers.each do |server| -%>
<% if node['rsyslog']['tls'] -%>
<% if node['rsyslog']['tls_authenticate_server'] -%>
<% if node['rsyslog']['tls_server_name'] -%>
$ActionSendStreamDriverAuthMode x509/name
$ActionSendStreamDriverPermittedPeer <%= node['rsyslog']['tls_server_name'] %>
<% end %>
<% else -%>
$ActionSendStreamDriverAuthMode anon
<% end -%>
$ActionSendStreamDriverMode 1
<% end -%>
<% case node['rsyslog']['protocol'] -%>
<% when "tcp" -%>
<%= node['rsyslog']['logs_to_forward'] %> @@<%= "(o)" if node['rsyslog']['tls'] %><%= server %>:<%= node['rsyslog']['port'] %>
<% when "udp" -%>
<%= node['rsyslog']['logs_to_forward'] %> @<%= server %>:<%= node['rsyslog']['port'] %>
<% end -%>
<% end -%>

# Autogenerated by Chef for <%= node['fqdn'] %>
$ActionQueueType LinkedList # use asynchronous processing
$ActionQueueFileName srvrfwd # set file name, also enables disk mode
$ActionResumeRetryCount -1 # infinite retries on insert failure
$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down
$ActionQueueMaxDiskSpace 1g   # 1gb space limit (use as much as possible)
<% @servers.each do |server| -%>
<% if node['rsyslog']['tls'] -%>
<% if node['rsyslog']['tls_authenticate_server'] -%>
<% if node['rsyslog']['tls_server_name'] -%>
$ActionSendStreamDriverAuthMode x509/name
$ActionSendStreamDriverPermittedPeer <%= node['rsyslog']['tls_server_name'] %>
<% end %>
<% else -%>
$ActionSendStreamDriverAuthMode anon
<% end -%>
$ActionSendStreamDriverMode 1
<% end -%>
<% case node['rsyslog']['protocol'] -%>
<% when "tcp" -%>
<%= node['rsyslog']['logs_to_forward'] %> @@(<%= "o," if node['rsyslog']['tls'] %>z3)<%= server %>:<%= node['rsyslog']['port'] %>
<% when "udp" -%>
<%= node['rsyslog']['logs_to_forward'] %> @<%= server %>:<%= node['rsyslog']['port'] %>
<% end -%>
<% end -%>

Enable compression when forwarding logs and when storing logs from remote hosts.


<div class="alert <%= alert.severity.downcase %>">
  <%= alert.message %> <%= link_to alert.url_name, alert.url if alert.url %>
  <%= link_to 'X', dismiss_alert_admin_general_settings_path(:alert_id => alert.id),
              :remote => true, :method => :post, :class => 'dismiss' %>

<div class="alert <%= alert.severity.downcase %>">
  <%= alert.message %> <%= link_to alert.url_name, alert.url if alert.url %>
  <%= link_to 'X', spree.dismiss_alert_admin_general_settings_path(:alert_id => alert.id),
              :remote => true, :method => :post, :class => 'dismiss' %>

Fix route reference in shared/_alert so that it can be shared

Causes errors in custom admin sections otherwise.

Fixes #2564


Please enable JavaScript to view the comments powered by Disqus.
comments powered by Disqus

Fix disqus comments with https

Fix disqus comments with https


#!/bin/bash
#
# api-umbrella
#
# chkconfig: - 85 15
# description: API Umbrella
# processname: api-umbrella
# config: /etc/api-umbrella/api-umbrella.yml

NAME=api-umbrella
LOCKFILE=/var/lock/subsys/$NAME

start() {
  api-umbrella start
  RETVAL=$?
  [ $RETVAL -eq 0 ] && touch $LOCKFILE
  return $RETVAL
}

stop() {
  api-umbrella stop
  RETVAL=$?
  [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
  return $RETVAL
}

restart() {
  api-umbrella restart
  RETVAL=$?
  return $RETVAL
}

reload() {
  api-umbrella reload
  RETVAL=$?
  return $RETVAL
}

status() {
  api-umbrella status
  RETVAL=$?
  return $RETVAL
}

case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status
    ;;
  restart)
    restart
    ;;
  reload)
    reload
    ;;
  condrestart)
    [ -f $LOCKFILE ] && restart || :
    ;;
  *)
    echo "Usage: $NAME {start|stop|status|reload|restart|condrestart}"
    exit 1
    ;;
esac
exit $?

#!/bin/bash
#
# api-umbrella
#
# chkconfig: - 85 15
# description: API Umbrella
# processname: api-umbrella
# config: /etc/api-umbrella/api-umbrella.yml

### BEGIN INIT INFO
# Provides:          api-umbrella
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: API Umbrella
### END INIT INFO

NAME=api-umbrella
LOCKFILE=/var/lock/$NAME
if [ -d /var/lock/subsys ]; then
  LOCKFILE=/var/lock/subsys/$NAME
fi

start() {
  api-umbrella start
  RETVAL=$?
  [ $RETVAL -eq 0 ] && touch $LOCKFILE
  return $RETVAL
}

stop() {
  api-umbrella stop
  RETVAL=$?
  [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
  return $RETVAL
}

restart() {
  api-umbrella restart
  RETVAL=$?
  return $RETVAL
}

reload() {
  api-umbrella reload
  RETVAL=$?
  return $RETVAL
}

status() {
  api-umbrella status
  RETVAL=$?
  return $RETVAL
}

case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status
    ;;
  restart)
    restart
    ;;
  reload)
    reload
    ;;
  condrestart)
    [ -f $LOCKFILE ] && restart || :
    ;;
  *)
    echo "Usage: $NAME {start|stop|status|reload|restart|condrestart}"
    exit 1
    ;;
esac
exit $?

Add better Ubuntu compatibility for init.d script.


      Application
      Date Sent
      Submission Status
      Approval Status

        <% if @listing.requires_pdf_form? %>
            <%= link_to "View Form", listing_donation_application_path(@listing), :target => '_blank' %>
        <% else %>
            Email
        <% end %>

        <%= date_format(@follower_application.submission_date) %>

        <% if @listing.requires_pdf_form? && @follower_application.submission_date.nil? %>
        <%= link_to "Did You Mail Your Request?", listing_update_submission_path(@listing), method: :post %>
        <% else %>
        <%= "#{@follower_application.submission_status}".titleize %>
        <% end %>

        <%= "#{@follower_application.approval_status || 'not seen'}".titleize %>

      Application
      Date Sent
      Submission Status
      Approval Status

        <% if @listing.requires_pdf_form? %>
            <%= link_to "View Form", listing_donation_application_path(@listing), :target => '_blank' %>
        <% else %>
            Email
        <% end %>

        <%= date_format(@follower_application.submission_date) %>

        <% if @listing.requires_pdf_form? && @follower_application.submission_date.nil? %>
        <%= link_to "Click Here If Request Mailed", listing_update_submission_path(@listing), method: :post %>
        <% else %>
        <%= "#{@follower_application.submission_status}".titleize %>
        <% end %>

        <%= "#{@follower_application.approval_status || 'not seen'}".titleize %>

Make submission status update link less ambiguous

Change link text for submission status update, ambiguously phrased as a question. Use text to explicitly explain the link action so link is not mistaken as information tooltip or FAQ page.


---
- job:
    name: remove-emergency-banner
    display-name: Remove the emergency banner
    project-type: freestyle
    description: >
      Remove the emergency banner from GOV.UK.
    properties:
      - build-discarder:
          num-to-keep: 30
    builders:
      # The argument to `-c` is in this case `frontend` but the value is used by both `static` and `frontend` applications
      - shell: ssh deploy@$(govuk_node_list -c frontend --single-node) "cd /var/apps/static && govuk_setenv static bundle exec rake emergency_banner:remove"
      - trigger-builds:
          - project: clear-template-cache
            block: true
          - project: clear-frontend-memcache
            block: true
          - project: clear-varnish-cache
            block: true
      <%- if @clear_cdn_cache -%>
          - project: clear-cdn-cache
            block: true
      <%- end -%>
    wrappers:
      - ansicolor:
          colormap: xterm

---
- job:
    name: remove-emergency-banner
    display-name: Remove the emergency banner
    project-type: freestyle
    description: >
      Remove the emergency banner from GOV.UK.
    properties:
      - build-discarder:
          num-to-keep: 30
    builders:
      - trigger-builds:
          - project: run-rake-task
            block: true
            predefined-parameters: |
              TARGET_APPLICATION=static
              MACHINE_CLASS=frontend
              RAKE_TASK=emergency_banner:remove
          - project: clear-template-cache
            block: true
          - project: clear-frontend-memcache
            block: true
          - project: clear-varnish-cache
            block: true
      <%- if @clear_cdn_cache -%>
          - project: clear-cdn-cache
            block: true
      <%- end -%>
    wrappers:
      - ansicolor:
          colormap: xterm

Use run-rake-task in remove-emergency-banner job


    <%= yield :assignment %>

    <%= yield :exercise_content %>

  <%= yield :submission_results %>
  <%= render partial: 'layouts/submission_result_error' %>

Change md for lg on input_right exercises

In Bootstrap 4+ all sizes got bumped up, which makes lg the
equivalent of the old md. While this doesn't make a noticeable
effect on most screens and so I didn't change it, I'm bumping the
input right exercises to lg because md is too narrow in this case.


<% if @award.heraldry.exists? %>
  <%= link_to(@recipient.heraldry.url) do %>
    <%= image_tag @award.heraldry.url, class: 'heraldry' %>
  <% end %>
<% end %>

<%= @award %>

<%= render partial: 'details', locals: {award: @award} %>

<%= render partial: 'recipients_table', locals: {award: @award} %>

<% if can? :create, Awarding %>
  <%= link_to 'Add Recipient', new_awarding_path(award_id: @award) %> |
<% end %>
<% if can? :edit, @award %>
  <%= link_to 'Edit', edit_award_path(@award) %> |
<% end %>

<%= render 'update_oop' %>

<%= link_to 'Show All Awards', awards_path %>

<% if @award.heraldry.exists? %>
  <%= link_to(@award.heraldry.url) do %>
    <%= image_tag @award.heraldry.url, class: 'heraldry' %>
  <% end %>
<% end %>

<%= @award %>

<%= render partial: 'details', locals: {award: @award} %>

<%= render partial: 'recipients_table', locals: {award: @award} %>

<% if can? :create, Awarding %>
  <%= link_to 'Add Recipient', new_awarding_path(award_id: @award) %> |
<% end %>
<% if can? :edit, @award %>
  <%= link_to 'Edit', edit_award_path(@award) %> |
<% end %>

<%= render 'update_oop' %>

<%= link_to 'Show All Awards', awards_path %>

Fix render error in awards w/ heraldry

Fix render error in awards w/ heraldry


  <%= render :partial => 'shared/welcome_navigation', :locals => { :club => @topic.club } %>

    <%= @topic.subject %>

    <%= @topic.description %>

    <%- if can?(:create, @topic.posts.build) %>

        <a href="<%= new_topic_post_path(@topic) %>" data-remote="true" class="add-topic-post-link">Post

    <%- end %>

    <%= render :partial => "posts/list", :locals => { :topic => @topic } %>

  <%- unless @topic.posts.blank? %>

      <%- if can?(:create, @topic.posts.build) %>

          <a href="<%= new_topic_post_path(@topic) %>" data-remote="true" class="add-topic-post-link">Post

      <%- end %>

  <%- end %>

  <%= render :partial => 'shared/welcome_navigation', :locals => { :club => @topic.club } %>

    <%= @topic.subject %>

    <%= @topic.description %>

    <%- if can?(:create, @topic.posts.build) %>

        <a href="<%= new_topic_post_path(@topic) %>" data-remote="true" class="add-topic-post-link">Post

    <%- end %>

    <%= render :partial => "posts/list", :locals => { :topic => @topic } %>

  <%- unless @topic.posts.select{ |post| !post.new_record? }.blank? %>

      <%- if can?(:create, @topic.posts.build) %>

          <a href="<%= new_topic_post_path(@topic) %>" data-remote="true" class="add-topic-post-link">Post

      <%- end %>

  <%- end %>

Update Topic Create Post Links to Hide if Empty

Update the Topic view to ensure that the "Post" link (bottom) is hidden
if the Topic currently has no Posts.


This is the admin index page.

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

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

<%= link_to 'Edit Item', edit_item_path(item) %>

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

<% end %>

This is the admin index page.

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

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

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

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

<% end %>

Include working delete link next to edit item for all items within admin item view


Books App

"Busquem conhecimento", Bilu, Et.

  <% @books.in_groups_of(3).each do |books| %>

      <% books.reject(&:nil?).each do |book| %>

            <%= book_image_tag book %>

<%= book %>

<%= book.authors %>.

      <% end %>

  <% end %>

    "Busquem conhecimento"

Et Bilu

  <% @books.in_groups_of(3).each do |books| %>

      <% books.reject(&:nil?).each do |book| %>

            <%= book_image_tag book %>

<%= book %>

<%= book.authors %>.

      <% end %>

  <% end %>

Fix quote style of Et Bilu.

Fix quote style of Et Bilu.


Valley Fire Lost and Found Animals

The place to find and report missing animals for the Valley Fire in Lake County, CA.  (Coming soon.)

Learn more

  Report an Animal You Found or Lost

  View Existing Reports

Valley Fire Lost and Found Animals

The place to find and report missing animals for the Valley Fire in Lake County, CA

Learn more

  Report an Animal You Found or Lost

  View Existing Reports

Remove "Coming Soon" from home page

Remove "Coming Soon" from home page


  <label for="<%= "#{param_prefix}_preferred_amount" %>">
    <%= t(:amount) %>
    <%= text_field_tag :preferred_amount, promotion_action.preferred_amount %>

Add missing promotion action parital

Add missing promotion action parital


<% unless assignment.nil? %>

      <%= link_to I18n.t(:assignment_link,
                         short_id: assignment.short_identifier,
                         description: assignment.description),
                  edit_assignment_path(id: assignment.id),
                  class: 'title' %>

    <div id='assignment_<%= assignment.id %>_graph' class='left'>
      <%= render partial: 'assignments/grade_distribution_graph', locals: { assignment: assignment } %>

      <%= render partial: 'assignments/assignment_info_summary', locals: { assignment: assignment } %>
      <%= render partial: 'assignments/grader_summary', locals: { assignment: assignment } %>

        <%= link_to I18n.t(:refresh_graph),
                    refresh_graph_assignment_path(id: assignment.id),
                    remote: true %>

<% end %>

Fix error with dashboard for no assignments


<%= render partial: "common/fco_dashboard", locals: {
    transaction_title: 'Pay to legalise documents using the premium service',
    explanatory_copy: <<-HERE
        Service to pay the Foreign & Commonwealth Office (FCO) to get a UK public document 'legalised'
        - this means a signature, seal or stamp made by a UK public official on the document is
        confirmed as genuine by the UK government. This premium service is only available for registered
        businesses. Figures on this page include only applications processed on GOV.UK.
    HERE
} %>

<%= render partial: "common/fco_dashboard", locals: {
    transaction_title: 'Pay to legalise documents using the premium service',
    explanatory_copy: <<-HERE
	Figures for applications processed on GOV.UK  for the service to pay the Foreign & Commonwealth Office (FCO) to use the premium service to get a uk public document 'legalised' - this means a signature, seal or stamp made by a UK public official on the document is confirmed as genuine by the UK government. This premium service is only available for registered businesses.
    HERE
} %>

Update description on pay legalisation drop off


Add zeromin partial for navbar

Add zeromin partial for navbar


Sign up

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

    <%= f.label :email %>

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

    <%= f.label :password %>
    <% if @minimum_password_length %>
    (<%= @minimum_password_length %> characters minimum)
    <% end %>

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

    <%= f.label :password_confirmation %>

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

    <%= f.submit "Sign up" %>

<% end %>

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

Sign up

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

    <%= f.label :username %>

    <%= f.text_field :username, autofocus: true %>

    <%= f.label :email %>

    <%= f.email_field :email %>

    <%= f.label :password %>
    <% if @minimum_password_length %>
    (<%= @minimum_password_length %> characters minimum)
    <% end %>

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

    <%= f.label :password_confirmation %>

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

    <%= f.submit "Sign up" %>

<% end %>

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

Add a username field to registrations

Add a username field to registrations


<% provide(:meta_description, "Paul Bogard’s portfolio of programming, engineering, mapping, and other projects.")%>

<%= link_buttons(
  LinkButton.new("Paul’s Résumé", "resume", resume_path),
  LinkButton.new("Paul’s GitHub repositories", "github", "https://github.com/bogardpd/", target: :_blank)
  ) %>

<% @tags.each do |tag, values| %>
  <% if params[:tag] == tag.to_s || params[:tag] == tag %>
    <%= values[:name] %>
  <% else %>
    <%= link_to(values[:name], projects_path(tag: tag), title: values[:description], class: "badge badge-pill") %>
  <% end %>
<% end %>

<% if @projects.any? %>

    <%= render partial: "project_tile", collection: @projects, as: :project %>

<% elsif params[:tag] %>

No projects have the tag <%= params[:tag] %>!

<%= link_to("All projects", projects_path) %>

<% else %>

Could not load projects!

<% end %>

<% provide(:meta_description, "Paul Bogard’s portfolio of programming, engineering, mapping, and other projects.")%>

<%= link_buttons(
  LinkButton.new("Paul’s Résumé", "resume", resume_path),
  LinkButton.new("Paul’s GitHub repositories", "github", "https://github.com/bogardpd/", target: :_blank)
  ) %>

<% @tags.each do |tag, values| %>
  <% if params[:tag] == tag.to_s || params[:tag] == tag %>
    <span class="badge badge-pill badge-active" title="<%= values[:description] %>"><%= values[:name] %>
  <% else %>
    <%= link_to(values[:name], projects_path(tag: tag), title: values[:description], class: "badge badge-pill") %>
  <% end %>
<% end %>

<% if @projects.any? %>

    <%= render partial: "project_tile", collection: @projects, as: :project %>

<% elsif params[:tag] %>

No projects have the tag <%= params[:tag] %>!

<%= link_to("All projects", projects_path) %>

<% else %>

Could not load projects!

<% end %>

Add title to span badges on Projects

Add title to span badges on Projects


Build state can be one of `creating`, `scheduled`, `running`, `passed`, `failed`, `blocked`, `canceling`, `canceled`, `skipped`, `not_run`, or `finished`.
`finished` is a shortcut for a build of `passed`, `failed`, `blocked`, and `canceled` state.

Build state can be one of `creating`, `scheduled`, `running`, `passed`, `failed`, `blocked`, `canceling`, `canceled`, `skipped`, `not_run`.
You can query for `finished` for builds in one of the following states: `passed`, `failed`, `blocked`, or `canceled`.

Clarify that `finished` is a querying shortcut, not a build state.


Search form: <input id="search_text" type="text" /> <input id="search_btn" type="submit" value="Search" />

<script type="text/javascript">
	$("#search_btn").click(function(){
		var text = $("#search_text").val();
		$.get("/api/contacts/" + text).done(function(data){
			var result = JSON.stringify(data);
			console.log(result);
			alert('we got data: ' + result);
		});
	})

</script>

Search form: <input id="search_text" type="text" /> <input id="search_btn" type="submit" value="Search" />

<script type="text/javascript">
	$("#search_btn").click(function(){
		var text = $("#search_text").val();
		$.get("/api/contacts/" + text).done(function(data){
			var result = JSON.stringify(data);
			console.log(result);
			// alert('we got data: ' + result);
			$('#test').dataTable({
			    "aaData": data.payload,
			    "aoColumns": [
			        { "mDataProp": "name" },
			        { "mDataProp": "fbid" },
			        { "mDataProp": "email" },
			        { "mDataProp": "picurl" }
			    ]
			});

		});
	})

</script>

<table id="test" class="dataTable">
</table>

<script src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js"></script>

Fix for table on the page

Fix for table on the page


---
driver:
  name: vagrant

provisioner:
  name: chef_zero

verifier:
  name: inspec

platforms:
  - name: ubuntu-16.04
  - name: centos-7.2

suites:
  - name: default
    run_list:
      - recipe[<%= cookbook_name %>::default]
    verifier:
      inspec_tests:
        - test/recipes
    attributes:

---
driver:
  name: vagrant

provisioner:
  name: chef_zero
  always_update_cookbooks: true

verifier:
  name: inspec

platforms:
  - name: ubuntu-16.04
  - name: centos-7.2

suites:
  - name: default
    run_list:
      - recipe[<%= cookbook_name %>::default]
    verifier:
      inspec_tests:
        - test/recipes
    attributes:

Set the always_update_cookbooks flag by default.

See https://github.com/test-kitchen/test-kitchen/pull/1107 for details. This is off by default for Kitchen but turned on here as it is probably the friendliest option for new users.


<%= link_to image_tag('thumbs-up.jpg', class: "up-vote-question thumbs", data: { direction: "up", url: "/questions/#{@question.id}/votes", question_id: @question.id, votable_type: "Question"}), "/" %>

<%= link_to image_tag('thumbs-up.jpg', class: "up-vote-question thumbs", data: { direction: "up", url: "/questions/#{@question.id}/votes", question_id: @question.id, votable_type: "Question"}), "#" %>

Add thumb image for ajax call

Add  thumb image for ajax call


-
  kind: "<%= CLIENT_APP_CREATOR_KIND %>"
  human_name: "Client App Creator"
  prefix: nil
  repo_url: "git@github.com:g5search/g5-client-app-creator.git"
  non_client: true
-
  kind: "<%= CLIENT_APP_CREATOR_DEPLOYER_KIND %>"
  human_name: "Client App Creator Deployer"
  prefix: nil
  repo_url: "git@github.com:g5search/g5-sibling-deployer.git"
  non_client: true
-
  kind: "content-management-system"
  human_name: "CMS"
  prefix: "cms"
  repo_url: "git@github.com:g5search/g5-content-management-system.git"
-
  kind: "client-app-updater"
  human_name: "Client App Updater"
  prefix: "cau"
  repo_url: "git@github.com:g5search/g5-sibling-deployer.git"
-
  kind: "phone-number-service"
  human_name: "Phone Number Service"
  prefix: "cpns"
  repo_url: "git@github.com:G5/g5-phone-number-service.git"
-
  kind: "pricing-and-availability-service"
  human_name: "Pricing and Availability Service"
  prefix: "cpas"
  repo_url: "git@github.com:G5/g5-pricing-and-availability-service.git"

-
  kind: "<%= CLIENT_APP_CREATOR_KIND %>"
  human_name: "Client App Creator"
  prefix: nil
  repo_url: "git@github.com:G5/g5-client-app-creator.git"
  non_client: true
-
  kind: "<%= CLIENT_APP_CREATOR_DEPLOYER_KIND %>"
  human_name: "Client App Creator Deployer"
  prefix: nil
  repo_url: "git@github.com:G5/g5-sibling-deployer.git"
  non_client: true
-
  kind: "content-management-system"
  human_name: "CMS"
  prefix: "cms"
  repo_url: "git@github.com:G5/g5-content-management-system.git"
-
  kind: "client-app-updater"
  human_name: "Client App Updater"
  prefix: "cau"
  repo_url: "git@github.com:G5/g5-sibling-deployer.git"
-
  kind: "phone-number-service"
  human_name: "Phone Number Service"
  prefix: "cpns"
  repo_url: "git@github.com:G5/g5-phone-number-service.git"
-
  kind: "pricing-and-availability-service"
  human_name: "Pricing and Availability Service"
  prefix: "cpas"
  repo_url: "git@github.com:G5/g5-pricing-and-availability-service.git"

Update apps to use open source git repos


Create a New Snippet

    <%= render 'form' %>

<%= link_to 'Back', posts_path %>

<%= link_to 'Home', '/' %>

Create a New Snippet

    <%= render 'form' %>

Update styling for 'Home' button

Update styling for 'Home' button


---
- scm:
    name: smokey_Smokey
    scm:
        - git:
            url: git@github.com:alphagov/smokey.git
            branches:
              - master

- job:
    name: Smokey
    display-name: Smokey
    project-type: freestyle
    scm:
      - smokey_Smokey
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    publishers:
      <% if @enable_slack_notifications %>
      - slack:
          team-domain: <%= @slack_team_domain %>
          auth-token: <%= @environment_variables['SECOND_LINE_SLACK_AUTH_TOKEN']%>
          build-server-url: <%= @slack_build_server_url %>
          notify-start: false
          notify-success: false
          notify-aborted: true
          notify-notbuilt: true
          notify-unstable: false
          notify-failure: true
          notify-backtonormal: true
          notify-repeatedfailure: false
          include-test-summary: false
          room: <%= @slack_room %>
          include-custom-message: true
          custom-message: ':govuk-<%= @environment %>:'
      <% end %>

    builders:
        - shell: |
            set +x
            export TARGET_PLATFORM=<%= @environment %>
            export MYTASK=<%= @smokey_task %>
            set -x
            ./jenkins.sh
    wrappers:
        - ansicolor:
            colormap: xterm

---
- scm:
    name: smokey_Smokey
    scm:
        - git:
            url: git@github.com:alphagov/smokey.git
            branches:
              - master

- job:
    name: Smokey
    display-name: Smokey
    project-type: freestyle
    scm:
      - smokey_Smokey
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    <% if @enable_slack_notifications %>
    publishers:
      - slack:
          team-domain: <%= @slack_team_domain %>
          auth-token: <%= @environment_variables['SECOND_LINE_SLACK_AUTH_TOKEN']%>
          build-server-url: <%= @slack_build_server_url %>
          notify-start: false
          notify-success: false
          notify-aborted: true
          notify-notbuilt: true
          notify-unstable: false
          notify-failure: true
          notify-backtonormal: true
          notify-repeatedfailure: false
          include-test-summary: false
          room: <%= @slack_room %>
          include-custom-message: true
          custom-message: ':govuk-<%= @environment %>:'
    <% end %>

    builders:
        - shell: |
            set +x
            export TARGET_PLATFORM=<%= @environment %>
            export MYTASK=<%= @smokey_task %>
            set -x
            ./jenkins.sh
    wrappers:
        - ansicolor:
            colormap: xterm

Fix None publishers array for Smokey job

This is causing a failure on jenkins as the 'publishers' key exists but
the value is None.


#!/bin/bash
#
# Managed by Puppet
#
# Mirror Anaconda Scientific Python installers
#
BASE_DIR="<%= @base_dir =%>"
BASE_URL="<%= @base_url =%>"
V2_BASE="<%= @v2_base =%>"
V3_BASE="<%= @v3_base =%>"
SWITCHES="--no-clobber --no-parent --recursive"

# Mirror v2
mkdir -p "${BASE_DIR}/v2"
cd "${BASE_DIR}/v2"
wget $SWITCHES "${BASE_URL}/${V2_BASE}"

# Mirror v3
mkdir -p "${BASE_DIR}/v3"
cd "${BASE_DIR}/v3"
wget $SWITCHES "${BASE_URL}/${V3_BASE}"

#!/bin/bash
#
# Managed by Puppet
#
# Mirror Anaconda Scientific Python installers
#
BASE_DIR="<%= @base_dir %>"
BASE_URL="<%= @base_url %>"
V2_BASE="<%= @v2_base %>"
V3_BASE="<%= @v3_base %>"
SWITCHES="--no-clobber --no-parent --recursive"

# Mirror v2
mkdir -p "${BASE_DIR}/v2"
cd "${BASE_DIR}/v2"
wget $SWITCHES "${BASE_URL}/${V2_BASE}"

# Mirror v3
mkdir -p "${BASE_DIR}/v3"
cd "${BASE_DIR}/v3"
wget $SWITCHES "${BASE_URL}/${V3_BASE}"

Fix local scope var lookup typo

Fix local scope var lookup typo


This is where all of the available items will be visible.

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

<%= item.name %>

<% end %>

This is where all of the available items will be visible.

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

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

<% end %>

Convert item names to clickable links that take you to each individual item show page


<% provide(:title, "Team Quiz: Question") %>

	<% @questions.each do |question| %>
    <% if current_user and current_user.admin? %>
	   <%= link_to question.title, edit_quiz_question_path(question), class: "list-group-item" %>
    <% else %>
    <%= link_to question.title, question, class: "list-group-item" %>
    <% end %>
  <% end %>

<%= paginate @questions %>

<% if current_user and current_user.admin? %>

<%= link_to "New Question", new_quiz_question_path, class: "btn btn-default" %>

<% end %>

<% provide(:title, "Team Quiz: Question") %>

	<% @questions.each do |question| %>
    <% if current_user and current_user.admin? %>
		<% css_class = "active" if question.visible %>
	   <%= link_to question.title, edit_quiz_question_path(question), class: "list-group-item #{css_class}" %>
    <% else %>
    <%= link_to question.title, question, class: "list-group-item" %>
    <% end %>
  <% end %>

<%= paginate @questions %>

<% if current_user and current_user.admin? %>

<%= link_to "New Question", new_quiz_question_path, class: "btn btn-default" %>

<% end %>

Add active css class when question is visible


<% set_meta_tags(description: news_article.description,
                 canonical:   news_article.canonical_url,
                 alternate:   news_article.alternate_options) %>

<% content_for(:context_bar) do %>
  <% if @breadcrumbs.present? %>
    <%= render 'shared/breadcrumbs', breadcrumbs: @breadcrumbs %>
  <% end %>
<% end %>

<%= title news_article.title %>

        <time itemprop="datePublished" datetime=<%= news_article.date(format: :long) %>><%= news_article.date %></time>

      <%= news_article.content %>

  <%= render 'shared/nav', categories: category_navigation %>

<% content_for(:alternate_link) do %>
  <% news_article.footer_alternate_options.each do |locale, url| %>
    <%= link_to(url, id: "#{locale}Link", lang: locale) do %>

      <%= t("locales.#{locale}") %>
    <% end %>
  <% end %>
<% end %>

Add layout containers for news article page


<%# render :partial => 'organizations/item', :locals => {:organization => @organization} %>

<%= @organization.name %>

  URL:
  <%= source_url_link @organization %>

<% unless @organization.topics.blank? -%>

  Topics:
  <%= render :partial => 'shared/topics', :locals => {:topics => @organization.topics} %>

<% end %>

   Events:
   <%= render :partial => 'events/list', :locals => { :events =>  @organization.events } %>

<% content_for :sidebar do %>

<%= link_to 'Edit this organization', edit_organization_url %>

<%= link_to 'Import events from an existing source', new_organization_source_path(@organization) %>

<%# link_to 'Destroy', @organization, :confirm => 'Are you sure?', :method => :delete %>
<% end %>

<%# render :partial => 'organizations/item', :locals => {:organization => @organization} %>

<%= @organization.name %>

  URL:
  <%= source_url_link @organization %>

<% unless @organization.topics.blank? -%>

  Topics:
  <%= render :partial => 'shared/topics', :locals => {:topics => @organization.topics} %>

<% end %>

   Events:
   <%= render :partial => 'events/list', :locals => { :events =>  @organization.events } %>

<% content_for :sidebar do %>

<%= link_to 'Edit this organization', edit_organization_url %>

<%= link_to 'Import events from an existing source', new_organization_source_path(@organization) %>

<%= link_to 'Add an event', '/events/new?event[organization_id]=' + @organization.id.to_s %>
      <%# XXX TODO - last line is a hack.  Should use something like new_event_url after updating routes.rb,
                     or figure out how to set params to pass org id. %>

<%# link_to 'Destroy', @organization, :confirm => 'Are you sure?', :method => :delete %>
<% end %>

Add link to add-event page from Org show page.

 [Fixes #23663807]


<% content_for :body do %>

        <%= link_to t("godmin.title"), root_path, class: "navbar-brand" %>

          <%= render partial: File.join(engine_wrapper.namespaced_path, "shared/navigation") %>

          <%= render partial: File.join(engine_wrapper.namespaced_path, "shared/navigation_aside") %>

    <%= render "layouts/godmin/content" %>

<% end %>

<%= render "layouts/godmin/layout" %>

<% content_for :body do %>

        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#godmin-navbar-collapse" aria-expanded="false">
          Toggle navigation

        </button>
        <%= link_to t("godmin.title"), root_path, class: "navbar-brand" %>

          <%= render partial: File.join(engine_wrapper.namespaced_path, "shared/navigation") %>

          <%= render partial: File.join(engine_wrapper.namespaced_path, "shared/navigation_aside") %>

    <%= render "layouts/godmin/content" %>

<% end %>

<%= render "layouts/godmin/layout" %>

Fix navbar for mobile devices

Fix navbar for mobile devices


email Share this poll with Yammer people.

    <%= link_to "Sign in with Yammer", "/auth/yammer", class: "sign-in",  id: "sign-in" %>

Fix typo "email Share this poll..."

Fix typo "email Share this poll..."


<%= f.object.title.present? ? f.object.title : 'Untitled part' %>

  <%= f.inputs do %>
    <%= f.input :title, :input_html => { :class => 'title' }, :label => false, :hint => "Enter text to rename this part", %>
    <%= f.input :excerpt, :as => :text, :input_html => { :class => 'autogrow', :rows => 4, :cols => 50, :maxlength => 10 } %>
    <%= f.input :body, :as => :text, :input_html => { :class => 'autogrow', :rows => 8, :cols => 50, :maxlength => 10 } %>
    <%= f.input :slug, :hint => "gov.uk/guide-title/slug-name", :required => true %>
    <%= f.input :order, :as => :hidden, :input_html => { :class => 'order' } %>

<%= f.remove_link "Remove this part" %>

  <% end %>

<%= f.object.title.present? ? f.object.title : 'Untitled part' %>

  <%= f.inputs do %>
    <%= f.input :title, :input_html => { :class => 'title' }, :label => false, :hint => "Enter text to rename this part", %>
    <%= f.input :excerpt, :as => :text, :input_html => { :class => 'autogrow', :rows => 4, :cols => 50, :maxlength => 255 } %>
    <%= f.input :body, :as => :text, :input_html => { :class => 'autogrow', :rows => 8, :cols => 50 } %>
    <%= f.input :slug, :hint => "gov.uk/guide-title/slug-name", :required => true %>
    <%= f.input :order, :as => :hidden, :input_html => { :class => 'order' } %>

<%= f.remove_link "Remove this part" %>

  <% end %>

Remove maxlength on part body, increase it on part excerpt


  <% if @use_minimal_nav %>

      <%= link_to 'DocumentCloud', '/', class: 'nav-item nav-link dc-logo' %>

      <%= link_to "← #{@minimal_back_text}".html_safe, @minimal_back_link, class: 'nav-item nav-link' %>

  <% else %>

          <%= link_to 'DocumentCloud', '/', class: 'nav-item nav-link dc-logo' %>

        <button id="dc-main-nav-toggler" class="navbar-toggler pull-sm-right" type="button" data-toggle="collapse" data-target="#dc-main-nav">☰</button>

          <%= render "common/new/nav_#{'un' unless @current_account}authenticated" %>

  <% end %>

  <% if @use_minimal_nav %>

      <%= link_to 'DocumentCloud', '/', class: 'nav-item nav-link dc-logo' %>

      <%= link_to "← #{@minimal_back_text}".html_safe, @minimal_back_link, class: 'nav-item nav-link' %>

  <% else %>

          <%= link_to 'DocumentCloud', '/', class: 'nav-item nav-link dc-logo' %>

        <button id="dc-main-nav-toggler" class="navbar-toggler float-sm-right" type="button" data-toggle="collapse" data-target="#dc-main-nav">☰</button>

          <%= render "common/new/nav_#{'un' unless @current_account}authenticated" %>

  <% end %>

Update markup for Bootstrap v4 alpha 5 compat


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

      </button>
      <%= link_to "WriteNow", root_path, class: "navbar-brand" %>

        <% if session[:user_id] %>

            Account

<%= link_to "Profile", user_path(current_user) %>

<%= link_to "Account Settings", "" %>

<%= link_to "Logout", logout_path, method: :delete %>

        <% else %>

<%= link_to "Signup", signup_form_path %>

<%= link_to "Login", login_form_path %>

        <% end %>

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

      </button>
      <%= link_to "WriteNow", root_path, class: "navbar-brand" %>

        <% if session[:user_id] %>

            Account

<%= link_to "Profile", user_path(current_user) %>

<%= link_to "Account Settings", edit_user_path(current_user) %>

<%= link_to "Logout", logout_path, method: :delete %>

        <% else %>

<%= link_to "Signup", signup_form_path %>

<%= link_to "Login", login_form_path %>

        <% end %>

Add link to 'Account Settings' (edit_user_path(current_user)) in the global_nav partial.


			<%= link_to "TeachReach", root_path, :class => 'brand' %>

				<%= nav_link 'Home', root_path %>
				<%= nav_link 'Courses', courses_path %>
				<%= nav_link 'Programmes', programmes_path %>
				<%= nav_link 'Parts', parts_path %>

					<% if current_user %>
						<%= nav_link 'Logout', logout_path %>
					<% else %>
						<%= nav_link 'Sign up', signup_path %>
						<%= nav_link 'Log in', login_path %>
					<% end %>

Add divider back into nav bar

Add divider back into nav bar


El usuario: <%= @user.name %> ha reportado el documento <%= @document.title %>.

Analice.me

El usuario: <%= @user.email %> ha reportado el documento <%= @document.title %>.

Analice.me

Send user email on flag notification

[aphrodite] Send user email on flag notification


New Order

            Category
            Item
            Quantity

          <%= render partial: "orders/new_order_item_row" %>

        <button id="add-item-row" type="button" class="btn btn-default btn-sm">
           Add Item
        </button>

Fix tabbing and remove extra closing div


Cologne Sanskrit Lexicon

FIXME: some words about the Cologne Sankrit Lexicon.

Search

	<% @query = {} %>
	<%= render 'search/search_form'  %>

The dictionaries

FIXME: some words about the dictionaries.

The people

FIXME: some words about the people.

<%-# Licensed under the ISC licence, see LICENCE.ISC for details -%>

Cologne Sanskrit Lexicon

FIXME: some words about the Cologne Sankrit Lexicon.

Search

	<% @query = {} %>
	<%= render 'search/search_form'  %>

The dictionaries

FIXME: some words about the dictionaries.

The people

FIXME: some words about the people.

Other resources

FIXME: some links to the other parts of the site.

<%-# Licensed under the ISC licence, see LICENCE.ISC for details -%>

Add 'Other resources' section to home page


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

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

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

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

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

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

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

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

Add div id & ul id for river

Add div id & ul id for river


<%= notice %>

<%= image_tag @user.image_url %>

  Name:
  <%= @user.name %>

  Email:
  <%= @user.email %>

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

<%= notice %>

<%= image_tag @user.image_url %>

  Name:
  <%= @user.name %>

  Email:
  <%= @user.email %>

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

<%= link_to "New Question", question_path %>

Add button/link to new question form

Add button/link to new question form


<%= link_to 'Trending', '#' %> // <%= link_to 'Newest', '#' %>

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

Something Else

<% @user.comments.each do |comment| %>

    <% if current_user %>
      <%= link_to image_tag("snowflake.png", class: "snowflake"), {:controller => "votes",
          :action => "create",
          :comment_id => comment.id,
          :user_id => current_user.id,
          :value => "1"},
          :method => "post" %>
    <% else %>
      <%= link_to image_tag("snowflake.png", class: "snowflake") %>
    <% end %>

    <%= comment.votes.sum(:value) %>

<%= comment.content%>

<%= comment.trail.name %> @ <%= comment.trail.mountain.name %>

<% end %>

<%= link_to 'Trending', '#' %> // <%= link_to 'Newest', '#' %>

<%= @user.name %> Posts

TBD

<% @user.comments.each do |comment| %>

    <% if current_user %>
      <%= link_to image_tag("snowflake.png", class: "snowflake"), {:controller => "votes",
          :action => "create",
          :comment_id => comment.id,
          :user_id => current_user.id,
          :value => "1"},
          :method => "post" %>
    <% else %>
      <%= link_to image_tag("snowflake.png", class: "snowflake") %>
    <% end %>

    <%= comment.votes.sum(:value) %>

<%= comment.content%>

<%= comment.trail.name %> @ <%= comment.trail.mountain.name %>

<% end %>

Change class names for header

Change class names for header


Upload image(s)

<%= form_for @image, :url => images_path, :html => { multipart: true } do |f| %>
  <%= f.label 'file' %>
  <%= f.file_field :file, :multiple => true %>
  <%= submit_tag 'Upload image' %>
<% end %>

Upload image(s)

Upload files from computer

<%= form_for @image, :url => images_path, :html => { multipart: true } do |f| %>
  <%= f.label 'file' %>
  <%= f.file_field :file, :multiple => true %>
  <%= submit_tag 'Upload image' %>
<% end %>

Upload file from URL

<%= form_for @image, :url => images_path do |f| %>
  <%= label_tag(:image_url, 'Upload from URL') %>
  <input id="image_url" name="image[url]" type="url" />
  <%= submit_tag 'Upload from this URL' %>
<% end %>

Add new upload from URL form

Add new upload from URL form


Settings

  <%= form_for current_user do |f| %>

    <% if Octobox.personal_access_tokens_enabled? %>

        <%= f.label :personal_access_token %>
        <%= f.text_field :personal_access_token, value: nil, placeholder: current_user.masked_personal_access_token, class: 'form-control' %>

          Setting a personal access token will cause Octobox to authenticate with this token instead of the OAuth token
          that was generated when you logged in.  There is no need to set this unless you have a specific reason.

        Clear personal access token
        <input type="checkbox" name="clear_personal_access_token" id="clear_personal_access_token"/>

      <%= submit_tag 'Save', class: 'btn btn-primary' %>
      <%= link_to 'Cancel', root_path, class: 'btn btn-default' %>
    <% end %>
  <% end %>

    <%= link_to 'Delete my Octobox account', current_user, method: :delete, class: 'btn btn-danger', data: {confirm: 'Are you sure you want to do this?'}%>

      Deleting your Octobox account permanently removes all data associate with your user from Octobox's database.
    Once you have deleted your account, logging in again will create a new account associated with your github user and
    load existing notifications.

Add description to delete button

Add description to delete button


              <%= image_tag "step1.png", :alt => "", :class => "steps__step-icon" %>

<%= _("1. Choose the institution your request is for") %>

              <%= image_tag "step2.png", :alt => "", :class => "steps__step-icon" %>

<%= _("2. Enter your request into our form") %>

              <%= image_tag "step3.png", :alt => "", :class => "steps__step-icon" %>

<%= _("3. Send your request and await a response") %>

              <%= image_tag "step4.png", :alt => "", :class => "steps__step-icon" %>

<%= _("4. We'll notify you of a response, and you can read it here") %>

              <%= image_tag "step1.png", :alt => "", :class => "steps__step-icon" %>

<%= _("1. Choose the institution your request is for") %>

              <%= image_tag "step2.png", :alt => "", :class => "steps__step-icon" %>

<%= _("2. Enter your request into our form") %>

              <%= image_tag "step3.png", :alt => "", :class => "steps__step-icon" %>

<%= _("3. Send your request and await a response") %>

              <%= image_tag "step4.png", :alt => "", :class => "steps__step-icon" %>

<%= _("4. We'll notify you of a response, and you can " \
                       "read it here",
                       :url => request_list_successful_path) %>

Add link to homepage steps

Add link to homepage steps

Partner feedback.


#!/bin/sh
exec 2>&1
cd <%= node['jenkins']['node']['home'] %>
exec chpst -u <%= node['jenkins']['node']['user'] %> \
  env HOME=<%= node['jenkins']['node']['home'] %> \
  USER=<%= node['jenkins']['node']['user'] %> \
<% if node['jenkins']['node']['locale'] %>
  LANG="<%= node['jenkins']['node']['locale'] %>" \
  LC_ALL="<%= node['jenkins']['node']['locale'] %>" \
<% end %>
  java -jar <%= node['jenkins']['node']['home'] %>/slave.jar \
<% if node['jenkins']['node']['no_certificate_check'] -%>
  -noCertificateCheck \
<% end -%>
  -jnlpUrl <%= node['jenkins']['server']['url'] %>/computer/<%= node['jenkins']['node']['name'] %>/slave-agent.jnlp \
  <%= !@options[:secret] || @options[:secret].empty? ? '' : "-secret #{@options[:secret]}" %> \
  <%= node['jenkins']['node']['jvm_options'] %>

#!/bin/sh
exec 2>&1
cd <%= node['jenkins']['node']['home'] %>
exec chpst -u <%= node['jenkins']['node']['user'] %> \
  env HOME=<%= node['jenkins']['node']['home'] %> \
  USER=<%= node['jenkins']['node']['user'] %> \
<% if node['jenkins']['node']['locale'] %>
  LANG="<%= node['jenkins']['node']['locale'] %>" \
  LC_ALL="<%= node['jenkins']['node']['locale'] %>" \
<% end %>
  java <%= node['jenkins']['node']['jvm_options'] %> -jar <%= node['jenkins']['node']['home'] %>/slave.jar \
<% if node['jenkins']['node']['no_certificate_check'] -%>
  -noCertificateCheck \
<% end -%>
  -jnlpUrl <%= node['jenkins']['server']['url'] %>/computer/<%= node['jenkins']['node']['name'] %>/slave-agent.jnlp \
  <%= !@options[:secret] || @options[:secret].empty? ? '' : "-secret #{@options[:secret]}" %>

Change jvm_options order in runit slave script


  7 Days
  30 Days
  180 Days
  365 Days

  <select>
    <option disabled>Select a class</option>
    <option value="JobTestFast">JobTestFast</option>
    <option value="JobTestSlow">JobTestSlow</option>
    <option value="Fibonacci">Fibonacci</option>
  </select>

  7 Days
  30 Days
  180 Days
  365 Days

  <select>
    <option>Select a class</option>
    <% @classes.each do |class_name| %>
      <option value="<%= class_name %>" <%= 'selected' if class_name == @class %>><%= class_name %></option>
    <% end %>
  </select>

Update view for historical data

Update view for historical data


<% results = results.reject { |r| r.description.empty? } %>
<% if results.any? %>

<%= Proposition.model_name.human(count: 2).capitalize %>

    <% results.each do |r| %>
      <% if r.votes.first %>

<%= link_to r.description, vote_path(r.votes.first.slug) %>

      <% else %>

<%= r.description %>

      <% end %>
    <% end %>

<% end %>

<% results = results.reject { |r| r.description.empty? } %>

<% if results.any? %>

<%= Proposition.model_name.human(count: 2).capitalize %>

    <% results.each do |r| %>
      <% if r.votes.first %>
        <li data-proposition-id="<%= r.id %>"><%= link_to r.description, vote_path(r.votes.first.slug) %>

      <% else %>
        <li data-proposition-id="<%= r.id %>"><%= r.description %>

      <% end %>
    <% end %>

<% end %>

Add data-proposition-id to proposition search results.


<%= notice %>

<% if current_user == nil %>

Welcome

    <%= link_to 'Register', new_user_path, class: 'btn-large waves-effect waves-light block' %>
    <%= link_to 'Login', login_path, class: 'btn-large waves-effect waves-light block' %>

<% end %>

Why BrightFolio?

Monocle ipsum dolor sit amet ettinger Melbourne intricate, business class flat white signature the highest quality carefully curated concierge.

Glossay/Key/Guide

We wanted to keep the interface pretty clean, so when possible, we just used icons for control.

    Made by BrightFolio

<%= notice %>

THIS IS THE VERSION I WANT TO BE USING
<% if current_user == nil %>

Welcome

    <%= link_to 'Register', new_user_path, class: 'btn-large waves-effect waves-light block' %>
    <%= link_to 'Login', login_path, class: 'btn-large waves-effect waves-light block' %>

<% end %>

Why BrightFolio?

Monocle ipsum dolor sit amet ettinger Melbourne intricate, business class flat white signature the highest quality carefully curated concierge.

Glossay/Key/Guide

We wanted to keep the interface pretty clean, so when possible, we just used icons for control.

    Made by BrightFolio

Add version line to test that Heroku is updating


<%= javascript_include_tag 'jquery' %>

<%= MarkusConfigurator.markus_config_course_name %>

    <%= render 'shared/flash_message' %>

    <%= form_tag({ action: 'login',
                   id: nil },
                 { # Quotes for onsubmit must be like this to show string properly
                   onsubmit: "jQuery('#submit').prop('disabled', true);
                              jQuery('#submit').val('#{ t(:logging_in) }');",
                   id: 'login_form' }) do %>
      <%= text_field_tag 'user_login',
                         nil,
                         tabindex: 10,
                         placeholder: t(:login),
                         autocorrect: 'off' %>
      <%= password_field_tag 'user_password',
                             nil,
                             tabindex: 20,
                             placeholder: t(:password) %>

        <%= submit_tag t(:log_in),
                       tabindex: 100,
                       id: 'submit' %>

    <% end %>

<%= javascript_include_tag 'jquery' %>
<%= javascript_include_tag 'jquery_ujs' %>

    <%= MarkusConfigurator.markus_config_course_name %>

    <%= render 'shared/flash_message' %>

    <%= form_tag({ action: 'login' }) do %>
      <%= text_field_tag 'user_login',
                         nil,
                         tabindex: 1,
                         placeholder: t(:login),
                         autocorrect: 'off',
                         autofocus: true %>
      <%= password_field_tag 'user_password',
                             nil,
                             tabindex: 2,
                             placeholder: t(:password) %>

        <%= submit_tag t(:log_in),
                       data: { disable_with: t(:logging_in) },
                       tabindex: 3 %>

    <% end %>

Remove hacky way of focusing username field and disabling submit button


<% @content_title = "Home Page" %>

Cool Stuff Here

<%= link_to "Users", users_path %>

Remove users link from home page

Remove users link from home page


Order History

  <% @user_account.orders.each do |order| %>
      <%= render "list", order: order %>
  <% end %>

Order History

  <% @orders.each do |order| %>
      <%= render "list", order: order %>
  <% end %>

Fix typo on index view

Fix typo on index view


#!/bin/bash

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

# Send output to the log
exec > /var/log/tile/update-lowzoom-<%= @style %>.log 2>&1

# Update tiles from z0 to z10 for style "<%= @style %>"
render_list \
  --all --force \
  --tile-dir=/srv/tile.openstreetmap.org/tiles \
  --socket=/var/run/renderd/renderd.sock \
  --num-threads=<%= ( node[:cpu][:total] - 2 ) / 4 %> \
  --map="<%= @style %>" \
  --max-load=70 \
  --min-zoom=0 --max-zoom=10

# Update timestamp for style "<%= @style %>"
touch \
  --reference="/srv/tile.openstreetmap.org/styles/<%= @style %>/project.mml" \
  "/srv/tile.openstreetmap.org/tiles/<%= @style %>/planet-import-complete"

# Update tiles from z11 to z12 for style "<%= @style %>"
render_old \
  --tile-dir=/srv/tile.openstreetmap.org/tiles \
  --socket=/var/run/renderd/renderd.sock \
  --num-threads=<%= ( node[:cpu][:total] - 2 ) / 4 %> \
  --map="<%= @style %>" \
  --max-load=70 \
  --min-zoom=11 --max-zoom=12

exit 0

#!/bin/bash

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

# Send output to the log
exec > /var/log/tile/update-lowzoom-<%= @style %>.log 2>&1

# Update tiles from z0 to z10 for style "<%= @style %>"
render_list \
  --all --force \
  --tile-dir=/srv/tile.openstreetmap.org/tiles \
  --socket=/var/run/renderd/renderd.sock \
  --num-threads=<%= ( node[:cpu][:total] - 2 ) / 4 %> \
  --map="<%= @style %>" \
  --max-load=70 \
  --min-zoom=0 --max-zoom=10

# Update timestamp for style "<%= @style %>"
touch \
  --reference="/srv/tile.openstreetmap.org/styles/<%= @style %>/project.xml" \
  "/srv/tile.openstreetmap.org/tiles/<%= @style %>/planet-import-complete"

# Update tiles from z11 to z12 for style "<%= @style %>"
render_old \
  --tile-dir=/srv/tile.openstreetmap.org/tiles \
  --socket=/var/run/renderd/renderd.sock \
  --num-threads=<%= ( node[:cpu][:total] - 2 ) / 4 %> \
  --map="<%= @style %>" \
  --max-load=70 \
  --min-zoom=11 --max-zoom=12

exit 0

Update the planet timestamp correctly when the style changes


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

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

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

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

Increase Spotlight assets cache time to 1 month

When we deploy applications, we frequently see issues where the page
is rendered without assets.

Initially we thought Varnish was working incorrectly, but actually I
think the issue is that the files are not in the cache on both frontend
app servers, which means that we respond with a 404 in some cases.

If the file is in Varnish on only one frontend app server, and somebody
who does not have the page cached locally makes a request that hits
the other frontend app server, they'll get a 404.

An easy way to fix this is to increase the cache time to a month, which
we can do now because everything is being properly cachebusted.


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

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public class <%= repository.arez.dao_gin_module_name %>
  extends com.google.gwt.inject.client.AbstractGinModule
{
  @java.lang.Override
  protected void configure()
  {
<%
  repository.data_modules.select{|data_module| data_module.arez?}.each do |data_module|
    data_module.daos.select{|dao| dao.arez? && !dao.entity.abstract?}.each do |dao|
-%>
    bind<%= dao.qualified_name.to_s.gsub('.','') %>();
<%
    end
  end
-%>
  }
<%
  repository.data_modules.select{|data_module| data_module.arez?}.each do |data_module|
    data_module.daos.select{|dao| dao.arez? && !dao.entity.abstract?}.each do |dao|
-%>

  protected void bind<%= dao.qualified_name.to_s.gsub('.','') %>()
  {
    bind( <%= dao.arez.qualified_repository_name %>.class ).to( <%= dao.arez.qualified_repository_name %>.class ).in( javax.inject.Singleton.class );
  }
<%
    end
  end
-%>
}

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

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public class <%= repository.arez.dao_gin_module_name %>
  extends com.google.gwt.inject.client.AbstractGinModule
{
  @java.lang.Override
  protected void configure()
  {
    bind( <%= repository.arez.qualified_root_repository_name %>.class ).in( javax.inject.Singleton.class );
  }
<%
  repository.data_modules.select{|data_module| data_module.arez?}.each do |data_module|
    data_module.daos.select{|dao| dao.arez? && !dao.entity.abstract?}.each do |dao|
-%>

  @javax.annotation.Nonnull
  @com.google.inject.Provides
  @javax.inject.Singleton
  public final <%= dao.arez.qualified_repository_name %> get<%= dao.qualified_name.to_s.gsub('.','') %>( @javax.annotation.Nonnull final <%= repository.arez.qualified_root_repository_name %> repository )
  {
    return repository.<%= Reality::Naming.camelize(data_module.name) %>().<%= Reality::Naming.camelize(dao.name) %>();
  }
<%
    end
  end
-%>
}

Fix binding of dao instances in GIN modules


<fieldset id="order_details">

  <legend><%= t("confirm") %></legend>
  <%= render :partial => 'shared/order_details', :locals => {:order => @order} -%>
</fieldset>

  <input type="submit" class="continue button primary" value="<%=t("save_and_continue") %>"/>

<fieldset id="order_details">

  <legend><%= t("confirm") %></legend>
  <%= render :partial => 'shared/order_details', :locals => {:order => @order} -%>
</fieldset>

  <input type="submit" class="continue button primary" value="<%=t("place_order") %>"/>

Change the button label in the final step of order to 'Place Order'
instead of 'Save and continue'.

[#1194 state:resolved]


<!DOCTYPE html>

  <title>Overheard - Quotes Sans Context</title>

Overheard - Quotes Sans Context

Silly Sayings Said Serendipitously

  <% @overheards.each do |overheard| %>

<%= overheard.body %>

  <% end %>

<!DOCTYPE html>

  <title>Overheard - Quotes Sans Context</title>

Overheard - Quotes Sans Context

Silly Sayings Said Serendipitously

    Add Overheard

  <% @overheards.each do |overheard| %>

<%= overheard.body %>

  <% end %>

Create link to page where we create new overheards

The pattern we're following is that first, we declare our intent; then
we make the change.

We used the test to declare the intent that their would be a link with
the text "Add Overheard".

We now use the link to declare the intent that the application will have
a
[route](https://github.com/codeunion/fundamentals-of-web-development/wiki/Glossary#route-sinatra)
that responds to GET requests to the path `/overheards/new`.

As our tests run, we see the failure message has changed. Instead of saying
'Unable to find link or button "Add Overheard"' it now says 'Unable to
find field "Body"'.

This is good! It means our test successfully clicked on the Add
Overheard link and tried to take the next step in the test; filling in
the text field.

New Tags
========
`nav` - Contains navigation elements.
[Reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav)

`a` - Stands for 'anchor'. Creates a
[hyperlink](https://https://github.com/codeunion/fundamentals-of-web-development/wiki/Glossary/#link-html)
to another page.
[Reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)


#!/bin/bash -e

cd /home/vagrant/janus-gateway-js
npm install

#!/bin/bash -e

chown -R vagrant /usr/local/chrome-linux

cd /home/vagrant/janus-gateway-js
npm install

Add a workaround line (to be removed later!)


Your cart

			Title
			Quantity

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

				<%= row[0].title %>
	  			<%= row[1] %>

	  	<% end %>

Your cart

			#
			Title
			Price
			Quantity

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

				<%= x += 1 %>
				<%= item[0].title %>
				<%= item[0].price %>
	  			<%= item[1] %>

	  	<% end %>

Add number and price to table

Add number and price to table


<!DOCTYPE html>

  <%= render :partial => "/shared/head", :locals => {:theme => true} %>

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

        <%= render :partial => "/shared/ie6check" if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%>

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

          <%= yield %>

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

<!DOCTYPE html>
<%= render :partial => "/shared/html_tag" %>
  <% site_bar = render(:partial => "/shared/site_bar", :locals => {:head => true}) -%>
  <%= render :partial => "/shared/head", :locals => {:theme => true} %>

    <%= site_bar -%>
    <%= render :partial => "/shared/ie6check" if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%>

        <%= render :partial => "/shared/header" -%>

        <%= yield %>

        <%= render :partial => "/shared/footer" -%>

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

Update layout HTML to latest version in Refinery.


Check the request

Check the details below to make sure they are correct. Update any incorrect details, then submit the request.

<%= not_given_formatter(@defence_request, :detainee_name, "name_not_given") %>

  <%= render("defence_requests/show_partials/detainee_details") %>

  <%= link_to("Change this", edit_defence_request_path(@defence_request, part: "detainee_details"), class: "edit-link") %>

Detention Details

  <%= render("defence_requests/show_partials/detention_details") %>

  <%= link_to("Change this", edit_defence_request_path(@defence_request, part: "detention_details"), class: "edit-link") %>

    <%= form_tag(transition_defence_request_path(), method: :post) do %>
      <%= hidden_field_tag(:defence_request_id, @defence_request.id) %>
      <%= hidden_field_tag(:transition_to, :queue) %>
      <%= submit_tag(t("submit_request"), class: "button") %>
    <% end %>

      <%= link_to t('cancel_and_delete_all_details'), dashboard_path %>

Check the request

Check the details below to make sure they are correct. Update any incorrect details, then submit the request.

<%= not_given_formatter(@defence_request, :detainee_name, "name_not_given") %>

  <%= render("defence_requests/show_partials/detainee_details") %>

  <%= link_to("Change this", edit_defence_request_path(@defence_request, part: "detainee_details"), class: "edit-link") %>

Detention Details

  <%= render("defence_requests/show_partials/detention_details") %>

  <%= link_to("Change this", edit_defence_request_path(@defence_request, part: "detention_details"), class: "edit-link") %>

    <%= form_tag(transition_defence_request_path, method: :post) do %>
      <%= hidden_field_tag(:defence_request_id, @defence_request.id) %>
      <%= hidden_field_tag(:transition_to, :queue) %>
      <%= submit_tag(t("submit_request"), class: "button") %>
    <% end %>

      <%= link_to t('cancel_and_delete_all_details'), dashboard_path %>

Remove empty parenthesis at method call

Remove empty parenthesis at method call


<% unless @for_pdf %>
  <footer style="<%= yield :footer_style %>" class="footer <%= yield :footer_classes %>">

       ProtectedPlanet 2014-<%= Date.today.year %>. All rights reserved

    <div class="<%= bem('footer__element', :logos, :right) %> flex-row align-items-center">

      <% unless @for_pdf %>
        <div class="u-only-desktop <%= bem('footer__element', :right, :'no-push', :'with-separator') %>">
          <a class="<%= bem('uservoice', :'no-color', :bold) %>" href="mailto:protectedareas@unep-wcmc.org" data-uv-trigger>
            Send Feedback

      <% end %>

<% end %>

<% unless @for_pdf %>
  <footer style="<%= yield :footer_style %>" class="footer <%= yield :footer_classes %>">

       ProtectedPlanet 2014-<%= Date.today.year %>. All rights reserved

      <% unless @for_pdf %>

          <a class="<%= bem('uservoice', :'no-color', :bold) %>" href="mailto:protectedareas@unep-wcmc.org" data-uv-trigger>
            Send Feedback

      <% end %>

<% end %>

Tweak classes in the footer

Tweak classes in the footer


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

@java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public interface <%= repository.imit.gwt_data_loader_service_interface_name %>
{
  boolean isConnected();

  void connect( @javax.annotation.Nullable java.lang.Runnable runnable );

  void disconnect( @javax.annotation.Nullable java.lang.Runnable runnable );

  <%= repository.imit.qualified_gwt_client_session_interface_name %> getSession();
}

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

@java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public interface <%= repository.imit.gwt_data_loader_service_interface_name %>
  extends org.realityforge.replicant.client.transport.DataLoaderService
{
  <%= repository.imit.qualified_gwt_client_session_interface_name %> getSession();
}

Use interface exposed in latest replicant library


<tr class="<%= cycle('even', 'odd') %>">

    <%= language.name %>

    <%= language.language_code %>

    <%= language.country_code %>

    <%= language.frontpage_name %>

    <%= language.page_layout %>

    <%= language.public? ? render_icon('true') : '' %>

    <%= language.default? ? render_icon('true') : '' %>

    <%- permitted_to?(:destroy, :alchemy_admin_languages) do -%>
    <%= link_to_confirmation_window(
      '',
      _t("Are you sure?"),
      alchemy.admin_language_path(language),
      :title => _t("Delete"),
      :class => "icon destroy"
    ) -%>
    <%- end -%>
    <%- permitted_to?(:edit, :alchemy_admin_languages) do -%>
    <%= link_to_overlay_window(
      '',
      alchemy.edit_admin_language_path(language),
      {
        :title => _t("Edit")
      },
      {
        :class => "icon edit",
        :title => _t("Edit")
      }
    ) -%>
    <%- end -%>

<tr class="<%= cycle('even', 'odd') %>">

    <%= language.name %>

    <%= language.language_code %>

    <%= language.country_code %>

    <%= language.frontpage_name %>

    <%= language.page_layout %>

    <%= language.public? ? render_icon('true') : '' %>

    <%= language.default? ? render_icon('true') : '' %>

    <%- permitted_to?(:destroy, :alchemy_admin_languages) do -%>
    <%= link_to_confirmation_window(
      '',
      _t("Are you sure?"),
      alchemy.admin_language_path(language),
      :title => _t("Delete"),
      :class => "icon destroy"
    ) -%>
    <%- end -%>
    <%- permitted_to?(:edit, :alchemy_admin_languages) do -%>
    <%= link_to_overlay_window(
      '',
      alchemy.edit_admin_language_path(language),
      {
        :title => _t("Edit"),
        :size => "430xauto"
      },
      {
        :class => "icon edit",
        :title => _t("Edit")
      }
    ) -%>
    <%- end -%>

Fix language resource window size.

Fix language resource window size.


--enable-intl
--with-openssl
--without-pear
--with-gd
--with-jpeg-dir=/usr
--with-png-dir=/usr
--enable-exif
--enable-zip
--with-zlib
--with-zlib-dir=/usr
--with-mcrypt=/usr
--with-pdo-sqlite
--enable-soap
--enable-xmlreader
--with-xsl
--enable-ftp
--with-tidy
--with-xmlrpc
--enable-sysvsem
--enable-sysvshm
--enable-sysvmsg
--enable-shmop
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
--enable-pcntl
--with-readline
--enable-mbstring
--with-curl
--with-pgsql
--with-pdo-pgsql
--with-gettext
--enable-sockets
--with-bz2
--enable-bcmath
--enable-calendar
--with-libdir=lib
--enable-fpm
--enable-maintainer-zts
--with-gmp
--with-kerberos
--with-imap
--with-imap-ssl
--with-ldap=shared
--with-ldap-sasl

--enable-intl
--with-openssl
--without-pear
--with-gd
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-freetype-dir=/usr/local/freetype2
--enable-exif
--enable-zip
--with-zlib
--with-zlib-dir=/usr
--with-mcrypt=/usr
--with-pdo-sqlite
--enable-soap
--enable-xmlreader
--with-xsl
--enable-ftp
--with-tidy
--with-xmlrpc
--enable-sysvsem
--enable-sysvshm
--enable-sysvmsg
--enable-shmop
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
--enable-pcntl
--with-readline
--enable-mbstring
--with-curl
--with-pgsql
--with-pdo-pgsql
--with-gettext
--enable-sockets
--with-bz2
--enable-bcmath
--enable-calendar
--with-libdir=lib
--enable-fpm
--enable-maintainer-zts
--with-gmp
--with-kerberos
--with-imap
--with-imap-ssl
--with-ldap=shared
--with-ldap-sasl

Fix freetype directory for Trusty

Fix freetype directory for Trusty


defaults
  log global
  mode http
  option httplog
  retries 3
  option redispatch
  maxconn 2000
  timeout connect 5s
  timeout client 50s
  timeout server 50s

  # Allow keep-alive connections with the internet client, but not with backend
  # servers. Without this, backend servers keep connections alive which means
  # HAProxy's backend processing rules get skipped on subsequent requests.
  option http-server-close

frontend public_router <%= domain %>:80
  option forwardfor

  # Requests starting with /api get sent to the auth proxy for authentication
  # and rate limiting.
  acl url_match_api path_beg /api/
  use_backend auth_proxy_farm if url_match_api

  # All other requests go to our main site.
  use_backend public_site_farm

frontend public_router <%= domain %>:80
  option forwardfor

  # Requests starting with /api get sent to the auth proxy for authentication
  # and rate limiting.
  acl url_match_api path_beg /api/
  use_backend auth_proxy_farm if url_match_api

  # All other requests go to our main site.
  default_backend public_site_farm

Move defaults into system directory so they're prefixed before all frontends. Fix default backend call.


<%= @form.name %>

<%= @form.description %>

<% fields_for :submission, @submission do |f| %>
  <%= render :partial => 'shared/form_submission', :locals => {:f => f} %>
<% end %>

<% button_bar do %>
  <%= button :back, _('Back to submissions'), :action => 'submissions', :id => @form.id %>
<% end %>

<%= @form.name %>

<%= @form.description %>

<%= fields_for :submission, @submission do |f| %>
  <%= render :partial => 'shared/form_submission', :locals => {:f => f} %>
<% end %>

<% button_bar do %>
  <%= button :back, _('Back to submissions'), :action => 'submissions', :id => @form.id %>
<% end %>

Change fields_for structure to rails 3 in show_submission view


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

    <%# ~~~~~~~~~~~~~~~~~~~~~~~~ Basic info section ~~~~~~~~~~~~~~~~~~~~~~~~ %>

    <% if Flipflop.enabled?(:local_browse) %>
      <% search_prefix = '/search/bento?q=' %>
    <% else %>
      <% search_prefix = ENV['EDS_PROFILE_URI'] %>
    <% end %>

    <% if @record.eds_cover_thumb_url.present? %>
      <img src='<%= @record.eds_cover_thumb_url %>' />
    <% end %>

<%= @record.title %>

    <% if @record.eds_publication_type == 'Periodical' %>
      Periodical | Published <%= @record.eds_publication_year %>
    <% elsif @record.eds_publication_type == 'Academic Journal' %>
      In <%= link_to(@record.eds_source_title, search_prefix + "JN+\"#{@record.eds_source_title}\"", data: {type: "Author"} ) %>
      volume <%= @record.eds_volume %>
      issue <%= @record.eds_issue %>
      (<%= @record.eds_publication_year %>)
    <%# Includes Books; is catchall for other types not specified in wireframes %>
    <% else %>
      <%= @record.eds_publication_type %> | Published <%= @record.eds_publication_year %>
    <% end %>

    <%# If there are no authors (as with periodicals) this section will be
        blank, corresponding to the wireframe. %>
    <% @record.eds_authors.each do |author| %>
      <% if author == "et al" %>
        <%= author %>
      <% else %>
        <%= link_to(author, search_prefix + "AU+\"#{author}\"", data: {type: "Author"} ) unless author == "et al" %><% if author != @record.eds_authors.last %>; <% end %>
      <% end %>
    <% end %>

    <%# ~~~~~~~~~~~~~~~~~~~ Other sections to be written ~~~~~~~~~~~~~~~~~~~ %>

    <%# Sidebar will go here. %>

Make basic record info exist!

Make basic record info exist!


WhatzCookin

		<%= flash[:error] %>

	<%= form_tag('/retrieve_recipes', "data-ajax" => "false")  do %>

			<%= text_field_tag('ingredient', "", size: 40, autofocus: true, autocomplete: :off, class: 'search-box') %>

			<%= submit_tag 'Find a recipe', class: 'find-a-recipe col-sm-5 col-md-3 col-md-offset-3 btn btn-default btn-red' %>
	<% end %>
		<%= button_to "I'm Feeling Hungry", random_recipe_path, method: :get, class: 'im-feeling-hungry col-sm-5 col-md-3 btn btn-default btn-orange' %>

<% if current_user && current_user.user_taste_profile && current_user.favorites.any? %>
	<%= button_to 'Suggest Me Something', suggestions_path, method: :post %>
<% end %>

WhatzCookin

		<%= flash[:error] %>

	<%= form_tag('/retrieve_recipes', "data-ajax" => "false")  do %>

			<%= text_field_tag('ingredient', "", size: 40, autofocus: true, autocomplete: :off, class: 'search-box', placeholder: 'Enter your ingredient here...') %>

			<%= submit_tag 'Find a recipe', class: 'find-a-recipe col-sm-5 col-md-3 col-md-offset-3 btn btn-default btn-red' %>
	<% end %>
		<%= button_to "I'm Feeling Hungry", random_recipe_path, method: :get, class: 'im-feeling-hungry col-sm-5 col-md-3 btn btn-default btn-orange' %>

<% if current_user && current_user.user_taste_profile && current_user.favorites.any? %>
	<%= button_to 'Suggest Me Something', suggestions_path, method: :post %>
<% end %>

Add placeholder to recipe search bar

Add placeholder to recipe search bar


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

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

 <form actio='/new' method="post" role='form'>
   <textarea class="form-control" rows="7" name='text'></textarea>

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

Add action methot to form

Add action methot to form


# Policyfile.rb - Describe how you want Chef to build your system.
#
# For more information on the Policyfile feature, visit
# https://github.com/opscode/chef-dk/blob/master/POLICYFILE_README.md

# A name that describes what the system you're building with Chef does.
name "example_application"

# Where to find external cookbooks:
default_source :community

# run_list: chef-client will run these recipes in the order specified.
run_list "cookbook::recipe", "other_cookbook::recipe"

# Specify a custom source for a single cookbook:
# cookbook "development_cookbook", path: "../cookbooks/development_cookbook"

# Policyfile.rb - Describe how you want Chef to build your system.
#
# For more information on the Policyfile feature, visit
# https://github.com/opscode/chef-dk/blob/master/POLICYFILE_README.md

# A name that describes what the system you're building with Chef does.
name "example_application"

# Where to find external cookbooks:
default_source :supermarket

# run_list: chef-client will run these recipes in the order specified.
run_list "cookbook::recipe", "other_cookbook::recipe"

# Specify a custom source for a single cookbook:
# cookbook "development_cookbook", path: "../cookbooks/development_cookbook"

Change default source in generated policies to "supermarket"


Private hosting for your hidden gems.

    <%= image_tag 'screenshot.png', :size => '640x395' %>

Private, secure, reliable.

We offer dedicated repositories for your closed source Ruby gems.

      <% link_to new_user_registration_path, :class => "button-big green signup" do %>
      Signup & Pricing
      <% end %>

How does it work?

Who's using GemsMine

Private hosting for your hidden gems.

    <%= image_tag 'screenshot.png', :size => '640x395' %>

Private, secure, reliable.

We offer dedicated repositories for your closed source Ruby gems.

      <%= link_to new_user_registration_path, :class => "button-big green signup" do %>
      Signup & Pricing
      <% end %>

How does it work?

Who's using GemsMine

Use new <%= %> syntax

Use new <%= %> syntax


<!DOCTYPE html>
<html lang="en">
  <head>
    <%= render 'layouts/shared_head' %>
    <%= stylesheet_link_tag 'forest/application_public', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= stylesheet_link_tag 'forest/application_bootstrap', media: 'all', 'data-turbolinks-track': 'reload' if controller_name == 'sessions' %>
  </head>
  <body class="<%= @body_classes %> public">
    <%#= TODO: if a admin user is logged in, show admin bar %>
    <%= render 'shared/header' unless controller_name == 'sessions' %>
    <%= yield %>
    <%= render 'shared/footer' unless controller_name == 'sessions' %>
    <%= jquery_include_tag %>
    <%= javascript_include_tag 'forest/application_public', data: { turbolinks_eval: false }  %>
  </body>
</html>

<!DOCTYPE html>
<html lang="en">
  <head>
    <%= render 'layouts/shared_head' %>
    <%= stylesheet_link_tag 'forest/application_public', media: 'all', 'data-turbolinks-track': 'reload' %>
  </head>
  <body class="<%= @body_classes %> public">
    <%#= TODO: if a admin user is logged in, show admin bar %>
    <%= render 'shared/header' %>
    <%= yield %>
    <%= render 'shared/footer' %>
    <%= jquery_include_tag %>
    <%= javascript_include_tag 'forest/application_public', data: { turbolinks_eval: false }  %>
  </body>
</html>

Clean up appliction layout now that devise has its own layout


<!DOCTYPE html>
<html>
<head>
  <title>Secondlead</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>

    <title>Second Lead</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 %>

<a href="<%= new_user_path %>">Sign Up

    <%= yield %>

Add nav bar to include sign up link

Add nav bar to include sign up link


<% if can? :create, Asset %>
	<%= render(:partial => 'quick_link', :locals => {:action_title => 'New Asset', :action_path => new_asset_inventory_index_path, :action_icon => 'fa fa-plus'}) %>
<% end %>
<%= render(:partial => 'quick_link', :locals => {:action_title => 'Search Assets', :action_path => new_search_path(:search_type => SearchesController::ASSET_SEARCH_TYPE), :action_icon => 'fa fa-search'}) %>
<% if can? :create, Upload %>
	<%= render(:partial => 'quick_link', :locals => {:action_title => 'Upload File', :action_path => new_upload_path, :action_icon => 'fa fa-upload'}) %>
	<%= render(:partial => 'quick_link', :locals => {:action_title => 'Templates', :action_path => templates_uploads_path, :action_icon => 'fa fa-table'}) %>
<% end %>
<%= render(:partial => 'quick_link', :locals => {:action_title => 'Activity', :action_path => activity_logs_path, :action_icon => 'fa fa-clock-o'}) %>

Remove activity item from the quick links panel


<?xml version="1.0" encoding="UTF-8"?>

<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>dev.riak</string>

    <key>Boxen</key>
    <dict>
      <key>Description</key>
      <string>A key-value store with delusions of grandeur.</string>

      <key>Port</key>
      <integer><%= @port %></integer>
    </dict>

    <key>SoftResourceLimits</key>
    <dict>
      <key>NumberOfFiles</key>
      <integer>1024</integer>
    </dict>

    <key>ProgramArguments</key>
    <array>
      <string><%= @executable %></string>
      <string>start</string>
    </array>

    <key>RunAtLoad</key>
    <true />

    <key>KeepAlive</key>
    <false />

    <key>UserName</key>
    <string><%= scope.lookupvar "::luser" %></string>

    <key>WorkingDirectory</key>
    <string><%= @datadir %></string>

    <key>StandardErrorPath</key>
    <string><%= @logdir %>/console.log</string>

    <key>StandardOutPath</key>
    <string><%= @logdir %>/console.log</string>
  </dict>
</plist>

<?xml version="1.0" encoding="UTF-8"?>

<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>dev.riak</string>

    <key>Boxen</key>
    <dict>
      <key>Description</key>
      <string>A key-value store with delusions of grandeur.</string>

      <key>Port</key>
      <integer><%= @port %></integer>
    </dict>

    <key>SoftResourceLimits</key>
    <dict>
      <key>NumberOfFiles</key>
      <integer>1024</integer>
    </dict>

    <key>ProgramArguments</key>
    <array>
      <string><%= @executable %></string>
      <string>start</string>
    </array>

    <key>RunAtLoad</key>
    <true />

    <key>KeepAlive</key>
    <false />

    <key>UserName</key>
    <string><%= scope.lookupvar "::luser" %></string>

    <key>WorkingDirectory</key>
    <string><%= @datadir %></string>

    <key>StandardErrorPath</key>
    <string><%= @logdir %>/console.log</string>

    <key>StandardOutPath</key>
    <string><%= @logdir %>/console.log</string>

    <key>EnvironmentVariables</key>
    <dict>
        <key>ERL_EPMD_ADDRESS</key>
        <string>127.0.0.1</string>
    </dict>
  </dict>
</plist>

Configure epmd to listen on the loopback interface


Profile

<%= form_for(@user, :url => :profile, :method => :put, :html => {'data-abide' => ''}) do |f| %>

      <%= f.label :first_name %>
      <%= f.text_field :first_name, :required => true, :class => 'radius' %>
      Required

      <%= f.label :middle_name %>
      <%= f.text_field :middle_name, :class => 'radius' %>

      <%= f.label :last_name %>
      <%= f.text_field :last_name, :required => true, :class => 'radius' %>
      Required

      <%= f.label :email %>
      <%= f.text_field :email, :required => true, :class => 'radius', :title => 'Contact Support', :readonly => true %>
      Required

      <%= f.submit 'Save Changes', :class => 'button' %>

<% end %>

Profile

<%= form_for(@user, :url => :profile, :method => :put, :html => {'data-abide' => ''}) do |f| %>

      <%= f.label :first_name %>
      <%= f.text_field :first_name, :required => true, :class => 'radius' %>
      Required

      <%= f.label :middle_name %>
      <%= f.text_field :middle_name, :class => 'radius' %>

      <%= f.label :last_name %>
      <%= f.text_field :last_name, :required => true, :class => 'radius' %>
      Required

      <%= f.label :email %>
      <%= f.text_field :email, :required => true, :class => 'radius', :title => 'Email update is disabled. Contact support to update your email address.', :readonly => true %>
      Required

      <%= f.submit 'Save Changes', :class => 'button' %>

<% end %>

Fix title for disabling email update

Fix title for disabling email update

Signed-off-by: Prajakta Purohit <e0b6074fb36005ab38b637036277c00627bb386c@chef.io>


#!/bin/sh

cd <%= File.join(node['private_chef']['opscode-solr']['dir'], 'jetty') %>

exec 2>&1
exec chpst -P -o 50000 -U <%= node['private_chef']['user']['username'] %> -u <%= node['private_chef']['user']['username'] %> /usr/bin/env PATH=/opt/opscode/embedded/bin:/opt/opscode/bin:/opt/opscode/embedded/jre/bin:$PATH JAVA_HOME=/opt/opscode/embedded/jre <%= node['private_chef']['opscode-solr']['command'] %>

#!/bin/sh

cd <%= File.join(node['private_chef']['opscode-solr']['dir'], 'jetty') %>

ulimit -n 50000

exec 2>&1
exec chpst -P -o 50000 -U <%= node['private_chef']['user']['username'] %> -u <%= node['private_chef']['user']['username'] %> /usr/bin/env PATH=/opt/opscode/embedded/bin:/opt/opscode/bin:/opt/opscode/embedded/jre/bin:$PATH JAVA_HOME=/opt/opscode/embedded/jre <%= node['private_chef']['opscode-solr']['command'] %>

Fix Solr fd exhaustion by upping fd ulimit

For reference, see commit e64f710be3badc316baa2f26e2c40a2ebfbfc902 in
opscode-platform cookbooks.


---
layout: default
title: Interviews
---

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

    <%= render_template('shared.interview', interview: interview) %>

  <% end %>

<% if @pagination && @pagination[:page_count] > 1 %>

  Page <%= @pagination[:current_page] %> of <%= @pagination[:page_count] %> (<%= @pagination[:item_count] %> interview<% if @pagination[:item_count] > 1 %>s<% end %>):
  <% if @pagination[:previous_page] %><a href="<%= @pagination[:previous_page_url] %>" title="Go to page <%= @pagination[:previous_page] %> of the interviews." id="previous">Previous<% else %>Previous<% end %>
  /
  <% if @pagination[:next_page] %><a href="<%= @pagination[:next_page_url] %>" title="Go to page <%= @pagination[:next_page] %> of the interviews." id="next">Next<% else %>Next<% end %>

<% end %>

---
layout: default
title: Interviews
---

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

    <%= render_template('shared.interview', interview: interview) %>

  <% end %>

<% if @pagination && @pagination[:page_count] > 1 %>

  Page <%= @pagination[:current_page] %> of <%= @pagination[:page_count] %> (<%= @pagination[:item_count] %> interview<% if @pagination[:item_count] > 1 %>s<% end %>):
  <% if @pagination[:previous_page] %><a href="<%= @pagination[:links][:previous_page] %>" title="Go to page <%= @pagination[:previous_page] %> of the interviews." id="previous">Previous<% else %>Previous<% end %>
  /
  <% if @pagination[:next_page] %><a href="<%= @pagination[:links][:next_page] %>" title="Go to page <%= @pagination[:next_page] %> of the interviews." id="next">Next<% else %>Next<% end %>

<% end %>

Use the pagination's links hash

Use the pagination's links hash


#!/bin/sh
#
# WARNING: This file maintained by Puppet.
# Editing is no use unless you avoid running the Puppet agent
#
# Set username and PBKDF2 password for protect GRUB configuration
# during the boot process.
#
exec tail -n +3 $0
<% if @password -%>
set superusers="<%= @password_username %>"
password_pbkdf2 <%= @password_username %> <%= @password_pbkdf2_hash %>
<% end -%>

#!/bin/sh
exec tail -n +3 $0
<% if @password -%>
set superusers="<%= @password_username %>"
password_pbkdf2 <%= @password_username %> <%= @password_pbkdf2_hash %>
<% end -%>

Remove comments to avoid issue

[templates] Remove comments to avoid issue


[jenkins]
user=<%= @jenkins_user %>
password=<%= @jenkins_api_token %>
url=<%= @jenkins_url %>

[job_builder]
ignore_cache=True

Make jenkins_job_builder always update jobs.

jenkins_job_builder maintains a cache of the jobs it has written to
Jenkins. It uses this cache to determine whether a job needs to be
updated in Jenkins. This means that if a job has been edited in the
Jenkins UI, jenkins_job_builder won't notice, and the UI changes will
only be overwritten when there is a change to the job config in puppet..

Telling jenkins_job_builder to ignore it's cache means that it will
always write the jobs config into jenkins, and therefore any local
changes in the UI will be reverted on the next run.

For more details on this, see
https://bugs.launchpad.net/openstack-ci/+bug/1193444


<% content_for :header do %>

Trailmix

Private journaling about your life.

<% end %>

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

    <%= f.input :email,
      label: false,
      required: true,
      autofocus: true,
      placeholder: "Email address" %>

    <%= f.input :password,
      label: false,
      required: true,
      placeholder: "Password" %>

  <%= f.button :submit, "Sign in" %>
  or <%= link_to "Sign up", new_registration_path %>.
  <%= link_to "Forget your password?", new_password_path(:user) %>
<% end %>

<% content_for :header do %>

Sign in

    <%= link_to "Forget your password?", new_password_path(:user) %>

<% end %>

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

    <%= f.input :email,
      label: false,
      required: true,
      autofocus: true,
      placeholder: "Email address" %>

    <%= f.input :password,
      label: false,
      required: true,
      placeholder: "Password" %>

  <%= f.button :submit, "Sign in" %>
  or <%= link_to "Sign up", new_registration_path %>.
<% end %>

Move 'forgot password' above sign in form


<!DOCTYPE html>
<html>
<head>
  <title>App</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>

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

	<% if student_member_signed_in? or coordinator_signed_in? %>

	<% if student_member_signed_in? %>

		<%= link_to "Signout", destroy_student_member_session_path, method: :delete %>

<% else %>

		<%= link_to "Signout", destroy_coordinator_session_path, method: :delete %>

<% end %>

<% else %>

	<%= link_to "Sign in as a Student Member", new_student_member_session_path %>

	<%= link_to "Sign in as a Coordinator", new_coordinator_session_path %>

<% end %>

<%= yield %>

Change the main layout to show the signin and signout buttons.

- These buttons will be shown depending on whether and what type of a
user is signed in.


<!DOCTYPE html>

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Meal</title>
    <%= csrf_meta_tags %>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

        <%= yield %>

Remove hard coded google api key

Remove hard coded google api key


<!DOCTYPE html>

    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
    <meta name="description" content="Imaginary friends automata for Freefeed.net">
    <title>Feeder</title>
    <%= javascript_pack_tag 'application' %>
    <%= stylesheet_pack_tag 'application' %>
    <%= csrf_meta_tags %>
    <link rel="icon" href="data:,">
    <%= render(partial: 'partials/google_analytics') if Rails.env.production? %>

<!DOCTYPE html>

    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
    <meta name="description" content="Imaginary friends automata for Freefeed.net">
    <title>Feeder</title>
    <%= javascript_pack_tag 'application' %>
    <%= stylesheet_pack_tag 'application' %>
    <%= csrf_meta_tags %>
    <link rel="icon" href="data:,">
    <% if !Rails.env.production? %>
      <%= render(partial: 'partials/google_analytics') -%>
    <% end %>

Remove whitespace during partial template rendering