<!DOCTYPE html>

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="images/favicon.ico">
    <title>AFTERBURNER | Training Tomorrow's Software Engineers</title>

    <link href="alt//css/bootstrap.css" rel="stylesheet">

            <%= yield %>

<!DOCTYPE html>

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="images/favicon.ico">
    <title>AFTERBURNER | Training Tomorrow's Software Engineers</title>

    <link href="/alt/css/bootstrap.css" rel="stylesheet">

            <%= yield %>

Fix alt layout css stylesheet tag

Fix alt layout css stylesheet tag


<% @page_title = "Sidtyper > #{@field_set.title} > Lägg till fält" %>
<% @page_class = 'layout2' -%>
<% @page_id = 'site-settings' -%>

    <%= render :partial => 'admin/shared/settings_sub_nav' %>

Nytt fält i <%= @field_set.title %>

      <% form_for :field, :url => admin_field_set_fields_path(@field_set), :html => { :id =>  'field_form' } do |f| %>
        <%= render :partial => 'form', :locals => { :f => f } %>

          <input type="submit" value="Spara"> eller <%= link_to "avbryt", previous_view_path(admin_field_set_path(@field_set)) %>

      <% end %>

<% content_for :javascripts do %>
  <%= javascript_include_tag 'porthos/fields' %>
<% end %>

<% @page_title = "Sidtyper > #{@field_set.title} > Lägg till fält" %>
<% @page_class = 'layout2' -%>
<% @page_id = 'site-settings' -%>

    <%= render :partial => 'admin/shared/settings_sub_nav' %>

Nytt fält i <%= @field_set.title %>

      <% form_for :field, :url => admin_field_set_fields_path(@field_set), :html => { :id =>  'field_form' } do |f| %>
        <%= render :partial => 'form', :locals => { :f => f } %>

          <input type="submit" value="Spara"> eller <%= link_to "avbryt", previous_view_path(admin_field_set_path(@field_set)) %>

      <% end %>

<% content_for :javascripts do %>
  <%= javascript_include_tag 'application' %>
<% end %>

Use application.js in fieldsets new aswell


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

Suggestions

  <% end %>

    <%= link_to('Logout', destroy_user_session_path, :method => :delete) %>

    <%= link_to('Profile', edit_user_registration_path) %>

<% else %>

    <%= link_to('Login', new_user_session_path)  %>

    <%= link_to('Register', new_user_registration_path)  %>

<% end %>

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

<%= link_to('Suggestions', suggestions_path) %>

  <% end %>

    <%= link_to('Logout', destroy_user_session_path, :method => :delete) %>

    <%= link_to('Profile', edit_user_registration_path) %>

<% else %>

    <%= link_to('Login', new_user_session_path)  %>

    <%= link_to('Register', new_user_registration_path)  %>

<% end %>

Add link to suggestions listing

Add link to suggestions listing


  <% param_prefix = "payment_source[#{payment_method.id}]" %>

    <%= label_tag "email", Spree.t(:email) %>*

    <%= text_field_tag "#{param_prefix}[email]", @order.email, { id: "email", class: 'form-control required'} %>

    <%= label_tag "phone", Spree.t(:phone) %>*

    <%= text_field_tag "#{param_prefix}[phone]", @order.billing_address.phone, { id: "phone", class: 'form-control required'} %>

      <%= label_tag "family_name", Spree.t(:family_name) %>*

      <%= text_field_tag "#{param_prefix}[family_name]", @order.billing_lastname, { id: "family_name", class: 'form-control required'} %>

      <%= label_tag "given_name", Spree.t(:given_name) %>*

      <%= text_field_tag "#{param_prefix}[given_name]", @order.billing_firstname, { id: "given_name", class: 'form-control required'} %>

      <%= label_tag "family_name_kana", Spree.t(:family_name_kana) %>*

      <%= text_field_tag "#{param_prefix}[family_name_kana]", "", { id: "family_name_kana", class: 'form-control required'} %>

      <%= label_tag "given_name_kana", Spree.t(:given_name_kana) %>*

      <%= text_field_tag "#{param_prefix}[given_name_kana]", "", { id: "given_name_kana", class: 'form-control required'} %>

Create input form for pay easy

Create input form for pay easy


License

<% if @resource.current_state.blank? || @resource.rights.empty? %>
  <%= render partial: "licenses/#{current_tenant.default_license}_review" %>
<% elsif @resource.current_state.resource_state == 'in_progress' %>
    <% @resource.rights.each do |r|
      l_id = StashEngine::License.by_uri(r.rights_uri)['id'] %>
      <%= render partial: "licenses/#{l_id}_review" %>
    <% end %>
<% end %>

Change License header on review page

Change License header on review page


<%= template_header %>

<% @map.each do |virtual, aliases| -%>
<%= virtual %> <%= aliases.join(', ') %>
<%- end %>

<%= template_header %>

<%- @map.each do |virtual, aliases| -%>
<%= virtual %> <%= aliases.is_a?(Array) ? aliases.join(', ') : aliases %>
<%- end -%>

Handle arrays as well as strings as alias recipients


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

  	<sidebar>

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

          <%= !@current_events.empty? ? (render partial: 'shared/event', collection: @current_events) : t('.not_content') %>

    </sidebar>

Blog

Colección de posts con temas relacionados con el lenguaje Ruby, el framework Ruby On Rails y desarrollo web en general.
        Los posts han sido creados y publicados mediantes contribuciones de
        la comunidad

Si quieres colaborar en la sección del Blog de Rails Mx, por favor revisa la <%= link_to 'guía' '/guia-blog', de como hacerlo.

      <% cache @posts do %>
          <%= render @posts %>
      <% end %>

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

  	<sidebar>

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

          <%= !@current_events.empty? ? (render partial: 'shared/event', collection: @current_events) : t('.not_content') %>

    </sidebar>

Blog

Colección de posts con temas relacionados con el lenguaje Ruby, el framework Ruby On Rails y desarrollo web en general.
        Los posts han sido creados y publicados mediantes contribuciones de
        la comunidad

Si quieres colaborar en la sección del Blog de Rails Mx, por favor revisa la <%= link_to 'guía' '/guia-blog', de como hacerlo. %>

      <% cache @posts do %>
          <%= render @posts %>
      <% end %>

Fix missing closing tag for rails erb

Fix missing closing tag for rails erb


Edit <%= @resource.to_s %>

<%= render "admin/resources/form", resource_class: @resource_class, resource: @resource %>

Make resource edit view that rocks all the things


<%= form_for @post do |f| %>
  <% if @post.errors.any? %>

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

    <% @post.errors.full_messages.each do |msg| %>

<%= msg %>

    <% end %>

  <% end %>

    <%= f.label :title %>

    <%= f.text_field :title %>

    <%= f.label :text %>

    <%= f.text_area :text %>

    <%= f.submit %>

<% end %>

Fix another "error_explanation" css class in guides [ci skip]


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

<% @favorite_enterprises.each do |enterprise| %>

    <%= link_to_profile profile_image(enterprise) + '
'.html_safe + enterprise.name,
                        enterprise.identifier, :class => 'profile-link' %>
    <%# profile_image_link enterprise, :portrait, 'div' %>

      <%= button(:delete, _('remove'), { :action => 'remove', :id => enterprise.id },:title => _('remove')) %>

<% end %>

<% if @favorite_enterprises.empty? %>

  <%= _('You have no favorite enterprises yet.') %>

<% end %>

<% button_bar do %>
  <%= button(:back, _('Go back'), :controller => 'profile_editor') %>
<% end %>

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

<% @favorite_enterprises.each do |enterprise| %>

    <%= link_to_profile profile_image(enterprise) + '
'.html_safe + enterprise.name,
                        enterprise.identifier, :class => 'profile-link' %>
    <%# profile_image_link enterprise, :portrait, 'div' %>

      <%= button_without_text(:delete, _('remove'), { :action => 'remove', :id => enterprise.id },:title => _('remove')) %>

<% end %>

<% if @favorite_enterprises.empty? %>

  <%= _('You have no favorite enterprises yet.') %>

<% end %>

<% button_bar do %>
  <%= button(:back, _('Go back'), :controller => 'profile_editor') %>
<% end %>

Remove label from 'remove' icon

Remove label from 'remove' icon


Admin Interface

<% if notice %>

<%= notice %>

<% end %>

<%= link_to 'Add a new article', new_article_path, class: 'button' %>
<%= link_to 'Back to homepage', root_path, class: 'button' %>

      Enabled
      Number
      Title
      Category
      Posted at

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

        <%= article.enabled %>
        <%= article.number %>
        <%= article.title %>
        <%= article.category %>
        <%= article.posted_at.strftime("%b %d, %Y") %>
        <%= link_to 'edit', edit_article_path(article) %>

    <% end %>

Admin Interface

<% if notice %>

<%= notice %>

<% end %>

<%= link_to 'Add a new article', new_article_path, class: 'button' %>
<%= link_to 'Back to homepage', root_path, class: 'button' %>

      Enabled
      Number
      Title
      Category
      Posted at

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

        <%= article.enabled %>
        <%= article.number %>
        <%= link_to article.title, edit_article_path(article) %>
        <%= article.category %>
        <%= article.posted_at.strftime("%b %d, %Y") %>

    <% end %>

Adjust admin article links in table

Adjust admin article links in table


<% if user_signed_in? %>

        <%= tab("Orders", orders_path, active == "orders") %>

        <% if current_user.super_admin? %>
          <%= tab("Inventory", items_path, active == "inventory") %>
        <% end %>

        <% if current_user.can_create_organization? || current_user.can_update_organization? %>
          <%= tab("Organizations", organizations_path, active == "organizations") %>
        <% end %>

        <% if current_user.can_invite_user? || current_user.can_update_user? %>
          <%= tab("Users", users_path, active == "users") %>
        <% end %>

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

            <%= current_user.email %>

<a href="<%= edit_user_path(current_user) %>">Edit User

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

<% end %>

<% if user_signed_in? %>

        <%= tab("Orders", orders_path, active == "orders") %>

        <% if current_user.can_view_or_edit_items? %>
          <%= tab("Inventory", items_path, active == "inventory") %>
        <% end %>

        <% if current_user.can_create_organization? || current_user.can_update_organization? %>
          <%= tab("Organizations", organizations_path, active == "organizations") %>
        <% end %>

        <% if current_user.can_invite_user? || current_user.can_update_user? %>
          <%= tab("Users", users_path, active == "users") %>
        <% end %>

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

            <%= current_user.email %>

<a href="<%= edit_user_path(current_user) %>">Edit User

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

<% end %>

Use the permission method rather than generic super_admin? method


<!DOCTYPE html>
<html lang="en" class="<%= @html_classes.try(:join, ' ') %> devise h-100">
  <head>
    <%= csp_meta_tag %>
    <%= javascript_include_tag 'forest/application' %>
    <%= stylesheet_link_tag 'forest/application', media: 'all' %>
  </head>
  <body class="d-flex flex-column h-100">
    <%= yield %>
    <%= render 'admin/shared/footer' %>
  </body>
</html>

<!DOCTYPE html>
<html lang="en" class="<%= @html_classes.try(:join, ' ') %> devise h-100">
  <head>
    <%= csp_meta_tag %>
    <%= javascript_include_tag 'forest/application' %>
    <%= stylesheet_link_tag 'forest/application', media: 'all' %>
  </head>
  <body class="d-flex flex-column h-100">
    <%= yield %>
  </body>
</html>

Remove reference to legacy admin footer partial


  <% if @cat1 %>

        <div class="cat-image-container left-box" id="<%= @cat1.id %>">
          <img class="cat-image" src="<%= @cat1.url %>">

Kitty Name: <%= @cat1.name %>

