<%# no need for thumbnails unless there is more than one image %>
<% if @schwein.images.size > 1 %>

    <% @schwein.images.each do |i| %>
      <li class='tmb-all' id='tmb-<%= i.id %>'>
        <%= link_to(image_tag(i.attachment.url(:mini)), i.attachment.url(:product), :class => 'tmb-all', :id => "tmb-#{i.id}") %>

    <% end %>

<% end %>

<%# no need for thumbnails unless there is more than one image %>
<% if @schwein.images.size > 1 %>

    <% @schwein.images.each do |i| %>
      <li class='tmb-all' id='tmb-<%= i.id %>'>
        <%= link_to(image_tag(i.attachment.url(:mini), size: '100x100'), i.attachment.url(:product), :class => 'tmb-all', :id => "tmb-#{i.id}") %>

    <% end %>

<% end %>

Make the thumbnail size fix.

Make the thumbnail size fix.


Twitter

Facebook

Pinterest

Google-plus

Instagram

Add pound signs to social navbar.

Add pound signs to social navbar.


© 2015 The Texas Tribune

About Us

Contact Us

Who Funds Us?

Terms of Service

Code of Ethics

Privacy Policy

Donate

© 2015 <a href="<%= data.AboutOrg[0]['org_url'] %>"><%= data.AboutOrg[0]['name'] %>

      <% data.FooterLinks.each do |link| %>

<a href="<%= link['url'] %>"><%= link['text'] %>

      <% end %>

Load footer links with google spreadsheet


          <%= link_to_remote image_tag('/images/buttons/add.gif', :border => 0, :height => 22, :width => 23),
              {:update => "new_row",
               :url => { :action => "new_inline" },
          } %>

          <%= link_to_remote image_tag("/images/buttons/add.gif", :border => 0, :height => 22, :width => 23),
              {:update => "new_row",
               :url => { :action => "new_inline" },
          } %>

Change some quotation marks around to test cc.rb

git-svn-id: 96bd6241e080dd4199045f7177cf3384e2eaed71@1442 2d86388d-c40f-0410-ad6a-a69da6a65d20


  <% column = 1 %>
    <% @group.users.each do |user| %>

          <% if column%2==1 %>

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

<%= user.decorate.full_name %>

<%= user.phone %>

          <% end %>

          <% if column%2==0 %>

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

<%= user.decorate.full_name %>

<%= user.phone %>

          <% end %>

    <% end %>

  <% column = 1 %>
    <% @group.users.each do |user| %>

          <% if column%2==1 %>

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

<%= link_to user.decorate.full_name, user %>

<%= user.phone %>

          <% end %>

          <% if column%2==0 %>

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

<%= link_to user.decorate.full_name, user %>

<%= user.phone %>

          <% end %>

    <% end %>

Add link to user profile

Add link to user profile


  <button type="button" class="close js-dismiss pull-right" style="margin-right: 25px">
    ×
  </button>

    Congratulations! Your first <%= @product.name %> coins are being deposited in your account.
    <a href="<%= product_wips_path(@product) %>" style="color: white; text-decoration: underline;">Complete a bounty to earn more coins.

  <button type="button" class="close js-dismiss pull-right" style="margin-right: 25px">
    ×
  </button>

    Congratulations! Your first <%= @product.name %> coins are being deposited in your account. Go on, tell the world! Or
    <a href="<%= product_wips_path(@product) %>" style="color: white; text-decoration: underline;">complete a bounty to earn more coins.

Add Twitter share button to coin confirmation


<%= app_name.humanize %>
<%= '=' * app_name.humanize.length %>

Getting Started
---------------

This repository comes equipped with a self-setup script!

    % ./bin/setup

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

    % foreman start

[foreman]: http://ddollar.github.io/foreman/

Guidelines
----------

Use the following guides for getting things done, programming well, and
programming in style.

