# Use Pry whenever possible interactive Ruby shells.
# Works with Bundler too, but only when pry is in the Gemfile.
# https://coderwall.com/p/5tvc1g
Pry.start || exit rescue LoadError

Add irb configs override to use Pry

Add irb configs override to use Pry

Specifically useful for `bundle console`. The irb command will still
bring up irb, if needed.


	<% unless current_user.channels.count > 0 %>

You have no channels yet.
<%= link_to("Add one?", new_channel_path(current_user.username), :target => "blank") %>

	<% else %>
		<% current_user.channels.each do |channel| %>

<%= check_box_tag(channel.title, 1, channel.facts.include?(fact), :onclick => "toggleFactForChannel(#{channel.id}, #{fact.id});") %> <%= label_tag(channel.title) %>

		<% end %>

<%= link_to("Add another channel...", new_channel_path(current_user.username), :target => "blank") %>

	<% end %>

	<% unless current_user.channels.count > 0 %>

You have no channels yet.
<%= link_to("Add one?", new_channel_path(current_user.username), :target => "blank") %>

	<% else %>
		<% current_user.channels.each do |channel| %>

<%= check_box_tag(channel.id, 1, channel.facts.include?(fact), :onclick => "toggleFactForChannel(#{channel.id}, #{fact.id});") %> <%= label_tag(channel.id, channel.title) %>

		<% end %>

<%= link_to("Add another channel...", new_channel_path(current_user.username), :target => "blank") %>

	<% end %>

Use id as id in stead of title (channel)


<% amount_attr ||= :amount %>
<% currency_attr ||= :currency %>
<% currency ||= nil %>

  <%= f.text_field amount_attr, value: number_to_currency(f.object.public_send(amount_attr), unit: ''), class: 'form-control currency-selector-amount' %>
  <% if currency %>
    <div class="input-group-addon currency-selector-addon" data-currency="<%= currency %>">
      <%= ::Money::Currency.find(currency).iso_code %>

  <% else %>

      <%= f.select currency_attr, ::Money::Currency.all.map(&:iso_code), {include_blank: true}, {class: 'currency-selector'} %>

  <% end %>

<% amount_attr ||= :amount %>
<% currency_attr ||= :currency %>
<% currency ||= nil %>
<% required ||= nil %>

  <%= f.text_field amount_attr, value: number_to_currency(f.object.public_send(amount_attr), unit: ''), class: 'form-control currency-selector-amount', required: required %>
  <% if currency %>
    <div class="input-group-addon currency-selector-addon" data-currency="<%= currency %>">
      <%= ::Money::Currency.find(currency).iso_code %>

  <% else %>

      <%= f.select currency_attr, ::Money::Currency.all.map(&:iso_code), {include_blank: true}, {class: 'currency-selector', required: required} %>

  <% end %>

Allow specifying required on number_with_currency


<%= link_to_possibly_dead_user @activity.user.user %>
 commented on
<%= link_to "<em>#{@activity.object}</em>".html_safe, friendly_fact_url(@activity.object) %>

  <%= link_to_possibly_dead_user @activity.user.user %>
  has commented on
  <%= link_to @activity.object, friendly_fact_url(@activity.object)
  %>:

  <%= @activity.subject.content %>

  To view the factlink, visit:

  <%= link_to friendly_fact_url(@activity.object), friendly_fact_url(@activity.object) %>

Send comment content in the email.

Send comment content in the email.


    <hgroup>

<%= @business_support.title %>

    </hgroup>

Support value £<%= @business_support.min_value %> to £<%= @business_support.max_value %>

      <% @business_support.parts.each do |part| %>

<a href="<%= "#{guide_path(@business_support.slug, part.slug, @edition)}" %>"><%= part.title %>

      <% end %>

<%= @part.title %>

        <%= to_govspeak(@part.body) %>

          Return to top ↑

    <hgroup>

<%= @business_support.title %>

    </hgroup>

Support value £<%= @business_support.min_value %> to £<%= @business_support.max_value %>

      <% @business_support.parts.each do |part| %>

<a href="<%= "#{part_path(@business_support.slug, part.slug, @edition)}" %>"><%= part.title %>

      <% end %>

<%= @part.title %>

        <%= to_govspeak(@part.body) %>

          Return to top ↑

Update business support view for part_path


<%= link_to 'Home', home_path %>

<%= link_to 'All petitions', petitions_path %>

<%= link_to 'Start a petition', check_petitions_path %>

<%= link_to 'How petitions work', help_path %>

<%= link_to 'Privacy and cookies', privacy_path %>

<%= link_to 'Feedback', feedback_path %>

Open Government Licence

All content is available under the Open Government Licence v3.0, except where otherwise stated

      © Crown copyright

<%= link_to 'Home', home_path %>

<%= link_to 'All petitions', petitions_path %>

<%= link_to 'Start a petition', check_petitions_path %>

<%= link_to 'How petitions work', help_path %>

<%= link_to 'Privacy and cookies', privacy_path %>

<%= link_to 'Feedback', feedback_path %>

Accessibility statement

Open Government Licence

All content is available under the Open Government Licence v3.0, except where otherwise stated

      © Crown copyright

Add accessibility statement link to footer


      <li class="<%= controller_name == 'classroom_manager' && action_name == 'scorebook' ? 'active' : '' %>">
        <%= link_to 'Scorebook', scorebook_path(current_user), role: 'tab', id: 'first-tab'  %>

      <li class="<%= controller_name == 'classroom_manager' && action_name == 'lesson_planner' ? 'active' : '' %>" >
        <%= link_to "Activity Planner", lesson_planner_teachers_classrooms_path %>

      <li class="<%= (controller_name == 'classrooms' or (controller_name == 'classroom_manager' and action_name == 'invite_students')or controller_name == 'students' ) ? 'active' : '' %>">
        <%= link_to 'Class Manager', teachers_classrooms_path, role: 'tab'  %>

      <%- if !Rails.env.production? %>

        <%= link_to 'Progress Reports', teachers_progress_reports_activity_sessions_path, role: 'tab' %>

      <%- end %>

Bring back Progress Reports tab (hidden on production)


<% unless User.current.login == '' %>
  <% unless @board.nil? || @board[:id].nil? || @topic.nil? || @topic.id.nil? %>
    <div id="vote" class="vote-area" data-board="<%=@board[:id] %>" data-topic="<%=@topic.id%>">

▲

-

▼

    <%=l(:label_vote_count)%>
  <% end %>
<% end %>
<input type="hidden" id="vote-base-url" value="<%=url_for :controller => 'welcome' %>" />

<% unless User.current.login == '' %>
  <% unless @board.nil? || @board[:id].nil? || @topic.nil? || @topic.id.nil? %>
    <div id="vote" class="vote-area" data-board="<%=@board[:id] %>" data-topic="<%=@topic.id%>">

▲

-

▼

    <%=l(:label_vote_count)%>
  <% end %>
  <input type="hidden" id="vote-base-url" value="<%=url_for :controller => 'welcome' %>" />
<% end %>

Change vote-vase-url hidden tag position.


Mathio Party

    <% if current_user %>
    	<%= link_to "Logout, #{current_user.username}", destroy_user_session_path, method: :delete %>
      <%= link_to 'Profile Page', user_path(current_user.id) %>
    	<% if !player2_logged_in? %>
    		<%= link_to 'Player 2 Login', players_new_path %>
    	<% else %>
    		<%= link_to "Logout, #{current_player2.username}", players_logout_path, method: :delete %>
    	<% end %>
    <% else %>
    	<%= link_to 'Login', new_user_session_path %>
      <%= link_to 'Sign Up', new_user_registration_path  %>
    <% end %>

Mathio Party

  <%= link_to 'Frogger', game_path(1) %>
  <%= link_to 'Flappy Math', game_path(2) %>
  <%= link_to 'Invasion', game_path(3) %>
  <%= link_to 'Duck Hunt', game_path(4) %>

    <% if current_user %>
    	<%= link_to "Logout, #{current_user.username}", destroy_user_session_path, method: :delete %>
      <%= link_to 'Profile Page', user_path(current_user.id) %>

      <% if !player2_logged_in? %>
    		<%= link_to 'Player 2 Login', players_new_path %>
    	<% else %>
    		<%= link_to "Logout, #{current_player2.username}", players_logout_path, method: :delete %>
    	<% end %>

    <% else %>
    	<%= link_to 'Login', new_user_session_path %>
      <%= link_to 'Sign Up', new_user_registration_path  %>
    <% end %>

Add game links to nav bar

Add game links to nav bar


About Me

Nam a urna velit. Quisque fermentum augue quis est tempor rutrum. Nullam sollicitudin lorem nec erat tempus tristique. Nam sed efficitur urna. Donec sollicitudin fermentum ligula vitae scelerisque. Aenean condimentum turpis et nisi eleifend pulvinar. Nam elit magna, consequat in neque at, luctus fermentum quam. Ut ornare volutpat magna, eget facilisis lectus facilisis eget. Suspendisse congue a mi at facilisis. Nunc ac ex a quam posuere dapibus.

My Projects

<% unless current_user.projects %>
  No Projects to display yet...
<% end %>

    <% current_user.try(:projects).each do |project| %>
      <%= link_to project.name, {:action => :show, :id => project.id} %>
    <% end %>

About Me

Nam a urna velit. Quisque fermentum augue quis est tempor rutrum. Nullam sollicitudin lorem nec erat tempus tristique. Nam sed efficitur urna. Donec sollicitudin fermentum ligula vitae scelerisque. Aenean condimentum turpis et nisi eleifend pulvinar. Nam elit magna, consequat in neque at, luctus fermentum quam. Ut ornare volutpat magna, eget facilisis lectus facilisis eget. Suspendisse congue a mi at facilisis. Nunc ac ex a quam posuere dapibus.

My Projects

<% if current_user.projects.empty? %>
  No Projects to display yet...
<% end %>

  <% current_user.try(:projects).each do |project| %>

      <%= link_to project.name, {:action => :show, :id => project.id} %>

  <% end %>

Fix bug that displayed error when user had no projects


        <%= image_tag("logo.png", :width => "109", :height => "50", :alt => site_name) %>

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

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

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

        <img src="/assets/logo.png" width="109" height="50" alt="<%= site_name %>">

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

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

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

Use static link so that cached attachments don't use timestamped urls

Also add para to make styling easier. Changes made in core in
9c2f4033e9838748650bd4293c4186646ce188da and
2c29fdd40daa0cd809729ef3907767792c9b3274


<% provide(:title, @project.path_name) %>
<% provide(:breadcrumb_1, link_to("Projects", projects_path)) %>

    <%= render partial: "shared/menu_datasets",
      locals: { project: @project,
      ds_counts: @project.dataset_counts(current_user),
      ref_datasets: false, qry_datasets: false } %>

    <%= render partial: 'projects/search_bar' %>

      <%= pluralize(@results.size, 'result') %>

    <% if @results.any? %>
      <%= will_paginate @datasets, class: "center-block center" %>

        <% @datasets.each do |dataset| %>
          <%= render partial: 'dataset',
            object: @project.miga.dataset(dataset),
            locals: { project: @project } %>
        <% end %>

      <%= will_paginate @datasets, class: "center-block center" %>
    <% end %>

<% provide(:title, @project.path_name) %>
<% provide(:breadcrumb_1, link_to("Projects", projects_path)) %>

    <%= render partial: "shared/menu_datasets",
      locals: { project: @project,
      ds_counts: @project.dataset_counts(current_user),
      ref_datasets: false, qry_datasets: false } %>

    <%= render partial: 'projects/search_bar' %>

      <%= pluralize(@results.size, 'result') %>

    <% if @results.any? %>
      <%= will_paginate @datasets, class: "center-block center" %>

        <% @datasets.each do |dataset| %>
          <%= render partial: 'datasets/dataset',
            object: @project.miga.dataset(dataset),
            locals: { project: @project } %>
        <% end %>

      <%= will_paginate @datasets, class: "center-block center" %>
    <% end %>