IG:
            <a href="http://www.instagram.com/<%= @cat1.owner.username %>">
              <%= @cat1.owner.username %>

        <div class="cat-image-container right-box" id="<%= @cat2.id %>">
          <img class="cat-image" src="<%= @cat2.url %>">

Kitty Name: <%= @cat2.name %>

IG:
            <a href="http://www.instagram.com/<%= @cat2.owner.username %>">
              <%= @cat2.owner.username %>

  <% end %>

Instructions: Click on a kitty to vote for it.

Desktop Users: You can use the left and right arrow keys for rapid fire voting!

Remove back end HTML for left and right voting boxes


$("#working_on_filter_contacts").addClass("hidden");
$(".document-list").html("<%= j render 'index' %>");
$(".contacts-count").removeClass("hidden").html("<%= j render 'contacts_count' %>");

$("#working_on_filter_contacts").addClass("hidden");
$(".document-list").html("<%= j render contacts %>");
$(".contacts-count").removeClass("hidden").html("<%= j render 'contacts_count' %>");

Change reference to removed partial

Change reference to removed partial


Are you ready to get Awesome!?

Just fill out the application below with information about your self and the detials of your project.

  <%= simple_form_for @project, :url => submissions_url do |form| %>
    <%= render :partial => 'form', :locals => {:form => form} %>
    <%= submit_tag "Apply" %>
  <% end %>

Are you ready to get Awesome!?

Just fill out the application below with information about your self and the detials of your project.

  <%= simple_form_for @project, :url => submissions_url, :html => {:multipart => true} do |form| %>
    <%= render :partial => 'form', :locals => {:form => form} %>
    <%= submit_tag "Apply" %>
  <% end %>

Make the application form multipart => true


CONTACT US

Please contact us if you have any questions or would like to speak
      at an upcoming meeting. We'll get back to you as soon as we can!

      <form role="form" id='contact-form'>

          <input type="name" class="form-control" id="NameInputEmail1" placeholder="Your Name">

          <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">

          <input type="email" class="form-control" id="subjectEmail1" placeholder="Subject">

        <textarea class="form-control" rows="6" placeholder="Enter your text here"></textarea>

        <button type="submit" class="btn btn-success">SUBMIT</button>
      </form>

CONTACT US

Please contact us if you have any questions or would like to speak
      at an upcoming meeting. We'll get back to you as soon as we can!

      <form role="form" id='contact-form'>

          <input type="text" name="name" class="form-control" id="name-field" placeholder="Your Name">

          <input type="email" name="email" class="form-control" id="email-field" placeholder="Enter email">

          <input type="text" name="subject" class="form-control" id="subject-field" placeholder="Subject">

        <textarea name="body" class="form-control" rows="6" placeholder="Enter your text here"></textarea>

        <button type="submit" class="btn btn-success">SUBMIT</button>
      </form>

Add correct names to form fields

Add correct names to form fields


      <input class="stack-search" placeholder="Search stacks" />

Name

Environment

Deploy URL

      <% @stacks.each do |stack| %>
        <li class="search-item" data-search="<%= stack.repo_name %> <%= stack.environment %> <%= stack.deploy_url %>">
          <%= link_to stack_path(stack), class: 'commits-path' do %>
            <%= stack.repo_name %>
            <%= stack.environment.capitalize %>
            <%= stack.deploy_url %>
          <% end %>

      <% end %>

    <%= link_to 'Add a stack', new_stack_path, class: 'btn' %>

      <input class="stack-search" placeholder="Search <%= @stacks.size %> stacks" />

Name

Environment

Deploy URL

      <% @stacks.each do |stack| %>
        <li class="search-item" data-search="<%= stack.repo_name %> <%= stack.environment %> <%= stack.deploy_url %>">
          <%= link_to stack_path(stack), class: 'commits-path' do %>
            <%= stack.repo_name %>
            <%= stack.environment.capitalize %>
            <%= stack.deploy_url %>
          <% end %>

      <% end %>

    <%= link_to 'Add a stack', new_stack_path, class: 'btn' %>

Add stack count to the searchbar

Add stack count to the searchbar


EU Wildlife Trade Legislation

  <%= render partial: 'eu_legislation_type',
    locals: {
      legislation_title: 'Council Regulations', legislation_collection: @eu_council_regulations
    }
  %>
  <%= render partial: 'eu_legislation_type',
    locals: {
      legislation_title: 'Regulations revising the Annexes to Council Regolation (EC) No 338/97', legislation_collection: @eu_annex_regulations
    }
  %>
  <%= render partial: 'eu_legislation_type',
    locals: {
      legislation_title: 'Implementing Regulations', legislation_collection: @eu_implementing_regulations
    }
  %>
  <%= render partial: 'eu_legislation_type',
    locals: {
      legislation_title: 'Suspension Regulations', legislation_collection: @eu_suspension_regulations
    }
  %>

EU Wildlife Trade Legislation

  <%= render partial: 'eu_legislation_type',
    locals: {
      legislation_title: 'Council Regulations', legislation_collection: @eu_council_regulations
    }
  %>
  <%= render partial: 'eu_legislation_type',
    locals: {
      legislation_title: 'Regulations revising the Annexes to Council Regulation (EC) No 338/97', legislation_collection: @eu_annex_regulations
    }
  %>
  <%= render partial: 'eu_legislation_type',
    locals: {
      legislation_title: 'Implementing Regulations', legislation_collection: @eu_implementing_regulations
    }
  %>
  <%= render partial: 'eu_legislation_type',
    locals: {
      legislation_title: 'Suspension Regulations', legislation_collection: @eu_suspension_regulations
    }
  %>

Fix typo in regulations header

Fix typo in regulations header


<%= render 'company_card' %>

<%= link_to "Add New Company", new_company_path %>

companies

  <% @companies.each do |company| %>

    <%= image_tag company.avatar.thumb %>

<%= company.name %>

        <% company.users.each do |employee| %>
          <%= link_to employee.username, user_path(employee) %>
        <% end  %>

  <% end  %>

<%= link_to "Add New Company", new_company_path %>

    <%= render 'company_card' %>
  <% @companies.each do |company| %>

  <% end  %>

Clean up company index page

Clean up company index page


<header class="<%= @manual.hmrc? ? 'hmrc' : nil %>">

    <% if @manual.hmrc? %>
      HMRC manuals
    <% end %>

<%= @manual.title %>

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

Published by

          <%= links_to_sentence(@manual.organisations) %>

      <% end %>

        Manual updated: <%= marked_up_date(@manual.updated_at) %>

<%= link_to 'Contents', @manual.url %>

  <% if @document %>
    <% @document.breadcrumbs.each do | crumb | %>

 <%= link_to crumb.label, crumb.link %>

    <% end %>

<%= @document.breadcrumb %>

  <% end %>

<header class="<%= @manual.hmrc? ? 'hmrc' : nil %>">

    <% if @manual.hmrc? %>
      HMRC manuals
    <% end %>

<%= @manual.title %>

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

From

<%= links_to_sentence(@manual.organisations) %>

    <% end %>

        Manual updated: <%= marked_up_date(@manual.updated_at) %>

<%= link_to 'Contents', @manual.url %>

  <% if @document %>
    <% @document.breadcrumbs.each do | crumb | %>

 <%= link_to crumb.label, crumb.link %>

    <% end %>

<%= @document.breadcrumb %>

  <% end %>

Update metadata label to match Whitehall

Whitehall has been updated to simplify metadata into "From", "History"
and "Part of" groups. Organisations are in the "From" group.

Also move the conditional to wrap the whole metadata block.


<%= link_to "Secret #{secret.id}", secret_path(secret.id) %>

Address: <%= secret.address %>

Longitude: <%= secret.longitude %>

Latitude: <%= secret.latitude %>

Message: <%= secret.message %>

    <% if secret.song %>

Song: <%= secret.song %>

    <% end %>
    <% if current_user.id == secret.user.id %>

      <%= link_to "Edit Secret", edit_secret_path(secret) %> |
      <%= link_to "Delete Secret", secret_path(secret), method: :delete, data: {confirm: 'Do you want to forever delete this secret?'} %>

    <% else %>

Written By: <%= secret.user.username %>

    <% end %>

      <% if secret.user_upvoted?(current_user) %>
        <%= link_to "Unvote", upvote_path(secret), method: "POST", id: "vote" %>
      <% else %>
        <%= link_to "Vote", upvote_path(secret), method: "POST", id: "vote" %>
      <% end %>
      <%= secret.vote_count %>

<%= link_to "Secret #{secret.id}", secret_path(secret.id) %>

Address: <%= secret.address %>

Longitude: <%= secret.longitude %>

Latitude: <%= secret.latitude %>

Message: <%= secret.message %>

    <% if secret.song %>

Song: <%= secret.song %>

    <% end %>
    <% if current_user && current_user.id == secret.user.id %>

      <%= link_to "Edit Secret", edit_secret_path(secret) %> |
      <%= link_to "Delete Secret", secret_path(secret), method: :delete, data: {confirm: 'Do you want to forever delete this secret?'} %>

    <% else %>

Written By: <%= secret.user.username %>

    <% end %>

      <% if current_user %>
        <% if secret.user_upvoted?(current_user) %>
          <%= link_to "Unvote", upvote_path(secret), method: "POST", id: "vote" %>
        <% else %>
          <%= link_to "Vote", upvote_path(secret), method: "POST", id: "vote" %>
        <% end %>
      <% else %>
        <%= link_to "Log in to vote.", login_path %> |
      <% end %>
      Votes: <%= secret.vote_count %>

Fix current_user bugs in secret partial

Fix current_user bugs in secret partial


#!/bin/sh
set -eux

mysql_user='root'
mysql_pass='<%= @mysql_password -%>'
sqlbackup_path='/backup/mysql/'
gitbackup_path='/backup/git/'
configsbackup_path='/backup/configs/'
wwwbackup_path='/backup/www/'

mysql -u${mysql_user} -p${mysql_pass} < ${sqlbackup_path}all_dbs_last.sql

rsync -va --delete --delete-after /backup/cyrus-imapd/var/lib/imap/ /var/lib/imap/
rsync -va --delete --delete-after /backup/cyrus-imapd/var/spool/imap/ /var/spool/imap/
chmod -R cyrus:mail /var/lib/imap/
chmod -R cyrus:mail /var/spool/imap/

sa-learn --restore /backup/bayees.backup

tar -xvf ${gitbackup_path}git_last.tar.gz -C /

tar -xvf ${configsbackup_path}sasldb_last.tar.gz -C /

tar -xvf ${wwwbackup_path}http_sites_last.tar.gz -C /

#!/bin/sh
set -eux

mysql_user='root'
mysql_pass='<%= @mysql_password -%>'
sqlbackup_path='/backup/mysql/'
gitbackup_path='/backup/git/'
configsbackup_path='/backup/configs/'
wwwbackup_path='/backup/www/'

mysql -u${mysql_user} -p${mysql_pass} < ${sqlbackup_path}all_dbs_last.sql

rsync -va --delete --delete-after /backup/cyrus-imapd/var/lib/imap/ /var/lib/imap/
rsync -va --delete --delete-after /backup/cyrus-imapd/var/spool/imap/ /var/spool/imap/
chown -R cyrus:mail /var/lib/imap/
chown -R cyrus:mail /var/spool/imap/

sa-learn --restore /backup/bayees.backup

tar -xvf ${gitbackup_path}git_last.tar.gz -C /

tar -xvf ${configsbackup_path}sasldb_last.tar.gz -C /

tar -xvf ${wwwbackup_path}http_sites_last.tar.gz -C /

Fix chmod to chown for setting owner of cyrus files


<input type="text" class="form-control user-stats-search" ng-model="query"></input>

      ID
      Name

      {{user.id}}
      {{user.name}}