* [Protocol](http://github.com/thoughtbot/guides/blob/master/protocol)
* [Best Practices](http://github.com/thoughtbot/guides/blob/master/best-practices)
* [Style](http://github.com/thoughtbot/guides/blob/master/style)

<%= app_name.humanize %>
<%= '=' * app_name.humanize.length %>

Getting Started
---------------

This repository comes equipped with a self-setup script:

    % ./bin/setup

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

    % foreman start

[foreman]: http://ddollar.github.io/foreman/

Guidelines
----------

Use the following guides for getting things done, programming well, and
programming in style.

* [Protocol](http://github.com/thoughtbot/guides/blob/master/protocol)
* [Best Practices](http://github.com/thoughtbot/guides/blob/master/best-practices)
* [Style](http://github.com/thoughtbot/guides/blob/master/style)

Replace a ! with a :

Replace a ! with a :

"An exclamation point is like laughing at your own joke." — F. Scott Fitzgerald


# <%= app_name.humanize %>

### Getting Started

## Setting Up Postgresql
`psql`
`CREATE ROLE <%= app_name.parameterize.underscore %>_admin`
`ALTER ROLE <%= app_name.parameterize.underscore %>_admin WITH LOGIN CREATEDB REPLICATION SUPERUSER;`
`rake db:migrate`
`rake db:setup`

## Setting Up The Server

`bundle install`
`rake db:migrate db:setup`

## Running The Server
Run `rails s -p [port#]` to start the server.

# <%= app_name.humanize %>

### Getting Started

## Setting Up Postgresql
`psql`
`CREATE ROLE <%= app_name.parameterize.underscore %>_admin`
`ALTER ROLE <%= app_name.parameterize.underscore %>_admin WITH LOGIN CREATEDB REPLICATION SUPERUSER;`
`\q`
`rake db:migrate`
`rake db:setup`

## Setting Up The Server

`bundle install`
`rake db:setup db:migrate`

## Running The Server
Run `rails s -p [port#]` to start the server.

Update README template with better postgres setup instructions


---
title: Partners
---

<%= partial 'header' %>

Thanks to our Partners

    <% data.sponsors.each do |meta| %>

<%= meta.category %>

      <% meta.sponsors.each do |sponsor| %>

            <%= link_to image_tag(sponsor.logo), sponsor.homepage, target: "_blank" %>

<%= sponsor.name %>

            <%= link_to sponsor.homepage, sponsor.homepage, target: "_blank", class: "fancy" %>
            <%= sponsor.html %>

      <% end %>
    <% end %>

Call for sponsors

      If your company is interested in supporting Partial, you can learn more
      about the partner opportunities by following the link below.

    Become a partner

<%= partial 'footer' %>

---
title: Partners
---

<%= partial 'header' %>

Thanks to our Partners

    <% data.sponsors.each do |meta| %>

<%= meta.category %>

      <% meta.sponsors.each do |sponsor| %>
        <div class="row" id=<%= "\"#{sponsor.id}\"" %>>

            <%= link_to image_tag(sponsor.logo), sponsor.homepage, target: "_blank" %>

<%= sponsor.name %>

            <%= link_to sponsor.homepage, sponsor.homepage, target: "_blank", class: "fancy" %>
            <%= sponsor.html %>

      <% end %>
    <% end %>

Call for sponsors

      If your company is interested in supporting Partial, you can learn more
      about the partner opportunities by following the link below.

    Become a partner

<%= partial 'footer' %>

Fix a bug with the sponsors id

Fix a bug with the sponsors id


<% if current_announcement.exists? && !announcement_hidden?(current_announcement) %>

    <%= current_announcement.body.html_safe %>

      <%= link_to_function "hide", "hideAnnouncement('announcement_#{current_announcement.created_at}')" %>

<% end %>

<% if current_announcement.exists? && !announcement_hidden?(current_announcement) %>

    <%= current_announcement.body.html_safe %>

      <%= link_to "hide", "#", onclick: "hideAnnouncement('announcement_#{current_announcement.created_at}')" %>

<% end %>

Remove deprecated Rails link_to_function method


<% @assignment = Assignment.find(params[:id]) %>

Signup sheet for <%= @assignment.name %> assignment

<% if flash[:notice] %>

<%= flash[:notice] %>

<% end %>

<% @sign_up_topics = SignUpTopic.find(:all, :conditions => ['assignment_id = ?', @assignment.id]) %>
<% @slots_filled = SignUpTopic.find_slots_filled(@assignment.id)  %>
<% @slots_waitlisted = SignUpTopic.find_slots_waitlisted(@assignment.id) %>
<% @participants = SignedUpUser.find_team_participants(@assignment.id)  %>

<% if @sign_up_topics.size != 0 %>

<%= render :partial => '/sign_up_sheet/table_header' %>

      <% i=1 %>
      <% for topic in @sign_up_topics %>

             <%= render :partial => '/sign_up_sheet/table_line', :locals => {:i=>i, :topic=>topic} %>

          <% i=i+1 %>
      <% end %>

<% else %>

      <%= "Signup topics have not yet been created." %>

<% end %>

<% session[:return_to] = request.request_uri %>

<%= render :partial => '/sign_up_sheet/add_topics' %>
Back

<% @assignment = Assignment.find(params[:id]) %>

Signup sheet for <%= @assignment.name %> assignment

<% if flash[:notice] %>

<%= flash[:notice] %>

<% end %>

<% @sign_up_topics = SignUpTopic.find(:all, :conditions => ['assignment_id = ?', @assignment.id]) %>
<% @slots_filled = SignUpTopic.find_slots_filled(@assignment.id)  %>
<% @slots_waitlisted = SignUpTopic.find_slots_waitlisted(@assignment.id) %>
<% @participants = SignedUpUser.find_team_participants(@assignment.id)  %>

<% if @sign_up_topics.size != 0 %>

<%= render :partial => '/sign_up_sheet/table_header' %>

      <% i=1 %>
      <% for topic in @sign_up_topics %>

             <%= render :partial => '/sign_up_sheet/table_line', :locals => {:i=>i, :topic=>topic} %>

          <% i=i+1 %>
      <% end %>

<% else %>

      <%= "Signup topics have not yet been created." %>

<% end %>

<% session[:return_to] = request.fullpath %>

<%= render :partial => '/sign_up_sheet/add_topics' %>
Back

Remove deprecated request_uri method on response


<% content_for(:page_title, "Blog | #{@post.title}")%>

<% content_for(:head) do %>
  <meta property="og:title" content="Blog | <%= @post.title %>" />
  <meta property="og:description"
    content="<%= truncate(strip_tags(format_content(@post.body)), length: 500, separator: ' ') %>" />
<% end %>

<%= render partial: "blogit/posts/sidebar" %>
<%= render @post %>
<%= render "blogit/posts/post_footer", post: @post %>

<% content_for(:page_title, "Blog | #{@post.title}")%>

<% content_for(:head) do %>
  <meta property="og:title" content="Blog | <%= @post.title %>" />
  <meta property="og:description"
    content="<%= truncate(strip_tags(format_content(@post.body)), length: 500, separator: ' ') %>" />
  <meta property="og:type" content="article" />
  <meta property="article:published_time" content="<%= @post.published_at %>" />

  <% if publisher = Blogit.configuration.facebook_app_id %>
    <meta property="article:publisher" content="<%= publisher %>" />
  <% end %>
<% end %>

<%= render partial: "blogit/posts/sidebar" %>
<%= render @post %>
<%= render "blogit/posts/post_footer", post: @post %>

Add some FB meta tags to blog post pages.


New conversation

<% form_for(@conversation) do |f| %>
  <%= f.error_messages %>

    <%= f.label :name %>

    <%= f.text_field :name %>

    <%= f.label :description %>

    <%= f.text_area :description %>

    <%= f.submit "Create" %>

<% end %>

<%= link_to 'Back', conversations_path %>

Fix layout of create conversation page

Fix layout of create conversation page


#!/usr/bin/perl

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

$| = 1;
while (<STDIN>) {
	my $where = readlink("<%= node[:planet][:dump][:xml_directory] %>/planet-latest.osm.bz2");
	s/planet\/planet\-latest\.osm\.bz2/planet\/$where/g;
	print $_;
}

#!/usr/bin/perl

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

use strict;
use warnings;

use Cwd qw(abs_path);

$| = 1;

while (my $path = <STDIN>)
{
    chomp $path;

    my $file = abs_path("/store/planet${path}");

    if ($file && $file =~ m|/store/planet/| && -f $file)
    {
        print "${file}\n";
    }
    else
    {
        print "NULL\n";
    }
}

Allow planet redirector to handle any links under the webroot


	<% unless @interview %><a href="http://<%= interview.slug %>.usesthis.com/" title="View an interview with <%= interview.name %>."><% end %>
	<img src="<%= url_for("/images/portraits/#{interview.slug}.jpg") %>" width="500" height="335" class="portrait" alt="<%= interview.name %>">
	<% unless @interview %><% end %>

	<% unless @interview %><a href="http://<%= interview.slug %>.usesthis.com/" title="View an interview with <%= interview.name %>."><% end %>
	<%= interview.name %>
	<% unless @interview %><% end %>

<%= interview.summary %>

	<% if interview.published_on %>
	Posted <time datetime="<%= interview.published_on %>" pubdate><%= interview.published_on.strftime("%b %e, %Y") %></time> in
	<% else %>
	Unpublished, filed in
	<% end %>
	<% for category in interview.categories %>
		<a href="<%= url_for("/interviews/#{category.slug}/") %>" rel="<%= category.slug %>" title="View all of the '<%= category.slug %>' interviews."><%= category.slug %>
	<% end %>

	<% unless selected %><a href="http://<%= interview.slug %>.usesthis.com/" title="View an interview with <%= interview.name %>."><% end %>
	<img src="<%= url_for("/images/portraits/#{interview.slug}.jpg") %>" width="500" height="335" class="portrait" alt="<%= interview.name %>">
	<% unless selected %><% end %>

	<% unless selected %><a href="http://<%= interview.slug %>.usesthis.com/" title="View an interview with <%= interview.name %>."><% end %>
	<%= interview.name %>
	<% unless selected %><% end %>

<%= interview.summary %>

	<% if interview.published_on %>
	Posted <time datetime="<%= interview.published_on %>" pubdate><%= interview.published_on.strftime("%b %e, %Y") %></time> in
	<% else %>
	Unpublished, filed in
	<% end %>
	<% for category in interview.categories %>
		<a href="<%= url_for("/interviews/#{category.slug}/") %>" rel="<%= category.slug %>" title="View all of the '<%= category.slug %>' interviews."><%= category.slug %>
	<% end %>

Check for the selected variable instead.


/var/log/api-umbrella/*.log /var/log/api-umbrella/**/*.log {
  daily
  rotate 90
  create 644 api-umbrella api-umbrella
  missingok
  compress
  delaycompress
  notifempty
  sharedscripts
  postrotate
    api-umbrella reopen-logs
  endscript
}

/opt/api-umbrella/var/log/*.log {
  daily
  rotate 90
  create 644 api-umbrella api-umbrella
  missingok
  compress
  delaycompress
  notifempty
  sharedscripts
  postrotate
    api-umbrella reopen-logs
  endscript
}

Fix log rotation woes (I hope).

Fix log rotation woes (I hope).

The deep wildcard was leading to logrotate rotating the same files
twice, which effectively messed things up by truncating the old file
that was being rotated. Since we've gotten rid of our nested log paths,
we shouldn't actually need the deep wildcard anyway.


Repository

<%= @repository.name %>

<%= render layout: 'shared/repository_breadcrumb' do %>
  <%= repository_menu %>
<% end %>

Snapshots

          Date
          Metadata Records

        <%= @snapshot_information.to_a.each do |snapshot, information| %>

            <%= snapshot.date %>
            <%= information[:metadata_count] %>

        <% end %>

Add idea to retrieve snapshot data

Add idea to retrieve snapshot data

Just an idea how to retrieve individual entity data. Entity mapped to a
data Hash.

Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>


Create hb template for follows

Create hb template for follows


<% if @logconfig && @logconfig.keys.length > 0 %>
<%
_default_level     = 'INFO'
_default_appenders = ['Console']
_default_pattern   = '[%-5p] %m%n'
_default_file      = 'jetty.log'

_loglevel  = @logconfig.fetch(:level,     @logconfig.fetch('level', _default_level))
_appenders = @logconfig.fetch(:appenders, @logconfig.fetch('appenders', _default_appenders.join(',')))
_pattern   = @logconfig.fetch(:pattern,   @logconfig.fetch('pattern', _default_pattern))
_target    = @logconfig.fetch(:target,    @logconfig.fetch('target', nil))
_file      = @logconfig.fetch(:file,      @logconfig.fetch('file', _default_file))
%>
log4j.rootLogger=<%= _loglevel %>, <%= _appenders %>
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
<% if _target %>
log4j.appender.Console.target=<%= _target %>
<% end %>
log4j.appender.Console.layout.ConversionPattern=<%= _pattern %>
log4j.appender.File=org.apache.log4j.FileAppender
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=<%= _pattern %>
log4j.appender.File.File=<%= _file %>
log4j.appender.File.append=true
<% end %>

<% if @logconfig && @logconfig.keys.length > 0 %>
<%
_default_level     = 'INFO'
_default_appenders = ['Console']
_default_pattern   = '[%-5p] %m%n'
_default_file      = 'jetty.log'

_loglevel  = @logconfig.fetch('level', _default_level)
_appenders = @logconfig.fetch('appenders', _default_appenders.join(','))
_pattern   = @logconfig.fetch('pattern', _default_pattern)
_target    = @logconfig.fetch('target', nil)
_file      = @logconfig.fetch('file', _default_file)
%>
log4j.rootLogger=<%= _loglevel %>, <%= _appenders %>
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
<% if _target %>
log4j.appender.Console.target=<%= _target %>
<% end %>
log4j.appender.Console.layout.ConversionPattern=<%= _pattern %>
log4j.appender.File=org.apache.log4j.FileAppender
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=<%= _pattern %>
log4j.appender.File.File=<%= _file %>
log4j.appender.File.append=true
<% end %>

Revert of the failback from symbol to string


<!doctype html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <%= feed_tag :atom, 'feed.xml', title: 'Atom Feed' %>
    <%= favicon_tag 'favicon.ico' %>
    <%= stylesheet_link_tag 'all' %>
    <title><%= page_title %></title>

    <% unless current_page.data.hide_nav %>

        ← Home

    <% end %>

    <section id="wrapper" <% unless current_article %>class="home"<% end %>>
      <%= yield %>

© <%= Time.now.year %> <%= config[:site_author] %>

    <%= javascript_include_tag 'all' %>

    <% if config[:google_analytics] %>
      <%= component 'google_analytics' %>
    <% end %>

<!doctype html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <%= feed_tag :atom, 'feed.xml', title: 'Atom Feed' %>
    <%= favicon_tag 'favicon.ico' %>
    <%= stylesheet_link_tag 'all' %>
    <title><%= page_title %></title>

    <% unless current_page.data.hide_nav %>

        ← Home

    <% end %>

    <section id="wrapper"<% unless current_article %> class="home"<% end %>>
      <%= yield %>

© <%= Time.now.year %> <%= config[:site_author] %>

    <%= javascript_include_tag 'all' %>

    <% if config[:google_analytics] %>
      <%= component 'google_analytics' %>
    <% end %>

Adjust whitespace in section.wrapper class


<%= content_tag :div, :class => 'notification-rule alert alert-success' do %>

	When one of my <%= notification_rule.class_name.pluralize %> is <%= notification_rule.action %>, <%= notification_rule.reactor.reaction_description %>.

	<%= button_to "×".html_safe, [:users, notification_rule], :method => :delete, :confirm => 'Are you sure you no longer want to receive notifications matching this rule?', :class => 'close pull-right' %>
<% end %>

Add basic display for notification rules


<Directory <%= @images_dir %>>
RewriteEngine on
RewriteBase "/images/"
RewriteRule "^thumb/(\w+)/(\w+)/.*/qlow-(\d+)px-(.*\.jpg)" "http://127.0.0.1:8888/unsafe/$3x/filters:quality(40):sharpen(0.6,0.01,false)/<%= @server_url %>/images/$1/$2/$4" [P]
RewriteRule "^thumb/(\w+)/(\w+)/.*/(\d+)px-(.*\.jpg)" "http://127.0.0.1:8888/unsafe/$3x/filters:quality(87):sharpen(0.6,0.01,false)/<%= @server_url %>/images/$1/$2/$4" [P]
RewriteRule "^thumb/(\w+)/(\w+)/.*/(\d+)px-(.*\.png)" "http://127.0.0.1:8888/unsafe/$3x/<%= @server_url %>/images/$1/$2/$4" [P]
</Directory>

<Directory <%= @images_dir %>>
RewriteEngine on
RewriteBase "/images/"
RewriteRule "^thumb/(.*)/qlow-(\d+)px-.*\.jpg" "http://127.0.0.1:8888/unsafe/$2x/filters:quality(40):sharpen(0.6,0.01,false)/<%= @server_url %>/images/$1" [P]
RewriteRule "^thumb/(.*)/(\d+)px-.*\.jpg" "http://127.0.0.1:8888/unsafe/$2x/filters:quality(87):sharpen(0.6,0.01,false)/<%= @server_url %>/images/$1" [P]
RewriteRule "^thumb/(.*)/(\d+)px-.*\.png" "http://127.0.0.1:8888/unsafe/$2x/<%= @server_url %>/images/$1" [P]
</Directory>

Support archived thumbnails in thumbor role

Bug: T111725
Change-Id: I4cb16b594e923f8381755d4b0e7acba7db823269


JavaScript

Installation:

    Install Node.js

        Homebrew for Mac OS X

Install node with brew install node

    Install jasmine-node with
    npm install jasmine-node -g

  Update your PATH to include the npm binaries. Add the
  following to either ~/.bash_profile or ~/.zshrc

$ export PATH=/usr/local/share/npm/bin:$PATH

Running tests:

Execute the tests with:

$ jasmine-node bob_test.spec.js

JavaScript

Installation:

    Install Node.js

        Installing Node.js via package manager

    Install jasmine-node with
    npm install jasmine-node -g

  Update your PATH to include the npm binaries. Add the
  following to either ~/.bash_profile or ~/.zshrc

$ export PATH=/usr/local/share/npm/bin:$PATH

Running tests:

Execute the tests with:

$ jasmine-node bob_test.spec.js

Improve nodejs installation help on js dashboard

Provide link to multiplatform package installation instructions
on nodejs project wiki.


require "recap/deploy"

set :application, "<%= name %>"

set :repository,  "<%= repository %>"
set :branch, "master"

require "recap/ruby"

set :application, "<%= name %>"

set :repository,  "<%= repository %>"

Use recap/ruby as the default recipe.

Use recap/ruby as the default recipe.

We want the common case for using recap to have as little friction as possible for users. We also want the 'activation' points to be as clear as possible - in other words, the files that we support users requiring should be clear.


<%# This is a fix for https://github.com/manshar/manshar/issues/195 %>
<% @resource.as_json.each do |attr, val| %>
  "<%= attr %>": "<%= val.respond_to?(:to_str) ? val.to_str.gsub(/(?:\n\r?|\r\n?)/, ' ') : val %>",
<% end %>

"auth_token": "<%= @token %>",
"message":    "deliverCredentials",
"client_id":  "<%= @client_id %>",
"expiry":     "<%= @expiry %>",
"config":     "<%= @config %>"

Clean up new lines in string values for User object to avoid Javascript syntax error in oauth success.


<% @page_title = 'Admin Menu' %>

Admin Menu

Logged in as:

<%= link_to('Manage Subjects', :controller => 'subjects') %>

<%= link_to('Manage Pages', :controller => 'pages') %>

<%= link_to('Manage Sections', :controller => 'sections') %>

<%= link_to('Manage Admin Users', :controller => 'admin_users') %>

<%= link_to('Logout', :action => 'logout') %>

<% @page_title = 'Admin Menu' %>

Admin Menu

Logged in as: <%= session[:username] %>

<%= link_to('Manage Subjects', :controller => 'subjects') %>

<%= link_to('Manage Pages', :controller => 'pages') %>

<%= link_to('Manage Sections', :controller => 'sections') %>

<%= link_to('Manage Admin Users', :controller => 'admin_users') %>

<%= link_to('Logout', :action => 'logout') %>

Add username to Admin Menu

Add username to Admin Menu


Listing groups

    Name

<% @groups.each do |group| %>

    <%= group.name %>
    <%= link_to 'Show', group %>
    <%= link_to 'Edit', edit_group_path(group) %>
    <%= link_to 'Destroy', group, confirm: 'Are you sure?', method: :delete %>

<% end %>

<%= link_to 'New Group', new_group_path %>

My Groups

        Name

    <% @groups.each do |group| %>

        <%= group.name %>
        <%= link_to 'Show', group %>
        <%= link_to 'Edit', edit_group_path(group) %>
        <%= link_to 'Destroy', group, confirm: 'Are you sure?', method: :delete %>

    <% end %>

    <%= link_to 'New Group', new_group_path, :class => "btn btn-large" %>

Add scaffolding to Listing Groups page

Add scaffolding to Listing Groups page


<div id="root" style="width: 280px; margin: 40px auto; padding: 10px; ; border-width: 1px;">
</div>
<script src="https://cdn.auth0.com/js/lock-7.9.min.js"></script>
<script>
  var lock = new Auth0Lock("<%= ENV["AUTH0_CLIENT"] || 'IjMvSSE8zdo53tB1QFX5U8EDIxCTzW8Z' %>", 'dbc-mentor-me.auth0.com');
  var url = (document.location.origin + "/auth/auth0/callback")

  lock.show({
      container: 'root'
    , callbackURL: url
    , responseType: 'code'
    , authParams: {
      scope: 'openid profile'
    }
  });
</script>

<div id="root" style="width: 280px; margin: 40px auto; padding: 10px; ; border-width: 1px;">
</div>
<script src="https://cdn.auth0.com/js/lock-9.1.min.js"></script>
<script>
  var lock = new Auth0Lock("<%= ENV["AUTH0_CLIENT"] || 'IjMvSSE8zdo53tB1QFX5U8EDIxCTzW8Z' %>", 'dbc-mentor-me.auth0.com');
  var url = (document.location.origin + "/auth/auth0/callback")

  lock.show({
      container: 'root'
    , callbackURL: url
    , responseType: 'code'
    , authParams: {
      scope: 'openid profile'
    }
  });
</script>

Update Auth0 version to patch security issue


It seems you've tried to access an event with the wrong URL.
<% if defined?(event_link) %>
  Please try <%= event_link %>
<% else %>
  Could not generate a valid link for you. Please notify your system administrator.
<% end %>

It seems you've tried to access an event with the wrong URL.
<% if event_link %>
  Please try <%= event_link %>
<% else %>
  Could not generate a valid link for you. Please notify your system administrator.
<% end %>

Add missing event template and fix tests

Conflicts:

	webapp/app/views/shared/_missing_event.erb


    <%= link_to(image_tag('logo.png', :alt => t('site.name')), '/', :class => "brand inline-block"); %>

<%= link_to(t('site.name'), '/', :class => "brand"); %>

      <input type="search" name="search" id="global_search_input" placeholder=search>

    <%= link_to(image_tag('logo.png', :alt => t('site.name')), root_path, :class => "brand inline-block"); %>

<%= link_to(t('site.name'), root_path, :class => "brand"); %>

      <input type="search" name="search" id="global_search_input" placeholder=search>

Use root_path for / paths

Use root_path for / paths


<% person_members.each do |member| %>

				<%= member_heading(member) %>
				<% if member.authority? %>
				  Authority Member
				<% else %>
				  Non-Authority Member
				<% end %>

				<% policies = Policy.find_all_policies_for_member_id(member.hbx_member_id).sort_by{ |p| p.subscriber.coverage_start }.reverse %>
				<% policies.each do |policy| %>

<%= render 'policy_detail', p: policy if  policy_market(policy) == "Individual" || (can? :read, :all) %>

				<% end %>

<% end %>

<% person_members.each do |member| %>

				<%= member_heading(member) %>
				<% if member.authority? %>
				  Authority Member
				<% else %>
				  Non-Authority Member
				<% end %>

			<% policies = Policy.find_all_policies_for_member_id(member.hbx_member_id) %>

				<% policies.each do |policy| %>

<%= render 'policy_detail', p: policy if  policy_market(policy) == "Individual" || (can? :read, :all) %>

				<% end %>

<% end %>

Revert "policy sort on people show"

Revert "policy sort on people show"

This reverts commit 3da0ab73ac985df6b50173042ef6984837aa3645.


LEADERBOARD

          Rank	Name	Wins

        <% @top_winners.each.with_index do |user, idx| %>
          <% if user.total_wins > 0 %>

<%= idx + 1 %>.

<%= user.name.upcase %>

<%= user.total_wins %>

          <% end %>
        <% end %>

LEADERBOARD

          Rank	Name	Wins

        <% @top_winners.each.with_index do |user, idx| %>
          <% if user.total_wins > 0 %>

<%= idx + 1 %>.

<%= link_to user.name.upcase, user_path(user), :style=>'color:white; text-decoration:none;' %>

<%= user.total_wins %>

          <% end %>
        <% end %>

Add link to names on leaderboard

Add link to names on leaderboard


<!DOCTYPE html>
<html lang="<%= I18n.locale %>">

    <meta charset="utf-8">
    <%= csrf_meta_tags %>

    <title>
      <% if @title %>
        <%=@title%> - <%= site_name %>
      <% else %>
        <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
      <% end %>
    </title>

    <%= javascript_include_tag "application" %>

    <% if AlaveteliConfiguration::responsive_styling || params[:responsive] %>
      <%= render :partial => 'general/responsive_stylesheets' %>
    <% else %>
      <%= stylesheet_link_tag 'application', :title => "Main", :rel => "stylesheet" %>
      <%= stylesheet_link_tag 'fonts', :rel => "stylesheet" %>

    <% end %>
    <%= render :partial => 'layouts/favicon' %>

        <% if flash[:notice] %>

<%= flash[:notice] %>

        <% end %>
        <% if flash[:error] %>

<%= flash[:error] %>

        <% end %>

        <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
          <%= yield :layout %>

<!DOCTYPE html>
<html lang="<%= I18n.locale %>">

    <meta charset="utf-8">
    <%= csrf_meta_tags %>

    <title>
      <% if @title %>
        <%=@title%> - <%= site_name %>
      <% else %>
        <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
      <% end %>
    </title>

    <%= javascript_include_tag "application" %>

    <% if AlaveteliConfiguration::responsive_styling || params[:responsive] %>
      <%= render :partial => 'general/responsive_stylesheets' %>
    <% else %>
      <%= stylesheet_link_tag 'application', :title => "Main", :rel => "stylesheet" %>
      <%= stylesheet_link_tag 'fonts', :rel => "stylesheet" %>

    <% end %>
    <%= render :partial => 'layouts/favicon' %>

        <% if flash[:notice] %>

<%= render_flash(flash[:notice]) %>

        <% end %>
        <% if flash[:error] %>

<%= render_flash(flash[:error]) %>

        <% end %>

        <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
          <%= yield :layout %>

Use the new render_flash helper in templates


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

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

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

Dashboard feedback

Useful links

Useful links

Remove linebreaks in dashboard JSON config file

Remove linebreaks from links panel in deployment dashboards because
these make the generated JSON invalid.


Sign up

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

<%= f.label :username %>

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

<%= f.label :first_name %>

  <%= f.text_field :first_name %>

<%= f.label :last_name %>

  <%= f.text_field :last_name %>

<%= f.label :email %>

  <%= f.email_field :email %>

  <%- if session["devise.provider"].blank? %>

<%= f.label :password %>

    <%= f.password_field :password %>

<%= f.label :password_confirmation %>

    <%= f.password_field :password_confirmation %>

  <% end %>

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

<% end %>

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

<%- if session["devise.provider"].blank? %>

Sign up

<% else %>

Complete your signup!

<% end %>

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

<%= f.label :username %>

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

<%= f.label :first_name %>

  <%= f.text_field :first_name %>

<%= f.label :last_name %>

  <%= f.text_field :last_name %>

<%= f.label :email %>

  <%= f.email_field :email %>

  <%- if session["devise.provider"].blank? %>

<%= f.label :password %>

    <%= f.password_field :password %>

<%= f.label :password_confirmation %>

    <%= f.password_field :password_confirmation %>

  <% end %>

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

<% end %>

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

Make final data collection from omniauth started new accounts more obvious


<div id="existing_resource_area" class="dialog_area" <%= 'style="display:none;"'.html_safe if @resource.errors.any? %>>
  <input type="hidden" name="linked_resource" id="linked_resource" />

        <% @resources.each do |resource| -%>
          <% resource_linked = ((@resource_id.present? && @resource_id == resource.id) || (params[:current_link].present? && resource.url == params[:current_link])) %>
          <li<%= ' class="linked"'.html_safe if resource_linked %>>
            <%= link_to "#{resource.title} (#{resource.file_name})", path_to_asset(resource.url),
                        :title => t('.link_to_file'),
                        :rel => resource.title,
                        :class => 'page_link',
                        :id => "resource_#{resource.id}" %>

        <% end %>

  <%= will_paginate @resources, :params => params.dup.merge(:action => "insert") %>

  <%= render '/refinery/admin/form_actions', :f => nil,
             :submit_button_text => t('.button_text'),
             :hide_cancel => true,
             :hide_delete => true if @app_dialog or @resources.any? %>

<div id="existing_resource_area" class="dialog_area" <%= 'style="display:none;"'.html_safe if @resource.errors.any? %>>
  <input type="hidden" name="linked_resource" id="linked_resource" />

        <% @resources.each do |resource| -%>
          <% resource_linked = ((@resource_id.present? && @resource_id == resource.id) || (params[:current_link].present? && resource.url == params[:current_link])) %>
          <li<%= ' class="linked"'.html_safe if resource_linked %>>
            <%= link_to "#{resource.title} (#{resource.file_name})", path_to_asset(resource.url),
                        :title => t('.link_to_file'),
                        :rel => resource.title,
                        :class => 'page_link',
                        :id => "resource_#{resource.id}" %>

        <% end %>

  <%= will_paginate @resources, :params => params.dup.merge(:action => "insert") %>

  <%= render '/refinery/admin/form_actions', :f => nil,
             :submit_button_text => t('.button_text'),
             :hide_cancel => false,
             :hide_delete => true if @app_dialog or @resources.any? %>

Set hide_cancel to false for existing_resource


<% if ENV["SEGMENT_KEY"] %>
  <script>
    !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="4.0.0";
    analytics.load("<%= ENV["SEGMENT_KEY"] %>");
    analytics.page();
    }}();
  </script>
<% end %>

<% if ENV["GTM_CONTAINER_ID"] %>
  <script>
    (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','<%= ENV["GTM_CONTAINER_ID"] %>');
  </script>
<% end %>

Swap segment for google tag manager

Swap segment for google tag manager


      <%= partial 'partials/hero_background' %>

      <%= image_tag 'logo.svg', class: 'hero-logo hero-reveal', alt: 'Insiter' %>

Insiter

02 de Dezembro

Auditório do Senac POA

        <a class="button hero-reveal" href="<%= data.site.tickets_url %>" target="_blank">
          Garanta seu Ingresso

      <%= partial 'partials/hero_background' %>

      <%= image_tag 'logo.svg', class: 'hero-logo hero-reveal', alt: 'Insiter' %>

Insiter

02 de Dezembro

Auditório da Faculdade Senac Porto Alegre

        <a class="button hero-reveal" href="<%= data.site.tickets_url %>" target="_blank">
          Garanta seu Ingresso

Change Senac description at hero

Change Senac description at hero


  <%= link_to( image_tag( current_user.photo.url(:avatar), :class => 'user-photo photo' ), current_user ) if current_user.photo.file? %>

<%= link_to current_user.label, current_user %>

    <% if user_profiles? %>
      <%= link_to "Edit profile", edit_user_path(current_user) %> |
    <% end -%>
    <%= link_to "Logout", sign_out_path, :method => :delete %>

  <%= link_to( image_tag( current_user.photo.url(:avatar), :class => 'user-photo photo' ), current_user ) if current_user.photo.file? %>

<%= link_to current_user.label, current_user %>

    <% if user_profiles? %>
      <%= link_to "Edit profile", edit_user_path(current_user) %> |
    <% end -%>
    <%= link_to "Sign out", sign_out_path %>

Fix errant delete verb usage for signing out

Closes #74


require "<%= @options.fetch(:rails, nil) ? "rails_helper" : "spec_helper" %>"
require "rack/test"
require_relative "./support/matchers/rambo_matchers"

<% if options.fetch(:rails, nil) %>module ApiHelper
  include Rack::Test::Methods

  def app
    Rails.application
  end
end

RSpec.configure do |config|
  config.include ApiHelper, type: :request
end<% end %>

require "<%= @options.fetch(:rails, nil) ? "rails_helper" : "spec_helper" %>"
require "rack/test"
require_relative "./support/matchers/rambo_matchers"

<% if options.fetch(:rails, nil) %>module ApiHelper
  include Rack::Test::Methods

  def app
    Rails.application
  end
end

RSpec.configure do |config|
  config.include ApiHelper, type: :rambo
end<% end %>

Use :rambo type to include ApiHelper module for Rails


<fieldset class="no-border-bottom">
  <% param_prefix = "payment_source[#{payment_method.id}]" %>
  <%= label_tag nil, "PO Number" %>
  <%= text_field_tag "#{param_prefix}[po_number]", '', :class => 'required', :autocomplete => "off" %>
</fieldset>

Enable payment via PO in backend

Enable payment via PO in backend


  <div class="section-wrap" id="news-<%= @news.id %>">

      <%= @news.title %>

      <% if @news.content.size != 0 %>

        <%= raw @news.markdown_content %>

      <% end %>

          <%= News::CHANNEL_LIST[@news.channel][0] %>
          <% if @news.event != 0 %>
            | <%= News::EVENT_LIST[@news.event][0] %>
          <% end %>

        <%= link_to @news.created_at.strftime("%H:%M %Y-%m-%d"), "/news/#{@news.id}" %>

    <%= link_to "返回", controller: "index", action: "index" %>

Add return button to item

Add return button to item


<%= icon('spinner fa-spin') %> Design pull is in progress, started <%= time_ago_in_words(@environment.updated_timestamp) %>.

Change design pull status polling to update sooner in the beginning.


List of Articles

    <% @articles.each do |article| %>

<%= truncate(article.title) %>

                        Created by: <%= article.user.username %>
                        Last updated: <%= time_ago_in_words(article.updated_at) %> ago

<%= truncate(article.description, length: 120) %>

                        <%= link_to "Show", article_path(article), class: "mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect"%>
                        <%= link_to "Edit", edit_article_path(article), class: "mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" %>
                        <%= link_to "Delete", article_path(article),
                                method: :delete,
                                data: { confirm: "Are you sure you want to delete this article?" },
                                class: "btn-danger mdl-button mdl-js-button mdl-button--raised mdl-button--accent mdl-js-ripple-effect" %>

                        <button class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect">
                        share
                    </button>

    <% end %>

List of Articles

    <%= render "article", obj: @articles %>

Refactor index route for articles

Refactor index route for articles


back to <%= link_to 'documents', documents_path %>

<%= @published_edition.title %>

    <%= govspeak_to_html @published_edition.body %>

<%= link_to_attachment(@published_edition.attachment) %>

Written by <%= @published_edition.author.name %>

<% if @published_edition.topics.any? %>

Topics

    <% @published_edition.topics.each do |topic| %>

<%= link_to topic.name, topic_path(topic) %>

    <% end %>

<% end %>

<% if @published_edition.organisations.any? %>

Topics

    <% @published_edition.organisations.each do |topic| %>

<%= link_to organisation.name, topic_path(organisation) %>

    <% end %>

<% end %>

back to <%= link_to 'documents', documents_path %>

<%= @published_edition.title %>

    <%= govspeak_to_html @published_edition.body %>

<%= link_to_attachment(@published_edition.attachment) %>

Written by <%= @published_edition.author.name %>

<% if @published_edition.topics.any? %>

Topics

    <% @published_edition.topics.each do |topic| %>
      <%= content_tag_for :li, topic do %>
        <%= link_to topic.name, topic_path(topic) %>
      <% end %>
    <% end %>

<% end %>

<% if @published_edition.organisations.any? %>

Topics

    <% @published_edition.organisations.each do |topic| %>
      <%= content_tag_for :li, organisation do %>
        <%= link_to organisation.name, organisation_path(organisation) %>
      <% end %>
    <% end %>

<% end %>

Use content_tag_for to show records

Use content_tag_for to show records


<% ref_name = topic.name.tr('#?@/', '').downcase.split(' ').join('-') %>

      <a data-toggle="collapse" data-parent="#accordion" href="#<%= ref_name %>">
        <%= topic.name %>

  <div id="<%= ref_name %>" class="panel-collapse collapse<%= ' in' if topic_counter.eql?(0) %>">

      <%= topic.content.html_safe %>

<% ref_name = topic.name.tr('#?@/.;', '').downcase.split(' ').join('-') %>

      <a data-toggle="collapse" data-parent="#accordion" href="#<%= ref_name %>">
        <%= topic.name %>

  <div id="<%= ref_name %>" class="panel-collapse collapse<%= ' in' if topic_counter.eql?(0) %>">

      <%= topic.content.html_safe %>

Fix bug breaking accordion in AcFee Help


<% text_for :title do %>
  You do not need a visa to come to the UK
<% end %>

<% govspeak_for :body do %>
  This will not change when [new immigration rules](/guidance/new-immigration-system-what-you-need-to-know) come in on 1 January 2021.
<% end %>

Update to outcome no visa Ireland

Update to outcome no visa Ireland

This sentence is no longer needed.


<%= javascript_include_tag *@suite.spec_assets, debug: @suite.config.expand_assets %>
<script type="text/javascript">
  Teaspoon.onWindowLoad(Teaspoon.execute);
</script>

<%= javascript_include_tag *@suite.spec_assets, debug: @suite.config.expand_assets, allow_non_precompiled: true %>
<script type="text/javascript">
  Teaspoon.onWindowLoad(Teaspoon.execute);
</script>

Make boot partial template consistent with default

The new `allow_non_precompiled: true` option was missing.


Editing Article

<%= render 'form' %>

<%= link_to 'Show', @article %> |
<%= link_to 'Back', articles_path %>

Editing Article

<%= render 'form' %>

Show

<a href="<%= article_path(@article) %>">Show

<%= link_to 'Show', article_path(@article) %> |
<%= link_to 'Show', article_path(@article.id) %> |
<%= link_to 'Show', @article %>
|
<%= link_to 'Back', articles_path %>

Add examples of link_to helper

Add examples of link_to helper

and <a> html tag usage in rails


Complete photo app

Feel free to sign up.

Don't forget that you'll have to use a real email address
  because a confirmation email will need to be sent to you.

  <%= link_to 'Sign up', new_user_registration_path, class: 'btn btn-large btn-primary' %>

Add jumbotron to home page.

Add jumbotron to home page.


# This file is managed by Puppet. Local changes will be clobbered.

server {
  server_name <%= @full_domain %>;

  listen localhost:80;

  proxy_connect_timeout 1s;
  proxy_read_timeout 15s;

  access_log /var/log/nginx/<%= @full_domain %>-access.log timed_combined;
  access_log /var/log/nginx/<%= @full_domain %>-json.event.access.log json_event;
  error_log /var/log/nginx/<%= @full_domain %>-error.log;

  location / {
    try_files $uri/index.html $uri.html $uri @app;
  }

  location /publisher {
    proxy_pass http://localhost:3079;
  }

  location /signon {
    proxy_pass http://localhost:3080;
  }

  location /whitehall {
    proxy_pass http://localhost:3081;
  }

  location /transition {
    proxy_pass http://localhost:3086;
  }

  root /data/vhost/<%= @full_domain %>/current/public;

}

# This file is managed by Puppet. Local changes will be clobbered.

server {
  server_name <%= @full_domain %>;

  listen localhost:80;

  proxy_connect_timeout 1s;
  proxy_read_timeout 15s;

  access_log /var/log/nginx/<%= @full_domain %>-access.log timed_combined;
  access_log /var/log/nginx/<%= @full_domain %>-json.event.access.log json_event;
  error_log /var/log/nginx/<%= @full_domain %>-error.log;

  location / {
    try_files $uri/index.html $uri.html $uri @app;
  }

  location /publisher {
    proxy_pass http://localhost:3079;
  }

  location /signon {
    proxy_pass http://localhost:3080;
  }

  location /whitehall {
    proxy_pass http://localhost:3081;
  }

  location /transition {
    proxy_pass http://localhost:3086;
  }

  location /email-alert-api {
    proxy_pass http://localhost:3089;
  }

  root /data/vhost/<%= @full_domain %>/current/public;

}

Add a path for email-alert-api sidekiq monitoring

To allow monitoring of the email-alert-api add
a path to the nginx vhost

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


<% provide(:head_title, t("my_modules.module_archive.head_title", project: h(@my_module.experiment.project.name), module: h(@my_module.name)).html_safe) %>
<%= render partial: "shared/sidebar", locals: { current_task: @my_module, page: 'task' } %>
<%= render partial: "shared/secondary_navigation" %>

      <% i = 0 %>
      <% @archived_results.each do |result| %>
        <%= render partial: "my_modules/archive/result.html.erb", locals: { result: result } %>
        <% i = i + 1 %>
      <% end %>

  <% if i == 0 %>

        <%=t "my_modules.module_archive.no_archived_results" %>

  <% end %>

<% provide(:head_title, t("my_modules.module_archive.head_title", project: h(@my_module.experiment.project.name), module: h(@my_module.name)).html_safe) %>
<%= render partial: "shared/sidebar", locals: { current_task: @my_module, page: 'task' } %>
<%= render partial: "shared/secondary_navigation" %>

    <% if @archived_results.any? %>
      <% @archived_results.each do |result| %>

          <%= render partial: "my_modules/archive/result.html.erb", locals: { result: result } %>

      <% end %>
    <% else %>

        <%=t "my_modules.module_archive.no_archived_results" %>

    <% end %>

Fix for archived results in row

Fix for archived results in row


<% @categories.each_slice(3).with_index do |sliced_categories, index| %>

        <% sliced_categories.each do |category| %>

            <%= category_link category, class:  "category_links" %>

        <% end %>

<% end %>

Add the categories back to the home page


<!DOCTYPE html>

  <title>Mongo Browser</title>
  <link href="/assets/application.css" rel="stylesheet" media="screen">

        Mongo Browser

Server Info

    <%= yield %>

<!DOCTYPE html>

  <title>Mongo Browser</title>
  <link href="/assets/application.css" rel="stylesheet" media="screen">

        Mongo Browser

Server Info

Databases

      <% if params[:db_name] %>
        /

<a href="/databases/<%= params[:db_name] %>">db: activecell_development
      <% end %>

      <% if params[:collection_name] %>
        /

collection: <%= params[:collection_name] %>

      <% end %>

    <%= yield %>

Create very simple breadcrumbs for databases and collections.


<%= stylesheet_link_tag 'pageflow_paged/editor', media: 'all' %>

<%= javascript_include_tag 'pageflow/vendor' %>
<%# Next line can be removed once remaining mentions of pageflow global in editor are removed %>
<%= javascript_include_tag 'pageflow/application' %>
<%= javascript_include_tag 'pageflow/editor/vendor' %>
<%= javascript_pack_tag 'pageflow-scrolled-editor' %>

<%= stylesheet_link_tag 'pageflow_paged/editor', media: 'all' %>

<%= javascript_include_tag 'pageflow/vendor' %>

<%# Can be removed once remaining mentions of pageflow global in editor are removed %>
<script>
  window.PAGEFLOW_EDITOR = true;
</script>
<%= javascript_include_tag 'pageflow/application' %>

<%= javascript_include_tag 'pageflow/editor/vendor' %>
<%= javascript_pack_tag 'pageflow-scrolled-editor' %>

Set PAGEFLOW_EDITOR global in scrolled editor

Follow up for #1284. As long as we still load the paged js in the
editor, this global has to be set.

REDMINE-17269


site "http://community.opscode.com/api/v1"

cookbook "homebrewalt",           :github => "kitchenplan/chef-homebrewalt",    :ref => "v1.8.8"
cookbook "nodejs",                :github => "kitchenplan/chef-nodejs",         :ref => "v1.2"
cookbook "applications",          :github => "kitchenplan/chef-applications",   :ref => "v2.0.6"
cookbook "osxdefaults",           :github => "kitchenplan/chef-osxdefaults",    :ref => "v1.0.4"
cookbook "dotfiles",              :github => "kitchenplan/chef-dotfiles",       :ref => "v1.3.2"
cookbook "drivers",               :github => "kitchenplan/chef-drivers",        :ref => "v1.0"
cookbook "sudoalt",               :github => "kitchenplan/chef-sudoalt",        :ref => "v2.4"
cookbook "dmg",                   :github => "opscode-cookbooks/dmg",           :ref => "v2.1.4"

site "http://community.opscode.com/api/v1"

cookbook "homebrewalt",           :github => "kitchenplan/chef-homebrewalt",    :ref => "v1.8.8"
cookbook "nodejs",                :github => "kitchenplan/chef-nodejs",         :ref => "v1.2"
cookbook "applications",          :github => "kitchenplan/chef-applications",   :ref => "v2.0.7"
cookbook "osxdefaults",           :github => "kitchenplan/chef-osxdefaults",    :ref => "v1.0.4"
cookbook "dotfiles",              :github => "kitchenplan/chef-dotfiles",       :ref => "v1.3.2"
cookbook "drivers",               :github => "kitchenplan/chef-drivers",        :ref => "v1.0"
cookbook "sudoalt",               :github => "kitchenplan/chef-sudoalt",        :ref => "v2.4"
cookbook "dmg",                   :github => "opscode-cookbooks/dmg",           :ref => "v2.1.4"

Update applications cookbook to v2.0.7

Update applications cookbook to v2.0.7


<% provide(:title, 'New Feedback') %>

Create a new feedback

          <%= render 'form' %>

Fix issue with footer stretching full width


<%- includes(:copyright,'') do |copyright| -%>
<%= copyright -%>

<%- end -%>
<%- @modules.each_with_index do |namespace,n| -%>
<%= indent(n) %>module <%= namespace %>
<%- end -%>
<%= indent(@module_depth) %># <%= @name %> version
<%= indent(@module_depth) %>VERSION = <%= @version.dump %>
<%- (@module_depth - 1).downto(0) do |n| -%>
<%= indent(n) %>end
<%- end -%>

Add a space between the copyright header and the code.


<!DOCTYPE html>
<html lang="en">
<head>
  <title>Shopify Embedded Example App</title>

  <script src="//cdn.shopify.com/s/assets/external/app.js?<%= Time.now.strftime('%Y%m%d%H') %>"></script>
  <script type="text/javascript">
    ShopifyApp.init({
      apiKey: "<%= ShopifyApp.configuration.api_key %>",
      shopOrigin: '<%= "https://#{ @shop_session.url }" if @shop_session %>'
    });
  </script>

  <%= stylesheet_link_tag 'application' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>
</head>

<body>
  <%= yield %>
</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Shopify Embedded Example App</title>

  <script src="//cdn.shopify.com/s/assets/external/app.js?<%= Time.now.strftime('%Y%m%d%H') %>"></script>
  <script type="text/javascript">
    ShopifyApp.init({
      apiKey: "<%= ShopifyApp.configuration.api_key %>",
      shopOrigin: "<%= "https://#{ @shop_session.url }" if @shop_session %>",
      debug: <%= Rails.env.development? ? 'true' : 'false' %>
    });
  </script>

  <%= stylesheet_link_tag 'application' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>
</head>

<body>
  <%= yield %>
</body>
</html>

Add debug setting to ShopifyApp initialisation based on Rail environment.


<% text_for :title do %>
  Will you be going to a red list country in the 10 days before you return to England?
<% end %>

<% govspeak_for :body do %>
  <%= render "govuk_publishing_components/components/details", {
    title: "Why we’re asking this question:"
  } do %>
    You've told us you’re going to a country on the travel red list.
    Different rules apply if you’ve been in a red list country in the 10 days before you return to England.
  <% end %>

  These are the red list countries you said you're going to:

 <% calculator.red_list_country_titles.each do |country| %>
   - <%= country %>
 <% end %>
<% end %>

<% options(
  "yes": "Yes, I’m going to a red list country in the 10 days before I return to England",
  "no": "No, I’m not going to a red list country in the 10 days before I return to England",
) %>

<% text_for :title do %>
  Will you be going to a red list country in the 10 days before you return to England?
<% end %>

<% govspeak_for :body do %>
  Different rules apply if you’ve been in a red list country in the 10 days before you return to England.

  You've said you’re going to these red list countries:

 <% calculator.red_list_country_titles.each do |country| %>
   - <%= country %>
 <% end %>
<% end %>

<% options(
  "yes": "Yes, I’m going to a red list country in the 10 days before I return to England",
  "no": "No, I’m not going to a red list country in the 10 days before I return to England",
) %>

Remove details component from red list country

Remove details component from red list country question


<% if job['class'] == 'ActiveJob::QueueAdapters::ResqueAdapter::JobWrapper' %>
  <%= job['args'].first['job_class'] %>
  (via ActiveJob)
<% else %>
  <%= job['class'] %>
<% end %>

Add rel attribute in anchor link to mitigate reverse tabnabbing


language: ruby
rvm: <%= RUBY_VERSION %>

sudo: false

addons:
  postgresql: '9.3'

cache: bundler

before_install:
  - "echo 'gem: --no-document' > ~/.gemrc"
  - "echo '--colour' > ~/.rspec"
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

before_script:
  - cp .sample.env .env
  - bin/rake db:create db:schema:load RAILS_ENV=test

notifications:
  email: false

language: ruby
rvm: <%= RUBY_VERSION %>

sudo: false

addons:
  postgresql: '9.4'

cache: bundler

before_install:
  - "echo 'gem: --no-document' > ~/.gemrc"
  - "echo '--colour' > ~/.rspec"
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

before_script:
  - cp .sample.env .env
  - bin/rake db:create db:schema:load RAILS_ENV=test

notifications:
  email: false

Use Postgres 9.4 in Travis

Use Postgres 9.4 in Travis

It matches the current default Heroku version.


%% -*- mode: erlang -*-
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et

[
 %% SASL config
 {sasl, [
         {sasl_error_logger, {file, "<%= File.join(@log_directory, 'sasl-error.log') %>"}},
         {errlog_type, error},
         {error_logger_mf_dir, "<%= File.join(@log_directory, 'sasl') %>"},      % Log directory
         {error_logger_mf_maxbytes, 10485760},   % 10 MB max file size
         {error_logger_mf_maxfiles, 5}           % 5 files max
        ]},

 %% bookshelf_store Config
 {bookshelf_store, [
                   ]},

 %% bookshelf_wi Config
 {bookshelf_wi, [{ip, "<%= @listen %>"},
                 {port, <%= @port %>},
                 {keys, {"<%= @access_key_id %>",
                         "<%= @secret_access_key %>"}},
                 {disk_store, "<%= @data_dir %>"},
                 {stream_download, <%= @stream_download %>}
                ]}
].

%% -*- mode: erlang -*-
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et

[
 %% SASL config
 {sasl, [
         {sasl_error_logger, {file, "<%= File.join(@log_directory, 'sasl-error.log') %>"}},
         {errlog_type, error},
         {error_logger_mf_dir, "<%= File.join(@log_directory, 'sasl') %>"},      % Log directory
         {error_logger_mf_maxbytes, 10485760},   % 10 MB max file size
         {error_logger_mf_maxfiles, 5}           % 5 files max
        ]},

 %% bookshelf_store Config
 {bookshelf_store, [
                   ]},

 %% bookshelf_wi Config
 {bookshelf_wi, [{ip, "<%= @listen %>"},
                 {port, <%= @port %>},
                 {keys, {"<%= @access_key_id %>",
                         "<%= @secret_access_key %>"}},
                 {disk_store, "<%= @data_dir %>"},
                 {stream_download, <%= @stream_download %>},
                 {log_dir, "<%= @log_directory %>"}
                ]}
].

Fix location of bookshelf log directory

Fix location of bookshelf log directory


<% form_for(@oauth_client, :html => {:id => 'oauth_client_edit_form', :class => nil}) do |f| %>

        Name:

          (The name of the client which will be accessing data from this mingle server.)

    <%= f.text_field :name, :class => 'width-large' %>

        Redirect URI:

          (The redirect URI provided by the client.)

    <%= f.text_field :redirect_uri, :class => 'width-large' %>

    <%= link_to_function 'Submit', 'document.getElementById("oauth_client_edit_form").submit()', {:class => 'link_as_button primary', :href => 'javascript:void(0)'} %>
    <%= link_to 'Cancel', {:controller => 'oauth_clients'}, {:class => 'link_as_button back_link'} %>

<% end %>

<% form_for(@oauth_client, :html => {:id => 'oauth_client_edit_form', :class => nil}) do |f| %>

        Name:

          (The name of the client which will be accessing data from this server.)

    <%= f.text_field :name, :class => 'width-large' %>

        Redirect URI:

          (The redirect URI provided by the client.)

    <%= f.text_field :redirect_uri, :class => 'width-large' %>

    <%= link_to_function 'Submit', 'document.getElementById("oauth_client_edit_form").submit()', {:class => 'link_as_button primary', :href => 'javascript:void(0)'} %>
    <%= link_to 'Cancel', {:controller => 'oauth_clients'}, {:class => 'link_as_button back_link'} %>

<% end %>

Remove the word mingle from one of the forms.


<%= render 'backend/breadcrumbs' %>

<% if @snippets.any? %>

        <%= t 'b.description' %>

      <% @snippets.each do |a| %>

          <%= a.description %>

            <%= link_to icon(:pencil_square_o), edit_translation_backend_snippet_path(a, translation_locale: default_locale) %>

      <% end %>

<% else %>

<%= t 'b.msg.no_items' %>

<% end %>

<%= render 'backend/breadcrumbs' %>

<% if @snippets.any? %>

        <%= t 'b.description' %>

      <% @snippets.each do |a| %>

          <%= a.description %>

            <%= link_to_edit [:backend, a] %>

      <% end %>

<% else %>

<%= t 'b.msg.no_items' %>

<% end %>

Fix the snippet index view.

Fix the snippet index view.


<script id="ga-params" type="text/javascript">
  var GOVUK = GOVUK || {};
  GOVUK.Analytics = GOVUK.Analytics || {};
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26179049-1']);
  if(document.domain=='www.gov.uk') {
    _gaq.push(['_setDomainName', '.www.gov.uk']);
  } else {
    _gaq.push(['_setDomainName', document.domain]);
  }
  _gaq.push(['_setAllowLinker', true]);
    // track pixel density ratio
  if (window.devicePixelRatio) {
    _gaq.push(['_setCustomVar', 11, 'Pixel Ratio', String(window.devicePixelRatio), 2 ]);
  }
</script>
<script type="text/javascript">
  _gaq.push(['_gat._anonymizeIp']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>

<script id="ga-params" type="text/javascript">
  var GOVUK = GOVUK || {};
  GOVUK.Analytics = GOVUK.Analytics || {};
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26179049-1']);
  if(document.domain=='www.gov.uk') {
    _gaq.push(['_setDomainName', '.www.gov.uk']);
  } else {
    _gaq.push(['_setDomainName', document.domain]);
  }
  _gaq.push(['_setAllowLinker', true]);
    // track pixel density ratio
  if (window.devicePixelRatio) {
    _gaq.push(['_setCustomVar', 11, 'Pixel Ratio', String(window.devicePixelRatio), 2 ]);
  }
  // Search result placement tracking, set custom var and destroy the cookie
  if(GOVUK.cookie && GOVUK.cookie('ga_nextpage_params') !== null){
    var customVar = GOVUK.cookie('ga_nextpage_params').split(',');
    customVar[1] = parseInt(customVar[1], 10);
    customVar[4] = parseInt(customVar[4], 10);
    _gaq.push(customVar);
  }
</script>
<script type="text/javascript">
  _gaq.push(['_gat._anonymizeIp']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>

Save information to GA from cookie value

The cookie will initally be used on the search results page but in the
future could be used for other things also.


<!DOCTYPE html>
<html>
  <head>
    <title><%= yield :title %> | GOV.UK</title>
    <%= javascript_include_tag "smart-answers", defer: true %>
    <%= yield :section_meta_tags %>
    <%= yield :head %>
  </head>
<body class="citizen">
  <div id="wrapper" class="answer smart_answer">
    <%= yield %>
  </div>
</body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title><%= yield :title %> | GOV.UK</title>
    <%= javascript_include_tag "smart-answers", defer: true %>
    <%= yield :section_meta_tags %>
    <%= yield :head %>
  </head>
  <%# The citizen class is going to be deprecated, to be replaced with mainstream. %>
  <%# Added the mainstream class in preparation for the change. %>
<body class="citizen mainstream">
  <div id="wrapper" class="answer smart_answer">
    <%= yield %>
  </div>
</body>
</html>

Add mainstream class to body

Add mainstream class to body

In preparation for replacing the citizen class.


<!DOCTYPE html>

  <title>DRAFT-O-TRON 3000</title>
  <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700|Slabo+27px" rel="stylesheet">
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>

  <%= csrf_meta_tags %>

DRAFT-O-TRON 3000

      settings

<%= yield %>

<!DOCTYPE html>

  <title>DRAFT-O-TRON 3000</title>
  <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700|Slabo+27px" rel="stylesheet">
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>

  <%= csrf_meta_tags %>

DRAFT-O-TRON 3000

      settings
      <%= image_tag("left-arrow-white.png", class: "inline-block", alt: "Menu Bars") %>

<%= yield %>

    <%= image_tag("up-arrow-white.png", class: "scroll-to_top", alt: "Scroll to Top Button") %>

Add scroll to top button

Add scroll to top button


Add scroll to top button

Add scroll to top button


<%= simple_form_for [@repo, @comment], remote: true do |f| %>

        <%= f.text_field :text, class: "form-control", placeholder: "Say something about #{@repo.name}" %>

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

<% end %>

<%= simple_form_for [@repo, @comment], remote: true do |f| %>

        <%= f.text_field :text, class: "form-control", placeholder: "Say something about #{@repo.name}" %>

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

<% end %>

Update comment submit button text

Update comment submit button text


# dhcpd.conf

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;

option domain-name "<%= domain %>";
option domain-name-servers <%= nameservers.join( ', ') %>;
option ntp-servers <%= ntpservers.join( ', ') %>;
#authoritative;

#allow booting;
#allow bootp;

option fqdn.no-client-update    on;  # set the "O" and "S" flag bits
option fqdn.rcode2            255;
option pxegrub code 150 = text ;

#option option-211 code 211=string;
#option nv-211 code 211=string;
#option option-211 74:66:74:70;

<%= if has_variable? 'pxeserver' and has_variable? filename -%>
# PXE Handoff.
next-server <%= pxeserver %>;
filename "<%= filename %>";
<% end -%>

log-facility <%= logfacility %>;

include "<%= dhcp_dir %>/dhcpd.pools";
include "<%= dhcp_dir %>/dhcpd.hosts";

# dhcpd.conf

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;

option domain-name "<%= domain %>";
option domain-name-servers <%= nameservers.join( ', ') %>;
option ntp-servers <%= ntpservers.join( ', ') %>;
#authoritative;

#allow booting;
#allow bootp;

option fqdn.no-client-update    on;  # set the "O" and "S" flag bits
option fqdn.rcode2            255;
option pxegrub code 150 = text ;

#option option-211 code 211=string;
#option nv-211 code 211=string;
#option option-211 74:66:74:70;

<%= if has_variable?( 'pxeserver' ) and has_variable?( 'filename' ) then -%>
# PXE Handoff.
next-server <%= pxeserver %>;
filename "<%= filename %>";
<% end -%>

log-facility <%= logfacility %>;

include "<%= dhcp_dir %>/dhcpd.pools";
include "<%= dhcp_dir %>/dhcpd.hosts";

Fix templating for PXE (again)

Fix templating for PXE (again)


class <%= migration_name %> < ActiveRecord::Migration
  def self.up
    add_column :<%= class_name.underscore.camelize.tableize %>, :publishing_enabled, :boolean
    add_column :<%= class_name.underscore.camelize.tableize %>, :publish_from, :datetime
    add_column :<%= class_name.underscore.camelize.tableize %>, :publish_until, :datetime
  end

  def self.down
    remove_column :<%= class_name.underscore.camelize.tableize %>, :publishing_enabled
    remove_column :<%= class_name.underscore.camelize.tableize %>, :publish_from
    remove_column :<%= class_name.underscore.camelize.tableize %>, :publish_until
  end
end

class <%= migration_name %> < ActiveRecord::Migration
  def self.up
    add_column :<%= class_name.underscore.camelize.tableize %>, :publishing_enabled, :boolean
    add_column :<%= class_name.underscore.camelize.tableize %>, :published_at, :datetime
    add_column :<%= class_name.underscore.camelize.tableize %>, :published_until, :datetime
  end

  def self.down
    remove_column :<%= class_name.underscore.camelize.tableize %>, :publishing_enabled
    remove_column :<%= class_name.underscore.camelize.tableize %>, :published_at
    remove_column :<%= class_name.underscore.camelize.tableize %>, :published_until
  end
end

Rename publishing logic fields to published_at and published_until


class Create<%= table_name.camelize %> < ActiveRecord::Migration
  def up
    execute %Q{
      CREATE TABLE <%= table_name %> (
      id integer NOT NULL,
      oid oid NOT NULL,
      namespace character varying NOT NULL,
      created_at timestamp without time zone DEFAULT ('now'::text)::timestamp without time zone
      );

      CREATE SEQUENCE <%= table_name %>_id_seq
      START WITH 1
      INCREMENT BY 1
      NO MINVALUE
      NO MAXVALUE
      CACHE 1;

      ALTER SEQUENCE <%= table_name %>_id_seq OWNED BY <%= table_name %>.id;

      ALTER TABLE ONLY <%= table_name %> ALTER COLUMN id SET DEFAULT nextval('<%= table_name %>_id_seq'::regclass);

      ALTER TABLE ONLY <%= table_name %> ADD CONSTRAINT <%= table_name %>_pkey PRIMARY KEY (id);

      CREATE INDEX index_<%= table_name %>_on_namespace ON <%= table_name %> USING btree (namespace);

      CREATE INDEX index_<%= table_name %>_on_oid ON <%= table_name %> USING btree (oid);
    }
  end

  def drop
    drop_table :<%= table_name %>
  end
end

class Create<%= table_name.camelize %> < ActiveRecord::Migration[4.2]
  def up
    execute %Q{
      CREATE TABLE <%= table_name %> (
      id integer NOT NULL,
      oid oid NOT NULL,
      namespace character varying NOT NULL,
      created_at timestamp without time zone DEFAULT ('now'::text)::timestamp without time zone
      );

      CREATE SEQUENCE <%= table_name %>_id_seq
      START WITH 1
      INCREMENT BY 1
      NO MINVALUE
      NO MAXVALUE
      CACHE 1;

      ALTER SEQUENCE <%= table_name %>_id_seq OWNED BY <%= table_name %>.id;

      ALTER TABLE ONLY <%= table_name %> ALTER COLUMN id SET DEFAULT nextval('<%= table_name %>_id_seq'::regclass);

      ALTER TABLE ONLY <%= table_name %> ADD CONSTRAINT <%= table_name %>_pkey PRIMARY KEY (id);

      CREATE INDEX index_<%= table_name %>_on_namespace ON <%= table_name %> USING btree (namespace);

      CREATE INDEX index_<%= table_name %>_on_oid ON <%= table_name %> USING btree (oid);
    }
  end

  def drop
    drop_table :<%= table_name %>
  end
end

Add Rails version number to generated migration


<%
  css = (css = css_for_menu_branch(menu_branch, menu_branch_counter)).any? ? " class='#{css.join(' ')}'" : nil
  dom_id = (menu_branch.parent_id.nil? and menu_branch.title.present?) ? " id='item_#{menu_branch_counter}'" : nil

  if menu_branch.in_menu?
-%>
  <div<%= css -%><%= dom_id -%>>
    <%= link_to menu_branch.title, menu_branch.url %>

    <%= render :partial => "/shared/menu",
               :collection => children,
               :locals => {
                 :hide_children => hide_children,
                 :sibling_count => children.size - 1,
                 :css => "",
                 :dom_id => ""
               } unless hide_children or
                        menu_branch.parent_id.present? or
                        (children = menu_branch.children.collect{|c| c if c.in_menu?}.compact).empty?

    -%>
  </div>
<% end -%>

<%
  css = (css = css_for_menu_branch(menu_branch, menu_branch_counter)).any? ? " class='#{css.join(' ')}'" : nil
  dom_id = (menu_branch.parent_id.nil? and menu_branch.title.present?) ? " id='item_#{menu_branch_counter}'" : nil

  if menu_branch.in_menu?
-%>
  <div<%= css -%><%= dom_id -%>>
    <%= link_to menu_branch.title, menu_branch.url %>

    <% unless hide_children or
              menu_branch.parent_id.present? or
              (children = menu_branch.children.collect{|c| c if c.in_menu?}.compact).empty? %>
      <nav id='<%= dom_id ||= "menu" %>' class='<%= css ||= "menu" %>clearfix'>
        <%=
          render :partial => "/shared/menu_branch",
                 :collection => children,
                 :locals => {
                   :hide_children => hide_children,
                   :sibling_count => children.size - 1
                 } -%>
      </nav>
    <% end %>
  </div>
<% end -%>

Fix circular reference introduced by the last commit


<%
  featured_item = section[:promoted_content].first
  featured_item_layout_class = "taxon-page__featured-item--single" if section[:documents].empty?
%>

  <div class="taxon-page__featured-item <%= featured_item_layout_class %>">
    <%= render "govuk_publishing_components/components/image_card", {
        large: true,
        href: featured_item[:link].fetch(:path),
        image_src: featured_item[:image][:url],
        heading_text: featured_item[:link].fetch(:text),
        metadata: featured_item[:metadata][:organisations],
        context: {
          date: featured_item[:metadata][:public_updated_at],
          text: featured_item[:metadata][:document_type]
        },
        href_data_attributes: {
          track_category: featured_item[:link][:data_attributes][:track_category],
          track_action: featured_item[:link][:data_attributes][:track_action],
          track_label: featured_item[:link][:data_attributes][:track_label],
          track_options: featured_item[:link][:data_attributes][:track_options]
        }
    } %>

  <% if section[:documents].any? %>

      <%= render 'govuk_publishing_components/components/document_list',
        items: section[:documents],
        margin_top: true,
        margin_bottom: true
      %>
  <% else %>

  <% end %>
    <%= render partial: "taxons/sections/see_more_link", locals: { section: section } %>

<%
  featured_item = section[:promoted_content].first
  featured_item_layout_class = "taxon-page__featured-item--single" if section[:documents].empty?
%>

  <div class="taxon-page__featured-item <%= featured_item_layout_class %>">
    <%= render "govuk_publishing_components/components/image_card", {
        large: true,
        href: featured_item[:link].fetch(:path),
        image_src: featured_item[:image][:url],
        heading_text: featured_item[:link].fetch(:text),
        heading_level: 3,
        metadata: featured_item[:metadata][:organisations],
        context: {
          date: featured_item[:metadata][:public_updated_at],
          text: featured_item[:metadata][:document_type]
        },
        href_data_attributes: {
          track_category: featured_item[:link][:data_attributes][:track_category],
          track_action: featured_item[:link][:data_attributes][:track_action],
          track_label: featured_item[:link][:data_attributes][:track_label],
          track_options: featured_item[:link][:data_attributes][:track_options]
        }
    } %>

  <% if section[:documents].any? %>

      <%= render 'govuk_publishing_components/components/document_list',
        items: section[:documents],
        margin_top: true,
        margin_bottom: true
      %>
  <% else %>

  <% end %>
    <%= render partial: "taxons/sections/see_more_link", locals: { section: section } %>

Fix heading level on image card

Fix heading level on image card


apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: jobs
spec:
  replicas: 2
  template:
    metadata:
      labels:
        name: jobs
        app: fixtures
    spec:
      containers:
      - name: app
        image: busybox
        command: ["sleep", "40"]
        env:
        - name: GITHUB_REV
          value: <%= current_sha %>
      terminationGracePeriodSeconds: 30

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: jobs
spec:
  replicas: 2
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 50%
  template:
    metadata:
      labels:
        name: jobs
        app: fixtures
    spec:
      containers:
      - name: app
        image: busybox
        command: ["sleep", "40"]
        env:
        - name: GITHUB_REV
          value: <%= current_sha %>
      terminationGracePeriodSeconds: 30

Use RollingUpdate in long-running test case

To mimic the rollout strategy at Shopify and make sure
that the behaviour is expected.


<?php
# DO NOT EDIT - This file is being maintained by Chef
wfLoadExtension( 'TitleBlacklist' );
$wgTitleBlacklistSources = array(
  array(
    'type' => TBLSRC_LOCALPAGE,
    'src'  => 'MediaWiki:Titleblacklist',
  ),
  array(
    'type' => TBLSRC_URL,
    'src'  => 'https://meta.wikimedia.org/w/index.php?title=Title_blacklist&action=raw',
  ),
);

<?php
# DO NOT EDIT - This file is being maintained by Chef
wfLoadExtension( 'TitleBlacklist' );
$wgTitleBlacklistSources = array(
  array(
    'type' => 'localpage',
    'src'  => 'MediaWiki:Titleblacklist',
  ),
  array(
    'type' => 'url',
    'src'  => 'https://meta.wikimedia.org/w/index.php?title=Title_blacklist&action=raw',
  ),
);

Fix configuration of mediawiki TitleBlacklist extension


[user]
	name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
	email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[core]
	excludesfile = ~/.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
  ff-merge = merge --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 %>

[user]
	name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
	email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[core]
	excludesfile = ~/.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
  ff-merge = merge --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
  deploy=push origin HEAD:develop
[push]
	default = upstream
[rebase]
  autosquash = true
<% if File.exist?('/usr/bin/bcompare') %>
[merge]
  tool = bc3
<% end %>

Add a deploy alias for use with git flow


<%= _("%s's events") % profile.name %>

  <%= button :back, _('Back to %s') % profile.name, profile.url %>
  <% if user && user.has_permission?('post_content', profile) %>
    <%= button :new, _('New event'), myprofile_url(:controller => 'cms', :action => 'new', :type => 'Event') %>
  <% end %>

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

<%= _("%s's events") % profile.name %>

  <%= button :back, _('Back to %s') % profile.name, profile.url %>
  <% if user && user.has_permission?('post_content', profile) %>
    <%= button :new, _('New event'), myprofile_path(:controller => 'cms', :action => 'new', :type => 'Event') %>
  <% end %>

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

Fix button of create new event

Fix button of create new event


Welcome!

Today is <%= l today, format: :short %>

Find me in app/views/welcome/index.html.erb

If you want to break the build, take a look at spec/lib/failing_spec.rb

You can edit anything below.

Welcome!

Today is <%= l today, format: :short %>

This app is running in <%= Rails.env.to_s %> environment.

Find me in app/views/welcome/index.html.erb

If you want to break the build, take a look at spec/lib/failing_spec.rb

You can edit anything below.

Add environment to the template

Add environment to the template


## Set up Automated Builds
By connecting a plan file in Habitat Builder, you can trigger automated package rebuilds whenever a change is merged into the `master` branch of the repository containing your Habitat plan.

### Connect a Plan
To connect a plan to Builder, view one of your origins (while signed in), click the **Connect a plan file** button, and complete the following steps:

  - Install the Builder GitHub App
  - Choose the GitHub organization and repository containing your Habitat plan
  - Choose a privacy setting for the package
  - Specify container-registry publishing settings (optional)

## Set up Automated Builds
By connecting a plan file in Habitat Builder, you can trigger both manual (via the web UI, or via the `hab` command line) as well as automated package rebuilds whenever a change is merged into the `master` branch of the repository containing your Habitat plan, or when a dependent package updates (rebuilds).

### Connect a Plan
To connect a plan to Builder, view one of your origins (while signed in), click the **Connect a plan file** button, and complete the following steps:

  - Install the Builder GitHub App
  - Choose the GitHub organization and repository containing your Habitat plan
  - Choose a privacy setting for the package
  - Specify container-registry publishing settings (optional)
  - Specify auto-build option (default is off)

#### Auto-build option

The auto-build option controls whether or not your package will get automatically re-built. This option is a useful capability to have - for example, if you have a demo app that doesn’t need to be kept constantly up to date when some underlying dependency updates. Auto-build encompasss both builds that are triggered by Github web hooks (on commits to master), as well as builds that are triggered by a dependency updating.

By default, new plan connections will have auto-build turned off.

Add auto-build info to docs

Add auto-build info to docs

Signed-off-by: Salim Alam <18ae4dd1e3db1d49a738226169e3b099325c79a0@chef.io>


<fieldset class="named logo">
  <legend>Logo</legend>
  <div class="control-group">
    <%= image_tag classification_form.object.logo_url if classification_form.object.logo_url %>
    <%= classification_form.text_field :logo_alt_text, label_text: 'Alt text' %>
    <%= classification_form.upload :logo, label_text: 'File' %>
  </div>
</fieldset>

<fieldset class="named logo">
  <legend>Logo</legend>
  <div class="control-group">
    <%= image_tag classification_form.object.logo_url if classification_form.object.logo_url %>
    <%= classification_form.text_field :logo_alt_text, label_text: 'Alt text' %>
    <%= classification_form.upload :logo, label_text: 'File', allow_removal: classification_form.object.logo_url.present? %>
  </div>
</fieldset>

Allow removal of logos from topical events

If the topical event has a logo, then render a checkbox to allow removing it.


<%= @admin.name %>

  <%= mail_to @admin.email %>
  <%= render "session_information", admin: @admin %>

<% if @admin.api_tokens.exists? %>
  <%= t(".admin_tokens") %>:
    <% if @admin.primary_api_token.present? %>

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

 <%= @admin.primary_api_token %>

        <button class="small" data-behavior="copy">
          <%= t('.copy_to_clipboard') %> ✔
        </button>

    <% end %>
    <% @admin.api_tokens.secondary.each do |token| %>

        <%= token.name %>

 <%= token %>

        <button class="small" data-behavior="copy">
          <%= t('.copy_to_clipboard') %> ✔
        </button>

    <% end %>

<% end %>

<% content_for :javascript_hook do %>
  <%= javascript_tag do %>
    window.GobiertoAdmin.admins_controller.show()
  <% end %>
<% end %>

Use <p> to wrap tokens info in admin show


  <% if @prev_winner %>
    <%= render partial: "votes/previous_vote_results" %>
  <% end %>

  <%= link_to votes_path(winner: @option1.id, loser: @option2.id), method: :post, :class => "option1-vote pure-u-1-2" do %>
    <div id="option1" style="background-image: url(<%=@option1.get_image_url%>)">
      <%= button_to "#{@option1.name}", votes_path(winner: @option1.id, loser: @option2.id), method: :post, :class => "pure-button pure-button-primary vote-button" %>

<%end%>

    <%=link_to votes_path(winner: @option2.id, loser: @option1.id), method: :post, :class => "option2-vote pure-u-1-2" do%>
      <div id="option2" style="background-image: url(<%=@option2.get_image_url%>)">
        <%= button_to "#{@option2.name}", votes_path(winner: @option2.id, loser: @option1.id), method: :post, :class => "pure-button pure-button-primary vote-button" %>

    <%end%>

    <% if @prev_winner %>
      <%= render partial: "votes/previous_vote_results" %>
    <% end %>

  <%= link_to votes_path(winner: @option1.id, loser: @option2.id), method: :post, :class => "option1-vote pure-u-1-2" do %>
    <div id="option1" style="background-image: url(<%=@option1.get_image_url%>)" class='animated fadeIn'>
      <%= button_to "#{@option1.name}", votes_path(winner: @option1.id, loser: @option2.id), method: :post, :class => "pure-button pure-button-primary vote-button" %>

<%end%>

    <%=link_to votes_path(winner: @option2.id, loser: @option1.id), method: :post, :class => "option2-vote pure-u-1-2" do%>
      <div id="option2" style="background-image: url(<%=@option2.get_image_url%>)" class='animated fadeIn'>
        <%= button_to "#{@option2.name}", votes_path(winner: @option2.id, loser: @option1.id), method: :post, :class => "pure-button pure-button-primary vote-button" %>

    <%end%>

Add fadein to main pics

Add fadein to main pics


      <a href="<%= product_wip_path(bounty.product, bounty) %>">
        <%= bounty.title %>
        #<%= bounty.number %>

        <%= inline_react_component 'BountyValuation', {
          product: { name: bounty.product.name },
          url: product_wips_path(bounty.product),
          maxOffer: (6 * bounty.product.average_bounty).round(-4),
          averageBounty: bounty.product.average_bounty,
          coinsMinted: bounty.product.coins_minted,
          profitLastMonth: bounty.product.profit_last_month,
          steps: BountyGuidance::Valuations.suggestions(bounty.product)
        }.merge(BountySerializer.new(bounty, scope: current_user).as_json) %>

        comments

        <%= bounty.comments_count %>

        <% bounty.tags.each do |tag| %>
          <a class="caps gray-2 mr1" href="<%= product_wips_path(bounty.product, tag: tag.name) %>">
            #<%= tag.name.downcase %>

        <% end %>

  <% locker = User.find_by(id: bounty.locked_by) %>

  <% if locker %>

        <%= avatar_tag(locker, 18) %>

      <a href="<%= user_path(locker) %>" class="bold black">
        <%= locker.username %>

        has <%= time_ago_in_words(bounty.locked_at + 60.hours) %> to work on this

  <% end %>

Add bounty chip back in for the users' page.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

<meta name="robots" content="noindex,nofollow">

    <%= image_tag 'email_banner.jpg', class: 'banner' %>

      <%= yield %>

              <%= link_to Rails.configuration.hackathon['name'], 'https://brickhack.io' %>

              <%= link_to 'Facebook', 'https://www.facebook.com/brickhackrit' %>

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

              <%= link_to 'http://coderit.org', class: 'nodecor' do %>
                Student run by <img class="coderit-logo" src="<%= image_url('coderit_logo.png') %>" />
              <% end %>

Remove codeRIT footer from default email template


Home#index

Find me in app/views/home/index.html.erb

Sarah

Make me a sandwich.

        <button class="sign-up">Sign up with Google</button>

Add minimal landing page content.

Add minimal landing page content.


DB_USERNAME: <%= node['postgres']['user'] %>
DB_PASSWORD: <%= node['postgres']['password'] %>

<% if node['supermarket'] %>
DEVISE_SECRET_KEY: <%= node['supermarket']['devise_secret_key'] %>
SECRET_KEY_BASE: <%= node['supermarket']['secret_key_base'] %>
CLA_SIGNATURE_NOTIFICATION_EMAIL: <%= node['supermarket']['cla_signature_notification_email'] %>

<% if node['supermarket']['smtp'] %>
SMTP_ADDRESS: <%= node['supermarket']['smtp']['address'] %>
SMTP_PORT: <%= node['supermarket']['smtp']['port'] %>
SMTP_USER_NAME: <%= node['supermarket']['smtp']['user'] %>
SMTP_PASSWORD: <%= node['supermarket']['smtp']['password'] %>
<% end %>

<% if node['supermarket']['github'] %>
GITHUB_KEY: <%= node['supermarket']['github']['key'] %>
GITHUB_SECRET: <%= node['supermarket']['github']['secret'] %>
<% end %>

<% if node['supermarket']['twitter'] %>
TWITTER_KEY: <%= node['supermarket']['twitter']['key'] %>
TWITTER_SECRET: <%= node['supermarket']['twitter']['secret'] %>
<% end %>
<% end %>

DB_USERNAME: <%= node['postgres']['user'] %>
DB_PASSWORD: <%= node['postgres']['password'] %>

<% if node['supermarket'] %>
DEVISE_SECRET_KEY: <%= node['supermarket']['devise_secret_key'] %>
SECRET_KEY_BASE: <%= node['supermarket']['secret_key_base'] %>
CLA_SIGNATURE_NOTIFICATION_EMAIL: <%= node['supermarket']['cla_signature_notification_email'] %>
HOST: <%= node['supermarket']['host'] %>
PORT: <%= node['supermarket']['port'] %>

<% if node['supermarket']['smtp'] %>
SMTP_ADDRESS: <%= node['supermarket']['smtp']['address'] %>
SMTP_PORT: <%= node['supermarket']['smtp']['port'] %>
SMTP_USER_NAME: <%= node['supermarket']['smtp']['user'] %>
SMTP_PASSWORD: <%= node['supermarket']['smtp']['password'] %>
<% end %>

<% if node['supermarket']['github'] %>
GITHUB_KEY: <%= node['supermarket']['github']['key'] %>
GITHUB_SECRET: <%= node['supermarket']['github']['secret'] %>
<% end %>

<% if node['supermarket']['twitter'] %>
TWITTER_KEY: <%= node['supermarket']['twitter']['key'] %>
TWITTER_SECRET: <%= node['supermarket']['twitter']['secret'] %>
<% end %>
<% end %>

Allow adjustable default URL in mailers

Allow adjustable default URL in mailers

This allows the default URL in mailers to be adjusted
in the supermarket configuration.


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

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

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

##What documents you’ll need

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

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

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

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

##What you need to do

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

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

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

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

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

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

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

## Fees

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

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

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

Update Peru ceremony, other partner 1

Update Peru ceremony, other partner 1


<% content_for :title do %>
  You can’t apply for a British passport from <%= calculator.world_location_name %>.
<% end %>

<% content_for :body do %>
  You should apply in a neighbouring country of your choice.

  <% case current_location %>
  <% when 'kyrgyzstan' %>
    If you need help with emergency travel arrangements, contact the [British Embassy in Almaty, Kazakhstan](/government/world/organisations/british-embassy-astana/office/british-embassy-office-almaty).
  <% when 'north-korea' %>
    If you need help with emergency travel arrangements in North Korea, contact the [British Embassy in Pyongyang](/government/world/organisations/british-embassy-pyonyang).
  <% end %>

  ###Passport Adviceline

  $C
  Telephone: +44 (0) 300 222 0000
  Monday to Friday, 8am to 8pm (UK time)
  Saturday, Sunday and public holidays, 9am to 5:30pm (UK time)
  $C
<% end %>

<% content_for :title do %>
  You can’t apply for a British passport from <%= calculator.world_location_name %>.
<% end %>

<% content_for :body do %>
  You should apply in a neighbouring country of your choice.

  <% case calculator.current_location %>
  <% when 'kyrgyzstan' %>
    If you need help with emergency travel arrangements, contact the [British Embassy in Almaty, Kazakhstan](/government/world/organisations/british-embassy-astana/office/british-embassy-office-almaty).
  <% when 'north-korea' %>
    If you need help with emergency travel arrangements in North Korea, contact the [British Embassy in Pyongyang](/government/world/organisations/british-embassy-pyonyang).
  <% end %>

  ###Passport Adviceline

  $C
  Telephone: +44 (0) 300 222 0000
  Monday to Friday, 8am to 8pm (UK time)
  Saturday, Sunday and public holidays, 9am to 5:30pm (UK time)
  $C
<% end %>

Remove use of `current_location` in outcome

This value is now available in the calculator method `current_location`,
which is available in the outcome.


<!DOCTYPE html>

    <meta charset="utf-8">
    <title>Projet Kazimirski</title>

    <%= stylesheet_link_tag 'application', media: 'all' %>

    <%= csrf_meta_tags %>

    <nav class="navbar navbar-default <%= yield :css_class_navbar %>">

          Projet Kazimirski

        <% if current_user.present? %>

<%= link_to 'Déconnexion', destroy_user_session_path, method: :delete %>

        <% else %>

<%= link_to 'Connexion', new_user_session_path %>

        <% end %>

    <% if notice.present? || alert.present? %>

        <% if notice.present? %>

<%= notice %>

        <% end %>

        <% if alert.present? %>

<%= alert %>

        <% end %>

    <% end %>

  <%= yield %>

    <%= javascript_include_tag 'application' %>

<!DOCTYPE html>

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

    <%= stylesheet_link_tag 'application', media: 'all' %>

    <%= csrf_meta_tags %>

    <nav class="navbar navbar-default <%= yield :css_class_navbar %>">

          Projet Kazimirski

        <% if current_user.present? %>

<%= link_to 'Déconnexion', destroy_user_session_path, method: :delete %>

        <% else %>

<%= link_to 'Connexion', new_user_session_path %>

        <% end %>

    <% if notice.present? || alert.present? %>

        <% if notice.present? %>

<%= notice %>

        <% end %>

        <% if alert.present? %>

<%= alert %>

        <% end %>

    <% end %>

  <%= yield %>

    <%= javascript_include_tag 'application' %>

Enable responsive layout on mobile devices


<!DOCTYPE html>

  <title>Top SEO News</title>
  <%= stylesheet_link_tag "application" %>

      <%= yield %>

© Top SEO News 2014
 all

<!DOCTYPE html>

  <title>Top SEO News</title>
  <%= stylesheet_link_tag "application" %>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

      <%= yield %>

© Top SEO News 2014
 all

Add support for iphone view

Add support for iphone view


      ホーム
    | Kata (Wiki)
    | 公式ブック

本サイトのソースコードや社団法人の定款などは GitHub 上で公開されています。

Copyright © 2012-2017 一般社団法人 CoderDojo Japan

    東京都新宿区高田馬場1-28-10 三慶ビル4F CASE Shinjuku

Add office address of CoderDojo Japan to footer section in Top


<%= @forum.title %>

    <%= render :partial => "forem/forums/forum", :locals => { :forum => @forum } %>

<%= link_to "Post a new topic.", new_forum_topic_path(@forum) -%>

[view] Add link to create new topic from a forum's show page.


<%= content_for :meta_title, title %>

<%= title %>

   « <%= t('nlt.back') %>

  <%= yield %>

Expand static pages content to full width


<%
  page_title = @resource.model_name.human.pluralize
  title(page_title)
%>

<% content_for :sidebar, build_sidebar %>

  <%= page_title %>
  <%= list_actions %>

<%= display_flash_message %>

<%= render 'index' %>

  <% predefined_filters.each do |filter, action, scope| %>

<%= link_to Typus::I18n.t(filter), params.dup.cleanup.merge(:action => action) %> (<%= @resource.send(scope).count %>)

  <% end %>

<% if (build_filters || search) %>

    <%= build_filters %>
    <%= search %>

<% end %>

<% if @items.any? -%>
  <%= build_list(@resource, fields, @items) %>
  <%= will_paginate(@items, Typus.pagination) %>
<% else %>

<%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human.downcase.pluralize) %>

<% end %>

<%
  page_title = @resource.model_name.human.pluralize
  title(page_title)
%>

<% content_for :sidebar, build_sidebar %>

  <%= page_title %>
  <%= list_actions %>

<%= display_flash_message %>

<%= render 'index' %>

  <% predefined_filters.each do |filter, action, scope| %>
    <% url = action.is_a?(String) ? params.dup.cleanup.merge(:action => action) : action %>

<%= link_to Typus::I18n.t(filter), url %> (<%= @resource.send(scope).count %>)

  <% end %>

<% if (build_filters || search) %>

    <%= build_filters %>
    <%= search %>

<% end %>

<% if @items.any? -%>
  <%= build_list(@resource, fields, @items) %>
  <%= will_paginate(@items, Typus.pagination) %>
<% else %>

<%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human.downcase.pluralize) %>

<% end %>

Verify class of provided action

Verify class of provided action


<% categories.each do |category, contents| %>

      <%= t('related_links.title_prefix') %> <%= category.title %>

      <% contents.each do |article| %>

          <%= link_to article.title, article.path %>

      <% end %>

    <%= link_to category.path, class: 'related-links__all'  do %>
      <%= t('related_links.link') %>
      <%= t('related_links.hidden_link') %> <%= category.title %>
    <% end %>

<% end %>

Revert "Fix indenting in related_links partial."

This reverts commit 239b76cbb577d49ee9b83e98a969f68ab03741f8.


# file is managed by puppet
<% unless scope.lookupvar('rsyslog::client::high_precision_timestamps') -%>
#
# Use traditional timestamp format date-rfc3164 (Dec 5 02:21:13).
# To enable high precision timestamps date-rfc3339 (2010-12-05T02:21:41.889482+01:00), comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
<% end -%>

if $programname == 'puppet-agent' then /var/log/puppet/agent.log

# file is managed by puppet
<% unless @high_precision_timestamps -%>
#
# Use traditional timestamp format date-rfc3164 (Dec 5 02:21:13).
# To enable high precision timestamps date-rfc3339 (2010-12-05T02:21:41.889482+01:00), comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
<% end -%>

if $programname == 'puppet-agent' then /var/log/puppet/agent.log

Fix bootstrap warning for logging

Fix bootstrap warning for logging

Signed-off-by: Bogdan Dobrelya <62b3a3e71fe69d786a0eb2bf561b6ce08e31d2cc@mail.ru>