Update search to load centralized dataset partial


<%= title("Sequences ‧ #{@current_workspace.name}") %>

  <% if @sequences.empty? %>

          This workspace is empty.

  <% else %>

<%= @current_workspace.name %>

      <%= render "shared/pager" %>

    <% @sequences.each do |sequence| %>

          <%= sequence.type %>

          <%= link_to sequence.name, workspace_sequence_path(name: sequence.name) %>

          <%= pluralize sequence.children.length, "subsequence" %>, <%= pluralize sequence.parents.length, "parents" %>

    <% end %>

      <%= render "shared/pager" %>

  <% end %>

  <%= link_to fa_icon("upload lg", text: "Import sequences"), new_workspace_sequence_path, class: "btn btn-default"%>

<%= title("Sequences ‧ #{@current_workspace.name}") %>

  <% if @sequences.empty? %>

          This workspace is empty.

  <% else %>

<%= @current_workspace.name %>

      <%= render "shared/pager" %>

    <% @sequences.each do |sequence| %>

          <%= sequence.type %>

          <%= link_to sequence.name, workspace_sequence_path(name: sequence.name) %>

          <%= pluralize sequence.children.length, "subsequence" %>, <%= pluralize sequence.parents.length, "parents" %>

    <% end %>

      <%= render "shared/pager" %>

  <% end %>

  <%= link_to fa_icon("upload lg", text: "Import data"), new_workspace_sequence_path, class: "btn btn-default"%>

Rename import sequences to import data

Rename import sequences to import data

There are more than one formats of files to import, use "import data" is
more suitable.


# Original pre-modified file is copyright Ryan Bates
# See LICENSE_ryanb for full license text

[user]
  name = Abe Voelker
  email = abe@abevoelker.com
[alias]
  s = status
  a = add
  c = commit
  cm = commit -m
  co = checkout
  d = diff
  di = diff --cached
[color]
  ui = auto
[color "status"]
  header = normal
  added = bold green
  changed = red
  untracked = cyan
  branch = bold green
  nobranch = bold red
[core]
  excludesfile = <%= ENV['HOME'] %>/.gitignore
  editor = gvim -f
  autocrlf = input
[mergetool "gvimdiff3"]
  cmd = gvim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
[mergetool "vimdiff3"]
  cmd = vim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
[merge]
  tool = gvimdiff3
[apply]
  whitespace = nowarn
[format]
  pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset
[github]
  user = abevoelker
  token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>

# Original pre-modified file is copyright Ryan Bates
# See LICENSE_ryanb for full license text

[user]
  name = Abe Voelker
  email = abe@abevoelker.com
[alias]
  s = status
  a = add
  c = commit
  cm = commit -m
  co = checkout
  d = diff
  di = diff --cached
  ignore = !git update-index --assume-unchanged
  unignore = !git update-index --no-assume-unchanged
  ignored = !git ls-files -v | grep "^[[:lower:]]"
[color]
  ui = auto
[color "status"]
  header = normal
  added = bold green
  changed = red
  untracked = cyan
  branch = bold green
  nobranch = bold red
[core]
  excludesfile = <%= ENV['HOME'] %>/.gitignore
  editor = gvim -f
  autocrlf = input
[mergetool "gvimdiff3"]
  cmd = gvim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
[mergetool "vimdiff3"]
  cmd = vim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
[merge]
  tool = gvimdiff3
[apply]
  whitespace = nowarn
[format]
  pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset
[github]
  user = abevoelker
  token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>

Add git aliases for working with ignored files


<% if node_name %>
node_name "<%= node_name %>"
<% end %>
file_cache_path    "<%= file_cache_path %>"
file_backup_path   "<%= file_backup_path %>"
cookbook_path <%= cookbooks_path.inspect %>
<% if roles_path %>
role_path <%= roles_path.size == 1 ? roles_path.first.inspect : roles_path.inspect %>
<% end %>
log_level <%= log_level.inspect %>
verbose_logging <%= verbose_logging.inspect %>
<% if ! enable_reporting %>
enable_reporting <%= enable_reporting.inspect %>
<% end %>

encrypted_data_bag_secret <%= encrypted_data_bag_secret.inspect %>

<% if data_bags_path -%>
data_bag_path <%= data_bags_path.inspect %>
<% end %>

<% if environments_path %>
environment_path <%= environments_path.inspect %>
<% end -%>

<% if environment %>
environment "<%= environment %>"
<% end -%>

<% if local_mode -%>
chef_zero.enabled true
local_mode true
<% end -%>
<% if node_path -%>
node_path <%= node_path.inspect %>
<% end -%>

<% if formatter %>
add_formatter "<%= formatter %>"
<% end %>

<% if custom_configuration -%>
Chef::Config.from_file "<%= custom_configuration %>"
<% end -%>

<% if node_name %>
node_name "<%= node_name %>"
<% end %>
file_cache_path    "<%= file_cache_path %>"
file_backup_path   "<%= file_backup_path %>"
cookbook_path <%= cookbooks_path.inspect %>
<% if roles_path %>
role_path <%= roles_path.size == 1 ? roles_path.first.inspect : roles_path.inspect %>
<% end %>
log_level <%= log_level.inspect %>
verbose_logging <%= verbose_logging.inspect %>
<% if !enable_reporting %>
enable_reporting <%= enable_reporting.inspect %>
<% end %>

encrypted_data_bag_secret <%= encrypted_data_bag_secret.inspect %>

<% if data_bags_path -%>
data_bag_path <%= data_bags_path.inspect %>
<% end %>

<% if environments_path %>
environment_path <%= environments_path.inspect %>
<% end -%>

<% if environment %>
environment "<%= environment %>"
<% end -%>

<% if local_mode -%>
chef_zero.enabled true
local_mode true
<% end -%>
<% if node_path -%>
node_path <%= node_path.inspect %>
<% end -%>

<% if formatter %>
add_formatter "<%= formatter %>"
<% end %>

<% if custom_configuration -%>
Chef::Config.from_file "<%= custom_configuration %>"
<% end -%>

Remove white space after bang

Remove white space after bang


global
        log /dev/log    local0
        log /dev/log    local1 notice
        chroot /var/lib/haproxy
        user haproxy
        group haproxy
        daemon

defaults
        log     global
	mode    <%= @haproxy_mode %>
        option  tcplog
        option  dontlognull
        contimeout 5000
        clitimeout 50000
        srvtimeout 50000
        retries    3
        maxconn    <%= @haproxy_maxconns %>

listen spamd_daemon
  bind :<%= @haproxy_port %>
  mode <%= @haproxy_mode %>
  balance roundrobin
  option tcplog

<% @spamd_peers.each do |peer| -%>
server <%= peer %>:783 check
<% end -%>

listen stats
  bind :80
  mode http
  stats enable
  stats hide-version
  stats realm Haproxy\ Statistics
  stats uri /
  stats auth asfstats:teh@asf!!

Enable stats in http so we can see them

Enable stats in http so we can see them


---
vapps:
  - name: <%= vapp_name %>
    vdc_name: <%= vdc_name %>
    catalog: <%= catalog %>
    catalog_item: <%= vapp_template %>
    vm:
      hardware_config:
        memory: 4096
        cpu: 2
      metadata:
        is_integer: -999
        is_string: Hello World
        is_datetime: <%= date_metadata %>
        is_true: true
        is_false: false
        integration_test_vm: true
      extra_disks:
      - size: '1024'
        name: Hard disk 2
      - size: '2048'
        name: Hard disk 3
      network_connections:
      - name: <%= network1 %>
        ip_address: <%= network1_ip %>
      - name: <%= network2 %>
        ip_address: <%= network2_ip %>
      bootstrap:
        script_path: <%= bootstrap_script %>
        vars:
          message: hello world
      storage_profile:
        name: <%= storage_profile %>
        href: <%= storage_profile_href %>

Remove href from example input

Remove href from example input


[user]
	name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
	email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[core]
	excludesfile = <%= ENV['HOME'] %>/.gitignore
	editor = vim
[color]
	diff = auto
	status = auto
	branch = auto
[apply]
	whitespace = nowarn
[alias]
	ff = pull --ff-only
	recommit = commit --amend
  workdir-or-cwd = !echo $PWD
  workdir = rev-parse --show-toplevel
  prune = fetch --all --prune
[push]
	default = upstream
[mergetool "bc3"]
  cmd = /usr/bin/bcompare $LOCAL $REMOTE $BASE $MERGED
  trustExitCode = true
<% if File.exist?('/usr/bin/bcompare') %>
[merge]
  tool = bc3
<% end %>

[user]
	name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
	email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[core]
	excludesfile = <%= ENV['HOME'] %>/.gitignore
	editor = vim
  eol = lf
  autocrlf = false
  compression = 9
  loosecompression = 1
[color]
	diff = auto
	status = auto
	branch = auto
[apply]
	whitespace = nowarn
[alias]
	ff = pull --ff-only
	recommit = commit --amend
  workdir-or-cwd = !echo $PWD
  workdir = rev-parse --show-toplevel
  prune = fetch --all --prune
  in-develop = log master..develop --pretty='format:%s' --no-merges
[push]
	default = upstream
[rebase]
  autosquash = true
<% if File.exist?('/usr/bin/bcompare') %>
[merge]
  tool = bc3
<% end %>

Add a bunch of new git settings

Add a bunch of new git settings


---
- job:
    name: service-manual_rebuild_search_index
    display-name: service-manual_rebuild_search_index
    project-type: freestyle
    description: "
Drops and rebuilds the 'service-manual' search index

NB this isn't atomic - the index will be empty for a short while
      (a few seconds, if all goes well). Traffic on this manual is low enough that this isn't a big problem.
"
    logrotate:
      artifactNumToKeep: 3
    builders:
        - shell: |
            if [ "$TARGET_APPLICATION" = "designprinciples" ]; then
            ssh deploy@search-1.api.<%= @environment -%> 'cd /var/apps/rummager && RUMMAGER_INDEX=service-manual govuk_setenv rummager bundle exec rake rummager:switch_to_empty_index '
            ssh deploy@frontend-1.frontend.<%= @environment -%> 'cd /var/apps/designprinciples && govuk_setenv designprinciples bundle exec rake rummager:index'
            else
              echo "Not building '$TARGET_APPLICATION'"
            fi
    publishers:
        - trigger:
            project: Smokey
            condition: 'SUCCESS'
    parameters:
        - string:
            name: TARGET_APPLICATION
            description: 'The application that is being deployed'
            default: false

---
- job:
    name: service-manual_rebuild_search_index
    display-name: service-manual_rebuild_search_index
    project-type: freestyle
    description: "
Drops and rebuilds the 'service-manual' search index

NB this isn't atomic - the index will be empty for a short while
      (a few seconds, if all goes well). Traffic on this manual is low enough that this isn't a big problem.
"
    logrotate:
      artifactNumToKeep: 3
    builders:
        - shell: |
            if [ "$TARGET_APPLICATION" = "designprinciples" ]; then
            ssh deploy@search-1.api 'cd /var/apps/rummager && RUMMAGER_INDEX=service-manual govuk_setenv rummager bundle exec rake rummager:switch_to_empty_index '
            ssh deploy@frontend-1.frontend 'cd /var/apps/designprinciples && govuk_setenv designprinciples bundle exec rake rummager:index'
            else
              echo "Not building '$TARGET_APPLICATION'"
            fi
    publishers:
        - trigger:
            project: Smokey
            condition: 'SUCCESS'
    parameters:
        - string:
            name: TARGET_APPLICATION
            description: 'The application that is being deployed'
            default: false

Fix host when rebuilding service-manual index

search-1.api.<environment> and frontend-1.frontend.<environment> do not require the environment to resolve correctly. In fact, they don't resolve with the environment.


worker_processes 4;
daemon off;

events {
    worker_connections  1024;
}