<input type="text" class="form-control user-stats-search" ng-model="query"></input>

      ID
      Name
      Total Earnings
      Total Charges

      {{user.id}}
      {{user.name}}
      {{user.total_earnings}}
      {{user.total_charges}}

Implement total earnings and charges on user stats tab


<%= @collection.name %>

<%= button_to "Search a Book", new_collection_book_path(@collection.id), method: 'get', class: "btn btn-default" %>

    <% if @collection.books.empty? %>

it's kinda lonely here...

    <% else %>
      <% @collection.books.each do |book| %>

<%= link_to book.title, book_path(book.id) %>

      <% end %>
    <% end %>

Enter a Custom Book

    <%= form_for @collection do |f| %>
      <%= render partial: 'add_book', locals: { f: f } %>
      <%= f.submit "Add Book", class: "btn btn-default" %>
    <% end %>

<%= button_to "Edit #{@collection.name}", edit_collection_path(@collection.id, @collection), :method => :get, class: "btn btn-default" %>

<%= button_to "Delete #{@collection.name}", {:controller => :collections, :action => "destroy", :id => @collection.id}, :method => :delete, class: "btn btn-default" %>

<%= button_to "Back", user_collections_path, method: 'get', class: "btn btn-default" %>

Add back button to collection show page

Add back button to collection show page


      Manage

    <%= group.title %>
    <span class="team-description" group-description-id="<%= group.slug %>" itemprop="description"><%= pluralize(group.repo_accesses.count, 'student') %>

    <ul class="member-list-draggable" group-id="<%= group.slug %>">
      <% group.repo_accesses.each do |repo_access| %>
        <% student = repo_access.user %>

          <%= link_to student.github_user.html_url, class: "tooltipped tooltipped-s", 'aria-label' => student.github_user.login, 'user-id' => student.id do %>
            <%= image_tag student.github_user.github_avatar_url(60), class: 'avatar avatar-small ', height: 30, width: 30, alt: "@#{student.github_user.login}" %>
          <% end %>

      <% end %>

      Manage

<%= group.title %>
      <span class="team-description" group-description-id="<%= group.slug %>" itemprop="description"><%= pluralize(group.repo_accesses.count, 'student') %>

        <ul class="member-list member-list-draggable" group-id="<%= group.slug %>">
          <% group.repo_accesses.each do |repo_access| %>
              <% student = repo_access.user %>

                <%= link_to student.github_user.html_url, class: "tooltipped tooltipped-s", 'aria-label' => student.github_user.login, 'user-id' => student.id do %>
                    <%= image_tag student.github_user.github_avatar_url(60), class: 'avatar avatar-small ', height: 30, width: 30, alt: "@#{student.github_user.login}" %>
                <% end %>

          <% end %>

Use boxed-group for team panel style

Use boxed-group for team panel style


#!ipxe

dhcp

kernel http://<%= @dnsmasq_local_ip %>:8088/agent.kernel ipa-inspection-callback-url=http://<%= @dnsmasq_local_ip %>:5050/v1/continue systemd.journald.forward_to_console=yes
initrd http://<%= @dnsmasq_local_ip %>:8088/agent.ramdisk
boot

#!ipxe

dhcp

kernel http://<%= @dnsmasq_local_ip %>:8088/agent.kernel ipa-inspection-callback-url=http://<%= @dnsmasq_local_ip %>:5050/v1/continue systemd.journald.forward_to_console=yes BOOTIF=${mac}
initrd http://<%= @dnsmasq_local_ip %>:8088/agent.ramdisk
boot

Add BOOTIF=${mac} to the inspector iPXE template

It is required to determine the booting NIC.

Change-Id: I8547d1f62047e678d0ba825451a07aea2dd1cb2b
Closes-Bug: #1517941


<% @taxons = @taxon && @taxon.parent ? @taxon.parent.children : Spree::Taxon.roots %>
<%= form_tag products_url, :method => :get do %>
  <%= select_tag :taxon,
        options_for_select([[t(:all_departments), '']] +
                              @taxons.map {|t| [t.name, t.id]},
                            @taxon ? @taxon.id : params[:taxon]) %>
  <%= text_field_tag :keywords, params[:keywords] %>
  <%= submit_tag t(:search), :name => nil %>
<% end %>

<% @taxons = @taxon && @taxon.parent ? @taxon.parent.children : Spree::Taxon.roots %>
<%= form_tag products_url, :method => :get do %>
  <%= select_tag :taxon,
        options_for_select([[t(:all_departments), '']] +
                              @taxons.map {|t| [t.name, t.id]},
                            @taxon ? @taxon.id : params[:taxon]) %>
  <%= search_field_tag :keywords, params[:keywords], :placeholder => t(:search) %>
  <%= submit_tag t(:search), :name => nil %>
<% end %>

[core] Use search_field for search keyword input


<meta charset="UTF-8">

Sidekiq Merger

  <% if flash[:notice] %>

<%= flash[:notice] %>

  <% end %>

    Open sidekiq console

Workers

SomeWorker

      <form action="/some_worker/perform_in" method="post" style="display: inline-block;">
        <input type="submit" name="perform_in" value="perform_in">
      </form>
      <form action="/some_worker/perform_in" method="post" style="display: inline-block;">
        <input type="submit" name="perform_async" value="perform_async">
      </form>

UniqueWorker

      <form action="/some_worker/perform_in" method="post" style="display: inline-block;">
        <input type="submit" name="perform_in" value="perform_in">
      </form>
      <form action="/some_worker/perform_in" method="post" style="display: inline-block;">
        <input type="submit" name="perform_async" value="perform_async">
      </form>

<meta charset="UTF-8">

Sidekiq Merger

  <% if flash[:notice] %>

<%= flash[:notice] %>

  <% end %>

    Open sidekiq console

Workers

SomeWorker

      <form action="/some_worker/perform_in" method="post" style="display: inline-block;">
        <input type="submit" name="perform_in" value="perform_in">
      </form>
      <form action="/some_worker/perform_in" method="post" style="display: inline-block;">
        <input type="submit" name="perform_async" value="perform_async">
      </form>

UniqueWorker

      <form action="/unique_worker/perform_in" method="post" style="display: inline-block;">
        <input type="submit" name="perform_in" value="perform_in">
      </form>
      <form action="/unique_worker/perform_in" method="post" style="display: inline-block;">
        <input type="submit" name="perform_async" value="perform_async">
      </form>

Fix unique worker submission path

Fix unique worker submission path


<% if I18n.locale.to_s == 'cy' %>
As you can see, we don't yet have a complete Welsh translation of WhatDoTheyKnow. Please help us get there by adding translations at Transifex. You can read more about working with translations for Alaveteli, the software that runs WhatDoTheyKnow, here.
<% end %>

The Campaign for Freedom of Information advises the public on using the FOI Act, encourages good practice by authorities, provides FOI training and tries to improve the way the Act works. They are now in financial difficulty and need help to continue their work. Donate

<% if I18n.locale.to_s == 'cy' %>
As you can see, we don't yet have a complete Welsh translation of WhatDoTheyKnow. Please help us get there by adding translations at Transifex. You can read more about working with translations for Alaveteli, the software that runs WhatDoTheyKnow, here.
<% end %>

  Our friends over at the Campaign for Freedom of Information are
  having financial troubles. Without their amazing work there
  would be no Freedom of Information Act, and no
  WhatDoTheyKnow. Please visit their site
  and show them your support.

Update the CFOI appeal wording at Tom's request


<!DOCTYPE html>

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

<%= notice %>

<%= alert %>

<%= yield %>

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

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Dummy</title>
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>

    <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
    <%= csrf_meta_tags %>

<%= notice %>

<%= alert %>

    <%= yield %>

Extend dummy application layer with bootstrap


<% d = @doc_instance %>

<%= include "partials/title", :object => @doc_instance %>

<% if d.description && !d.description.empty? %>
  <%= layout_section('Description') %>
    <%= htmlize(d.description) %>
  <%= end_layout_section %>
<% end %>

<%= include "partials/namespaces", :object => @doc_instance %>
<%= include "partials/classes", :object => @doc_instance %>

<%= include "partials/class_relationships", :object => @doc_instance %>
<%= include "partials/related_utilities",   :object => @doc_instance %>
<%= include "partials/constructor",         :object => @doc_instance %>

<%
types = {
  :class_methods       => 'Class methods',
  :class_properties    => 'Class properties',
  :instance_methods    => 'Instance methods',
  :instance_properties => 'Instance properties',
  :constants           => 'Constants'
}.each do |method, title| %>
  <% methods = @doc_instance.send(method) %>
  <% unless methods.empty? %>
    <%= layout_section(title, method) %>
      <ul class="method-list">
        <%= include "partials/link_list", :collection => methods.sort! %>
      </ul>
    <%= end_layout_section %>
  <% end %>
<% end %>

<% d = @doc_instance %>

<%= include "partials/title", :object => @doc_instance %>

<% if d.description && !d.description.empty? %>
  <%= layout_section('Description') %>
    <%= htmlize(d.description) %>
  <%= end_layout_section %>
<% end %>

<%= include "partials/namespaces", :object => @doc_instance %>
<%= include "partials/classes", :object => @doc_instance %>

<%= include "partials/class_relationships", :object => @doc_instance %>
<%= include "partials/related_utilities",   :object => @doc_instance %>
<%= include "partials/constructor",         :object => @doc_instance %>

<%
types = [
  [:class_methods, 'Class methods'],
  [:class_properties, 'Class properties'],
  [:instance_methods, 'Instance methods'],
  [:instance_properties, 'Instance properties'],
  [:constants, 'Constants']
].each do |a| %>
  <% method, title = a %>
  <% methods = @doc_instance.send(method) %>
  <% unless methods.empty? %>
    <%= layout_section(title, method) %>
      <ul class="method-list">
        <%= include "partials/link_list", :collection => methods.sort! %>
      </ul>
    <%= end_layout_section %>
  <% end %>
<% end %>

Order display of methods and property lists in Ruby < 1.9.


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

SSLProtocol All -SSLv2 -SSLv3

SSLHonorCipherOrder On
SSLCipherSuite <%= node[:ssl][:ciphers] %>
<% if node[:lsb][:release].to_f < 16.04 -%>

SSLCertificateChainFile /etc/ssl/certs/letsencrypt.pem
<% end -%>

SSLUseStapling On
SSLStaplingResponderTimeout 5
SSLStaplingErrorCacheTimeout 60
SSLStaplingReturnResponderErrors off
SSLStaplingFakeTryLater off
SSLStaplingCache shmcb:${APACHE_RUN_DIR}/ssl_ocspcache(512000)
<% if node[:ssl][:strict_transport_security] -%>

Header setifempty Strict-Transport-Security "<%= node[:ssl][:strict_transport_security] %>" env=HTTPS
<% end -%>

Header setifempty Expect-CT "max-age=0, report-uri=\"https://openstreetmap.report-uri.com/r/d/ct/reportOnly\"" env=HTTPS

Send a report only Expect-CT header with https responses


        <%= t(:my_account) %>

        <%= profile_user_menu_link %>

Hide vertical divider on user menu if screen is small


                        <%= image_tag('null-states/profile@2x.png', width: 154, height: 38, class: %w(center)) %>

                  You just earned your first <%= @product.name %> coins.

                  <a href="<%= user_url(@awarder) %>">@<%= @awarder.username %>
                  awarded your recent work on <%= @product.name %> which minted you <%= number_with_delimiter @wip.value %> coins - because it was awesome.

                      <a href="<%= product_wips_url(@product) %>">Keep up the streak

                  <a href="<%= help_url(:general) %>">Learn more about coins.

                        <%= image_tag('null-states/profile@2x.png', width: 154, height: 38, class: %w(center)) %>

                  You just earned your first <%= @product.name %> coins.

                  <a href="<%= user_url(@awarder) %>">@<%= @awarder.username %>
                  awarded your recent work on <%= @product.name %> which minted you <%= number_with_delimiter @wip.value %> coins - because it was awesome.

                      <a href="<%= product_wips_url(@product) %>">Keep up the streak

                  <a href="<%= help_url(:revenue) %>">Learn more about coins.