http {
    upstream phpfpm {
        server unix:/tmp/php-fpm.sock;
    }

    sendfile    on;
    tcp_nopush  on;

    keepalive_timeout  65;

    error_log logs/error.log notice;
    access_log logs/access.log;

    server {
        listen <%= ENV['PORT'] %>;

        server_name localhost;
        root <%= ENV['DOCUMENT_ROOT'] %>;

        rewrite ^/<%= ENV['INDEX_DOCUMENT'].gsub(".", "\\.") %>/?(.*)$ /$1 permanent;

        location / {
            index index.php;
            try_files $uri @rewriteapp;
        }

        location @rewriteapp {
            rewrite ^(.*)$ /<%= ENV['INDEX_DOCUMENT'] %>/$1 last;
        }

        # pass the PHP scripts to FastCGI server from upstream phpfcgi
        location ~ \.php$ {
            fastcgi_pass phpfcgi;
            fastcgi_split_path_info ^(.+\.php)(/.*)$;
            include fastcgi_params;
            fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param  HTTPS off;
        }
    }
}

worker_processes 4;
daemon off;

events {
    worker_connections  1024;
}

http {
    upstream phpfpm {
        server unix:/tmp/php-fpm.sock;
    }

    sendfile    on;
    tcp_nopush  on;

    keepalive_timeout  65;

    error_log logs/error.log notice;
    access_log logs/access.log;

    server {
        listen <%= ENV['PORT'] %>;

        server_name localhost;
        root <%= ENV['DOCUMENT_ROOT'] %>;

        rewrite ^/<%= ENV['INDEX_DOCUMENT'].gsub(".", "\\.") %>/?(.*)$ /$1 permanent;

        location / {
            index index.php;
            try_files $uri @rewriteapp;
        }

        location @rewriteapp {
            rewrite ^(.*)$ /<%= ENV['INDEX_DOCUMENT'] %>/$1 last;
        }

        # pass the PHP scripts to FastCGI server from upstream phpfcgi
        location ~ \.php$ {
            fastcgi_pass phpfpm;
            fastcgi_split_path_info ^(.+\.php)(/.*)$;
            include fastcgi_params;
            fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param  HTTPS off;
        }
    }
}

Fix upstream name in fastcgi_pass

Fix upstream name in fastcgi_pass


<%= @amanda_serevr_ip %> <%= node['amanda_part']['user'] %> amdump
localhost root amindexd amidxtaped

<%= @amanda_server_ip %> <%= node['amanda_part']['user'] %> amdump
localhost root amindexd amidxtaped

Modify hostnames to ip addresses.

Modify hostnames to ip addresses.


<%= content_tag_for(:tr, topic) do %>

    <%= link_to topic.name, [:admin, topic], title: "Edit #{model_name.humanize.downcase} #{topic.name}" %>

  <%= truncate(topic.description, length: 130, separator: ' ') %>

      <% topic.related_classifications.each do |pa| %>
        <%= content_tag_for(:li, pa) do %>
          <%= link_to pa.name, edit_admin_topic_path(pa), title: "Edit #{model_name.humanize.downcase} #{pa.name}" %>
        <% end %>
      <% end %>

<% end %>

<%= content_tag_for(:tr, topic) do %>

    <%= link_to topic.name, [:admin, topic], title: "Edit #{model_name.humanize.downcase} #{topic.name}" %>

  <%= truncate(topic.description, length: 130, separator: ' ') %>

      <% topic.related_classifications.each do |pa| %>
        <%= content_tag_for(:li, pa) do %>
          <%= link_to pa.name, [:admin, pa], title: "Edit #{model_name.humanize.downcase} #{pa.name}" %>
        <% end %>
      <% end %>

<% end %>

Fix links to topics and topical events on topic list page


<%= title 'Login' %>
<% content_for :head do %>
  <%= stylesheet_link_tag 'login' %>
<% end %>

Log in

        <%= form_for(resource, :as => resource_name, :url => session_path(resource_name),
                     :class => "form-inline") do |f| %>

            Uni ID
            <%= f.text_field :uid, :autofocus => true, :placeholder => "uxxxxxxx" %>
            Password
            <%= f.password_field :password, :placeholder => "password"%>
            Sign in
            <%= f.submit "Log in", :class => "btn btn-sm btn-default", :style => "margin-top: -2px;" %>

          <% if devise_mapping.rememberable? -%>

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

          <% end -%>
        <% end %>

Add title to sign in page

Add title to sign in page


<%= link_to "Home", root_path %>

    <% if user_signed_in? %>

<%= link_to "Add Resource", new_resource_path %>

<%= link_to "Add Language", new_language_path %>

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

    <% else %>

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

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

    <% end %>

<%= link_to "Home", root_path %>

    <% if user_signed_in? %>

<%= link_to "Add Resource", new_resource_path %>

<%= link_to "Add Language", new_language_path %>

<%= link_to "Add Course", new_course_path %>

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

    <% else %>

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

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

    <% end %>

Add Course link to nav.

Add Course link to nav.


<!DOCTYPE html>

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

    <title><%= content_for?(:title) ? yield(:title) : "foundation-rails" %></title>

    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "vendor/modernizr" %>
    <%= csrf_meta_tags %>

Wine Tasting App

Tutorial

      <% if session[:user_id] %>

My Events

<a href='/users/<%="#{session[:user_id]}"%>/edit'>My Account

Log Out

      <% end %>

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

Add homepage link in nav bar

Add homepage link in nav bar


<!DOCTYPE html>

  <%= render :partial => 'layouts/head' %>
  <% onload_text = "$('input#q').focus();" if params[:q].to_s.empty? and params[:f].to_s.empty? and params[:id].nil? %>
  <body onload="<%= onload_text %>" class="<%= render_body_class %>">

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

        <%= yield %>

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

<!DOCTYPE html>

  <%= render :partial => 'layouts/head' %>
  <body class="<%= render_body_class %>">

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

        <%= yield %>

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

Remove onload event from application layout


<%= activity.description %>

<% if activity.location.present? %>

name: <%= activity.location.name %>

address: <%= activity.location.address %>

city: <%= activity.location.city %>

<% end %>

    <%= link_to "Update this Activity", edit_itinerary_activity_path(activity.itinerary, activity), class: "waves-effect waves-light btn" %>

    <%= link_to "Remove this Activity", itinerary_activity_path(activity.itinerary, activity), method: :delete, class: "waves-effect waves-light btn" %>

Change itin act listings to cards

Change itin act listings to cards


<% if @image.file.present? %>

        <%= image_tag(@image.file.url, alt: '', class: 'radius') %>

<% end %>

<%= simple_form_for [:backend, @image] do |f| %>
  <fieldset class="radius">
    <%= f.input :file, as: :file %>
    <%= f.input :url, as: :string %>
    <%= f.input :caption, as: :text %>
  </fieldset>

  <%= render 'backend/form_actions', cancel_url: '#' %>
<% end %>

<% if @image.file.present? %>

        <%= image_tag(@image.file.url, alt: '', class: 'radius') %>

<% end %>

<%= simple_form_for [:backend, @image] do |f| %>
  <fieldset class="radius">
    <%= f.input :file, as: :file %>
    <%= f.input :url, as: :string %>
    <%= f.input :caption, as: :text %>
  </fieldset>

  <%= render 'backend/form_actions', cancel_url: content_path %>
<% end %>

Add cancel url to the image edit form.

Add cancel url to the image edit form.


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

    <%= f.label :email %>

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

  <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>