Fix broken link in first win email

Fix broken link in first win email


<%= milestone.title %>

      <% if milestone.description %>

        <%= milestone.description.html_safe %>

      <% end %>

        <% if (can? :manage, LessonPlanEntry) && milestone.is_virtual != true %>
          <%= link_to edit_course_lesson_plan_milestone_path(@course, milestone), class: 'btn' do %>

          <% end %>
          <%= link_to course_lesson_plan_milestone_path(@course, milestone),
                method: :delete,
                data: { confirm: t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                class: 'btn btn-danger' do %>

          <% end %>

    <% end %>

    <% entries = milestone.entries.sort { |a, b| a.start_at <=> b.start_at } %>
    <% entries.each {|entry| %>
    <%= render :partial => 'lesson_plan/entry', locals: { :entry => entry } %>
    <% } %>

<%= milestone.title %>

      <% if milestone.end_at %>

Period ending on <%= milestone.end_at.strftime("%A, %d %B %Y") %>

      <% end %>
      <% if milestone.description %>

        <%= milestone.description.html_safe %>

      <% end %>

        <% if (can? :manage, LessonPlanEntry) && milestone.is_virtual != true %>
          <%= link_to edit_course_lesson_plan_milestone_path(@course, milestone), class: 'btn' do %>

          <% end %>
          <%= link_to course_lesson_plan_milestone_path(@course, milestone),
                method: :delete,
                data: { confirm: t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                class: 'btn btn-danger' do %>

          <% end %>

    <% end %>

    <% entries = milestone.entries.sort { |a, b| a.start_at <=> b.start_at } %>
    <% entries.each {|entry| %>
    <%= render :partial => 'lesson_plan/entry', locals: { :entry => entry } %>
    <% } %>

Add end date to milestone template.

Add end date to milestone template.


<% content.attributors.each do |user| %>
  <div class="user <% if user.verified_professor? %> verified <% end %>">
    <%= link_to user.display_name, user_path(user) %><%= ", " unless content.owners.count == content.collaborators.count %>
  </div>
<% end %>

<% content.attributors.each do |user| %>
  <div class="user <% if user.verified_professor? %> verified <% end %>">
    <%= link_to user.display_name, user_path(user) %><%= ", " unless content.attributors.last == user %>
  </div>
<% end %>

Correct comma seperation when showing authors.


<%= @title %>

<% if @mail_server_logs.any? %>

    <%= _("These logs show what happened to this message as it passed through " \
          "our {{mta_type}} mail server. You can send these logs to an " \
          "authority to help them diagnose problems receiving email from " \
          "{{site_name}}.",
          :mta_type => AlaveteliConfiguration.mta_log_type.capitalize,
          :site_name => AlaveteliConfiguration.site_name) %>

<%= @mail_server_logs.join %>

<% else %>

<%= _("We couldn’t display any logs for this message.") %>

<%= _("If this is a very recent message, check back later, as we check for new logs periodically.") %>

<% end %>

<%= @title %>

<% if @mail_server_logs.any? %>

    <%= _("These logs show what happened to this message as it passed through " \
          "our {{mta_type}} mail server. You can send these logs to an " \
          "authority to help them diagnose problems receiving email from " \
          "{{site_name}}.",
          :mta_type => AlaveteliConfiguration.mta_log_type.capitalize,
          :site_name => AlaveteliConfiguration.site_name) %>

<%= @mail_server_logs.join %>

<% else %>

<%= _("We couldn’t display any logs for this message.") %>

<%= _("If this is a recent message, check back tomorrow, as we check for new logs periodically.") %>

<% end %>

Reword "check back for mail server logs" message

Log loading is delayed until the current log is rotated by logrotate.


server {
    listen       443 ssl spdy;
    server_name  localhost;

    proxy_buffers 8 64k;

    ssl_certificate      /etc/ssl/certs/<%= @certificate %>.pem;
    ssl_certificate_key  /etc/ssl/private/<%= @certificate %>.key;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 SSLv3;
    ssl_ciphers aRSA+HIGH:+kEDH:+kRSA:!kSRP:!kPSK:+3DES:!MD5;
    ssl_prefer_server_ciphers on;
    ssl_session_cache shared:SSL:30m;
    ssl_session_timeout 15m;
    ssl_stapling on;
    resolver <%= @resolvers.join(" ") %>;

    location / { proxy_pass http://127.0.0.1; proxy_set_header X-Forwarded-For $remote_addr; }
}

server {
    listen       443 ssl spdy;
    server_name  localhost;

    proxy_buffers 8 64k;

    ssl_certificate      /etc/ssl/certs/<%= @certificate %>.pem;
    ssl_certificate_key  /etc/ssl/private/<%= @certificate %>.key;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers aRSA+HIGH:+kEDH:+kRSA:!kSRP:!kPSK:+3DES:!MD5;
    ssl_prefer_server_ciphers on;
    ssl_session_cache shared:SSL:30m;
    ssl_session_timeout 15m;
    ssl_stapling on;
    resolver <%= @resolvers.join(" ") %>;

    location / { proxy_pass http://127.0.0.1; proxy_set_header X-Forwarded-For $remote_addr; }
}

Disable deprecated SSLv3 (POODLE fix)

Disable deprecated SSLv3 (POODLE fix)


Projects

    Name
    Description
    Priority
    Rank
    Tier
    Verified

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

    <%= raw project.name %>
    <%= project.description %>
    <%= project.priority %>
    <%= project.rank %>
    <%= project.tier %>
    <%= project.verified %>
    <%= button_to 'Details', project_path(project), :class=>"btn btn-mini btn-info",
					:method=> "get" %>
    <%= button_to 'Edit', edit_project_path(project), :class=>"btn btn-mini btn-warning",
					:method=> "get" %>
    <%= button_to 'Destroy', project_path(project), :class=>"btn btn-mini btn-danger",
					method: :delete, data: { confirm: 'Are you sure?' } %>

<% end %>

<%= button_to 'New Project', new_project_path, :class=>"btn btn-info" %>

Projects

    Name
    Description
    Priority
    Rank
    Tier
    Verified

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

    <%= raw project.name %>
    <%= project.description %>
    <%= project.priority %>
    <%= project.rank %>
    <%= project.tier %>
    <%= project.verified %>
    <%= button_to 'Details', project_path(project), :class=>"btn btn-mini btn-info",
					:method=> "get" %>
    <%= button_to 'Edit', edit_project_path(project), :class=>"btn btn-mini btn-warning",
					:method=> "get" %>
    <%= button_to 'Destroy', project_path(project), :class=>"btn btn-mini btn-danger",
					method: :delete, data: { confirm: 'Are you sure?' } %>

<% end %>

<%= button_to 'New Project', new_project_path, :class=>"btn btn-info", :method=>"get" %>

Fix link for new project.

Fix link for new project.


<% content_for :content do %>
	<%= render_crumbs %>

    <%= form_tag admin_search_path, method: 'GET' do |form| %>
        <input type="search" name="q" />

        <input type="submit" value="Search" />
    <% end %>

	<%= yield %>
<% end %>

<%= render template: "layouts/brewery/application" %>

<% content_for :content do %>
	<%= render_crumbs %>

    <%= form_tag brewery.admin_search_path, method: 'GET' do |form| %>
        <input type="search" name="q" />

        <input type="submit" value="Search" />
    <% end %>

	<%= yield %>
<% end %>

<%= render template: "layouts/brewery/application" %>

Make the admin layout work in non brewery controllers


<%= render 'form_subnav' %>

<%= render(:partial => 'shared/form_errors', :locals => {:obj => @asset}) unless @asset.errors.empty? %>

<%= render "#{@asset.class.name.underscore}_form" %>

<%= render 'scripts' %>

Remove old subnav from new asset form

Remove old subnav from new asset form


<% content_for :title, "Bins" %>
<% content_for :tabs, render("items/tabs") %>

<% content_for :content do %>
  <% if current_user.can_view_and_edit_items? %>

      <%= link_to "Create Bin", new_bin_path, class: "btn btn-primary bottom15 pull-right" %>

  <% end %>

        Label
        Location
        Items

      <% @bins.each do |bin| %>
        <tr data-href="<%= edit_bin_path(bin) %>">
          <%= bin.label %>
          <%= bin.bin_location.display %>

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

<%= item.description %>

            <% end %>

      <% end %>

<% end %>

<% content_for :title, "Bins" %>
<% content_for :tabs, render("items/tabs") %>

<% content_for :content do %>
  <% if current_user.can_edit_bins? %>

      <%= link_to "Create Bin", new_bin_path, class: "btn btn-primary bottom15 pull-right" %>

  <% end %>

        Label
        Location
        Items

      <% @bins.each do |bin| %>
        <tr data-href="<%= edit_bin_path(bin) %>">
          <%= bin.label %>
          <%= bin.bin_location.display %>

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

<%= item.description %>

            <% end %>

      <% end %>

<% end %>

Fix typo in bins view to use proper permission


#!/bin/bash

set -e -x

RUN_DIR=/var/vcap/sys/run/nginx_bits
LOG_DIR=/var/vcap/sys/log/nginx_bits
UPLOADS_DIR=/var/vcap/data/bits-service/tmp/uploads
PIDFILE=$RUN_DIR/nginx.pid
JOB_DIR=/var/vcap/jobs/bits-service

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

case $1 in

  start)
    pid_guard $PIDFILE "Nginx"

    mkdir -p $RUN_DIR
    mkdir -p $LOG_DIR

    echo $$ > $PIDFILE

    if [ ! -d "$UPLOADS_DIR" ]; then
      chpst -u vcap:vcap mkdir -p $UPLOADS_DIR
    fi

    exec /var/vcap/packages/nginx/sbin/nginx \
         -c $JOB_DIR/config/nginx.conf
    ;;

  stop)
    #force kill immediately; drain script should have already run
    kill_and_wait $PIDFILE 0 1

    ;;

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

    ;;

esac

#!/bin/bash

set -e -x

RUN_DIR=/var/vcap/sys/run/nginx_bits
LOG_DIR=/var/vcap/sys/log/nginx_bits
UPLOADS_DIR=/var/vcap/data/bits-service/tmp/uploads
PIDFILE=$RUN_DIR/nginx.pid
JOB_DIR=/var/vcap/jobs/bits-service

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

case $1 in

  start)
    pid_guard $PIDFILE "Nginx"

    mkdir -p $RUN_DIR
    mkdir -p $LOG_DIR

    echo $$ > $PIDFILE

    if [ ! -d "$UPLOADS_DIR" ]; then
      chpst -u vcap:vcap mkdir -p $UPLOADS_DIR
    fi

    exec /var/vcap/packages/nginx/sbin/nginx \
         -c $JOB_DIR/config/nginx.conf
    ;;

  stop)
    #force kill immediately; drain script should have already run
    kill_and_wait $PIDFILE

    ;;

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

    ;;

esac

Use defaults for `kill_and_wait` with nginx

Signed-off-by: Tiago Scolari <f438736fd7dd1cb07f8d2a37f4499d0a0272a752@pivotal.io>


<% if ENV.has_key? "DOCUMENT_ROOT" and ENV['DOCUMENT_ROOT'].to_s != "" %>
root /app/<%= ENV['DOCUMENT_ROOT'] %>;
<% else %>
root /app/www;
<% end %>