Currently waiting confirmation for: <%= resource.unconfirmed_email %>

  <% end %>

    <%= f.label :password %> (leave blank if you don't want to change it)

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

    <%= f.label :password_confirmation %>

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

    <%= f.label :current_password %> (we need your current password to confirm your changes)

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

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

<% end %>

Cancel my account

Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, class: "btn btn-danger", method: :delete %>

Add edit form for edit user view

[Template] Add edit form for edit user view


  <%= form_tag calculate_current_question_path(@presenter), :authenticity_token => false %>

        <%= @presenter.current_question_number %> <%= question.title %>

        <% if question.has_body? %>
          <%= question.body %>
        <% end %>

        <% if question.has_hint? %>

<%= question.hint %>

        <% end %>

        <div class="<%= @presenter.error && 'error' %>">
          <% if @presenter.error %>

              <%= @presenter.error %>

          <% end %>

          <%= render partial: question.partial_template_name, locals: { question: question } %>

        <button name="next" type="submit" class="medium button">Next step</button>

  </form>

  <%= form_tag calculate_current_question_path(@presenter), :method => :get, :authenticity_token => false %>

        <%= @presenter.current_question_number %> <%= question.title %>

        <% if question.has_body? %>
          <%= question.body %>
        <% end %>

        <% if question.has_hint? %>

<%= question.hint %>

        <% end %>

        <div class="<%= @presenter.error && 'error' %>">
          <% if @presenter.error %>

              <%= @presenter.error %>

          <% end %>

          <%= render partial: question.partial_template_name, locals: { question: question } %>

        <button name="next" type="submit" class="medium button">Next step</button>

  </form>

Make GET requests, not POST requests, when JS is disabled

Doesn't break anything, but makes it cacheable.


<%= javascript_tag nonce: true do %>
  // Expose the main RVT namespace.
  this.RVT || (this.RVT = {});

  RVT.config = {
    terminal: {
      theme: <%= raw RVT.config.style.colors.to_json %>
    },

    transport: {
      url: {
        input: "<%= rvt.input_console_session_path(@console_session) %>",
        pendingOutput: "<%= rvt.pending_output_console_session_path(@console_session) %>",
        configuration: "<%= rvt.configuration_console_session_path(@console_session) %>"
      },

      uid: "<%= @console_session.uid %>"
    }
  };
<% end %>

Add nonce: true for CSP friendly environments


<% content_for :title, "Email could not be sent" %>

Your email could not be sent

That email address has been blacklisted by our mail server. This probably means that the email address does not exist, or it has a problem such as the inbox being full.

This technical information might be useful:

<%= @exception.message %>

You could navigate back and try again, or follow one of these links:

  <% if can? :index, User %>

<%= link_to "Administer users", admin_users_path %>

  <% end %>

<%= link_to "Home", root_path %>

Tidy up blacklisted email address page

Tidy up blacklisted email address page

* Use a warning alert to purvey message
* Add some margins to paragraphs in alert — these are removed by
default within alerts


<%= render 'filters' %>

<% if submissions_accepted.empty? && submissions_waitlist.empty? %>
  <%= render 'empty_table', message: "No rated submissions to show" %>
<% else %>
  <%= render 'result_table', { submissions: submissions_accepted, table_title: "accepted", filter: "accepted" } %>
  <%= render 'result_table', { submissions: submissions_waitlist, table_title: "waitlist", filter: "accepted" } %>

Download:

<%= link_to_if !submissions_accepted.empty?, "Accepted", csv_download_accepted_path %>

<%= link_to_if !submissions_waitlist.empty?, "Waitlist", csv_download_waitlist_path %>

    <%= link_to_if !submissions_accepted.empty?, "Send emails", send_invitation_emails_path, method: :post, data: { confirm: "Are you sure?" }, class: "btn btn-small btn-emails" %>

<% end %>

<%= render 'filters' %>

<% if submissions_accepted.empty? && submissions_waitlist.empty? %>
  <%= render 'empty_table', message: "No rated submissions to show" %>
<% else %>
  <%= link_to "Send emails", send_invitation_emails_path, method: :post, data: { confirm: "Are you sure?" }, class: "btn btn-small btn-emails" %>

  <%= render 'result_table', { submissions: submissions_accepted, table_title: "accepted", filter: "accepted" } %>
  <%= render 'result_table', { submissions: submissions_waitlist, table_title: "waitlist", filter: "accepted" } %>

Download:

<%= link_to_if !submissions_accepted.empty?, "Accepted", csv_download_accepted_path %>

<%= link_to_if !submissions_waitlist.empty?, "Waitlist", csv_download_waitlist_path %>

<% end %>

Move link for email confirmation above the table


class <%= migration_name %> < ActiveRecord::Migration
  def change
    change_table :<%= table_name %> do |t|
      t.boolean :publishing_enabled
      t.datetime :published_at<% if options[:published_until_field] %>, :published_until<% end %>
      t.index [:published_at, :publishing_enabled<% if options[:published_until_field] %>, :published_until<% end %>], :name => 'index_<%= table_name %>_on_publishing_logic_fields'
    end
  end
end

class <%= migration_name %> < ActiveRecord::Migration
  def self.up
    change_table :<%= table_name %> do |t|
      t.boolean :publishing_enabled
      t.datetime :published_at<% if use_published_until_field %>, :published_until<% end %>
      t.index [:published_at, :publishing_enabled<% if use_published_until_field %>, :published_until<% end %>], :name => 'index_<%= table_name %>_on_publishing_logic_fields'
    end
  end

  def self.down
    change_table :<%= table_name %> do |t|
      t.remove :publishing_enabled, :published_at<% if use_published_until_field %>, :published_until<% end %>
      t.remove_index :name => 'index_<%= table_name %>_on_publishing_logic_fields'
    end
  end
end

Revert migration back to old style to ensure the migrations is properly reversible


<%= link_to raw(' History'), user_reservation_path(reservation.user, reservation), class: 'btn btn-xs btn-default', remote: true %>
<% if can? :update, reservation and can? :destroy, reservation %>
  <% unless reservation.approved? %>
    <%= link_to raw(''), edit_user_reservation_path(@partner, reservation), class: "btn btn-default btn-xs", remote: true %>
    <%= link_to raw(''), user_reservation_path(@partner, reservation), class: 'btn btn-xs btn-danger', data: {confirm: 'Are you sure?'}, remote: true, method: :delete %>
  <% end %>
<% end %>
<% if can? :change_status, reservation %>
  |
  <% unless reservation.approved? %>
    <%= link_to raw(''), approve_user_reservation_path(@partner, reservation), class: "btn btn-success btn-xs", remote: true %>
  <% end %>
  <% unless reservation.disapproved? %>
    <%= link_to raw(''), '#disapprove-modal', { class: 'btn btn-xs btn-danger btn-disapprove', data: { id: reservation.id } } %>
  <% end %>
<% end %>

<% if can? :update, reservation %>
  <%= link_to raw(' History'), user_reservation_path(reservation.user, reservation), class: 'btn btn-xs btn-default', remote: true %>
<% end %>
<% if can? :update, reservation and can? :destroy, reservation %>
  <% unless reservation.approved? %>
    <%= link_to raw(''), edit_user_reservation_path(@partner, reservation), class: "btn btn-default btn-xs", remote: true %>
    <%= link_to raw(''), user_reservation_path(@partner, reservation), class: 'btn btn-xs btn-danger', data: {confirm: 'Are you sure?'}, remote: true, method: :delete %>
  <% end %>
<% end %>
<% if can? :change_status, reservation %>
  |
  <% unless reservation.approved? %>
    <%= link_to raw(''), approve_user_reservation_path(@partner, reservation), class: "btn btn-success btn-xs", remote: true %>
  <% end %>
  <% unless reservation.disapproved? %>
    <%= link_to raw(''), '#disapprove-modal', { class: 'btn btn-xs btn-danger btn-disapprove', data: { id: reservation.id } } %>
  <% end %>
<% end %>

Hide history button for normal users

Hide history button for normal users


Single Sign On Applications

        Name
        Redirect URI
        Home URI
        Actions

      <% @applications.each do |application| %>

            <%= link_to application.name, edit_admin_application_path(application) %>

            <%= application.description %>

          <%= application.redirect_uri %>
          <%= link_to application.home_uri %>
          <%= link_to "Edit", edit_admin_application_path(application) %>

      <% end %>

Single Sign On Applications

        Name
        Redirect URI
        Home URI
        Actions

      <% @applications.each do |application| %>

            <%= link_to application.name, edit_admin_application_path(application) %>

            <%= application.description %>

          <%= application.redirect_uri %>
          <%= link_to application.home_uri, application.home_uri %>
          <%= link_to "Edit", edit_admin_application_path(application) %>

      <% end %>

Fix link to App on App admin page

Fix link to App on App admin page


Areas

    <%= check_box_tag "all_regions", "1", all_regions?(f.object), { class: "areas-chkbx", disabled: @resource.locked_for_edits? } %>
    All of the UK

    <%= check_box_tag "english_regions", "1", english_regions?(f.object), { class: "areas-chkbx", disabled: @resource.locked_for_edits? } %>
    All of England

  <%= f.label :areas, 'Related areas', class: "add-top-margin control-label" %>
  <%= f.text_area :areas, size: "75x3",
        class: "form-control",
        placeholder: "Fill-in regions, counties and local authorities, " +
          "separated by a comma. for example: South East, West Sussex, Horsham",
        disabled: @resource.locked_for_edits?,
        value: f.object.areas.present? ? f.object.areas.join(", ") : "",
        data: { areas: edition_areas_json(f.object) } %>

<% content_for :extra_javascript do %>
  <%= javascript_include_tag "views/business_support/areas_select", "/areas" %>
<% end %>

Hide 'All of' checkboxes when js disabled

These boxes are helpers that fill in the regions for the UK or England
when checked, but they need JS to work.


Ask a Question:

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

Title: <%= f.text_field :title %>

<%= f.text_area :content %>

    <%= f.fields_for @tag do |o| %>
      <%= o.label :tags %>
      <%= o.text_field :name, placeholder: "seperated by commas"  %>

<%= f.submit "Submit" %>

    <% end %>
  <% end %>

  <% if flash[:notice] %>

    Errors:
    <%= flash[:notice] %>

  <% end %>

Ask a Question:

  <%= form_for @question do |f| %>
    Title: <%= f.text_field :title %>

<%= f.text_area :content %>

    <%= f.fields_for @tag do |o| %>
      Tags:<%= o.text_field :name, placeholder: "seperated by commas"  %>

<%= f.submit "Submit" %>

    <% end %>
  <% end %>

  <% if flash[:notice] %>

    Errors:
    <%= flash[:notice] %>

  <% end %>

Add tags and styling to match

Add tags and styling to match


Pilot

    <% if Time.zone.now < Time.zone.parse('May 1, 2016') %>

    <% else %>

Map is undergoing maintenance. Please check back later.

    <% end %>

Pilot

    <% if Time.zone.now < Time.zone.parse("May 1, 2016") %>

    <% else %>

Map is undergoing maintenance. Please check back later.

    <% end %>

Use double quotes instead of single quotes


<button class="trigger-flash" data-flash-type="success">Success</button>
<button class="trigger-flash" data-flash-type="notice">Warning</button>
<button class="trigger-flash" data-flash-type="error">Error</button>

<script>
  $('.trigger-flash').on('click', function(){
    type = $(this).data('flashType');
    flash = $("<div class='flash'>")
      .text(type)
      .addClass(type)
      .appendTo('.js-flash-wrapper');
  });
</script>

<button class="trigger-flash" data-flash-type="success">Success</button>
<button class="trigger-flash" data-flash-type="notice">Warning</button>
<button class="trigger-flash" data-flash-type="error">Error</button>

<script>
  $('.trigger-flash').on('click', function(){
    type = $(this).data('flashType');

    if (!$('.flash.' + type).is('*')) {
      flash = $("<div class='flash'>")
        .text(type)
        .addClass(type)
        .appendTo('.js-flash-wrapper')
        .on('click', function() {
          $(this).remove();
        });
    }
  });
</script>

Improve style guide flash messages UX

Improve style guide flash messages UX

Make flash messages in the style guide disappear when clicked upon and
avoid showing multiple flash messages of the same instance if clicked
multiple times.

Ref. #1958


# Hostgroup definitions
#
# Autogenerated by Chef.

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

<% @hostgroups.sort.each do |h| -%>
define hostgroup {
  hostgroup_name <%= h %>
  alias <%= h %>
}

<% end -%>

<% @search_hostgroups.sort.each do |hostgroup| -%>
define hostgroup {
  hostgroup_name <%= hostgroup %>
  alias <%= hostgroup %>
<% if @search_nodes[hostgroup].length > 0 -%>
  members        <%= @search_nodes[hostgroup] %>
<% else -%>
  members        empty
<% end -%>
}

<% end -%>

# Hostgroup definitions
#
# Autogenerated by Chef.

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

<% @hostgroups.sort.each do |h| -%>
define hostgroup {
  hostgroup_name <%= h %>
  alias <%= h %>
}

<% end -%>
<% @search_hostgroups.sort.each do |hostgroup| -%>
define hostgroup {
  hostgroup_name <%= hostgroup %>
  alias <%= hostgroup %>
<% if @search_nodes[hostgroup].length > 0 -%>
  members        <%= @search_nodes[hostgroup] %>
<% end -%>
}

<% end -%>

Fix syntax if nagios_hostgroups data bag based search returns nothing

Don't write out "members empty" if nothing comes back from the search.
Instead write out a host group with nothing, which is actually correct.
 Also remove an empty line so that there is a single empty line between
each host group definition.


Add new post

We will add a new post here

Add new post

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

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

Add textarea and submit button

Add textarea and submit button


<%= @firstName %>,

The system is loading the sample data set you selected. The corresponding data will become available in your Sandbox account once this process is complete. Please be aware that the time it takes for the data to load varies.

To use the SLC-provided applications (Dashboard or Data Browser), perform the following steps:
1. Go to <%=@portal_link%>.
2. If prompted, login to the Sandbox environment using the email address and password associated with your Sandbox account.
3. If you have loaded one of the provided sample data sets, select the "Use a Sample User" option, and the corresponding data set you have loaded. If you have loaded your own custom data set, select "Manually Specify a User" option, and enter user and role information based on users defined in your data.

4a. To view sample data using the SLC Dashboard, select any of the available users and click "Test as this user", and launch the "SLC Dashboards" application from this emulated user’s portal home page.

Or

4b. To navigate through the structure of your sample data using the Data Browser, select one of the available users who is an IT Administrator, click "Test as this user", choose the "Admin" menu, and launch the "SLC Data Browser" application, found under the "System Tools" section. Data Browser is only available with IT Administrator user role.

The first time you emulate a given user, you will be required to accept a License Agreement.

Thank you,

inBloom

<%= @firstName %>,

The system is loading the sample data set you selected. The corresponding data will be available in your Sandbox account once this process is complete. Please be aware that the time it takes for the data to load varies.

To use the inBloom-provided applications (Dashboard or Data Browser), perform the following steps:
1. Go to <%=@portal_link%>.
2. If prompted, login to the Sandbox environment using the email address and password associated with your Sandbox account.
3. If you have loaded one of the provided sample data sets, select the "Use a Sample User" option. If you have loaded your own custom data set, select "Manually Specify a User" option.

4a. To view sample data using the inBloom Dashboard, select any of the available users, or enter user and role information from your custom data set, and click "Test as this user". Then launch the "inBloom Dashboard" application from this emulated user’s portal home page.

Or

4b. To navigate through the structure of your sample data using the inBloom Data Browser, select a user who is an IT Administrator, and click "Test as this user". Then choose the "Admin" menu, and launch the "inBloom Data Browser" application, found under the "System Tools. Data Browser is only available with IT Administrator user role.

The first time you emulate a given user, you will be required to accept a License Agreement.

Thank you,

inBloom

[DE2532] Change references from SLC to inBloom in autoload email


Click this link to sign the petition "<%= @petition.action %>"

<%= verify_signature_url(@signature, @signature.perishable_token, protocol: 'https') %>

--

<%= @petition.creator_signature.name %>’s petition:

<%= @petition.action %>

<%= @petition.background %>
<% unless @petition.additional_details.blank? %>

  <%= @petition.additional_details %>
<% end %>

--

Click this link to sign the petition:
<%= verify_signature_url(@signature, @signature.perishable_token, protocol: 'https') %>

Click this link to sign the petition "<%= @petition.action %>"

<%= verify_signature_url(@signature, @signature.perishable_token) %>

--

<%= @petition.creator_signature.name %>’s petition:

<%= @petition.action %>

<%= @petition.background %>
<% unless @petition.additional_details.blank? %>

  <%= @petition.additional_details %>
<% end %>

--

Click this link to sign the petition:
<%= verify_signature_url(@signature, @signature.perishable_token) %>

Remove protocol from url helper - handled by Site model


<?xml version="1.0" encoding="UTF-8"?>
<!-- DO NOT EDIT: File is auto-generated -->
<module>
<% if repository.imit? -%>
  <inherits name='org.realityforge.replicant.Replicant'/>
<% end -%>
<% if repository.gwt_rpc? && !repository.imit? -%>
  <inherits name='com.google.gwt.user.RemoteService'/>
  <inherits name='org.realityforge.braincheck.BrainCheck'/>
<% end -%>
  <inherits name='sting.Sting'/>
<% if repository.keycloak? -%>
  <inherits name='org.realityforge.gwt.keycloak.cache.TokenCache'/>
<% end -%>
<% if repository.iris_audit? -%>
  <inherits name='iris.audit.Audit'/>
<% end -%>
<% if repository.arez? -%>
  <set-property name='arez.enable_references' value='true'/>
<% end -%>
<% if repository.imit? && repository.imit.enable_entity_broker? -%>
  <set-property name='replicant.enable_change_broker' value='true'/>
<% end -%>
</module>

<?xml version="1.0" encoding="UTF-8"?>
<!-- DO NOT EDIT: File is auto-generated -->
<module>
<% if repository.imit? -%>
  <inherits name='org.realityforge.replicant.Replicant'/>
<% end -%>
<% if repository.gwt_rpc? && !repository.imit? -%>
  <inherits name='com.google.gwt.user.RemoteService'/>
  <inherits name='org.realityforge.braincheck.BrainCheck'/>
<% end -%>
  <inherits name='sting.Sting'/>
<% if repository.keycloak? -%>
  <inherits name='org.realityforge.gwt.keycloak.cache.TokenCache'/>
<% end -%>
<% if repository.iris_audit? -%>
  <inherits name='iris.audit.Audit'/>
<% end -%>
<% if repository.arez? -%>
  <set-property name='arez.enable_references' value='true'/>
<% end -%>
<% if repository.imit? && repository.imit.enable_entity_broker? -%>
  <set-property name='replicant.enable_change_broker' value='true'/>
<% end -%>
  <source path='ignored'/>
</module>

Rework the model module so that it does not necessarily include all source in client


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

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

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

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

Remove configuration no longer relevant in GWT 2.8


  ← Homepage

<%= render "layouts/admin/main_nav" if current_user.admin? %>
<%= yield %>

Add missing 'yield' call. Add back too homepage link.


<li class='list-unstyled' id="comment-<%= comment.id %>">
  <%= avatar_tag(:email => comment.email, :url => comment.url, :class => 'img-circle pull-left gravatar') %>

      <%= t(".by") %> <%= comment.url.blank? ? h(comment.author) : nofollowified_link_to(h(comment.author), comment.url) %>
      <%= display_date_and_time comment.created_at %>

    <%= raw comment.html %>
    <%- unless comment.published %>

<%= t(".this_comment_has_been_flagged_for_moderator_approval") %>

    <%- end %>

<li class='list-unstyled' id="comment-<%= comment.id %>">
  <%= avatar_tag(:email => comment.email, :url => comment.url, :class => 'img-circle pull-left gravatar') %>

      <%= t(".by") %> <%= comment.url.blank? ? h(comment.author) : nofollowified_link_to(h(comment.author), comment.url) %>
      <%= display_date_and_time comment.created_at %>

    <%= raw comment.html %>
    <%- unless comment.published? %>

<%= t(".this_comment_has_been_flagged_for_moderator_approval") %>

    <%- end %>

Fix comment partial in bootstrap-2 theme


    <%= form_tag(archive_glsas_path, :remote => true) do -%>
    <%= image_tag 'icons/calendar-select-month.png' %>
    <%= date_select('view', 'month', :discard_day => true, :order => [:month, :year]) %>
    <%= image_submit_tag 'icons/next.png' %>
    <% end -%>

  Released GLSAs in <%= Date::MONTHNAMES[@month] %> <%= @year %>

  ID
  State
  Title
  Last changed at/by

  <% if current_user.is_el_jefe? %>Admin	<% end %>

<%= render :partial => "glsa_row", :collection => @glsas, :as => :glsa, :locals => { :view => :drafts } %>

<%= render :partial => "status_legend" %>

    <%= form_tag(archive_glsas_path, :remote => true) do -%>
    <%= image_tag 'icons/calendar-select-month.png' %>
    <%= date_select('view', 'month', :discard_day => true, :order => [:month, :year], :start_year => 2003, :end_year => Time.now.year + 1) %>
    <%= image_submit_tag 'icons/next.png' %>
    <% end -%>

  Released GLSAs in <%= Date::MONTHNAMES[@month] %> <%= @year %>

  ID
  State
  Title
  Last changed at/by

  <% if current_user.is_el_jefe? %>Admin	<% end %>

<%= render :partial => "glsa_row", :collection => @glsas, :as => :glsa, :locals => { :view => :drafts } %>

<%= render :partial => "status_legend" %>

Make month/year selector start in 2003

Archive: Make month/year selector start in 2003


New Review

  <%= render "reviews/form", review: review, submit_text: "Create" %>

New Review

  <%= render "reviews/form", review: review, submit_text: "Submit" %>

Change review create button text to 'submit' because LOGAN IS ALWAYS RIGHT


<%= @organization.name %>

<%= @organization.website_url %>

<%= @organization.description %>

<button>Edit</button>

Projects List

I am project

<%= button_to "New Project", new_project_path, :class => "button", :method => :get  %>

<%= @organization.name %>

<%= @organization.website_url %>

<%= @organization.description %>

<button>Edit</button>

Projects List

  <% @organization.projects.each do |project| %>

<%= link_to project.title, project_path(project) %>

  <% end %>

<%= button_to "New Project", new_project_path, :class => "button", :method => :get  %>

Add projects showing on organization profile, and links to projects page


<%= link_to 'Helpful', root_path %>

<%= link_to 'Blog', 'https://medium.com/@Helpful' %>

Contact us

<%= link_to 'Twitter', 'https://twitter.com/tryhelpful' %>

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

Thank you for your time. We know it's precious.

  Still have a question?

<%= t('.copyright').html_safe %>

<%= link_to 'Helpful', root_path %>

<%= link_to 'Assembly', 'https://assembly/helpful' %>

<%= link_to 'Blog', 'https://medium.com/@Helpful' %>

Contact us

<%= link_to 'Twitter', 'https://twitter.com/tryhelpful' %>

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

Thank you for your time. We know it's precious.

  Still have a question?

<%= t('.copyright').html_safe %>

Add Assembly link in footer

Add Assembly link in footer


<% content_for :heading do -%><%= t('myplaceonline.general.login') %><% end -%>

<%= t("myplaceonline.general.login") %>

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

    <%= f.label :email, class: "ui-hidden-accessible" %>
    <%= f.email_field :email, class: "autofocus", placeholder: t("myplaceonline.general.email") %>

    <%= f.label :password, class: "ui-hidden-accessible" %>
    <%= f.password_field :password, autocomplete: "mpassword", placeholder: t("myplaceonline.general.password") %>

  <% if devise_mapping.rememberable? -%>

<%= f.check_box :remember_me %> <%= f.label :remember_me, t("myplaceonline.general.remember") %>

  <% end -%>

<%= f.submit t("myplaceonline.general.login") %>

<% end %>

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

<% content_for :heading do -%><%= t('myplaceonline.general.login') %><% end -%>

<%= t("myplaceonline.general.login") %>

<%= flashes! %>
<% if flash.nil? || flash.to_hash["alert"].nil? || flash.to_hash["alert"].index("You have to confirm").nil? %>
  <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>

      <%= f.label :email, class: "ui-hidden-accessible" %>
      <%= f.email_field :email, class: "autofocus", placeholder: t("myplaceonline.general.email") %>

      <%= f.label :password, class: "ui-hidden-accessible" %>
      <%= f.password_field :password, autocomplete: "mpassword", placeholder: t("myplaceonline.general.password") %>

    <% if devise_mapping.rememberable? -%>

<%= f.check_box :remember_me %> <%= f.label :remember_me, t("myplaceonline.general.remember") %>

    <% end -%>

<%= f.submit t("myplaceonline.general.login") %>

  <% end %>

  <%= render "users/shared/links" %>
<% else %>
  <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %>

<% end %>

Remove confusion about login failing with unconfirmed account


    <%= link_to project.title, chapter_project_path(project.chapter, project), :class => "title" %>

    <%= project.created_at %> (<%= project.chapter.name %>)

    <% if project.winner? %>
      · <%= link_to I18n.t(".view-public-page", scope: "projects.project"), project_path(project), :target => "blank" %>
    <% end %>

    <% if current_user.can_edit_project?(project) -%>

        <%= link_to I18n.t(".delete", scope: "projects.project"), project_path(project), :method => :delete, :data => { :confirm => I18n.t(".confirm-delete", scope: "projects.project", scope: "projects.project") }, :class => 'delete-spam' %>

    <% end -%>

      <%= project.name %>

      · <%= mail_to project.email %>

    <% if project.phone.present? %>

        · <%= project.phone %>

    <% end %>

    <% if project.url.present? %>

        · <%= link_to project.url, project.url %>

    <% end %>

    <%= link_to project.title, chapter_project_path(project.chapter, project), :class => "title" %>

    <%= project.created_at %> (<%= project.chapter.name %>)

    <% if project.winner? %>
      · <%= link_to I18n.t(".view-public-page", scope: "projects.project"), project_path(project), :target => "blank" %>
    <% end %>

    <% unless FEATURE_NEW_ACTIONS? %>
    <% if current_user.can_edit_project?(project) -%>

        <%= link_to I18n.t(".delete", scope: "projects.project"), project_path(project), :method => :delete, :data => { :confirm => I18n.t(".confirm-delete", scope: "projects.project", scope: "projects.project") }, :class => 'delete-spam' %>

    <% end -%>
    <% end %>

      <%= project.name %>

      · <%= mail_to project.email %>

    <% if project.phone.present? %>

        · <%= project.phone %>

    <% end %>

    <% if project.url.present? %>

        · <%= link_to project.url, project.url %>

    <% end %>

Remove 'delete' link from hidden projects in index view


<% unless role.past_holders.empty? %>

    <%= render "govuk_publishing_components/components/heading", {
      text: "Previous holders of this role",
    } %>

    <% if role.supports_historical_accounts? %>

Find out more about previous holders of this role in our <%= link_to "past #{role.title.pluralize}", role.past_holders_url, class: "govuk-link" %> section.

    <% elsif role.past_holders.present? %>
      <%= render "components/taxon-list", {
        items: role.past_holders.map do |rh|
          {
            text: rh['title'],
            path: rh['base_path'],
            description: "#{rh['details']['start_year']} to #{rh['details']['end_year']}"
          }
        end
      } %>
    <% end %>

<% end %>

Add govuk-body and lang attribute

Add govuk-body and lang attribute


<%= form_for(@attachment, :url => url, method: method) do |f| %>
    <%= f.label :title %>
    <%= f.text_field :title, class: 'form-control input-md-8' %>

    <%= f.label :image %>
    <%= f.file_field :file %>
    <div class='actions'>
      <button type="submit" class='btn btn-success'>Save attachment</button>
    </div>
<% end %>

<%= form_for(@attachment, :url => url, method: method) do |f| %>

    <%= f.label :title %>
    <%= f.text_field :title, class: 'form-control input-md-8' %>

    <%= f.label :file %>
    <%= f.file_field :file %>

    <button type="submit" class='btn btn-success'>Save attachment</button>

<% end %>

Change attachment form label and style

Change attachment form label and style

- Change text on attachment form label to File as opposed to Image to
  match V1
- Wrap form label and corresponding field in paragraph tags to match v1
  styling


    <% if @interaction_details %>

      <% if @interaction_details[:licence]['location_specific'] %>

Apply for this licence

          <%= render :partial => 'location_form', :locals => {:format => 'licence'} %>

      <% else %>

Please choose an authority to apply for the licence from.

The authority you select will not affect the type of licence you apply for.

        <%= form_tag @publication.slug do %>

            <% @interaction_details[:licence]['authorities'].each do |authority| %>

<%= radio_button :authority, :slug, authority['slug'] %><%= label :authority, :slug, authority['name'], :value => authority['slug'] %>

            <% end %>

            <%= button_tag "Get started", :class => 'button' %>

        <% end %>
      <% end %>

    <% else %>

It is not currently possible to apply online for this licence. Please contact your local authority.

    <% end %>

Overview

      <%= raw @publication.licence_overview %>

    <% if @interaction_details %>

      <% if @interaction_details[:licence]['location_specific'] %>

Apply for this licence

          <%= render :partial => 'location_form', :locals => {:format => 'licence'} %>

      <% else %>

Please choose an authority to apply for the licence from.

The authority you select will not affect the type of licence you apply for.

        <%= form_tag @publication.slug do %>

            <% @interaction_details[:licence]['authorities'].each do |authority| %>

<%= radio_button :authority, :slug, authority['slug'] %><%= label :authority, :slug, authority['name'], :value => authority['slug'] %>

            <% end %>

            <%= button_tag "Get started", :class => 'button' %>

        <% end %>
      <% end %>

    <% else %>

You can't apply for this licence online. Contact your local council.

    <% end %>

Overview

      <%= raw @publication.licence_overview %>

Copy change licences introduction page

Copy change licences introduction page


  <% @entries.each do |entry| %>
  <li class='post' onclick='location.href="<%= entry.url %>"'>

<%= entry.title.sanitize %>

<%= entry.published.to_s(:published) %>

<%= raw(entry.summary.gsub(/<[^>]+>/i," ").match(/^((\S+\s){1,25})/)) %>

  <% end %>

Replace tags with a space

Replace tags with a space


<%= notice %>

<%= image_tag @post.animal.image.url(:medium) %>

  User:
  <%= @post.user_id %>

  Animal:
  <%= @post.animal_id %>

  Found status:
  <%= @post.found_status %>

  Location:
  <%= @post.location %>

  Phone:
  <%= @post.phone %>

  Email:
  <%= @post.email %>

<%= link_to 'Edit', edit_post_path(@post) %> |
<%= link_to 'Back', posts_path %>

<%= notice %>

  LOST <%= @post.animal.breed.species.name %>

<%= image_tag @post.animal.image.url(:medium) %>

  <%= @post.animal.name %>

Our beloved <%= @post.animal.age %> year old <%= @post.animal.breed.name %> breed was lost on <%= @post.date.strftime('%m/%d/%Y') %>.

If found please contact <%= @post.user.name %> at:

  Phone:
  <%= @post.phone %>

  Email:
  <%= @post.email %>

  Additional information:
  <%= @post.animal.additional_notes %>

  Last seen in Zipcode:
  <%= @post.location %>

<% if (user_signed_in?) %>

 If you would like to automatically create a flyer for this pet,

 you can do so by clicking here.
  <%= link_to 'Create Flyer', edit_post_path(@post) %>

<% end %>

<%= link_to 'Edit', edit_post_path(@post) %> |
<%= link_to 'Back', posts_path %>

Fix merge conflict in breed model

Fix merge conflict in breed model


You already voted '<%= @item.user_votes.where(user_id: current_user.id, item_id: @item.id).first.vote %>' for this agenda item

Create partial to show the vote of the current user on an item


<% if ( current_user && current_user.admin? ) or session.instructor?( current_user ) %>
	<% if session.time && session.time > Time.now && !session.cancelled %>
		<%= javascript_include_tag 'modal' %>

Cancel Session

				Are you sure you want to cancel this class? All registered attendees will be notified that the session has been cancelled.

			<%= form_tag({}, { :method => :delete }) %>
				<%= label_tag "custom_message", "Reason for Cancellation (optional):", :class => 'field-label' %>
				<%= text_area_tag "custom_message", nil, :rows => 10, :cols => 60 %>

				<%= submit_tag "Cancel Session" %>
				<%= link_to_function "Don't cancel", "cancel_modal.hide()" %>
			</form>

	<% end %>
<% end %>

<% if ( current_user && current_user.admin? ) or session.instructor?( current_user ) %>
	<% if session.time && session.time > Time.now && !session.cancelled %>
		<%= javascript_include_tag 'modal' %>

Cancel Session

				Are you sure you want to cancel this class? All registered attendees will be notified that the session has been cancelled.

			<%= form_tag({:action => 'show'}, { :method => :delete }) %>
				<%= label_tag "custom_message", "Reason for Cancellation (optional):", :class => 'field-label' %>
				<%= text_area_tag "custom_message", nil, :rows => 10, :cols => 60 %>

				<%= submit_tag "Cancel Session" %>
				<%= link_to_function "Don't cancel", "cancel_modal.hide()" %>
			</form>

	<% end %>
<% end %>

Fix error when cancelling a session from the edit page. bugid: 3456


<%= @exception.class.to_s =~ /^[aeiou]/i ? 'An' : 'A' %> <%= @exception.class %> occurred in background at <%= raw @timestamp %> :

  <%= @exception.message %>
  <%= @backtrace.first %>

  <%  sections = @sections.map do |section|
        summary = render(section).strip
        unless summary.blank?
          title = render("title", :title => section).strip
          "#{title}\n\n#{summary.gsub(/^/, "  ")}\n\n"
        end
      end.join
  %>
  <%= raw sections %>

Align output of section-headers consistently

Before, the header of the first section was prefixed by two spaces,
leading to a visual disruption.


mode server
writepid /var/vcap/sys/run/openvpn/openvpn.pid
client-config-dir /var/vcap/jobs/openvpn/etc/ccd
ca /var/vcap/jobs/openvpn/etc/ca.crt
cert /var/vcap/jobs/openvpn/etc/server.crt
key /var/vcap/jobs/openvpn/etc/server.key
dh /var/vcap/jobs/openvpn/etc/dh.pem
crl-verify /var/vcap/jobs/openvpn/etc/crl.pem
proto tcp
port <%= p('openvpn.port') %>
comp-lzo
group nogroup
user nobody
status /var/vcap/sys/log/openvpn/status.log
dev tun0
local <%= p('openvpn.local') %>
server <%= p('openvpn.server') %>
<% p('openvpn.push_routes').each do | route | %>
push "route <%= route %>"
<% end %>
<% p('openvpn.routes').each do | route | %>
route <%= route %>
<% end %>
push "persist-tun"
push "ping 15"
push "ping-restart 60"
keepalive 15 60
topology subnet
persist-key
persist-tun
<% if_p('openvpn.extra_config') do | v | %><%= v %><% end %>

mode server
writepid /var/vcap/sys/run/openvpn/openvpn.pid
client-config-dir /var/vcap/jobs/openvpn/etc/ccd
ca /var/vcap/jobs/openvpn/etc/ca.crt
cert /var/vcap/jobs/openvpn/etc/server.crt
key /var/vcap/jobs/openvpn/etc/server.key
dh /var/vcap/jobs/openvpn/etc/dh.pem
<% if_p('openvpn.crl_pem') do %>
crl-verify /var/vcap/jobs/openvpn/etc/crl.pem
<% end %>
proto tcp
port <%= p('openvpn.port') %>
comp-lzo
group nogroup
user nobody
status /var/vcap/sys/log/openvpn/status.log
dev tun0
local <%= p('openvpn.local') %>
server <%= p('openvpn.server') %>
<% p('openvpn.push_routes').each do | route | %>
push "route <%= route %>"
<% end %>
<% p('openvpn.routes').each do | route | %>
route <%= route %>
<% end %>
push "persist-tun"
push "ping 15"
push "ping-restart 60"
keepalive 15 60
topology subnet
persist-key
persist-tun
<% if_p('openvpn.extra_config') do | v | %><%= v %><% end %>

Support optional usage of CRLs

Support optional usage of CRLs


  <%= scrivito_tag_list :ul, @obj, :toclist do |list, child| %>
    <%= list.tag :li do %>
      <%= link_to child.display_title, scrivito_path(child) %>
    <% end %>
  <% end %>

　<%= content_tag(:div,  scrivito_value(@obj.created.strftime("%Y/%m/%d")), :class => "text-muted h4") %>

  <%= scrivito_tag :h1, @obj, :title %>
  <%= scrivito_tag(:div, @obj, :abstract) %>
  <%= scrivito_image_tag(@obj, :image ,:class => "img-responsive")%>
  <%= scrivito_tag :div, @obj, :body %>

  <%= scrivito_tag_list :ul, @obj, :toclist do |list, child| %>
    <%= list.tag :li do %>
      <%= link_to child.display_title, scrivito_path(child) %>
    <% end %>
  <% end %>

　<%= content_tag(:div,  scrivito_value(@obj.created.strftime("%Y年%m月%d日")), :class => "text-muted h4") %>

  <%= scrivito_tag :h1, @obj, :title %>
  <%= scrivito_tag(:div, @obj, :abstract) %>
  <%= scrivito_image_tag(@obj, :image ,:class => "img-responsive")%>
  <%= scrivito_tag :div, @obj, :body %>

Use 年月日 in blog post page

Use 年月日 in blog post page


<%= share_title %>

  <%= social_share_button_tag("#{title} #{setting['twitter_hashtag']}") %>
  <a href="whatsapp://send?text=<%= title.gsub(/\s/, '%20') %> <%= url %>"
     class="show-for-small-only" data-action="share/whatsapp/share">

    <%= t("social.whatsapp") %>

Create shared partial for Social Share block


require 'pathname'

module TranspecAnalysis
  @base_path = Dir.pwd

  def self.data
    @data ||= {}
  end

  at_exit do
    # Use JSON rather than Marshal so that:
    # * Unknown third-party class information won't be serialized.
    #   (Such objects are stored as a string.)
    # * Singleton method information won't be serialized.
    #   (With Marshal.load, `singleton can't be dumped (TypeError)` will be raised.)
    require 'json'
    path = File.join(@base_path, '<%= RESULT_FILE %>')
    File.open(path, 'w') do |file|
      JSON.dump(data, file)
    end
  end
end

def <%= ANALYSIS_METHOD %>(object, context, node_id, analysis_codes)
  node_data = {}

  analysis_codes.each do |key, (target_type, code)|
    target = case target_type
             when :object  then object
             when :context then context
             end

    begin
      node_data[key] = target.instance_eval(code)
    rescue Exception
    end
  end

  TranspecAnalysis.data[node_id] = node_data

  object
end

Remove unneeded require of pathname in dynamic analysis helper


<%= @department.area.name %>

<%= @department.name %>

<%= @department.description %>

Directrices

<%= @department.directives.html_safe %>

Objetivos

  <% @department.objectives.order(:order).each do |objective| %>
    <%= content_tag_for :li, objective do %>
      <%= link_to objective.title, objective_path(objective) %>
    <% end %>
  <% end %>

<%= @department.area.name %>

<%= @department.name %>

<%= @department.description %>

Directrices

<%= @department.directives.html_safe %>

Objetivos

  <% @department.objectives.order(:order).each do |objective| %>
    <%= content_tag_for :li, objective do %>
      <%= link_to objective.title, objective_path(objective) %>
      <%= link_to "Editar", edit_objective_path(objective) %>
    <% end %>
  <% end %>

Add edit objective to department show

Add edit objective to department show


        <button type="button" class="close" data-dismiss="modal">×Close</button>

Session expiring

Are you still there? This session will restart after 3 minutes.

        <button type="button" class="btn btn-default" data-dismiss="modal">YES, I'm still here</button>
        NO, restart the session

Remove JS from timeout partial

Remove JS from timeout partial


			Posição
			Usuário
			Quantidade

		<% @i = 0 %>
		<% top_users.each do |user| %>

			 <%= "#{@i += 1} º"%>

			<%= link_to gravatar_for(user, class: "img-circle img-responsive"), user %>

			<%= link_to user.at_username, user.at_username %>

			 <%= "#{user.donated_amount} ml "%>

		<% end %>

Add partial for ranking table

[Template] Add partial for ranking table


<% @assignments.each do |assignment| %>
<a href="/assignments/<%= assignment.id %>"><%= assignment.name %> : <%= assignment.abstract %>

<% end %>

<% if !current_user.nil? && current_user.admin? %>
<%= link_to "New assignment", new_assignment_path, :class => "command" %>
<% end %>

Name	Abstract	Due Date

<% @assignments.each do |assignment| %>

  <%= link_to assignment.name, assignment_path(assignment) %>
  <%= link_to assignment.abstract, assignment_path(assignment) %>
  <%= link_to assignment.due.to_s(:assignment), assignment_path(assignment) %>

<% end %>

<% if !current_user.nil? && current_user.admin? %>
<%= link_to "New assignment", new_assignment_path, :class => "command" %>
<% end %>

Move assignments view to tabular format.


<%= form_for controller, method: :post, url: url do |f| %>
  <fieldset class="country-picker js-country-picker box font-xsmall">

      <%= f.label :country, 'Trade between the UK and' %>
      <%= f.hidden_field :anchor, value: anchor %>
      <%= f.select :country, f.object.countries.map{ |c| [c.long_description, c.id] }, { include_blank: 'All countries' }, class: 'js-country-picker-select' %>
      Reset to all countries

    <%= f.button 'Set country', class: 'button search-submit' %>
  </fieldset>
<% end %>

<%= form_for controller, method: :post, url: url, namespace: anchor do |f| %>
  <fieldset class="country-picker js-country-picker box font-xsmall">

      <%= f.hidden_field :anchor, value: anchor %>
      <%= f.label :country, 'Trade between the UK and' %>
      <%= f.select :country, f.object.countries.map{ |c| [c.long_description, c.id] }, { include_blank: 'All countries' }, class: 'js-country-picker-select' %>
      Reset to all countries

    <%= f.button 'Set country', class: 'button search-submit' %>
  </fieldset>
<% end %>

Add namespace to avoid id collisions

Add namespace to avoid id collisions


 Device Syncs

          Latitude
          Longitude
          Number of Surveys
          Current Language
          Current Version
          Instrument Versions
          Api Key
          Timezone
          Sync Timestamp

        <% @device_sync_entries.each do |entry| %>

              <%= entry.latitude %>
              <%= entry.longitude %>
              <%= entry.num_surveys %>
              <%= entry.current_language %>
              <%= entry.current_version %>

              <% entry.instrument_versions['instrument_versions'].each_pair do |key, value| %>
                <%= key %> (<%= value %>)

              <% end %>

              <%= entry.api_key %>
              <%= entry.timezone %>
              <%= entry.created_at %>

        <% end %>

 Device Syncs

          Latitude
          Longitude
          Number of Surveys
          Current Language
          Current Version
          Instrument Versions
          Timezone
          Sync Timestamp

        <% @device_sync_entries.each do |entry| %>

              <%= entry.latitude %>
              <%= entry.longitude %>
              <%= entry.num_surveys %>
              <%= entry.current_language %>
              <%= entry.current_version %>

              <% entry.instrument_versions['instrument_versions'].each_pair do |key, value| %>
                <%= key %> (<%= value %>)

              <% end %>

              <%= entry.timezone %>
              <%= entry.created_at %>

        <% end %>

Remove api key for device_sync_entries view


<%= form_tag(main_app.newsletter_subscription_path, class: 'newsletter-signup t-newsletter', remote: true) do %>
  <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>

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

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

<%= benefit %>

    <% end %>

  <fieldset class="newsletter-signup__form js-newsletter-form">
    <legend class="visually-hidden"><%= t('newsletter_subscriptions.hidden_title') %></legend>
    <%= label_tag('subscription[email]', t('newsletter_subscriptions.label'), class: 'newsletter-signup__label') %>
    <%= text_field_tag('subscription[email]', nil, class: 't-newsletter-email js-newsletter-input newsletter-signup__input', placeholder: 'example@example.com') %>
    <%= button_tag(t('newsletter_subscriptions.button'), type: 'submit', class: 't-newsletter-button button button--inline-input newsletter-signup__button') %>
  </fieldset>
<% end %>

<%= form_tag(main_app.newsletter_subscription_path, class: 'newsletter-signup t-newsletter', remote: true) do %>
  <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>

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

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

<%= benefit %>

    <% end %>

  <fieldset class="newsletter-signup__form js-newsletter-form">
    <legend class="visually-hidden"><%= t('newsletter_subscriptions.hidden_title') %></legend>
    <%= label_tag('subscription[email]', t('newsletter_subscriptions.label'), class: 'newsletter-signup__label') %>
    <%= text_field_tag('subscription[email]', nil, class: 't-newsletter-email js-newsletter-input newsletter-signup__input') %>
    <%= button_tag(t('newsletter_subscriptions.button'), type: 'submit', class: 't-newsletter-button button button--inline-input newsletter-signup__button') %>
  </fieldset>
<% end %>

Remove placeholder in the newsletter input box


Songs...To Be Continued.

<%= form_tag("/", method: "get") do %>
  <%= label_tag("Search for:") %>
  <%= text_field_tag(:q) %>
  <%= submit_tag("Search") %>
<% end %>

<% if @song %>
  <%= @song.title %>
<% end %>

Songs...To Be Continued.

<%= form_tag("/", method: "get") do %>
  <%= label_tag("Search for:") %>
  <%= text_field_tag(:q) %>
  <%= submit_tag("Search") %>
<% end %>

<% if @song %>
  <%= @song.primary_artist.name %>
  <%= image_tag(@song.primary_artist.image_url, :alt => @song.primary_artist.name) %>
  <%= @song.title %>
<% end %>

Add image and artist name

Add image and artist name


---
- scm:
    name: govuk_tagging_monitor_for_nav
    scm:
      - git:
          url: git@github.com:alphagov/govuk-tagging-monitor.git
          basedir: govuk-tagging-monitor
          branches:
            - master
- job:
    name: govuk_navigation_link_analysis
    display-name: govuk-navigation-link-analysis
    project-type: freestyle
    description: |
      Monthly analysis of links displayed in the new navigation pages. The output of
      this is needed for Performance Analysts to produce reports on how the new
      navigation is performing.
    scm:
      - govuk_tagging_monitor_for_nav
    logrotate:
      numToKeep: 10
    triggers:
        - timed: 'H 0 * * MON'
    builders:
      - shell: |
          #!/bin/bash
          set -eu

          cd govuk-tagging-monitor
          cp ../govuk-tagging-monitor-2f614b9b92c2.json .
          export RATE_LIMIT_TOKEN="<%= @rate_limit_token -%>"
          bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
          bundle exec rake analyse:links['https://drive.google.com/drive/folders/0B6ekrNZ58HKUc3BqT3NoblRfOUE']

Save navigation link analysis to a shared Google Drive


source 'https://rubygems.org'

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

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

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

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

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

source 'https://rubygems.org'

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

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

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

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

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

Add pry-rails to default Gemfile

Add pry-rails to default Gemfile


the <HIVE>

Collaborate. Inspire. Innovate.

  Sign Up
  Log In

    <%= render partial: 'users/new', locals: { user: @user }%>

  <%= render partial: 'sessions/new', locals: { user: @user }%>

  <%= video_tag 'Hello-World.mp4', autoplay: true, class: 'fillWidth' %>

Add application.html.erb code in addition to video container content


  <%= render "govuk_publishing_components/components/heading", {
    text: timeline["heading"],
    padding: true,
    margin_bottom: 4
  } %>

  <% timeline["list"].each do | item | %>

      <%= render "govuk_publishing_components/components/heading", {
        text: item["heading"],
        heading_level: 3,
        font_size: "s",
        margin_bottom: 1,
      } %>
      <%= render_govspeak(item["paragraph"]) %>

  <% end %>

  <%= render "govuk_publishing_components/components/heading", {
    text: timeline["heading"],
    padding: true,
    margin_bottom: 4
  } %>

  <% if timeline["summary"] %>
    <%= render_govspeak(timeline["summary"]) %>
  <% end %>

  <% timeline["list"].each do | item | %>

      <%= render "govuk_publishing_components/components/heading", {
        text: item["heading"],
        heading_level: 3,
        font_size: "s",
        margin_bottom: 1,
      } %>
      <%= render_govspeak(item["paragraph"]) %>

  <% end %>

Add an optional summary field to Coronavirus timeline

This field has been added to meet an immediate need for contextual text
immediately below the timeline heading and before the timeline entries.

This is being added in a hurry as copy had been signed off that didn't
fully match what was available for editing. We plan to review this once
things are a little quieter.


:base_path: <%= "#{ENV['GEMSTASH_HOME']}/data" %>
:cache_type: memory
:rubygems_url: https://rubygems.org
:puma_threads: 16
:bind: tcp://0.0.0.0:9292
:protected_fetch: false
:fetch_timeout: 20
:log_file: :stdout

# MySQL Adapter Settings
<% if ENV['GEMSTASH_DB_ADAPTER'] == 'mysql2' %>
:db_adapter: <%= ENV['GEMSTASH_DB_ADAPTER'] %>
:db_url: <%= "#{ENV['GEMSTASH_DB_ADAPTER']}://#{ENV['GEMSTASH_DB_USERNAME']}:#{ENV['GEMSTASH_DB_PASSWORD']}@#{ENV['GEMSTASH_DB_HOST']}:#{ENV['GEMSTASH_DB_PORT']}/#{ENV['GEMSTASH_DB_DATABASE']}" %>
:db_connection_options:
  :adapter: mysql2
  :encoding: utf8
  :reconnect: false
  :pool: 5
<% end %>

:base_path: <%= "#{ENV['GEMSTASH_HOME']}/data" %>
:cache_type: memory
:rubygems_url: https://rubygems.org
:puma_threads: 16
:bind: tcp://0.0.0.0:9292
:protected_fetch: false
:fetch_timeout: 20
:log_file: :stdout

# MySQL Adapter Settings
<% if ENV['GEMSTASH_DB_ADAPTER'] == 'mysql2' %>
:db_adapter: <%= ENV['GEMSTASH_DB_ADAPTER'] %>
:db_url: <%= "#{ENV['GEMSTASH_DB_ADAPTER']}://#{ENV['GEMSTASH_DB_USERNAME']}:#{ENV['GEMSTASH_DB_PASSWORD']}@#{ENV['GEMSTASH_DB_HOST']}:#{ENV['GEMSTASH_DB_PORT']}/#{ENV['GEMSTASH_DB_DATABASE']}" %>
<% end %>

Remove attributes we are not sure about

Remove attributes we are not sure about


Sign up as a <%= resource_name %>

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

    <%= f.label :name %>

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

    <%= f.label :portfolio %>

    <%= f.text_field :portfolio %>

    <%= f.label :roll_number %>

    <%= f.text_field :rollnum %>

    <%= f.label :email %>

    <%= f.text_field :email %>

    <%= f.label :password %>
    <% if @validatable %>
    (<%= @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 "devise/shared/links" %>

Sign up as a <%= resource_name %>

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

    <%= f.label :name %>

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

    <%= f.label :roll_number %>

    <%= f.text_field :rollnum %>

    <%= f.label :email %>

    <%= f.text_field :email %>

    <%= f.label :password %>
    <% if @validatable %>
    (<%= @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 "devise/shared/links" %>

Remove the portfolio field from sign up form.

Signed-off-by: Siddharth Kannan <805f056820c7a1cecc4ab591b8a0a604b501a0b7@gmail.com>


<%# TODO the id attrib below should be deprecated as its not well scoped. %>
<%= content_tag(:div, class: wrapper_classes, id: field_name, data: {field_name: field_name}) do %>
  <%# This appears first here but is usually moved to the end using flex box %>
  <%# We do it this way so we can move the control to its own line in certain cases %>
  <%= hint_popover(hint_html) %>
  <%= label_tag %>
  <div class="control <%= options[:read_only] ? 'read-only' : '' %>">
    <%# errors %>
    <%= content_tag(:div, errors.join(' '), :class => 'form-errors') if errors.present? %>
    <div class="widget<%= inline_hint_html ? " inline-hint" : "" %>">
      <%= field_html %>
      <%= inline_hint_html %>

<% end %>

<%# TODO the id attrib below should be deprecated as its not well scoped. %>
<%= content_tag(:div, class: wrapper_classes, id: field_name, data: {field_name: field_name}) do %>
  <%# This appears first here but is usually moved to the end using flex box %>
  <%# We do it this way so we can move the control to its own line in certain cases %>
  <%= hint_popover(hint_html) %>
  <%= label_tag %>
  <div class="control <%= options[:read_only] ? 'read-only' : '' %>">
    <%# errors %>
    <%= content_tag(:div, errors.join(' '), :class => 'form-errors') if errors.present? %>
    <div class="widget<%= inline_hint_html.present? ? " inline-hint" : "" %>">
      <%= field_html %>
      <%= inline_hint_html %>

<% end %>

Fix inline hint css class application

10470: Fix inline hint css class application


# coding: utf-8

Gem::Specification.new do |spec|
  spec.name          = <%= theme_name.inspect %>
  spec.version       = "0.1.0"
  spec.authors       = [<%= user_name.inspect %>]
  spec.email         = [<%= user_email.inspect %>]

  spec.summary       = %q{TODO: Write a short summary, because Rubygems requires one.}
  spec.homepage      = "TODO: Put your gem's website or public repo URL here."
  spec.license       = "MIT"

  spec.metadata["plugin_type"] = "theme"

  spec.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(exe|<%= theme_directories.join("|") %>)/}) }
  spec.bindir        = "exe"
  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

  spec.add_development_dependency "jekyll", "~> <%= jekyll_version_with_minor %>"
  spec.add_development_dependency "bundler", "~> 1.12"
  spec.add_development_dependency "rake", "~> 10.0"