try_files $uri /index.php?$args;

location ~ ^(.+?\.php).*$ {
    include        fastcgi_params;
    proxy_buffering off;
    fastcgi_connect_timeout 3s;
    fastcgi_read_timeout 10s;
    fastcgi_buffers 256 4k;
    fastcgi_split_path_info ^(.+\.php)(/.*)$;
    fastcgi_pass   php;
    fastcgi_param  PATH_INFO          $fastcgi_path_info;
    fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param  SCRIPT_NAME $fastcgi_script_name;
}

<% if ENV.has_key? "DOCUMENT_ROOT" and ENV['DOCUMENT_ROOT'].to_s != "" %>
root /app/<%= ENV['DOCUMENT_ROOT'] %>;
<% else %>
root /app/www;
<% end %>

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

location @rewriteapp {
  rewrite ^(.*)$ /index.php$1 last;
}

location ~ ^(.+?\.php).*$ {
    include        fastcgi_params;
    proxy_buffering off;
    fastcgi_connect_timeout 3s;
    fastcgi_read_timeout 10s;
    fastcgi_buffers 256 4k;
    fastcgi_split_path_info ^(.+\.php)(/.*)$;
    fastcgi_pass   php;
    fastcgi_param  PATH_INFO          $fastcgi_path_info;
    fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param  SCRIPT_NAME $fastcgi_script_name;
}

Change try_files instruction for change4


<%= _('Why categorize?') %>

<%= _('By categorizing your content, you increase the possibility that other people access it. When they are looking for, say, articles about Bahia and you categorize your article in "Regions/Bahia", then there is a good change that your article is going to be found.') %>

<% button_bar do %>
  <%= colorbox_close_button _('Close') %>
<% end %>

<%= _('Why categorize?') %>

<%= _('By categorizing your content, you increase the possibility that other people access it. When they are looking for, say, articles about Bahia and you categorize your article in "Regions/Bahia", then there is a good change that your article is going to be found.') %>

<% button_bar do %>
  <%= lightbox_close_button _('Close') %>
<% end %>

Fix problem with merge from master

Fix problem with merge from master


Legal Aid

        	For free legal help, call Camille!

            (312) 229-6359

Camille works at the Juvenile Expungement Help Desk. This is a free service & the lawyers are eager to help you!

	If you were arrested outside of Cook County: search for your zip code here to find a free legail aid organization in your area.

Legal Aid

        	For free legal help, call Camille!

            (312) 229-6359

Camille works at the Juvenile Expungement Help Desk. This is a free service & the lawyers are eager to help you!

	If you were arrested outside of Cook County: search for your zip code here to find a free legal aid organization in your area.

Fix typo on Legal Aid page

Fix typo on Legal Aid page


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

Attributes

  <% ['class', 'instance'].select {|s| object.attributes[s].length > 0 }.each do |scope| -%>
    <div class="<%= scope %>">

<%= scope.capitalize %> Attributes

      <% object.attributes[scope].sort_by {|o| o.to_s }.each do |name, rw| -%>

          <tt>
            <%= name %>
            <% ['read', 'write'].select {|t| rw[t] }.map do |type| -%>
              <span class="<%= type %>">[<%= linkify(rw[type], type) %>]
            <% end -%>
          </tt>

      <% end -%>

  <% end -%>

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

Attributes

  <% ['class', 'instance'].select {|s| object.attributes[s].length > 0 }.each do |scope| -%>
    <div class="<%= scope %>">

<%= scope.capitalize %> Attributes

      <% object.attributes[scope].sort_by {|o| o.to_s }.each do |name, rw| -%>

          <tt>
            <%= name %>

              [<%= ['read', 'write'].map {|t| linkify(rw[t], t[0,1].upcase) if rw[t] }.compact.join(", ") -%>]

          </tt>

      <% end -%>

  <% end -%>

Change [read][write] output to [R, W] style


<%= form_for [:admin, @document, supporting_document] do |form| %>
  <%= form.hidden_field :lock_version %>
  <%= form.label :title %>
  <%= form.text_field :title, disabled: disabled %>
  <%= form.label :body %>
  <%= form.text_area :body, disabled: disabled %>
  <% unless disabled %>
    <%= form.submit 'Save' %>
  <% end %>
<% end %>

<%= form_for [:admin, @document, supporting_document] do |form| %>
  <%= form.hidden_field :lock_version %>
  <%= form.label :title %>
  <%= form.text_field :title, disabled: disabled %>
  <%= form.label :body %>
  <%= form.text_area :body, disabled: disabled %>
  <% unless disabled %>
    <fieldset class="clear">
      <%= form.submit 'Save' %>
      <span class="or_cancel">
        or
        <%= link_to 'cancel', (supporting_document.new_record? ? admin_document_path(@document) : admin_supporting_document_path(supporting_document)) %>
      </span>
    </fieldset>
  <% end %>
<% end %>

Add cancel link next to submit button on new/edit supporting document.


<form class="form-horizontal" id="transformation_form">

    <textarea name="json-textarea" id="json-textarea" class="form-control top-buffer" data-bind="value: ko.toJSON($data, null, 4)" rows="20"></textarea>

    <button type="button" class="btn btn-primary btn-block" id="js-submit-query" data-loading-text="Processing..."> Analyze Data </button>

Save Data Query

    Name

        <input name="query-name" id="query-name" class="form-control"></input>

      <button type="button" class="btn btn-small" id="js-save-query">Save</button>

</form>

<form class="form-horizontal" id="transformation_form">

    <textarea name="json-textarea" id="json-textarea" class="form-control top-buffer" data-bind="value: ko.toJSON($data, null, 4)" rows="20"></textarea>

    <button type="button" class="btn btn-primary btn-block" id="js-submit-query" data-loading-text="Processing..."> Analyze Data </button>
    Please close Graph and Table views in CODAP before running new query to prevent a crash!

Save Data Query

    Name

        <input name="query-name" id="query-name" class="form-control"></input>

      <button type="button" class="btn btn-small" id="js-save-query">Save</button>

</form>

Add message requesting user to close graph and table view

Running a new query without closing them leads to a crash many times.


<% set_meta_tags(title: 'Accessibility Statement') %>

<% content_for(:editorial) do %>
  <% if Feature.active?(:accessibility_statement) %>

Accessibility Statement

  <% end %>
<% end %>

<%= render template: '/static_pages/show' %>

<% set_meta_tags(title: 'Accessibility Statement') %>

<% content_for(:editorial) do %>

    <% if Feature.active?(:accessibility_statement) %>
      <%= heading_tag 'Accessibility Statement' %>

The Money Advice Service is committed to providing a website that is accessible to the widest possible audience, regardless of disability, capability or technology.

At the Money Advice Service we also routinely check web pages - when amendments are made to existing pages and when new pages are released - to ensure that they meet our accessibility requirements, and we do respond positively to feedback regarding the accessibility of any of our pages or services.

    <% end %>

<% end %>

<%= render template: '/static_pages/show' %>

Add initial content to the accessibility page


<tr id="race_<%= race.id %>_row">

    <%= editable race, :category_name %>

    <%= race[:field_size] if race[:field_size] %>

    <%= link_to "Edit", edit_admin_race_path(race), id: "edit_race_#{race.id}" %>

    <%= link_to(
          admin_race_path(race),
          remote: true,
          class: "icon",
          id: "destroy_race_#{race.id}",
          title: "Delete race",
          data: { confirm: (Rails.env.acceptance? || !promoter?) ? nil : "Really delete #{race.name}?" },
          method: :delete) do %>

    <% end %>

<tr id="race_<%= race.id %>_row">

    <%= editable race, :category_name %>

    <%= race[:field_size] if race[:field_size] %>

    <%= link_to "Edit", edit_admin_race_path(race), class: "obvious", id: "edit_race_#{race.id}" %>

    <%= link_to(
          admin_race_path(race),
          remote: true,
          class: "icon",
          id: "destroy_race_#{race.id}",
          title: "Delete race",
          data: { confirm: (Rails.env.acceptance? || !promoter?) ? nil : "Really delete #{race.name}?" },
          method: :delete) do %>

    <% end %>

Make edit race links obvious

Make edit race links obvious


<li class="universe-selector <%= 'universe-filter-active' if @universe_scope.present? %>">
  <%
    if @universe_scope.present?
      tooltip = "Limiting content to universe: #{@universe_scope.name}."
    else
      tooltip = "Limit content to a universe..."
    end
  %>
  <a class="dropdown-button tooltipped" href="#!" data-activates="dropdown_universes" data-position="bottom" data-delay="100" data-tooltip="<%= tooltip %>">
    <i class="material-icons <%= 'left' if @universe_scope.present? %>">vpn_lock
    <% if @universe_scope.present? %>

        <%= @universe_scope.name %>

    <% end %>

<%= link_to "All universes", url_for(params.merge(:universe => :all)) %>

  <% if current_user %>

    <% current_user.universes.sort_by(&:name).each do |universe| %>

<%= link_to universe.name, "?universe=#{universe.id}" %>

    <% end %>
  <% end %>

<li class="universe-selector <%= 'universe-filter-active' if @universe_scope.present? %>">
  <%
    if @universe_scope.present?
      tooltip = "Limiting content to universe: #{@universe_scope.name}."
    else
      tooltip = "Limit content to a universe..."
    end
  %>
  <a class="dropdown-button tooltipped" href="#!" data-activates="dropdown_universes" data-position="bottom" data-delay="100" data-tooltip="<%= tooltip %>">
    <i class="material-icons <%= 'left' if @universe_scope.present? %>">vpn_lock
    <% if @universe_scope.present? %>

        <%= @universe_scope.name.truncate(10) %>

    <% end %>

<%= link_to "All universes", url_for(params.merge(:universe => :all)) %>

  <% if current_user %>

    <% current_user.universes.sort_by(&:name).each do |universe| %>

<%= link_to universe.name, "?universe=#{universe.id}" %>

    <% end %>
  <% end %>

Fix display bug on universe picker name

Fix display bug on universe picker name


(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'GA=UA-60081327-1', 'auto');
ga('send', 'pageview');

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-60081327-1', 'auto');
ga('send', 'pageview');

Fix error in GA code

Fix error in GA code


<!DOCTYPE html>

    <title>MoveRails</title>
    <%= csrf_meta_tags %>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <%= stylesheet_link_tag    'user-feed', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'user-feed', 'data-turbolinks-track': 'reload' %>

                <%= image_tag 'perfil-bg.png', class: 'background'%>
                <%= image_tag @user.user_picture.url(:thumb), class: 'circle' %>
                <%= @user.name %>
                <%= @user.email %>

cloudFeed

peopleFriends

dashboardDashboard

account_circleMy Account

pagesMy Pages

Management

settingsConfiguration

exit_to_appLog Out

bookDocumentation

    <%= yield %>

Create a main layout for the user-feed.

New: Create a main layout for the user-feed.


Lesson plan?

  <% @milestones.each { |milestone| %>
    <%= render :partial => 'lesson_plan/milestone', locals: { :milestone => milestone } %>
  <% } %>

Lesson Plan

<% if can? :manage, LessonPlanEntry %>
<%= link_to "New Milestone", new_course_lesson_plan_milestone_path(), :class => "btn btn-success" %>
<%= link_to "New Entry", new_course_lesson_plan_entry_path(), :class => "btn btn-primary" %>
<% end %>

  <% @milestones.each { |milestone| %>
    <%= render :partial => 'lesson_plan/milestone', locals: { :milestone => milestone } %>
  <% } %>

Create basic header for Lesson Plan.

Create basic header for Lesson Plan.