end

# coding: utf-8

Gem::Specification.new do |spec|
  spec.name          = <%= theme_name.inspect %>
  spec.version       = "0.1.0"
  spec.authors       = [<%= user_name.inspect %>]
  spec.email         = [<%= user_email.inspect %>]

  spec.summary       = %q{TODO: Write a short summary, because Rubygems requires one.}
  spec.homepage      = "TODO: Put your gem's website or public repo URL here."
  spec.license       = "MIT"

  spec.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(exe|<%= theme_directories.join("|") %>)/}) }
  spec.bindir        = "exe"
  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

  spec.add_development_dependency "jekyll", "~> <%= jekyll_version_with_minor %>"
  spec.add_development_dependency "bundler", "~> 1.12"
  spec.add_development_dependency "rake", "~> 10.0"
end

Remove the plugin_theme metadata field. Not useful.


<% cache_if_caching_fragments("frontpage-#{@locale}", :expires_in => 5.minutes) do %>

      <%= render :partial => "frontpage_new_request" %>

        <%= render :partial => "frontpage_search_box" %>

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

    <%= render :partial => "frontpage_bodies_list" %>
    <%= render :partial => "frontpage_requests_list" %>

<% end %>

Copy old frontpage template into theme

Copy old frontpage template into theme

In prep for upgrading to 0.23


Listing Confidential Morbidity Reports

<% for event in @events %>

    <%= event.event_name %>, <%= event.event_onset_date %> <%= l event.event_status %>
    <%= link_to 'Show', cmr_path(event) %>
    <%= link_to 'Edit', edit_cmr_path(event) %>
    <%= link_to 'Destroy', cmr_path(event), :confirm => 'Are you sure?', :method => :delete %>

<% end %>

<%= link_to 'New Morbidity Report', new_cmr_path %>
<%= link_to 'Export To CSV', url_for(:action => 'index', :format => 'csv') %>

Put the link for Export to CSV back on CMRs.

git-svn-id: 105a8f2fe5eb3dca76b21e204c69f6587dfa9961@342 b21a84b9-e453-0410-92a3-c4f515f7ae45


[hekad]
maxprocs = <%= @heka_maxprocs %>
plugin_chansize = 30
pool_size = 130

Increase heka's `pool_size` to 130

Increase heka's `pool_size` to 130

The default pool size for heka is 100. This means we can have 100
packs (messages) for all of the inputs to use. But we might be using all
of those packs through the `StatFilter` so none of them will be left for
the `StatAccumInput` to use.

Increasing this will mean that even if the *match* chan and the *in*
chan for the `StatFilter` and the `TcpOutput` are completely full, there
will still be some packs left for the `StatAccumInput` to use.