<%= number_with_delimiter(@signature.number) %> signatures

  <%= render 'signature_confirmation' %>

We've added your signature to the petition:

<%= link_to @petition.action, petition_path(@petition) %>

<%= render 'share_petition', petition: @petition %>

  <%= render "petitions/threshold_details", petition: @petition %>

<% if @signature.parish %>

Your parish is <%= @signature.parish.name %>

<% end %>

Register to vote

To vote in local, national and EU elections, you must be registered to vote.

It takes less than 5 minutes.

Register to vote

<%= number_with_delimiter(@signature.number) %> signatures

  <%= render 'signature_confirmation' %>

We've added your signature to the petition:

<%= link_to @petition.action, petition_path(@petition) %>

<%= render 'share_petition', petition: @petition %>

  <%= render "petitions/threshold_details", petition: @petition %>

<% if @signature.parish %>

Your parish is <%= @signature.parish.name %>

<% end %>

Register to vote

To vote in elections, you must be registered to vote.

It takes less than 5 minutes.

Register to vote

Update copy on signed page

Update copy on signed page


Use this format for: Case studies that show someone’s experience of a process covered on GOV.UK or a policy problem the government is trying to solve.

<%= edition_editing_tabs(edition) do %>
  <%= standard_edition_form(edition) do |form| %>
    <fieldset>
      <legend>Associations</legend>

        <%= render 'admin/shared/policy_fields', form: form %>

      <%= render 'worldwide_organisation_fields', form: form, edition: edition %>
      <%= render 'world_location_fields', form: form, edition: edition %>
      <%= render 'organisation_fields', form: form, edition: edition %>
      <%= render 'specialist_sector_fields', form: form, edition: edition %>
    </fieldset>
  <% end %>
<% end %>

Use this format for: Case studies that show someone’s experience of a process covered on GOV.UK or a policy problem the government is trying to solve.

<%= edition_editing_tabs(edition) do %>
  <%= standard_edition_form(edition) do |form| %>
    <fieldset>
      <legend>Associations</legend>
      <%= render 'worldwide_organisation_fields', form: form, edition: edition %>
      <%= render 'world_location_fields', form: form, edition: edition %>
      <%= render 'organisation_fields', form: form, edition: edition %>
    </fieldset>
  <% end %>
<% end %>

Remove legacy tagging form from case studies


Payment Complete

Thank you for your payment. Your transaction has been completed, and a receipt for your purchase has been emailed to you.
You may log into your account and choose "My Payments" to view details of this transaction.

<%= link_to 'Back to My Registrations', registrants_path %>

Add home link to payment success page.

Add home link to payment success page.


<% if current_user.trial_user? %>

<%= current_user.remaining_trial_days %> days left days left in your Trial Period. To keep using our platform,
            <a href="<%= current_user.update_payment_url(request.protocol) %>" class="FlashMessage--text">Subscribe now

<% end %>

<% if current_user.trial_user? %>

<%= current_user.remaining_trial_days %> days left in your Trial Period. To keep using our platform,
            <a href="<%= current_user.update_payment_url(request.protocol) %>" class="FlashMessage--text">Subscribe now

<% end %>

Correct copy in trial banner

Correct copy in trial banner


      <% @repository.snapshots.last.best_records(@metric).each do |document| %>
        <%= record_selector_entry(@documents[i], document) %>
      <% end %>

    <a class="btn record-selector dropdown btn-default glyphicon glyphicon-search" href="<%= "#search-modal-#{i}" %>" data-toggle="modal">
    <div class="modal fade" id="<%= "search-modal-#{i}" %>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

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

Record Search

                <input id="<%= "record-search-input-#{i}" %>" class="form-control" type="text" placeholder="Search..."></input>

              <div id="<%= "record-search-results-#{i}" %>" class="col-md-12" data-document="<%= @documents[i][:id] %>">

                      Name
                      Score

            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

        ID
        <%= @documents[i].record[:id] %>

        Name
        <%= @documents[i].record[:name] %>

        Score
        <%= @documents[i].send(@metric)[:score] %>

Add partial to encapsulate record selection

The record selectors have been separated into its own partial. More and
more view files become redundant, but this seems a necessary process in
this refactoring.

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


apply plugin: 'java'
apply plugin: 'eclipse'

task generateDependencies(type: Jar) {
  baseName = 'dependencies'
  from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  with jar
}

repositories {
  def androidHome = System.getenv("ANDROID_HOME")
  maven {
    url "$androidHome/extras/android/m2repository/"
  }
  <% @repositories.each do |url| %>
    maven {
      url "<%= url %>"
    }
  <% end %>
  mavenCentral()
}

dependencies {
  <% @dependencies.each do |dependency| %>
    compile '<%= dependency[:name] %>:<%= dependency[:artifact] %>:<%= dependency[:version] %>'
  <% end %>
}

apply plugin: 'java'
apply plugin: 'eclipse'

task generateDependencies(type: Jar) {
  baseName = 'dependencies'
  from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  with jar
}

repositories {
  def androidHome = System.getenv("RUBYMOTION_ANDROID_SDK")
  maven {
    url "$androidHome/extras/android/m2repository/"
  }
  <% @repositories.each do |url| %>
    maven {
      url "<%= url %>"
    }
  <% end %>
  mavenCentral()
}

dependencies {
  <% @dependencies.each do |dependency| %>
    compile '<%= dependency[:name] %>:<%= dependency[:artifact] %>:<%= dependency[:version] %>'
  <% end %>
}

Change root directory of support files to $RUBYMOTION_ANDROID_SDK


---
- scm:
    name: govuk-saas-config-repo
    scm:
        - git:
            url: git@github.com:alphagov/govuk-saas-config.git
            branches:
              - master

- job:
    name: configure-github-repos
    display-name: Configure GitHub repos
    project-type: freestyle
    description: "Configures GitHub repos with correct settings, branch protection and webhooks"
    scm:
      - govuk-saas-config-repo
    logrotate:
        numToKeep: 250
    triggers:
        - timed: |
            TZ=Europe/London
            H 8 * * *
    properties:
        - build-discarder:
            days-to-keep: 30
            artifact-num-to-keep: 5
    builders:
        - shell: |
            bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
            bundle exec rake github:configure_repos
    wrappers:
      - ansicolor:
          colormap: xterm
      - inject-passwords:
          global: false
          mask-password-params: true
          job-passwords:
            - name: GITHUB_TOKEN
              password:
                '<%= @github_token %>'

---
- scm:
    name: govuk-saas-config-repo
    scm:
        - git:
            url: git@github.com:alphagov/govuk-saas-config.git
            branches:
              - main

- job:
    name: configure-github-repos
    display-name: Configure GitHub repos
    project-type: freestyle
    description: "Configures GitHub repos with correct settings, branch protection and webhooks"
    scm:
      - govuk-saas-config-repo
    logrotate:
        numToKeep: 250
    triggers:
        - timed: |
            TZ=Europe/London
            H 8 * * *
    properties:
        - build-discarder:
            days-to-keep: 30
            artifact-num-to-keep: 5
    builders:
        - shell: |
            bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
            bundle exec rake github:configure_repos
    wrappers:
      - ansicolor:
          colormap: xterm
      - inject-passwords:
          global: false
          mask-password-params: true
          job-passwords:
            - name: GITHUB_TOKEN
              password:
                '<%= @github_token %>'

Update Github config job's default branch

We are updating the https://github.com/alphagov/govuk-saas-config repo to use `main` as the
default branch.


# Network Configuration

## Log Drain Blacklists

The loggregator component allows application log drains.
An application developer deploying their app to Cloud Foundry can bind a drain
to a log analysis service.

Your cloud performance can be affected if the application developer attempts to bind that drain to an internal Cloud Foundry component

To guard against this, you can blacklist the range of IP addresses that you allocate to Cloud Foundry components in your manifest.

To blacklist an IP address range, add the `doppler.blacklisted_syslog_ranges` property to your manifest.
Specify starting and ending IP addresses for each IP address range.

Example manifest excerpt:

```
properties:
  ... other properties ...

  doppler:
    blacklisted_syslog_ranges:
    - start: 10.10.16.0
      end: 10.10.31.255
    - start: 10.10.80.0
      end: 10.10.95.255
```

---
title: Network Configuration
---

## Log Drain Blacklists

The doppler component allows application log drains.
An application developer deploying their app to Cloud Foundry can bind a drain
to a log analysis service.

Your cloud performance can be affected if the application developer attempts to bind that drain to an internal Cloud Foundry component

To guard against this, you can blacklist the range of IP addresses that you allocate to Cloud Foundry components in your manifest.

To blacklist an IP address range, add the `doppler.blacklisted_syslog_ranges` property to your manifest.
Specify starting and ending IP addresses for each IP address range.

Example manifest excerpt:

```
properties:
  ... other properties ...

  doppler:
    blacklisted_syslog_ranges:
    - start: 10.10.16.0
      end: 10.10.31.255
    - start: 10.10.80.0
      end: 10.10.95.255
```

Add title tag and change loggregator to doppler


<%= form_for([:product, @purchase]) do |f| %>
  <% if @purchase.errors.any? %>

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

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

<%= message %>

      <% end %>

  <% end %>

You're about to buy "<%= @product.title %>"

Payment Info

    Card Number

    <input type="text" name="cc"></input>

    Expires (mm/yy)

    <input type="text" name="cc_expire"></input>

    CVV

    <input type="text" name="cvv"></input>

    <%= f.submit "Confirm?" %>

<% end %>

<%= form_for([:product, @purchase]) do |f| %>
  <% if @purchase.errors.any? %>

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

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

<%= message %>

      <% end %>

  <% end %>

You're about to buy "<%= @product.title %>" for $<%= @product.price %>

Payment Info

    Card Number

    <input type="text" name="cc"></input>

    Expires (mm/yy)

    <input type="text" name="cc_expire"></input>

    CVV

    <input type="text" name="cvv"></input>

    <%= f.submit "Confirm?" %>

<% end %>

Add product price to the purchase form

Add product price to the purchase form


<% if Settings::ENABLE_MATHJAX %>
  <script type="text/javascript" src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
  <script type="text/x-mathjax-config">
    MathJax.Hub.Config({
      jax: ["input/TeX", "output/HTML-CSS"],
      tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"] ],
        displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
        processEscapes: true,
        ignoreClass: 'container',
        processClass: 'tex2jax',
      },
      showMathMenu: false,
      errorSettings: {
        style: { color: "black" },
      },
      TeX: {
        noUndefined: {
          attributes: {
            mathcolor: 'black',
          }
        }
      }
    });
  </script>
<% end %>
<%= javascript_include_tag "application" %>
<script type="text/javascript">
  SciRate.current_user = <%= raw (current_user ? current_user.to_js : false) %>;
</script>

<% if Settings::ENABLE_MATHJAX %>
  <script type="text/javascript" src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
  <script type="text/x-mathjax-config">
    MathJax.Hub.Config({
      jax: ["input/TeX", "output/HTML-CSS"],
      tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"] ],
        displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
        processEscapes: true,
        ignoreClass: 'container',
        processClass: 'tex2jax',
      },
      showProcessingMessages: false,
      messageStyle: "none",
      showMathMenu: false,
      errorSettings: {
        style: { color: "black" },
      },
      TeX: {
        noUndefined: {
          attributes: {
            mathcolor: 'black',
          }
        }
      }
    });
  </script>
<% end %>
<%= javascript_include_tag "application" %>
<script type="text/javascript">
  SciRate.current_user = <%= raw (current_user ? current_user.to_js : false) %>;
</script>

Disable annoying MathJax loading messages


<!DOCTYPE html>
<html>
<head>
  <title>Nghborly</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= javascript_include_tag 'https://js.pusher.com/3.0/pusher.min.js'%>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