# Default configuration for non-framework apps
root <%= ENV['DOCUMENT_ROOT'] %>;

try_files $uri /index.php;

# this will only pass index.php to the fastcgi process which is generally safer but
# assumes the whole site is run via Slim.
location /index.php {
    include fastcgi_params;
    fastcgi_connect_timeout 3s;
    fastcgi_read_timeout 10s;
    fastcgi_buffers 256 4k;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass php;
}

# Default configuration for non-framework apps
root /app/<%= ENV['DOCUMENT_ROOT'] %>;

try_files $uri /index.php;

# this will only pass index.php to the fastcgi process which is generally safer but
# assumes the whole site is run via Slim.
location /index.php {
    include fastcgi_params;
    fastcgi_connect_timeout 3s;
    fastcgi_read_timeout 10s;
    fastcgi_buffers 256 4k;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass php;
}

Make document root relative to /app

Make document root relative to /app


<% tracking_module ||= "gem-track-click" %>

<%= render "govuk_publishing_components/components/phase_banner", {
    phase: "What's new",
    message: sanitize("6 October: topic taxonomy tags page moves to the GOV.UK Design System -
      #{
        link_to(
          "find more about the change",
          admin_whats_new_path,
          {
            class: "govuk-link",
            data: {
              module: tracking_module,
              track_category: 'phaseBanner',
              track_action: 'whats-new-banner-click',
              track_label: 'Whats new'
            }
          }
        )
      }.", attributes: %w(class href data-module data-track-category data-track-action data-track-label))
  } %>