Add the Pusher.com client-side JavaScript library.


<!DOCTYPE html>

    <title>Potlucks on Rails</title>
    <%= csrf_meta_tags %>

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

    <%= render partial: "layouts/nav-bar" %>

<%= notice %>

<%= alert %>

          <%= yield %>

Move notices and alerts out of bootstrap container


<!DOCTYPE html>

  <title>Roots</title>

This is Roots

Add more markup to view

Add more markup to view


<% unless Spree::Social::Config.preferred_facebook_app_id.nil? %>
  <% content_for :head do %>
    <meta property="og:title" content="<%= @product.name %>" />
    <meta property="og:type" content="product" />
    <meta property="og:url" content="<%= spree.product_url(@product) %>" />
    <meta property="og:description" content="<%= @product.description %>" />
    <% @product.images.each do |img| %>
      <meta property="og:image" content="<%= absolute_image_url(img.attachment.url) %>" />
    <% end %>
    <meta property="fb:app_id" content="<%= Spree::Social::Config.preferred_facebook_app_id %>" />
  <% end %>

  <div
    class="fb-like"
    data-send="<%= Spree::Social::Config.preferred_facebook_send_button %>"
    data-width="450"
    data-show-faces="<%= Spree::Social::Config.preferred_facebook_show_faces %>"
    data-layout="<%= Spree::Social::Config.preferred_facebook_layout %>"
    data-colorscheme="<%= Spree::Social::Config.preferred_facebook_color_scheme %>"
    data-action="<%= Spree::Social::Config.preferred_facebook_verb_to_display %>">

<% end %>

<% unless Spree::Social::Config.preferred_facebook_app_id.nil? %>
  <% content_for :head do %>
    <meta property="og:title" content="<%= @product.name %>" />
    <meta property="og:type" content="product" />
    <meta property="og:url" content="<%= spree.product_url(@product) %>" />
    <meta property="og:description" content="<%= @product.description %>" />
    <% @product.images.each do |img| %>
      <meta property="og:image" content="<%= absolute_image_url(img.attachment.url) %>" />
    <% end %>
    <meta property="fb:app_id" content="<%= Spree::Social::Config.preferred_facebook_app_id %>" />
  <% end %>

  <div
    class="fb-like"
    data-send="<%= Spree::Social::Config.preferred_facebook_send_button %>"
    data-width="240"
    data-show-faces="<%= Spree::Social::Config.preferred_facebook_show_faces %>"
    data-layout="<%= Spree::Social::Config.preferred_facebook_layout %>"
    data-colorscheme="<%= Spree::Social::Config.preferred_facebook_color_scheme %>"
    data-action="<%= Spree::Social::Config.preferred_facebook_verb_to_display %>">

<% end %>

Drop width of facebook like button

Drop width of facebook like button


<%= error_messages_for 'doodle' %>

<%= f.text_field :title, :required => true, :size => 60 %>

<%= f.text_field :expiry_date, :size => 10 %><%= calendar_for('doodle_expiry_date') %>

<%= f.text_area :description, :cols => 60, :rows => 3 %>
  <% if @doodle.new_record? %>

    <%= render :partial => 'options', :locals => {:options => @doodle.options} %>

<%= link_to_function l(:label_add_options) do |page|
      page.insert_html :bottom, :options, :partial => 'options', :locals => {:options => nil}
    end %>

<%= l(:label_doodle_should_answer) %>
  <% @project.users.sort.each do |user| -%>
  <%= check_box_tag 'doodle[should_answer_ids][]', user.id %> <%=h user %>
  <% end -%>

  <% end %>

<%= error_messages_for 'doodle' %>

<%= f.text_field :title, :required => true, :size => 60 %>

<%= f.text_field :expiry_date, :size => 10 %><%= calendar_for('doodle_expiry_date') %>

<%= f.text_area :description, :cols => 60, :rows => 8, :class => 'wiki-edit' %>
  <% if @doodle.new_record? %>

    <%= render :partial => 'options', :locals => {:options => @doodle.options} %>

<%= link_to_function l(:label_add_options) do |page|
      page.insert_html :bottom, :options, :partial => 'options', :locals => {:options => nil}
    end %>

<%= l(:label_doodle_should_answer) %>
  <% @project.users.sort.each do |user| -%>
  <%= check_box_tag 'doodle[should_answer_ids][]', user.id %> <%=h user %>
  <% end -%>

  <% end %>

<%= wikitoolbar_for 'doodle_description' %>

Add a wiki toolbar to the description field


<%= breadcrumbs %>

    <%= form_for(@upload, multipart: true) do |f| %>
      <%= hidden_field(:upload, :user_id) %>
      <%= hidden_field(:upload, :user_type) %>

        <%= f.file_field :file %>

Supportive Documentation

        <%= f.submit 'Upload Document' %>
        <%= link_to 'Nevermind', class: 'button' %>

    <% end %>

    <%= render "grants/controls" %>

<%= breadcrumbs %>

    <%= form_for(@upload, html: { class: 'new-upload form-horizontal', multipart: true }) do |f| %>

Supportive Documentation

            Upload a file

            <%= hidden_field(:upload, :user_id) %>
            <%= hidden_field(:upload, :user_type) %>
            <%= f.file_field :file %>

            <%= f.submit 'Upload Document', class: 'btn btn-primary' %>

    <% end %>

    <%= render "grants/controls" %>

Update styling on supportive documentation page

Updated this page to more closely match the style of the other wizard pages.


<% @questions.each do |q| %>

<%= q.vote_count %> votes

<%= q.answers.size%> answers

<%= q.view_count %> views

<%= link_to q.title, question_path(q) %>
<% end %>

Add view count, vote count, answercount, and link to question on front page


#
# PRODUCTION
#
production:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: gitlabhq_production
  pool: 10
  username: "<%= @user %>"
  password: "<%= @password %>"
  host: <%= @host %>
  # socket: /tmp/mysql.sock

#
# Development specific
#
development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: gitlabhq_development
  pool: 5
  username: "<%= @user %>"
  password: "<%= @password %>"
  host: <%= @host %>
  # socket: /tmp/mysql.sock

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test: &test
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: gitlabhq_test
  pool: 5
  username: "<%= @user %>"
  password: "<%= @password %>"
  host: <%= @host %>
  # socket: /tmp/mysql.sock

#
# PRODUCTION
#
production:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: gitlabhq_production
  pool: 10
  reaping_frequency: 10
  username: "<%= @user %>"
  password: "<%= @password %>"
  host: <%= @host %>
  # socket: /tmp/mysql.sock

#
# Development specific
#
development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: gitlabhq_development
  pool: 5
  username: "<%= @user %>"
  password: "<%= @password %>"
  host: <%= @host %>
  # socket: /tmp/mysql.sock

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test: &test
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: gitlabhq_test
  pool: 5
  username: "<%= @user %>"
  password: "<%= @password %>"
  host: <%= @host %>
  # socket: /tmp/mysql.sock

Set the reaping_frequency to 10 for MySQL

This is based on this commit in GitLab:
https://gitlab.com/gitlab-org/gitlab-ce/commit/710cffc6d7f1ca40392c77d603f6dce9ef8b34ac


Сделать заказ:

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

      <%= f.label 'Ваше имя' %>

      <%= f.text_field :username %>

      <%= f.label 'Ваш телефон' %>

      <%= f.text_field :phone %>

      <%= f.label 'Сообщение' %>

      <%= f.text_area :message %>

      <%= f.submit 'Сделать заказ' %>

<% end %>

Add view new to orders

Add view new to orders


<% content_for :head, '<title>' + @object.title + '</title>' %>

<%= @object.title %>

<%= @object.content %>

<% content_for :head, "<title>#{Natto.site_title} - #{@object.title}</title>" -%>
<% content_for :page_title, @object.title -%>
<%= @object.content %>

Set up content_for with head title and h1 title.


Edit your account

    <%= render 'form' %>

Create edit template for users

Create edit template for users


<%= notice %>

<%= @advancement.user.name %>'s Advancements

         <% @advancement.ranks.each do |rank| %>

<%= link_to rank.rank, rank_path(rank.id) %>

         <% end %>

      <%= link_to 'Edit', edit_advancement_path(@advancement) %> |
      <%= link_to 'Back', advancements_path %>

<%= notice %>

<%= @advancement.user.name %>'s Advancements

         <% @advancement.ranks.each do |rank| %>

<%= link_to rank.rank, rank_path(rank.id) %>

         <% end %>

<%= link_to 'Edit Advancements', edit_advancement_path(@advancement) %>

<%= link_to 'Back to All Advancements', advancements_path %>

<%= link_to 'Back to Homepage', root_path %>

Add homepage link to show page

Add homepage link to show page


  <%= link_to dataset.name, dataset.gh_pages_url %>
  <%= link_to("Edit", edit_dataset_path(dataset.id), class: "btn btn-xs btn-warning") if request.env['PATH_INFO'] == "/dashboard" %>

Add link to edit file

Add link to edit file


# Buildkite Agent Prioritization

By setting an agent’s priority value you are able to designate which priority it gets for being assigned build jobs to run. Higher priority agents are assigned work first, with the last priority being given to agents with the default value of `null`.

To set an agent’s priority you can set it in the configuration file:

```
priority=9
```

or with the `--priority` command line flag:

```
buildkite-agent start --priority 9
```

or with the `BUILDKITE_AGENT_PRIORITY` an environment variable:

```
env BUILDKITE_AGENT_PRIORITY=9 buildkite-agent start
```

# Buildkite Agent Prioritization

By setting an Agent’s priority value you are able to designate which priority it gets for being assigned build jobs to run. Higher priority Agents are assigned work first, with the last priority being given to Agents with the default value of `null`.

To set an Agent’s priority you can set it in the configuration file:

```
priority=9
```

or with the `--priority` command line flag:

```
buildkite-agent start --priority 9
```

or with the `BUILDKITE_AGENT_PRIORITY` an environment variable:

```
env BUILDKITE_AGENT_PRIORITY=9 buildkite-agent start
```

## Load balancing

You can use the Agent priority value to load balance jobs across Agents.

For example if you have 3 Agents on a machine, you would set one Agent to `priority=3`, one to `priority=2`, and one to `priority=1`.

Buildkite will then automatically load balance the jobs across the Agents, as it will assign jobs to the high priority agents first.

Add load balancing section, capitalise Agent


# /etc/cron.d/fr2_data: crontab fragment for
# retrieving the xml data, etc from the gpo
0,5,10,15,20,25,30,35,40,45,50,55 8-23 	* * 1-5	<%=@run_user%>	cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH data:daily >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log  2>&1

# /etc/cron.d/fr2_data: crontab fragment for
# retrieving the xml data, etc from the gpo

# Import today's content
#     retries every 5 minutes from 4AM EDT to 2PM
0,5,10,15,20,25,30,35,40,45,50,55 8-18 	* * 1-5	<%=@run_user%>	cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH data:daily >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log  2>&1

# Find the matching regulations.gov URL for articles
#     runs every 30 minutes from 7AM EDT until 5PM
0,30 11-21 	* * 1-5	<%=@run_user%>	cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH content:entries:import:regulations_dot_gov:only_missing >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log  2>&1

# Expire pages warning of late content at 9AM
#     runs a 9AM EDT
0 13 	* * 1-5	<%=@run_user%>	cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH varnish:expire:pages_warning_of_late_content >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log  2>&1

Refactor database.yml into a single file based on rails environment


<% cache 'header' do %>
  <head>
    <title>Feedbunch</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <%= favicon_link_tag '/favicon.ico' %>
<% end %>
    <%= stylesheet_link_tag    'application', :media => 'all' %>

    <link rel="icon" sizes="192x192" href="<%= image_path 'feed192x192.png' %>">
    <link rel="manifest" href="<%= page_path 'manifest.json' %>">
    <meta name="theme-color" content="#FFA500">
    <%= csrf_meta_tags %>
  </head>

<% cache 'header' do %>
  <head>
    <title>Feedbunch</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
<% end %>
    <%= stylesheet_link_tag    'application', :media => 'all' %>

    <link rel="icon" sizes="192x192" href="<%= image_path 'feed192x192.png' %>">
    <link rel="manifest" href="<%= page_path 'manifest.json' %>">
    <meta name="theme-color" content="#FFA500">
    <%= csrf_meta_tags %>
    <%# favicon must be the last element with rel="icon", otherwise favico.js won't work %>
    <%= favicon_link_tag '/favicon.ico' %>
  </head>

Fix displaying the number of unread entries in the favicon for Chrome.

Currently favico.js has a bug which only updates the last element with rel="icon" if there are several in the page head. This maeans that the favicon must be last in the head, particularly it must appear after the 192x192 icon (used in the mobile manifest).

Related to this favico.js bug, might become unnecessary when it is fixed:

  https://github.com/ejci/favico.js/issues/85


<% if read_only || cannot?(:update_core, @question) %>

  <%= render_tags(form.object.tags.order(:name)) %>

<% else %>

  <%= text_field(:question, :tag_ids, {class: 'text form-control'}) %>

<% end %>

<% if read_only || cannot?(:update_tags, @question) %>

  <%= render_tags(form.object.tags.order(:name)) %>

<% else %>

  <%= text_field(:question, :tag_ids, {class: 'text form-control'}) %>

<% end %>

Make tags editable on questions with answers


<% content_for :title, 'Apply for Rails Girls Kraków' %>

        Rails Girls Kraków
        Get excited and learn to build the web

 <%= footer_presenter.event_dates_with_year %>

 KPT, Podole 60, Kraków

railsgirls.com/krakow

  <%= render 'form', { submission: submission, answers: answers, show_errors: show_errors, footer_presenter: footer_presenter } %>

Fix spaces in info box

Fix spaces in info box


<!DOCTYPE html>

    <title>AMEElabs: Ask AMEE</title>
    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "application" %>
    <%= csrf_meta_tags %>

    <%= render :partial => 'layouts/ameelabs_header' %>

        <%= yield %>

        <%= link_to image_tag('PoweredByAMEE.png'), 'http://www.amee.com' %>

<!DOCTYPE html>

    <title>AMEE Labs: Ask AMEE</title>
    <%= stylesheet_link_tag    "application" %>
    <%= javascript_include_tag "application" %>
    <%= csrf_meta_tags %>

    <%= render :partial => 'layouts/ameelabs_header' %>

        <%= yield %>

        <%= link_to image_tag('PoweredByAMEE.png'), 'http://www.amee.com' %>

Update title with new AMEE labs naming.

Update title with new AMEE labs naming.


<% cache [locale_and_user_status, @current_order, commentable_cache_key(@proposal), @comment_tree.comments, @comment_tree.comment_authors, @proposal.comments_count, @comment_flags] do %>

          <%= t("proposals.show.comments_title") %>
          <%= render partial: 'comments/summary', locals: { commentable: @proposal } %>

        <%= render 'shared/wide_order_selector', i18n_namespace: "comments" %>

        <% unless @proposal.closed? %>
          <% if user_signed_in? %>
            <%= render 'comments/form', {commentable: @proposal, parent_id: nil, toggeable: false} %>
          <% else %>

              <%= t("proposals.show.login_to_comment",
                signin: link_to(t("votes.signin"), new_user_session_path),
                signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>

          <% end %>
        <% end %>

        <% @comment_tree.root_comments.each do |comment| %>
          <%= render 'comments/comment', comment: comment  %>
        <% end %>
        <%= paginate @comment_tree.root_comments %>

<% end %>

<% cache [locale_and_user_status, @current_order, commentable_cache_key(@proposal), @comment_tree.comments, @comment_tree.comment_authors, @proposal.comments_count, @comment_flags, @proposal.closed?] do %>

          <%= t("proposals.show.comments_title") %>
          <%= render partial: 'comments/summary', locals: { commentable: @proposal } %>

        <%= render 'shared/wide_order_selector', i18n_namespace: "comments" %>

        <% unless @proposal.closed? %>
          <% if user_signed_in? %>
            <%= render 'comments/form', {commentable: @proposal, parent_id: nil, toggeable: false} %>
          <% else %>

              <%= t("proposals.show.login_to_comment",
                signin: link_to(t("votes.signin"), new_user_session_path),
                signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>

          <% end %>
        <% end %>

        <% @comment_tree.root_comments.each do |comment| %>
          <%= render 'comments/comment', comment: comment  %>
        <% end %>
        <%= paginate @comment_tree.root_comments %>

<% end %>

Fix proposal comments cache key

Fix proposal comments cache key


<%= back_link_to admin_budgets_path %>

<%= t("admin.budgets.edit.title") %>

<%= render '/admin/budgets/form' %>

<%= back_link_to admin_budgets_path %>

<%= button_to t("admin.budgets.edit.delete"), admin_budget_path(@budget), method: :delete, class: "button hollow alert float-right small" %>

<%= t("admin.budgets.edit.title") %>

<%= render '/admin/budgets/form' %>

Add destroy budget button to admin budget edit view


Resources

CRA-W and Anita Borg Institute Wikipedia Project

Art+Feminism

WikiProject Women's History

Wikipedia:Your first article

Please reach out to suggest additions to these resources.

Add real email address to Resources contact link.


<% content_for :javascript_module_link do %>
  <%= javascript_packs_with_chunks_tag 'plans', 'data-turbolinks-track': true %>
<% end %>

<%= render template: "layouts/application" %>

<% content_for :javascript_module_link do %>
  <%= javascript_packs_with_chunks_tag 'plans', 'data-turbolinks-track': true %>
<% end %>

<% content_for :stylesheet_link do %>
  <%= stylesheet_pack_tag 'plans', 'data-turbolinks-track': true %>
<% end %>

<%= render template: "layouts/application" %>

Add packed CSS of module plans

Add packed CSS of module plans


<% @title = "Setlists" %>

<%= render "searches/form" %>

Latest setlists

  <%= render @latest_shows %>

    <%= link_to "More shows →".html_safe, shows_path %>

  <% if @featured_show.present? %>

Featured show

<%= link_to @featured_show.when, @featured_show %>

      <%= render @featured_show.venue %>

      <%= simple_format @featured_show.embeds, {}, {sanitize: false} %>

  <% end %>

Freshly taped

  <% @taped_shows.each do |show| %>

<%= link_to show.when, show %>

      <%= render show.venue %>

      <%= simple_format show.embeds, {}, {sanitize: false} %>

  <% end %>

    <%= link_to "More videos →".html_safe, "http://youtube.com/AqueousBand" %>

<% @title = "Setlists" %>

<%= render "searches/form" %>

Latest setlists

  <%= render @latest_shows %>

    <%= link_to "More shows →".html_safe, shows_path %>

  <% if @featured_show.present? %>

Featured show

<%= link_to @featured_show.when, @featured_show %>

      <%= render @featured_show.venue %>

      <%= simple_format @featured_show.embeds, {}, {sanitize: false} %>

  <% end %>

    <%= link_to "More videos →".html_safe, "http://youtube.com/AqueousBand" %>

Hide freshly taped for now

Hide freshly taped for now


					Event
					Date
					Update
					Notes

				<% @events.each do |e| %>
				<tr data-action-path = '<%= inventory_asset_event_path(@asset, e) %>'>
					<%= e.asset_event_type.name %>
					<%= format_as_date(e.event_date) %>
					<%= e.get_update %>
					<%= e.comments.html_safe %>

				<% end %>

					Event
					Date
					Update
					Notes

				<% @events.each do |e| %>
				<tr data-action-path = '<%= inventory_asset_event_path(@asset, e) %>'>
					<%= e.asset_event_type.name %>
					<%= format_as_date(e.event_date) %>
					<%= e.get_update %>
					<%= e.comments %>

				<% end %>

Remove converter in case of null issues

Remove converter in case of null issues


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

<%= product.name %>

<%= product.pitch %>

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

            <a href="<%= user_path(user) %>">
              <%= avatar_tag(user, 18) %>

        <% end %>

          + <%= product.followers.count %>

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

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

<%= product.name %>

<%= product.pitch %>

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

            <%= avatar_tag(user, 18) %>

        <% end %>

          + <%= product.followers.count %>

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

Revert "Link mini-avatars in feature-flagged interest view to users' profiles"

This reverts commit 4cb45f18509c0530688c5512f06464ee14de2e86.
The layout was breaking because the chips/greenlit partial is already
inside an anchor tag in the global (non-feature-flagged) view


Test results

<%- @test_results.each do |photographer, results| -%>

<%= photographer.fullname %>

<%- results.each do |test_name, result| -%>

<%= test_name %>: <%= result %>

<%- end -%>

<%- end -%>

Test results

<%- @test_results.each do |photographer, results| -%>
<div class="<%= results.values.all? ? 'alert-success' : 'alert-danger' -%>">

<%= photographer.fullname %>

<%- results.each do |test_name, result| -%>
    <li class="<%= result ? 'alert-success' : 'alert-danger' -%>"><%= test_name %>: <%= result %>

<%- end -%>

<%- end -%>

Add some basic styling for test output

Add some basic styling for test output


<%= link_to "Home", root_path %>

    <% if user_signed_in? %>

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

<%= link_to "Languages", languages_path %>

<%= link_to "Courses", courses_path %>

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

    <% else %>

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

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

    <% end %>

<%= link_to "Home", root_path %>

    <% if user_signed_in? %>

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

<%= link_to "Languages", languages_path %>

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

    <% else %>

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

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

    <% end %>

Remove course link from navigation partial.


<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
  <title>Curate-Science</title>
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
<!--
  <link rel="stylesheet" type="text/css" href="assets/bootstrap.min.css" />
  <link rel="stylesheet" type="text/css" href="assets/all.css" media="screen" />
  <link rel="stylesheet" type="text/css" href="assets/style.css" />
  <link rel="icon" href="assets/favicon.ico" type="image/x-icon" />
!-->
</head>

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

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
  <meta name="google-site-verification" content="7CrO9Y_velY8TjF6s8CWKB1s2S8TGRdQ8NoZ-gHPDE0" />
  <title>Curate-Science</title>
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
<!--
  <link rel="stylesheet" type="text/css" href="assets/bootstrap.min.css" />
  <link rel="stylesheet" type="text/css" href="assets/all.css" media="screen" />
  <link rel="stylesheet" type="text/css" href="assets/style.css" />
  <link rel="icon" href="assets/favicon.ico" type="image/x-icon" />
!-->
</head>

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

Add google site verification so that we can set up a google org


<%= javascript_include_tag 'prototype' %>

Current Twitter Trends

Make sure the page doesn't crash when loading if we get a duff AJAX response.


  Drag your habits to change their order.

<ul id="sortable_habits" data-update-url="<%= sort_habits_url %>">
  <% @habits.each do |habit| %>
    <%= content_tag_for :li, habit do %>
      [drag]
      <%= link_to habit.title, habit %>
    <% end %>
  <% end %>

<%= link_to "Dashboard", habits_path %>

Remove link that is now in the footer

Remove link that is now in the footer


<%# Non-link tag that stands for skipped pages...
  - available local variables
    current_page:  a page object for the currently displayed page
    total_pages:   total number of pages
    per_page:      number of items to fetch per page
    remote:        data-remote
-%>

<%= t('views.pagination.truncate').html_safe %>

Fix styling of "..." in pagination controls