<% tracking_module ||= "gem-track-click" %>

<%= render "govuk_publishing_components/components/phase_banner", {
    phase: "What's new",
    message: sanitize("6 October: topic taxonomy tags page moves to the GOV.UK Design System -
      #{
        link_to(
          "find out more about the change",
          admin_whats_new_path,
          {
            class: "govuk-link",
            data: {
              module: tracking_module,
              track_category: 'phaseBanner',
              track_action: 'whats-new-banner-click',
              track_label: 'Whats new'
            }
          }
        )
      }.", attributes: %w(class href data-module data-track-category data-track-action data-track-label))
  } %>

Fix typo in what's new phase banner

Fix typo in what's new phase banner

This adds in a missing word in the phase banner.


name: <%= name %>----{{user `image_name`}}
type: openstack
username: <%= cloud.key %>
password: <%= cloud.secret %>
tenant_name: <%= cloud.tenant_name %>
identity_endpoint: <%= cloud.entry_point %>v2.0/tokens
domain_name: default
region: RegionOne
flavor: <%= cloud.client.adapter.flavor(CloudConductor::Config.packer.openstack_flavor_name).id %>
image_name: '{{user `pattern_name`}}-{{user `image_name`}}-<%= platform %>-{{uuid}}'
source_image: <%= source_image %>
ssh_username: <%= ssh_username %>
use_floating_ip: true
floating_ip_pool: public

name: <%= name %>----{{user `image_name`}}
type: openstack
username: <%= cloud.key %>
password: <%= cloud.secret %>
tenant_name: <%= cloud.tenant_name %>
identity_endpoint: <%= cloud.entry_point %>v2.0/tokens
region: RegionOne
flavor: <%= cloud.client.adapter.flavor(CloudConductor::Config.packer.openstack_flavor_name).id %>
image_name: '{{user `pattern_name`}}-{{user `image_name`}}-<%= platform %>-{{uuid}}'
source_image: <%= source_image %>
ssh_username: <%= ssh_username %>
use_floating_ip: true
floating_ip_pool: public

Delete domain_name variable to support Openstack Liberty


<% if contact.contact_form_links.any? %>

Online forms

      <%= render partial: "contact_form_link", collection: contact.contact_form_links %>

      <%= raw contact.more_info_contact_form %>

<% end -%>

<% if contact.email_addresses.any? %>

Email

<%= contact.more_info_email_address.to_s %>

      <%= render partial: "email_address", collection: contact.email_addresses %>

<% end %>

<% if contact.phone_numbers.any? %>

Phone

    <%= render partial: "phone_number", collection: contact.phone_numbers %>

      <%= raw contact.more_info_phone_number %>

<% end %>

<% if contact.post_addresses.any? %>

Post

    <%= render partial: "post_address", collection: contact.post_addresses %>

      <%= raw contact.more_info_post_address %>

<% end %>

<% if contact.contact_form_links.any? %>

Online forms

      <%= render partial: "contact_form_link", collection: contact.contact_form_links %>

      <%= raw contact.more_info_contact_form %>

<% end -%>

<% if contact.email_addresses.any? %>

Email

      <%= render partial: "email_address", collection: contact.email_addresses %>

      <%= raw contact.more_info_email_address.to_s %>

<% end %>

<% if contact.phone_numbers.any? %>

Phone

    <%= render partial: "phone_number", collection: contact.phone_numbers %>

      <%= raw contact.more_info_phone_number %>

<% end %>

<% if contact.post_addresses.any? %>

Post

    <%= render partial: "post_address", collection: contact.post_addresses %>

      <%= raw contact.more_info_post_address %>

<% end %>

Add govspeak styling to 'more info' for email

Previous commit (65cdbcbdfc161f14c0d16ca613dfb10f80beac08) added govspeak support for postal addresses and online forms but not email addresses. This makes that change for email addresses too.


New inset day

    <%= simple_form_for(@calendar_event, url: onboarding_inset_days_path(@school_onboarding)) do |f| %>

        <%= f.label :start_date, 'Date' %>

          <%= f.text_field :start_date, class: 'form-control datetimepicker-input', data: {target: '#calendar_event_holder'} %>

      <%= f.input :title, label: 'Description', as: :string %>
      <%= f.input :calendar_event_type_id, collection: @calendar_event_types, label_method: :display_title, label: 'Type', include_blank: false %>

      <%= f.button :submit, 'Add inset day' %>
      <%= link_to 'Back', new_onboarding_completion_path(@school_onboarding), class: 'btn' %>

    <% end %>

New inset day

    <%= simple_form_for(@calendar_event, url: onboarding_inset_days_path(@school_onboarding)) do |f| %>

        <%= f.label :start_date, 'Date' %>

          <%= f.text_field :start_date, class: 'form-control datetimepicker-input', data: {target: '#calendar_event_holder'} %>

      <%= f.input :calendar_event_type_id, collection: @calendar_event_types, label_method: :display_title, label: 'Type', include_blank: false %>
      <%= f.input :title, label: 'Description', as: :string %>

      <%= f.button :submit, 'Add inset day' %>
      <%= link_to 'Back', new_onboarding_completion_path(@school_onboarding), class: 'btn' %>

    <% end %>

Swap type and description for inset days