<%= @business.name %>

Neighborhood: <%= @details.address_components[2]["long_name"] %>

        <%= @details.formatted_address.split(',')[0] %>

        <%= @details.formatted_address.split(',')[1] %>, <%= @details.formatted_address.split(',')[2] %>

<%= @details.formatted_phone_number %>

<%= link_to "Website", @details.website, target: "_blank", rel: "nofollow" %>

          <% @details.opening_hours["weekday_text"].each do |weekday_hours| %>

<%= weekday_hours  %>

          <% end %>

        <img src="<%= @details.photos[0].fetch_url(150) %>" >

<%= @business.name %>

Neighborhood: <%= @details.address_components[2]["long_name"] %>

        <%= @details.formatted_address.split(',')[0] %>

        <%= @details.formatted_address.split(',')[1] %>, <%= @details.formatted_address.split(',')[2] %>

<%= @details.formatted_phone_number %>

      <% if @details.website == nil %>
      <% else %>

<%= link_to "Website", @details.website, target: "_blank", rel: "nofollow" %>

      <% end %>

          <% if @details.opening_hours == nil %>
          <% else %>
            <% @details.opening_hours["weekday_text"].each do |weekday_hours| %>

<%= weekday_hours  %>

            <% end %>
          <% end %>

        <% if @details.photos[0] == nil %>
        <% else %>
          <img src="<%= @details.photos[0].fetch_url(150) %>" >
        <% end %>

Add conditional logic to business show page to handle nil values in details.


<!doctype html>
<!--[if lt IE 7 ]> <html class="ie ie6" lang="<%= I18n.locale %>"> <![endif]-->
  <!--[if IE 7 ]>    <html class="ie ie7" lang="<%= I18n.locale %>"> <![endif]-->
    <!--[if IE 8 ]>    <html class="ie ie8" lang="<%= I18n.locale %>"> <![endif]-->
      <!--[if IE 9 ]>    <html class="ie ie9" lang="<%= I18n.locale %>"> <![endif]-->
        <!--[if gt IE 9]><!--><html lang="<%= I18n.locale %>"><!--<![endif]-->
          <head data-hook="inside_head">
            <%= render :partial => 'spree/shared/head' %>
          </head>
          <body class="<%= body_class %>" id="<%= @body_id || 'default' %>" data-hook="body">
            <%= render :partial => 'spree/shared/header' %>
            <div  id="mainconteiner">
              <%= breadcrumbs(@taxon) %>
              <%= render :partial => 'spree/shared/sidebar' if content_for? :sidebar %>
              <%= flash_messages %>
              <%= yield %>
              <%= yield :templates %>
            </div>
            <%= render :partial => 'spree/shared/footer' %>
            <%= render :partial => 'spree/shared/google_analytics' %>
            <script>
              Spree.api_key = <%= raw(try_spree_current_user.try(:spree_api_key).to_s.inspect) %>;
            </script>
          </body>
        </html>

<!doctype html>

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

            <%= render :partial => 'spree/shared/head' %>

          <body class="<%= body_class %>" id="<%= @body_id || 'default' %>" data-hook="body">
            <%= render :partial => 'spree/shared/header' %>

              <%= breadcrumbs(@taxon) %>
              <%= render :partial => 'spree/shared/sidebar' if content_for? :sidebar %>

              <%= flash_messages %>

              <%= yield %>
              <%= yield :templates %>

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

Delete one div wraper from spree layout

Delete one div wraper from spree layout


<!DOCTYPE html>

    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title><%= @title %></title>
    <link rel="stylesheet" href="imagery.css" type="text/css" media="all" />
    <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />

Add CSS to not print leaflet-control

Add CSS to not print leaflet-control


<% vm_instance = metric_observation.virtual_machine_instance %>
<% benchmark_execution = vm_instance.benchmark_execution %>

  <%= link_to formatted_time(benchmark_execution.benchmark_start_time), benchmark_execution %>
  <%= vm_instance.provider_name %>
  <%= vm_instance.provider_instance_id %>
  <%= vm_instance.role %>
  <%= metric_observation.time %>
  <%= metric_observation.value %>
  <%= link_to delete_icon, metric_observation, method: :delete, class: 'delete' %>

<% vm_instance = metric_observation.virtual_machine_instance %>
<% benchmark_execution = vm_instance.benchmark_execution # MAY be the cause of the metrics link bug ?!? %>

  <%= link_to formatted_time(benchmark_execution.benchmark_start_time), benchmark_execution %>
  <%= vm_instance.provider_name %>
  <%= vm_instance.provider_instance_id %>
  <%= vm_instance.role %>
  <%= metric_observation.time %>
  <%= metric_observation.value %>
  <%= link_to delete_icon, metric_observation, method: :delete, class: 'delete' %>

Add comment about potential metric link bug issue


<div id="page-tab-<%= page_tab.id || 'new' %>" class='page-tab'>

  <% if page_tab.page_id %>

      <%= page_tab.name %>
      <%= button_to_function_without_text 'edit', t('fb_app_plugin.views.myprofile.catalog.see_page'), "jQuery('#edit_tab_"+page_tab.id.to_s+"').toggle()"  %>
      <%# button nil, t('fb_app_plugin.views.myprofile.catalog.see_page'), "https://facebook.com/#{page_tab.page_id}/app_#{FbAppPlugin.page_tab_app_credentials[:id]}", target: '_blank'  %>
      <%# button nil, t('fb_app_plugin.views.myprofile.catalog.see_page'), "https://facebook.com/#{page_tab.page_id}", target: '_blank'  %>

  <% else %>
    <%= button_to_function 'add', t('fb_app_plugin.views.myprofile.catalogs.new'), "jQuery(this).toggle();jQuery('#add_tab').toggle()" %>
  <% end %>

  <%= render 'fb_app_plugin_page_tab/configure_form', page_tab: page_tab, signed_request: nil %>

<div id="page-tab-<%= page_tab.id || 'new' %>" class='page-tab'>

  <% if page_tab.page_id %>

      <%= page_tab.name %>
      <%= button_to_function_without_text 'edit', t('fb_app_plugin.views.myprofile.catalog.see_page'), "jQuery('#edit_tab_"+page_tab.id.to_s+"').toggle()", class: 'edit-tab-button'  %>
      <%= button_to_function_without_text 'remove', t('fb_app_plugin.views.myprofile.catalog.see_page'), "", class: 'edit-tab-button'  %>
      <%# button nil, t('fb_app_plugin.views.myprofile.catalog.see_page'), "https://facebook.com/#{page_tab.page_id}/app_#{FbAppPlugin.page_tab_app_credentials[:id]}", target: '_blank'  %>
      <%# button nil, t('fb_app_plugin.views.myprofile.catalog.see_page'), "https://facebook.com/#{page_tab.page_id}", target: '_blank'  %>

  <% else %>
    <%= button_to_function 'add', t('fb_app_plugin.views.myprofile.catalogs.new'), "jQuery(this).toggle();jQuery('#add_tab').toggle()" %>
  <% end %>

  <%= render 'fb_app_plugin_page_tab/configure_form', page_tab: page_tab, signed_request: nil %>

Allow user to remove a catalog

Allow user to remove a catalog


Add a new crop!

      <%= form_for @crop do |f| %>
      <%= f.label :name, 'Crop Name' %>
      <%= f.text_field :name %>

      <%= f.label :binomial_name, 'Binomial Name' %>
      <%= f.text_field :binomial_name %>

      <%= f.label :description, 'Description' %>
      <%= f.text_area :description %>

      <%= f.label :sun_requirements, 'Sun Requirements' %>
      <%= f.text_field :sun_requirements %>

      <%= f.label :sowing_method, 'Sowing Method' %>
      <%= f.text_field :sowing_method %>

      <%= f.label :spread, 'Spread' %>
      <%= f.text_field :spread %>

      <%= f.label :days_to_maturity, 'Days to Maturity' %>
      <%= f.text_field :days_to_maturity %>

      <%= f.label :row_spacing, 'Row Spacing' %>
      <%= f.text_field :row_spacing %>

      <%= f.label :height, 'Height' %>
      <%= f.text_field :height %>

      <%= f.submit 'Save Crop and Start Creating Guide!', :class => 'button', :disable_with => 'Saving...' %>
    <% end %>

Add a new crop!

      <%= form_for @crop do |f| %>
      <%= f.label :name, 'Crop Name' %>
      <%= f.text_field :name %>

      <%= f.label :binomial_name, 'Binomial Name' %>
      <%= f.text_field :binomial_name %>

      <%= f.label :description, 'Description' %>
      <%= f.text_area :description %>

      <%= f.label :sun_requirements, 'Sun Requirements' %>
      <%= f.text_field :sun_requirements %>

      <%= f.label :sowing_method, 'Sowing Method' %>
      <%= f.text_field :sowing_method %>

      <%= f.label :spread, 'Spread' %>
      <%= f.text_field :spread %>

      <%= f.label :row_spacing, 'Row Spacing' %>
      <%= f.text_field :row_spacing %>

      <%= f.label :height, 'Height' %>
      <%= f.text_field :height %>

      <%= f.submit 'Save Crop and Start Creating Guide!', :class => 'button', :disable_with => 'Saving...' %>
    <% end %>

Remove days to maturity from new crop

Remove days to maturity from new crop


<% @title = "Upload Mocks" %>

<% content_for :head do %>
  <%= stylesheet_link_tag "shared/form",
                          "mocks/new" %>
  <%= javascript_include_tag "plugins/jquery.ui.widget",
  			          		   	   "plugins/jquery.iframe-transport",
  						               "plugins/jquery.fileupload",
                             "mocks/new" %>
<% end %>

  <% form_for :mock, :url => mocks_path, :html => {:multipart => true,
      :id => "mock_creation_form"} do |f| %>
    <%= f.hidden_field :path, :value => "" %>
    <%= f.hidden_field :author_id, :value => viewer.id %>
    <input type="file" name="images[]" id='file' multiple
      style="display: none" />
    <%= f.hidden_field :mock_list_id, :value => params[:mock_list_id] %>
    <%= hidden_field_tag :project_id, params[:project_id] %>

Drag & Drop Your Files to Upload

  <% end %>

	<% if params[:project_id] %>
    <%= link_to "Back to Project", project_path(params[:project_id]) %>
	<% else %>
		<%= link_to "Back to Home", home_path %>
	<% end %>

<% @title = "Upload Mocks" %>

<% content_for :head do %>
  <%= stylesheet_link_tag "shared/form",
                          "mocks/new" %>
  <%= javascript_include_tag "plugins/jquery.ui.widget",
  			          		   	   "plugins/jquery.iframe-transport",
  						               "plugins/jquery.fileupload",
                             "mocks/new" %>
<% end %>

  <% form_for :mock, :url => mocks_path, :html => {:multipart => true,
      :id => "mock_creation_form"} do |f| %>
    <%= f.hidden_field :path, :value => "" %>
    <%= f.hidden_field :author_id, :value => viewer.id %>
    <input type="file" name="images[]" id='file' multiple
      style="display: none" />
    <%= f.hidden_field :mock_list_id, :value => params[:mock_list_id] %>
    <%= hidden_field_tag :project_id, params[:project_id] %>

Drag & Drop Your Files to Upload

  <% end %>

	<% if params[:project_id] %>
    <%= link_to "Back to Project", project_path(params[:project_id]) %>
	<% end %>

Remove "Back to Home" link from mock upload form


<% version = dep[:version] %>
<% project = version.project %>
<% requirements = dep[:requirements] %>

  <%= link_to project, version_path(version.to_param) %>
  -
  <%= link_to version.number, version_path(version.to_param), class: 'tip', title: 'Resolved version' %>
  -

    <%= requirements %>
    <%= '-' if requirements.present? %>
    <%= project.normalize_licenses.join(', ') %>

  <% if dep[:dependency] %>
    <%= render 'dependencies/flags', dependency: dep[:dependency] %>
  <% end %>
  <% if dep[:dependencies] && dep[:dependencies].any? %>

      <% dep[:dependencies].each do |dependency| %>

          <% if dependency.is_a?(Hash) && dependency[:version].is_a?(Version) %>
            <%= render 'dep', dep: dependency %>
          <% end %>

      <% end %>

  <% end %>

<% version = dep[:version] %>
<% project = version.project %>
<% requirements = dep[:requirements] %>

  <%= link_to project, version_path(version.to_param) %>
  -
  <%= link_to version.number, version_path(version.to_param), class: 'tip', title: 'Resolved version' %>
  -

    <%= requirements %>
    <%= '-' if requirements.present? %>
    <%= project.normalize_licenses.join(', ') %>

  <% if dep[:dependency] %>
    <%#= render 'dependencies/flags', dependency: dep[:dependency] %>
  <% end %>
  <% if dep[:dependencies] && dep[:dependencies].any? %>

      <% dep[:dependencies].each do |dependency| %>

          <% if dependency.is_a?(Hash) && dependency[:version].is_a?(Version) %>
            <%= render 'dep', dep: dependency %>
          <% end %>

      <% end %>

  <% end %>

Disable dependency flags on tree view for now


嗨 <%= @leave_application.user.name %>,
你的 <%= l @leave_application.start_time, format: :long%> 的 <%= LeaveApplication.human_enum_value(:leave_type, @leave_application.leave_type) %> 已經被 <%= LeaveApplication.human_enum_value(:status, @leave_application.status) %> 囉！
<%= link_to "點此連結查看詳情:)", leave_application_url(nil, @leave_application)" %>

嗨 <%= @leave_application.user.name %>,
你的 <%= l @leave_application.start_time, format: :long%> 的 <%= LeaveApplication.human_enum_value(:leave_type, @leave_application.leave_type) %> 已經被 <%= LeaveApplication.human_enum_value(:status, @leave_application.status) %> 囉！
<%= link_to "點此連結查看詳情:)", leave_application_url(nil, @leave_application) %>

Fix invalid syntex in reply leave application


Add New Post

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

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

Add New Post

	<form action="/new" method="POST"role="form">
		<textarea class="form-control" rows="6"></textarea>

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

Add action method atribute to form

Add action method atribute to form


<header class="admin-nav-header">
  <%= link_to spree.admin_path do %>
    <%= image_tag(Spree::Config[:admin_interface_logo]) %>
  <%- end %>
</header>

<header class="admin-nav-header">
  <%= link_to spree.admin_path, class: 'brand-link' do %>
    <%= image_tag(Spree::Config[:admin_interface_logo]) %>
  <%- end %>
</header>

Put back class on admin logo

Put back class on admin logo

  - available for replace by Deface overrides

  - as well pointed out by @tvdeyen


  <%= Spree.t(:posted_on) %> <%= l(blog_entry.published_at, :format => :blog_date) %>
  <% unless blog_entry.author.blank? %>
    <%= Spree.t(:by) %> <%= link_to blog_entry.author.nickname, blog_author_path(:author => blog_entry.author.nickname), class: "blog_entry_author" %>
  <% end %>.
  <% unless blog_entry.category_list.empty? %>
    <%= Spree.t(:posted_in) %> <%= blog_entry_category_list_html blog_entry %>.
  <% end %>
  <% unless blog_entry.tag_list.empty? %>
    <%= Spree.t(:tagged) %> <%= blog_entry_tag_list_html blog_entry %>.
  <% end %>

  <%= Spree.t(:posted_on) %> <%= l(blog_entry.published_at, :format => :blog_date) %>
  <% unless blog_entry.author.blank? or blog_entry.author.nickname.blank? %>
    <%= Spree.t(:by) %> <%= link_to blog_entry.author.nickname, blog_author_path(:author => blog_entry.author.nickname), class: "blog_entry_author" %>
  <% end %>.
  <% unless blog_entry.category_list.empty? %>
    <%= Spree.t(:posted_in) %> <%= blog_entry_category_list_html blog_entry %>.
  <% end %>
  <% unless blog_entry.tag_list.empty? %>
    <%= Spree.t(:tagged) %> <%= blog_entry_tag_list_html blog_entry %>.
  <% end %>

Fix error when author name is blank.

Fix error when author name is blank.


<%= render partial: "layouts/sidebar", locals: {cur_step: 2} %>

Here's the permit you need to apply for

Permits Required

GENERAL

Required for all residential additions project. Carries specific construction and material requirements. Repairs can be done by homeowner or contractor.

Application cost: $26

Required documents:
Site plan, permit application

Approximate time:
2 weeks

<%= link_to "apply", next_wizard_path, class: "btn-fill"%>

<%= render partial: "layouts/sidebar", locals: {cur_step: 2} %>

This is the permit you need to apply for

Permits Required

GENERAL

Required for all residential additions project. Carries specific construction and material requirements. Repairs can be done by homeowner or contractor.

Application cost: $26

Required documents:
Site plan, permit application

Approximate time:
2 weeks

<%= link_to "apply", next_wizard_path, class: "btn-fill"%>

Change header on display_permits from Here's the permit to This is the permit


Generate a new Meal Plan

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

			<%= f.label :name, "Meal Plan Name" %>
			<%= f.text_filed :name %>

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

			<%= f.label :time_frame, "Time Frame" %>
			<%= select("plan","time_frame", ["Day", "Week"], {include_blank: true}) %>

		<%= f.hidden_field(:user_id, {value: current_user.id} ) %>

			<%= f.submit "Create Plan", {class: "btn btn-default"} %>

	<% end %>

Generate a new Meal Plan

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

			<%= f.label :plan_name, "Meal Plan Name" %>
			<%= f.text_field :plan_name %>

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

			<%= f.label :time_frame, "Time Frame" %>
			<%= select("plan","time_frame", ["Day", "Week"], {include_blank: true}) %>

		<%= f.hidden_field(:user_id, {value: current_user.id} ) %>

			<%= f.submit "Create Plan", {class: "btn btn-default"} %>

	<% end %>

		<% if flash[:notice] %>
			<%= flash[:notice].each do |error| %>

<%= error %>

			<% end %>
		<% end %>

Fix typo in plan form

Fix typo in plan form


        <li class="<%= 'selected' if params[:controller] == 'request' and ['new', 'select_authority'].include?(params[:action]) %>"><%= link_to _("Make a request"), select_authority_url, :id => 'make-request-link' %>

        <li class="<%= 'selected' if params[:controller] == 'request' and !['new', 'select_authority'].include?(params[:action]) %>"><%= link_to _("View requests"), request_list_all_url %>

        <li class="<%= 'selected' if params[:controller] == 'public_body' %>"><%= link_to _("View authorities"), list_public_bodies_default_path %>

        <li class="<%= 'selected' if params[:controller] == 'general' and params[:action] == 'blog' %>"><%= link_to _("Read blog"), blog_url %>

        <li class="<%= 'selected' if params[:controller] == 'help' %>"><%= link_to _("Help"), help_about_url %>

        <li class="<%= 'selected' if params[:controller] == 'request' and ['new', 'select_authority'].include?(params[:action]) %>"><%= link_to _("Make a request"), select_authority_url, :id => 'make-request-link' %>

        <li class="<%= 'selected' if params[:controller] == 'request' and !['new', 'select_authority'].include?(params[:action]) %>"><%= link_to _("View requests"), request_list_all_url %>

        <li class="<%= 'selected' if params[:controller] == 'public_body' %>"><%= link_to _("View authorities"), list_public_bodies_default_path %>

        <li class="<%= 'selected' if params[:controller] == 'general' and params[:action] == 'blog' %>"><%= link_to _("Read blog"), "https://www.openaustraliafoundation.org.au/category/projects/righttoknow-org-au/" %>

        <li class="<%= 'selected' if params[:controller] == 'help' %>"><%= link_to _("Help"), help_about_url %>

Change blog link to go directly to OAF site

We're doing this because the blog feed is broken, see #305. This
should be reverted when we fix #305 by fixing #311.


define command {
    command_name check_aws_iam_key_age
    command_line /usr/lib/nagios/plugins/check_aws_aws_iam_key_age --key <%= @access_key %> --secret <%= @secret_key %> --region <%= @region %> --days <%= @max_aws_iam_key_age %>
}

define command {
    command_name check_aws_iam_key_age
    command_line /usr/lib/nagios/plugins/check_aws_iam_key_age --key <%= @access_key %> --secret <%= @secret_key %> --region <%= @region %> --days <%= @max_aws_iam_key_age %>
}

Remove duplicate aws in check_aws_iam_key_age command


<div class="card-block col-sm-6" data-free="<%= museum.is_free %>">
	<%= link_to image_tag(museum.photos, class:"img card-img"),museum_path(museum.id) %>

<%= link_to museum.name, museum_path(museum.id) %>

<%= link_to museum.formatted_address, museum.google_address_link, target: "_blank" %>

			<% if museum.opening_hours.empty? %>
			  No Hours Available

			<% else %>
			  Hours today<%= museum.hours_today %>

			<% end %>
			<% if museum.is_free %>
			  Suggested donation
			<% else %>

Entry fee

			<% end %>

<%= render partial: "./favorite", locals: {museum: museum, favorite: favorite}%>

<div class="card-block col-sm-6" data-free="<%= museum.is_free %>">
	<%= link_to image_tag(museum.photo, class:"img card-img"),museum_path(museum.id) %>

<%= link_to museum.name, museum_path(museum.id) %>

<%= link_to museum.formatted_address, museum.google_address_link, target: "_blank" %>

			<% if museum.opening_hours.empty? %>
			  No Hours Available

			<% else %>
			  Hours today<%= museum.hours_today %>

			<% end %>
			<% if museum.is_free %>
			  Suggested donation
			<% else %>

Entry fee

			<% end %>

<%= render partial: "./favorite", locals: {museum: museum, favorite: favorite}%>

Update museum card to reference image as photo instead of photos


Contact us

<%= form_for :contact, url: '/contacts' do |f| %>

		<%= f.label :email %>

		<%= f.text_field :email %>

		<%= f.label :message %>

		<%= f.text_area :message %>

		<%= f.submit %>

<% end %>

Contact us

<%= form_for :contact, url: contacts_path do |f| %>

		<%= f.label :email %>

		<%= f.text_field :email %>

		<%= f.label :message %>

		<%= f.text_area :message %>

		<%= f.submit %>

<% end %>

Change url: from '/contacts' to contacts_path


retrieve = function() {
  window.on_loading = true
  $.getScript("<%= messages_path(max_id: @messages.first.id, format: 'js') %>")
    .always(function() {
      window.on_loading = false
    });
};

(function () {
  var offset = $('#messages').scrollBottom();
  $('#messages').prepend('<%= j(render @messages) %>');
  $('#messages').scrollBottom(offset);
})();

retrieve = function() {
  window.on_loading = true
  $.getScript("<%= messages_path(max_id: @messages.first.id - 1, format: 'js') %>")
    .always(function() {
      window.on_loading = false
    });
};

(function () {
  var offset = $('#messages').scrollBottom();
  $('#messages').prepend('<%= j(render @messages) %>');
  $('#messages').scrollBottom(offset);
})();

Fix load offset of timeline

Fix load offset of timeline


<div <% if index == 0 %> id="additional_<%= key.to_s %>_clone" <% end %>>
        <% required = render_req && (index == 0) && f.object.required?(key) %>
        <% if f.object.class.multiple?(key) %>
          <%= f.text_area :description, name:"#{ActiveModel::Naming.singular(f.object)}[#{key.to_s}][]", id: "#{ActiveModel::Naming.singular(f.object)}_#{key.to_s}", value: v, class: "form-control", required: required %>
        <% else %>
          <%= f.text_area :description, name: "#{ActiveModel::Naming.singular(f.object)}[#{key.to_s}]", id: "#{ActiveModel::Naming.singular(f.object)}_#{key.to_s}", value: v, class: "form-control", required: required  %>
        <% end %>
        <%= render "records/edit_fields/suffix", key: key, index: index, single: f.object.unique?(key) %>

      <div id="additional_<%= key %>_elements">

<div <% if index == 0 %> id="additional_<%= key.to_s %>_clone" <% end %>>
        <% required = render_req && (index == 0) && f.object.required?(key) %>
        <% if f.object.class.multiple?(key) %>
          <%= f.text_area :description, name:"#{ActiveModel::Naming.singular(f.object)}[#{key.to_s}][]", id: "#{ActiveModel::Naming.singular(f.object)}_#{key.to_s}", value: v, class: "form-control", required: required %>
        <% else %>
          <%= f.text_area :description, name: "#{ActiveModel::Naming.singular(f.object)}[#{key.to_s}]", id: "#{ActiveModel::Naming.singular(f.object)}_#{key.to_s}", value: v, class: "form-control", required: required  %>
        <% end %>
        <%= render "records/edit_fields/suffix", key: key, index: index, single: f.object.class.unique?(key) %>

      <div id="additional_<%= key %>_elements">

Check for uniqueness of the field by using the existing class method


Add new post

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

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

Add new post

  <form action="/new" method="POST">
     <textarea class="form-control" rows="6"></textarea>

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

Add action, method to the form

Add action, method to the form


[puppet]
path            = <%= @puppet_folder %>
read only       = true
uid             = 0
gid             = 0
use chroot      = no

[plugins]
path            = /var/www/nailgun/plugins
read only       = true
uid             = 0
gid             = 0
use chroot      = no

Add fuel plugins folder to rsync

Add fuel plugins folder to rsync

implements: blueprint cinder-neutron-plugins-in-fuel
Change-Id: I1c48315f0944485f7379249abbe5802dc04e2b4e


Welcome to AddressBook

A basic Rails application serving as an example of the Respect for Rails plugin.

<%= link_to "REST API documentation", respect.doc_path %>

Add a link to the documentation on the homepage.


<%= t(:create_an_account) %>

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

Move header from partial to main template - don't want to use it in popup.


# Maximum buffer size in MB (minimum 3). Choose 0 to use 1% of host memory.
TotalBufferSizeMB: 0
# Maximum number of concurrent calls to AWS X-Ray to upload segment documents.
Concurrency: 8
# Send segments to AWS X-Ray service in a specific region
Region: "eu-west-1"
# Change the X-Ray service endpoint to which the daemon sends segment documents.
Endpoint: ""
Socket:
  # Change the address and port on which the daemon listens for UDP packets containing segment documents.
  UDPAddress: "127.0.0.1:2000"
  # Change the address and port on which the daemon listens for HTTP requests to proxy to AWS X-Ray.
  TCPAddress: "127.0.0.1:2000"
Logging:
  LogRotation: true
  # Change the log level, from most verbose to least: dev, debug, info, warn, error, prod (default).
  LogLevel: "prod"
  # Output logs to the specified file path.
  LogPath: ""
# Turn on local mode to skip EC2 instance metadata check.
LocalMode: true
# Amazon Resource Name (ARN) of the AWS resource running the daemon.
ResourceARN: ""
# Assume an IAM role to upload segments to a different account.
RoleARN: "<%= @aws_xray_daemon_traces_role_arn %>"
# Disable TLS certificate verification.
NoVerifySSL: false
# Upload segments to AWS X-Ray through a proxy.
ProxyAddress: ""
# Daemon configuration file format version.
Version: 2
# Add a newline to trigger a reload

Revert "Trigger reload of xray deamon"

Revert "Trigger reload of xray deamon"

This reverts commit ae09ae600499a61a59ac87ba0b6142895db030c5.


<% if race -%>

  <%- race.event.races.map(&:category).sort.each_row_with_index do |row, row_index| -%>

    <%= link_to row.first.name, bar_path(:category => row.first.friendly_param, :year => race.year, :discipline => Discipline[race.discipline]) %>

    <%- if row.size == 2 -%>
      <%= link_to row.last.name, bar_path(:category => row.last.friendly_param, :year => race.year, :discipline => Discipline[race.discipline]) %>
    <%- end -%>

  <%- end -%>

<% end -%>

<% if race -%>

  <%- race.event.races.map(&:category).sort.each_row_with_index do |row, row_index| -%>

      <%= link_to row.first.name, bar_path(race.year, Discipline[race.discipline].to_param, row.first.friendly_param) %>

    <%- if row.size == 2 -%>
      <%= link_to row.last.name, bar_path(:year => race.year, :discipline => Discipline[race.discipline].to_param, :category => row.last.friendly_param) %>
    <%- end -%>

  <%- end -%>

<% end -%>

Use simpler path method signature

Use simpler path method signature


<%= notice %>

<%= @trip.location %> Trip

Start date:

<%= @trip.start_date %>

End date:

<%= @trip.end_date %>

Upvote count:

<%= @trip.votes_for.count %>

Voted on by:

          <% @trip.votes_for.up.by_type(User).voters.each do |user| %>
            <%= user.email %>,
          <% end %>

  <%= link_to "Upvote Trip", like_trip_path(@trip), method: :put, class: "button tiny" %> |

  <%= link_to 'Invite participants', new_user_invitation_path(trip_id: @trip.id) %> |

  <%= link_to 'Edit', edit_trip_path(@trip) %> |
  <%= link_to 'Back', trips_path %>

<%= notice %>

<%= @trip.location %> Trip

Start date:

<%= @trip.start_date %>

End date:

<%= @trip.end_date %>

Upvote count:

<%= @trip.votes_for.count %>

Voted on by:

<%= @trip.votes_for.up.by_type(User).voters.map { |user| user.email }.join(", ") %>

  <%= link_to "Upvote Trip", like_trip_path(@trip), method: :put, class: "button tiny" %> |

  <%= link_to 'Invite participants', new_user_invitation_path(trip_id: @trip.id) %> |

  <%= link_to 'Edit', edit_trip_path(@trip) %> |
  <%= link_to 'Back', trips_path %>

Reformat 'voted on by' list

Reformat 'voted on by' list


<%= @user.screen %>

<% if @articles.present? %>

Recent Articles

  <% @articles.each do |article| %>
    <%= render "shared/article", article: article %>
  <% end %>
<% end %>

<% if @products.present? %>

Products

  <% @products.each do |product| %>
    <%= render "shared/product", product: product %>
  <% end %>
<% end %>

<% if @photos.present? %>

Recent Photos

    <% @photos.each do |photo| %>
      <%= render "shared/photo_thumbnail", photo: photo %>
    <% end %>

<% end %>

<%= @user.screen %>

<% if @articles.present? %>

Recent Articles

  <% @articles.each do |article| %>
    <%= render "shared/article", article: article %>
  <% end %>
<% end %>

<% if @products.present? %>

Recent Products

  <% @products.each do |product| %>
    <%= render "shared/product", product: product %>
  <% end %>
<% end %>

<% if @photos.present? %>

Recent Photos

    <% @photos.each do |photo| %>
      <%= render "shared/photo_thumbnail", photo: photo %>
    <% end %>

<% end %>

Change to 'Recent Products' for consistency


<%%= form_for :session, url: sessions_path do |f| %>

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

    <%%= f.label :password %>
    <%%= f.password_field :password %>

  <%%= submit_tag %>

  <%%= link_to("Forgot password?", forgot_password_path) %>
<%% end %>

<%%= form_for :session, url: sessions_path do |f| %>

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

    <%%= f.label :password %>
    <%%= f.password_field :password %>

  <%%= submit_tag 'Sign In' %>

  <%%= link_to("Forgot password?", forgot_password_path) %>
<%% end %>

Use descriptive label for sign in button


// = depend_on uploadcare/widget.css
<%=
  raw = Rails.application.assets.find_asset('uploadcare/widget.css').body
  YUI::CssCompressor.new.compress(raw)
%>

Recompile styles JST on source change

Recompile styles JST on source change


  <%= link_to 'How to create composite source images screencast', 'http://www.youtube.com/watch?v=pvuPnjccrgA' %>

<% unless current_user %>

      <%= link_to "Login", new_session_path %> to upload source images and create source sets.

<% end %>

<% unless @src_sets.empty? %>
    <%= render :partial => 'src_sets/src_sets' %>
<% end %>

<% if @gend_images %>
    <%= render :partial => 'gend_images/gend_images' %>
<% end %>

<% unless current_user %>
    <p>
      <%= link_to "Login", new_session_path %> to upload source images and create source sets.
    </p>
<% end %>

<% unless @src_sets.empty? %>
    <%= render :partial => 'src_sets/src_sets' %>
<% end %>

<% if @gend_images %>
    <%= render :partial => 'gend_images/gend_images' %>
<% end %>

Remove composite source image screencast link.


New Plant

    <%= button_to 'Back to my plants', [:plants] %>

        <%= form_for @plant, url: plants_path do |form| %>

          <% if form.object.errors.any? %>

              The following errors prevented saving:

                <% form.object.errors.full_messages.each do |error| %>

<%= error %>

                <% end %>

          <% end %>

            <%= form.label :nickname %>
            <%= form.text_field :nickname, class: 'form-control' %>

            <%= form.label :common_name %>
            <%= form.text_area :common_name, class: 'form-control' %>

            <%= form.label :light %>
            <%= form.text_area :light, class: 'form-control' %>

            <%= form.label :water_freq %>
            <%= form.number_field :water_freq, class: 'form-control' %>

          <%= form.submit 'Create Plant', class: 'btn btn-primary' %>
        <% end %>

New Plant

    <%= link_to 'Back', :plants, class: 'button' %>

        <%= form_for @plant, url: plants_path do |form| %>

          <% if form.object.errors.any? %>

              The following errors prevented saving:

                <% form.object.errors.full_messages.each do |error| %>

<%= error %>

                <% end %>

          <% end %>

            <%= form.label :nickname %>
            <%= form.text_field :nickname, class: 'form-control' %>

            <%= form.label :common_name %>
            <%= form.text_area :common_name, class: 'form-control' %>

            <%= form.label :light %>
            <%= form.text_area :light, class: 'form-control' %>

            <%= form.label :water_freq %>
            <%= form.number_field :water_freq, class: 'form-control' %>

          <%= form.submit 'Create Plant', class: 'btn btn-primary' %>
        <% end %>

Fix back button on Create Plant page

Fix back button on Create Plant page


 PICK HISTORY

 here are your lottery picks

    <% @session_id = session[:user_id] %>

      <% @user.picks.each do |pick| %>

            <%if pick.result %>

<%= pick.number %> -- <%= pick.result %>

            <%else%>

<%= pick.number %> -- Pending resoult

            <%end%>

<%= pick.draw_date.to_s[0..10] %> • <%= pick.game.upcase %>

             <%= link_to image_tag("trash.png", class:"trash"), pick, method: :delete %>

    <% end %>

<%= link_to 'CREATE A PICK', pick_path, class: "button medium default radius nav-button" %>

<%= link_to 'CREATE A PICK', pick_path, class: "button medium default radius nav-button" %>

 PICK HISTORY

 here are your lottery picks

    <% @session_id = session[:user_id] %>

      <% @user.picks.each do |pick| %>

            <%if pick.result %>

<%= pick.number %> -- <%= pick.result %>

            <%else%>

<%= pick.number %> -- Pending resoult

            <%end%>

<%= pick.draw_date.to_s[0..10] %> • <%= pick.game.upcase %>

             <%= link_to image_tag("trash.png", class:"trash"), pick, method: :delete %>

    <% end %>

Change location of create pick button

Change location of create pick button


<%= @user.username %>'s profile

    Joined <%= @user.created_at.strftime('%Y-%m-%d') %>.
    <%= @user.images.count %> images uploaded.

Recent uploads

    <% if @user.has_images? %>
      <%= render 'images/tiles', :images => @recent_uploads %>
    <% else %>

<%= @user.username %> has not uploaded anything yet. %>

    <% end %>

<%= @user.username %>'s profile

    <%= @user.images.count %> images uploaded.
    Joined <%= @user.created_at.strftime('%Y-%m-%d') %>.

Recent uploads

    <% if @user.has_images? %>
      <%= render 'images/tiles', :images => @recent_uploads %>
    <% else %>

<%= @user.username %> has not uploaded anything yet. %>

    <% end %>

Put join date after upload count

Put join date after upload count


        <%= config_item(:phase).to_s.capitalize %>:
        This is a new service -
        <% if content_for?(:feedback_link) %>
          <%= yield(:feedback_link) %>
        <% else %>
          <a href="<%= "#{config_item(:feedback_url)}" %>">your feedback
        <% end %>
        will help us to improve it

    <%= yield :after_header %>

Remove js-enabled class for IE6

Remove js-enabled class for IE6


Welcome <%= "#{@admin.first_name} #{@admin.last_name }"%>!

<%= link_to "Manage Meetings", '#' %>

<%= link_to "Manage Speakers", '#' %>

<%= link_to "Manage Talks", '#' %>

    <%= render 'manage_meetings' %>

Welcome <%= "#{@admin.first_name} #{@admin.last_name }"%>!

<%= link_to "Manage Meetings", '#', onclick: 'return false;' %>

<%= link_to "Manage Speakers", '#', onclick: 'return false;' %>

<%= link_to "Manage Talks", '#', onclick: 'return false;' %>

    <%= render 'manage_meetings' %>

Add onclick: return false so it doesn't reload the page every time a navigation pill is clicked


 RSVP

    <%= form_tag('/guests/create', method: :post) do %>
      <%= render partial: '/guests/new' %>

       Add Another Guest

        <%= submit_tag 'RSVP' %>

    <% end %>

 RSVP

    <%= form_tag('/guests/create', method: :post) do %>
      <%= render partial: '/guests/new' %>

       Add Another Guest

        <%= submit_tag 'Mail In RSVP' %>

    <% end %>

Update rsvp form for spacing

Update rsvp form for spacing


<% content_for :page_title do %>
  <%= Spree::PromotionCategory.model_name.human(count: :many) %>
<% end %>

<% content_for :page_actions do %>

    <%= button_link_to Spree.t(:new_promotion_category), spree.new_admin_promotion_category_path, :icon => 'plus' %>

<% end %>

<%= render 'spree/admin/shared/promotion_sub_menu' %>

  <colgroup>
    <col style="width: 40%">
    <col style="width: 40%">
    <col style="width: 20%">
  </colgroup>

    <%= Spree::PromotionCategory.human_attribute_name :name %>
    <%= Spree::PromotionCategory.human_attribute_name :code %>

    <% @promotion_categories.each do |promotion_category| %>

        <%= promotion_category.name %>
        <%= promotion_category.code%>

          <%= link_to_edit promotion_category, :no_text => true %>
          <%= link_to_delete promotion_category, :no_text => true %>

    <% end %>

<% content_for :page_title do %>
  <%= Spree::PromotionCategory.model_name.human(count: :many) %>
<% end %>

<% content_for :page_actions do %>
  <% if can?(:create, Spree::PromotionCategory) %>

      <%= button_link_to Spree.t(:new_promotion_category), spree.new_admin_promotion_category_path, :icon => 'plus' %>

  <% end %>
<% end %>

<%= render 'spree/admin/shared/promotion_sub_menu' %>

  <colgroup>
    <col style="width: 40%">
    <col style="width: 40%">
    <col style="width: 20%">
  </colgroup>

    <%= Spree::PromotionCategory.human_attribute_name :name %>
    <%= Spree::PromotionCategory.human_attribute_name :code %>

    <% @promotion_categories.each do |promotion_category| %>

        <%= promotion_category.name %>
        <%= promotion_category.code%>

          <% if can?(:update, promotion_category) %>
            <%= link_to_edit promotion_category, :no_text => true %>
          <% end %>
          <% if can?(:destroy, promotion_category) %>
            <%= link_to_delete promotion_category, :no_text => true %>
          <% end %>

    <% end %>

Add missing auth guards in promotion_categories.

These were missed in the authorization PR and need to be added.


  <%= f.label field.attribute %>

  <input type="text" value="<%= field.to_s %>" name="educator[grade_level_access]" id="educator_grade_level_access" />

  Valid grades: PK, KF, 1, 2, 3, 4, 5, 6, 7, 8.

  Please enter grade levels separated by commas.

Make grade level access instructions smaller and take out line breaks


<%= t(:add_option_types) %>

    <%= t(:name) %>
    <%= t(:presentation) %>

  <% @available_option_types.each do |ot| %>

    <%= ot.name %>
    <%= ot.presentation %>
    <%= link_to icon('add') + ' ' + t(:select),
                            url_for(:controller => 'admin/option_types',
                                    :id => ot,
                                    :product_id => @product.permalink,
                                    :action => 'select',
                                    :option_type_id =>  ot),
                                    :remote => true,
                                    :class => 'iconlink' %>

  <% end %>
  <% if @available_option_types.empty? %>

    <%= t(:none_available) %>

  <% end %>

Add <thead> and <tbody> tag for <table>

Add <thead> and <tbody> tag for <table>


ExtendedStatus on
<VirtualHost *:80>
  ServerAdmin     <%= node['wt_common']['admin_email'] %>
  ServerName      <%= node['fqdn'] %>
  DocumentRoot    <%= @docroot %>
  CustomLog       <%= node['apache']['log_dir'] %>/static_tag_host_access.log combined
  ErrorLog        <%= node['apache']['log_dir'] %>/static_tag_host_error.log
  <Directory />
    Options -Indexes
  </Directory>
</VirtualHost>

ExtendedStatus on
TraceEnable off
<VirtualHost *:80>
  ServerAdmin     <%= node['wt_common']['admin_email'] %>
  ServerName      <%= node['fqdn'] %>
  DocumentRoot    <%= @docroot %>
  CustomLog       <%= node['apache']['log_dir'] %>/static_tag_host_access.log combined
  ErrorLog        <%= node['apache']['log_dir'] %>/static_tag_host_error.log
  <Directory />
    Options -Indexes
  </Directory>
</VirtualHost>

Set "TraceEnable" to off for apache security hardening.


<svg></svg>

    <%= @jam_circle.user.name.capitalize %>
    -
    <%= @jam_circle.title %>

  <% unless @jam_circle.description.blank? %>

      Description:
      <%= @jam_circle.description %>

  <% end %>

    <%= @jam_circle.public ? 'Public' : 'Private' %>
    -
    <%= @jam_circle.open ? 'Open' : 'Closed' %>

  <% if @jam_circle.user.id == session[:user_id]%>
    <%= link_to 'Edit Jam Circle', edit_jam_circle_path(@jam_circle) %>
  <% end %>

Clips

   <% if @jam_circle.clips.any? %>
     <% counter = 1 %>
     <% @jam_circle.clips.each do |clip| %>

         <%= counter %>. <%= clip.title ? clip.title : 'Untitled' %>
         (id: <%= clip.id %>)
         -
         <% if clip.previous_clip_id %>
           Previous clip id: <%= clip.previous_clip_id %>
         <% else %>
           Original
         <% end %>
         -
         <%= link_to 'Download' %>
         -
         <%= link_to 'Add To', '#', class: 'add-to', value: clip.id %>

       <% counter += 1 %>
     <% end %>
   <% else %>
     You Don't have any sound clips lolololololololololololololooolololololo

     Click <%= link_to 'here', "#", class: "add-to" %> to add a the first clip to this jam circle
   <% end %>

Fix missing link on jam circle bug

Fix missing link on jam circle bug


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

<head>
	<title>Mockups</title>
</head>

<frameset cols="170,*" frameborder="1" border="1" bordercolor="#666666" framespacing="1">
    <frame src="/mockups_index" title="List" name="list" />
    <frame name="content" src="<%= mockup_path_from_session %>" />
</frameset>

</html>

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

<head>
	<title>Mockups</title>
</head>

<frameset cols="170,*" frameborder="1" border="1" bordercolor="#666666" framespacing="1">
    <frame src="<%= mockups_index_path %>" title="List" name="list" />
    <frame name="content" src="<%= mockup_path_from_session %>" />
</frameset>

</html>

Use mockup_index_path instead of the raw string "/mockups_index' so the correct path to the view is determined using any subdomains and/or subdirectories of the parent rails app.


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

Cancel Session

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

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

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

	<% end %>
<% end %>

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

Cancel Session

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

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

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

	<% end %>
<% end %>

Fix crash when there is an error creating a new session


Next tasks

      <% count = 5 if ( count.nil? || count < 5) %>
      <% for task in nextTasks(count) %>

          <%= link_to "##{task.task_num}#{task.name} #{"(" + worked_nice(task.duration) + ")" if task.duration > 0}".html_safe, task_view_path(task.task_num), 'data-taskid' => task.id %>
          <%= link_to "".html_safe, "#", :title => "reorder task", :class => "pull-right" %>

      <% end %>

More...

Next tasks

      <% count = 5 if ( count.nil? || count < 5) %>
      <% for task in nextTasks(count) %>

          <%= link_to "##{task.task_num}", task_view_path(task.task_num), 'data-taskid' => task.id %> <%= task.name %> <%= ( "(" + worked_nice(task.duration) + ")" ) if task.duration > 0 %>
          <%= link_to "".html_safe, "#", :title => "reorder task", :class => "pull-right" %>

      <% end %>

More...

Clean up design of next tasks panel

Clean up design of next tasks panel


<% publication.attributes.slice('slug', 'section', 'department', 'kind').each do |key, value| %>
<%= content_tag :label, key.humanize, for: key %>
<%= text_field_tag key, value, class: "col-md-7 uneditable-input", disabled: 'disabled' %>
<% end %>

<%= link_to "Edit in Panopticon", panopticon_edit_url(publication), :class => "btn btn-primary" %>

    <% publication.attributes.slice('slug', 'section', 'department', 'kind').each do |key, value| %>
      <%= content_tag :label, key.humanize, for: key %>
      <%= text_field_tag key, value, class: "form-control add-bottom-margin", disabled: 'disabled' %>
    <% end %>

<%= link_to "Edit in Panopticon", panopticon_edit_url(publication), :class => "btn btn-primary" %>

Switch metadata to use bootstrap 3 form classes

* Use `form-control`, and move the grid wrappers from input to a parent
wrapper


<<<<<<< HEAD

<%= @user.name %>

  <%= edit_profile_button %>

    <%= image_tag @user.profile_picture, class: 'mu-user-avatar', id: 'mu-user-avatar' %>

<%= content_for :no_container do %>
    <%= render partial: 'layouts/modals/avatar_picker' %>
<% end %>

Add border to user avatar in profile

Add border to user avatar in profile


  <% checkbox_facet.checkboxes.each do |checkbox| %>

      <%= check_box_tag checkbox_facet.name, checkbox.value, checkbox_facet.checked?(checkbox), class: "govuk-checkboxes__input", id: checkbox.id, data: checkbox.data, aria_controls: "js-search-results-info" %>
      <label class="govuk-label govuk-checkboxes__label" for="<%= checkbox.id %>">
        <%= checkbox.checkbox_label %>

  <% end %>

  <% checkbox_facet.checkboxes.each do |checkbox| %>
    <%= render "govuk_publishing_components/components/checkbox", {
      name: checkbox_facet.name,
      id: checkbox.id,
      controls: "js-search-results-info",
      margin_bottom: true,
      item: {
        label: checkbox.checkbox_label,
        value: checkbox.value,
        checked: checkbox_facet.checked?(checkbox),
        data_attributes: checkbox.data
      }
    } %>
  <% end %>

Use checkbox component for checkbox facets


$ ->
  $("#facets").find("h4").append($("<i />").addClass("fa fa-info-circle"))
  # Set a delayed popover for each facet
  $("#facets").find(".panel h5 a").attr({
    'data-container': "body",
    'data-toggle': "popover",
    'data-placement': "right",
    'data-trigger': 'hover focus'
  }).popover({ trigger: "hover focus", delay: { show: 500 } })
  # Then populate the content for each popover from locales
  <% I18n.t('facets.help').each do |facet_key, facet_value| %>
  $("#facets .blacklight-<%= Solrizer.solr_name(facet_key, :facetable)%>").find("a[data-toggle='popover']").attr('data-content': '<%= I18n.t("facets.help.#{facet_key}") %>')
  <% end %>

$ ->
  # Set a delayed popover for each facet
  $('#facets').find('.panel h5').attr({
    'data-container': 'body',
    'data-toggle': 'popover',
    'data-placement': 'left',
    'data-trigger': 'hover focus'
  }).popover({ trigger: 'hover focus', delay: { show: 500 } })
  # Then populate the content for each popover from locales
  <% I18n.t('facets.help').each do |facet_key, facet_value| %>
  $('#facets .blacklight-<%= Solrizer.solr_name(facet_key, :facetable)%>').find('h5[data-toggle="popover"]').attr('data-content': '<%= I18n.t("facets.help.#{facet_key}") %>')
  <% end %>

Remove font awesome info icon and trigger popover on header, not just link


Hello <%= @resource.email %>!

Someone has requested a link to change your password, and you can do this through the link below.

<%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %>

If you didn't request this, please ignore this email.

Your password won't change until you access the link above and create a new one.

Hello <%= @resource.email %>!

Someone has requested a link to change your password, and you can do this through the link below.

<%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token, protocol: (Rails.env.production? ? "https" : nil)) %>

If you didn't request this, please ignore this email.

Your password won't change until you access the link above and create a new one.

Reset password link should be https, not http

For some reason the URL helper was not using https.


<% if page.foreign_link.present? %>

<%= link_to page.title, page.foreign_link, target: '_blank', ref: 'nofollow' %>

<% else %>
  <% page_uri = Rails.application.routes.named_routes[:spree].path.spec.to_s == '/' ? page.slug : Rails.application.routes.named_routes[:spree].path.spec.to_s + page.slug %>
  <li class="<%= 'current' if (request.fullpath.gsub('//','/') == page_uri) %>"><%= link_to page.title, page_uri %>

<% end %>

<% if page.foreign_link.present? %>

<%= link_to page.title, page.foreign_link, target: '_blank', ref: 'nofollow' %>

<% else %>
  <% page_uri = Rails.application.routes.named_routes[:spree].path.spec.to_s == '/' ? page.slug : Rails.application.routes.named_routes[:spree].path.spec.to_s + page.slug %>
  <li class="<%= 'current' if (request.fullpath.gsub('//','/') == page_uri) %>"><%= link_to page.title, page_uri, ref: 'nofollow' %>

<% end %>

Make header, footer and sidebar links nofollow


<% form_tag :controller => 'review_mapping',
            :action => 'add_dynamic_reviewer',
            :assignment_id => assignment.id,
            :reviewer_id => session[:user].id do %>

  <% if assignment.sign_up_topics.count > 0 %>

 Select a topic below to begin a new review.

    <% assignment.sign_up_topics.each do |topic| %>
      <%= radio_button_tag 'topic_id', topic.id %> <%=h topic.topic_name %>

    <% end %>
  <% end %>

  <input type='submit' value='Request a New Submission to Review'/>
<% end %>

<% form_tag :controller => 'review_mapping',
            :action => 'add_dynamic_reviewer',
            :assignment_id => assignment.id,
            :reviewer_id => session[:user].id do %>

  <% if assignment.sign_up_topics.count > 0 %>

 Select a topic below to begin a new review.

    <% assignment.sign_up_topics.each do |topic| %>
      <%= radio_button_tag 'topic_id', topic.id %> <%=h topic.topic_name %>

    <% end %>
  <% end %>

  <input type='submit' value='Request a new submission to review'/>
<% end %>

Remove uppercase where not needed

Remove uppercase where not needed


function cleanTaxons(data) {
  console.log(data);
  var taxons = $.map(data['taxons'], function(result) {
    return result
  })
  return taxons;
}

$(document).ready(function() {
  $("#product_taxon_ids").select2({
    placeholder: "Add a taxon",
    multiple: true,
    initSelection: function(element, callback) {
      return $.getJSON(Spree.routes.taxon_search + "?ids=" + (element.val()), null, function(data) {
        return callback(self.cleanTaxons(data));
      })
    },
    ajax: {
      url: Spree.routes.taxon_search,
      datatype: 'json',
      data: function(term, page) {
        return { q: term }
      },
      results: function (data, page) {
        return { results: self.cleanTaxons(data) }
      }
    },
    formatResult: function(taxon) {
      return taxon.pretty_name
    },
    formatSelection: function(taxon) {
      return taxon.pretty_name
    }
  })
})

function cleanTaxons(data) {
  var taxons = $.map(data['taxons'], function(result) {
    return result
  })
  return taxons;
}

$(document).ready(function() {
  $("#product_taxon_ids").select2({
    placeholder: "Add a taxon",
    multiple: true,
    initSelection: function(element, callback) {
      return $.getJSON(Spree.routes.taxon_search + "?ids=" + (element.val()), null, function(data) {
        return callback(self.cleanTaxons(data));
      })
    },
    ajax: {
      url: Spree.routes.taxon_search,
      datatype: 'json',
      data: function(term, page) {
        return { q: term }
      },
      results: function (data, page) {
        return { results: self.cleanTaxons(data) }
      }
    },
    formatResult: function(taxon) {
      return taxon.pretty_name
    },
    formatSelection: function(taxon) {
      return taxon.pretty_name
    }
  })
})

Remove debug from taxon_autocomplete added in 854cf86


<%= User.find(params[:id]).username %>'s Profile

    <% if @groups.length > 0 %>

Your Groups

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

<a href="/groups/<%= group.id %>"><%= group.name %>

          <% end %>

    <% else %>
      You haven't joined any groups yet. Look at the groups page to get started!
    <% end %>

Your Top 40 Artists

      <% if @user_artists.length > 0 %>
        <%= render partial: 'artists/rankings_table', locals: {artists: @user_artists} %>
      <% else %>
        You haven't voted on any artists yet. Get started now!
      <% end %>

      <% if current_user %>

<%= link_to 'Edit Your Profile', edit_user_path(current_user) %>

      <% end %>

Tweak left margin for mobile

Tweak left margin for mobile


# Hostgroup definitions
#
# Autogenerated by Chef.

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

<% @roles.each do |r| -%>
define hostgroup {
  hostgroup_name <%= r %>
  alias <%= r %>
}

<% end -%>

<% if node['nagios']['multi_environment_monitoring'] -%>
<% @environments.each do |e| -%>
define hostgroup {
  hostgroup_name <%= e %>
  alias <%= e %>
}
<% end -%>
<% end -%>

<% @os.each do |o| -%>
define hostgroup {
  hostgroup_name <%= o %>
  alias <%= o %>
}
<% end -%>

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

Add spaces between host group defs

Add spaces between host group defs

Former-commit-id: 544601dc412ab92a8b3779ad242e6229465e9b66 [formerly 626b43416913d06177ae5aa80675cab6dcad4079] [formerly e3af201247b415b9d355842011c86b2d0f9e7987 [formerly 2da970f6e2eacdf97f2f68f2f24520a5fced18c7]]
Former-commit-id: 6bb0b1c421fee28689bb6112231c50d0c9827241 [formerly 08703e06b2f806ae555af9923cf54d856fb97fda]
Former-commit-id: 5098906143e8b7efc0f5e867908b4c185704aaa1


<% text_for :title do %>
  The estate is shared equally between the half-aunts or half-uncles.
<% end %>

<% govspeak_for :body do %>
  If an aunt or uncle has already died, their children (the cousins of the deceased) inherit in their place.
<% end %>

<% govspeak_for :next_steps do %>
  <%= render partial: 'next_step_links', locals: { next_steps: calculator.next_steps } %>
<% end %>

<% text_for :title do %>
  The estate is shared equally between the half-aunts or half-uncles.
<% end %>

<% govspeak_for :body do %>
  If a half-aunt or half-uncle has died before the deceased died, their children (the cousins of the deceased) inherit in their place.
<% end %>

<% govspeak_for :next_steps do %>
  <%= render partial: 'next_step_links', locals: { next_steps: calculator.next_steps } %>
<% end %>

Update to inheritance sentence - outcome 24


<%= @list.name %>

<%= @list.user_id %>

<%= link_to "All lists", lists_path %>

<%= @list.name %>

<%= link_to "All lists", lists_path %>

Remove user id from lists_show

Remove user id from lists_show


    <%= controls do |c|
      c.item "Edit Page", edit_page_path(page), :icon => "edit_page"
    end %>

      <%= page.name %>

<%= page.content_type %>

        <% cache("page.#{page.id}-#{page.updated_at}.formatted_body") do %>
          <%= format_text page.body if page.body %>
        <% end %>

Facts

      <% page.facts.each do |fact| %>
        <div class="fact" id="fact_<%= fact.id %>">
          <%= render partial: "facts/fact", locals: { page: page, fact: fact } %>

      <% end %>

        <%= image_tag("icons/16x16/add.png") %> Add a Fact

        <%= render partial: "facts/form", locals: { page: page, fact: Fact.new } %>

    <%= controls do |c|
      c.item "Edit Page", edit_page_path(page), :icon => "edit_page"
    end %>

      <%= page.name %>

<%= page.content_type %>

        <%= format_text page.body if page.body %>

Facts

      <% page.facts.each do |fact| %>
        <div class="fact" id="fact_<%= fact.id %>">
          <%= render partial: "facts/fact", locals: { page: page, fact: fact } %>

      <% end %>

        <%= image_tag("icons/16x16/add.png") %> Add a Fact

        <%= render partial: "facts/form", locals: { page: page, fact: Fact.new } %>

Drop caching until it can be done reliably. Linked pages don't update their link state when a new page is created.


<% title "Ping" %>

<% form_tag :controller => "ping", :action => "quickping" do -%>

    <%= label_tag "host_to_ping", "Host to ping" %>

    <%= text_field_tag "host_to_ping" %>

    <%= captcha_tags %>

    <%= submit_tag "Ping" %>

<% end -%>

<% title "Ping" %>

<% form_tag :controller => "ping", :action => "quickping" do -%>

    <%= label_tag "host_to_ping", "Host to ping" %>

    <%= text_field_tag "host_to_ping" %>

    <%= captcha_tags %>

    <%= submit_tag "Ping", :disable_with => "Pinging... (This might take some time)" %>

<% end -%>

Disable the button with JS when pinging.


<%= render "govuk_publishing_components/components/radio", {
  name: "response",
  heading: question.title,
  hint: question.hint,
  id_prefix: "response",
  description: question.body,
  error_message: question.error,
  items: question.radio_buttons
} %>

<% body = capture do %>
  <%= render "govuk_publishing_components/components/govspeak", {
  } do %>
    <%= question.body %>
  <% end %>
<% end %>

<%= render "govuk_publishing_components/components/radio", {
  name: "response",
  heading: question.title,
  hint: question.hint,
  id_prefix: "response",
  description: body,
  error_message: question.error,
  items: question.radio_buttons
} %>

Fix formatting for question body in multiple choice

- if question body is to be rendered by the radio component, first pass it through the govspeak component so that it renders govspeak markup correctly


  <%%= link_to new_<%= singular_table_name %>_path, class: 'btn btn-primary' do %>

    New <%= human_name %>
  <%% end %>

Listing <%= plural_table_name %>

    <% attributes.each do |attribute| -%>
        <%= attribute.human_name %>
    <% end -%>

      <%%= content_tag_for(:tr, @<%= plural_table_name %>) do |<%= singular_table_name %>| %>
    <% attributes.each do |attribute| -%>
        <%%= <%= singular_table_name %>.<%= attribute.name %> %>
    <% end -%>
        <%%= link_to 'Show', <%= singular_table_name %> %>
        <%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %>
        <%%= link_to 'Destroy', <%= singular_table_name %>, method: :delete, data: { confirm: 'Are you sure?' } %>
      <%% end %>

  <%%= link_to new_<%= singular_table_name %>_path, class: 'btn btn-primary' do %>

    New <%= human_name %>
  <%% end %>

Listing <%= plural_table_name %>

    <% attributes.each do |attribute| -%>
        <%= attribute.human_name %>
    <% end -%>

      <%% @<%= plural_table_name%>.each do |<%= singular_table_name %>| %>
        <%%= content_tag :tr, id: dom_id(<%= singular_table_name %>), class: dom_class(<%= singular_table_name %>) do %>
          <% attributes.each do |attribute| -%>
            <%%= <%= singular_table_name %>.<%= attribute.name %> %>
          <% end -%>
          <%%= link_to 'Show', <%= singular_table_name %> %>
          <%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %>
          <%%= link_to 'Destroy', <%= singular_table_name %>, method: :delete, data: { confirm: 'Are you sure?' } %>
        <%% end %>
      <%% end %>

Remove `content_tag_for` for Rails 5 compatibility

`content_tag_for` was extracted to a separate gem for Rails 5. This no longer depends on that functionality.

This fixes #43.

I've tested this in Rails 5, but not other versions. The cloned tests are throwing errors about missing bootstrap files, so I can't say much about the tests for this other than "it works for my project."


<%= notice %>

Jurisdiction Name: <%= @district.jurisdiction_name %>

Number: <%= @district.number %>

Borough: <%= @district.borough %>

<%= link_to 'Edit', edit_district_path(@district) %> |
<%= link_to 'Back', districts_path %>

<%= notice %>

Jurisdiction Name: <%= @district.jurisdiction_name %>

Number: <%= @district.number %>

Borough: <%= @district.borough %>

Schools:

<% @schools.each do |school| %>
	<%= school.name %>

<% end %>

<%= link_to 'Back', districts_path %>

Remove new link for district information page, add schools list


<% content_for(:page_title, "#{@location.name} - Pension Wise") %>
<% content_for(:meta_description, "Find out the address, booking hours and how to book a Pension Wise appointment at the #{@location.name}") %>

<%= @location.name %>

Address

<%= @location.address %>

How to book

Call <%= @location.phone %>.

Tell the operator that you want to book a Pension Wise appointment.

You can also book in person by visiting a Citizens Advice bureau near you.

<% unless @location.hours.blank? %>

Booking hours

<%= simple_format(@location.hours) %>

<% end %>

We can’t answer specific questions about your pension on this number.

What you need to know for your face-to-face appointment.

<% content_for(:page_title, "#{@location.name} - Pension Wise") %>
<% content_for(:meta_description, "Find out the address, booking hours and how to book a Pension Wise appointment at the #{@location.name}") %>

<%= @location.name %>

Address

<%= @location.address %>

How to book

Call <%= @location.phone %>.

Tell the operator that you want to book a Pension Wise appointment at <%= @location.name %>.

You can also book in person by visiting a Citizens Advice bureau near you.

<% unless @location.hours.blank? %>

Booking hours

<%= simple_format(@location.hours) %>

<% end %>

We can’t answer specific questions about your pension on this number.

What you need to know for your face-to-face appointment.

Include the name of the desired booking location


<% Project.all.each do |project| %>

   Project name: <%= project.name %>

    Project Description: <%= project.description %>

   Contact person: <%= project.contact %>

  <% if current_user == project.user %>
    <%= link_to 'Edit', edit_project_path(project) %>
  <% end %>

  <%= link_to 'Project homepage', project_path(project) %>

<% end %>

<% Project.all.each do |project| %>

   Project name: <%= project.name %>

    Project Description: <%= project.description %>

   Author: <%= link_to project.user.github_username, profile_path %>

   Contact person: <%= project.contact %>

  <% if current_user == project.user %>
    <%= link_to 'Edit', edit_project_path(project) %>
  <% end %>

  <%= link_to 'Project homepage', project_path(project) %>

<% end %>

Add broken profile path (links to current user's profile)


!!!
%html{html_attrs}
  %head
    %meta{'http-equiv' => 'Content-Type', :content => 'text/html;charset=utf-8'}
    %meta{'http-equiv' => 'Content-Script-Type', :content => 'text/javascript'}
    - if protect_against_forgery?
      %meta{:name => 'authenticity_token', :content => form_authenticity_token}
    %title= h(@title || "<%= File.basename(destination_path('')).gsub('_', ' ').capitalize %>")
<% if exist?("public/stylesheets/blueprint") -%>
    = stylesheet_link_tag 'blueprint/screen', :media => 'screen, projection'
    = stylesheet_link_tag 'blueprint/print', :media => 'print'
    /[if IE]
      = stylesheet_link_tag 'blueprint/ie', :media => 'screen, projection'
<% end -%>
<% if exist?("public/stylesheets/application.css") -%>
    = stylesheet_link_tag 'application', :media => 'screen, projection'
<% end -%>
<% if exist?("public/javascripts/jquery.js") -%>
    = javascript_include_tag 'jquery'
<% end -%>
    = javascript_include_tag 'application'
    = yield :head
  %body
    .container
      = yield

!!!
%html{html_attrs}
  %head
    %meta(http-equiv='Content-Type' content='text/html;charset=utf-8')
    %meta(http-equiv='Content-Script-Type' content='text/javascript')
    - if protect_against_forgery?
      %meta(name='authenticity_token' content=form_authenticity_token)
    %title&= @title || "<%= File.basename(destination_path('')).gsub('_', ' ').capitalize %>"
<% if exist?("public/stylesheets/blueprint") -%>
    = stylesheet_link_tag 'blueprint/screen', :media => 'screen, projection'
    = stylesheet_link_tag 'blueprint/print', :media => 'print'
    /[if IE]
      = stylesheet_link_tag 'blueprint/ie', :media => 'screen, projection'
<% end -%>
<% if exist?("public/stylesheets/application.css") -%>
    = stylesheet_link_tag 'application', :media => 'screen, projection'
<% end -%>
<% if exist?("public/javascripts/jquery.js") -%>
    = javascript_include_tag 'jquery'
<% end -%>
    = javascript_include_tag 'application'
    = yield :head
  %body
    .container
      = yield

Use new Haml attribute syntax in layout

Use new Haml attribute syntax in layout


We think it goes without saying, you have great taste.

We're excited to share Hummingbird with you so that discovering and keeping tracking of your favorite anime is easier than ever. That level of awesome doesn't come without a price, and in this case, that price is a significant time investment and a lot of hard work.

We're almost finished and have started sending beta invites out to users in the order they were requested. Keep an eye on our Facebook and twitter accounts, we sometimes give out early access, just to keep things interesting!

http://www.twitter.com/hummingbird_ly

http://www.facebook.com/pages/Hummingbird/460188747373182

See you soon!

- Josh Fabian & Vikhyat Korrapati

We think it goes without saying, you have great taste.

We're excited to share Hummingbird with you so that discovering and keeping track of your favorite anime is easier than ever. That level of awesome doesn't come without a price, and in this case, that price is a significant time investment and a lot of hard work.

The good news is, we're just about finished and sending invites out on a daily basis in the order they're received. There are, however, a few promo codes floating around. In that event that you have an early access promo code you can redeem it by entering your email again and clicking the link that says 'have an invite code?'

Also be sure to keep an eye on our Facebook and twitter accounts, we sometimes give out early access, just to keep things interesting!

http://www.twitter.com/hummingbird_ly

http://www.facebook.com/pages/Hummingbird/460188747373182

See you soon!

- Josh Fabian & Vikhyat Korrapati

Update email to include beta code messaging


Resend confirmation instructions

<% if mixpanel? %>

<% end %>

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

<%= f.label :email %>

  <%= f.email_field :email %>

<%= f.submit "Resend confirmation instructions", :class => "focus_button" %>

<% end %>

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

Resend confirmation instructions

<% if mixpanel? %>

<% end %>

If you have not received your E-mail Confirmation message, please be sure to check your SPAM filter.

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

<%= f.label :email %>

  <%= f.email_field :email %>

<%= f.submit "Resend confirmation instructions", :class => "focus_button" %>

<% end %>

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

Add note about spam filter to the resend-confirmation page


server {
    listen   8000;

    server_name localhost;

    access_log /var/log/nginx/access_nailgun.log;
    error_log /var/log/nginx/error_nailgun.log debug;

    charset utf-8;
    client_max_body_size 10M;

    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

    gzip on;
    gzip_min_length 1000;
    gzip_types text/plain application/json;

    location /static {
        autoindex on;
        alias <%= @staticdir %>;
    }

    location /dump {
        alias <%= @logdumpdir %>;
    }

    location ~ ^/ostf/(.*) {
        proxy_pass http://<%= @ostf_host %>:8777/v1/$1;
        proxy_buffering off;
    }

    location ~ ^/keystone/(.*) {
        proxy_pass http://<%= @keystone_host %>:5000/$1;
        proxy_set_header Host $host;
        proxy_buffering off;
    }

    location / {
        root <%= @staticdir %>;
    }

    location /api {
        include uwsgi_params;
        uwsgi_pass <%= @nailgun_host %>:8001;
        client_max_body_size 100m;
    }
}

server {
    listen   8000;

    server_name localhost;

    access_log /var/log/nginx/access_nailgun.log;
    error_log /var/log/nginx/error_nailgun.log debug;

    charset utf-8;
    client_max_body_size 10M;

    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

    gzip on;
    gzip_min_length 1000;
    gzip_types text/plain application/json;

    location /static {
        autoindex on;
        alias <%= @staticdir %>;
    }

    location /dump {
        alias <%= @logdumpdir %>;
    }

    location ~ ^/ostf/(.*) {
        proxy_pass http://<%= @ostf_host %>:8777/v1/$1;
        proxy_buffering off;
    }

    location ~ ^/keystone/(.*) {
        proxy_pass http://<%= @keystone_host %>:5000/$1;
        proxy_buffering off;
    }

    location / {
        root <%= @staticdir %>;
    }

    location /api {
        include uwsgi_params;
        uwsgi_pass <%= @nailgun_host %>:8001;
        client_max_body_size 100m;
    }
}

Revert "Set "Host" header when proxying to Keystone"

This reverts commit 34238f354ff5a462a5cd187b740ca946a3e78bcb.

Change-Id: I169c988b461261c02c415fa32052f79d25e02701
Closes-bug: #1405686


<%= _("Collective consumption network") %>

<% style = (@node.image and @node.header_type != 'pure_color') ? "style=\"background: url('" + @node.image.public_filename + "') no-repeat;\" " : ""  %>
<% color = @node.header_type == 'pure_color' ? "color-"+@node.header_bg_color : " " %>

<div class="menu-logo <%=  color + '" ' + style %>>
  <% fg_color = (@node.header_fg_color.nil?) ? "" : "color: " + @node.header_fg_color %>
  <div id="menu-title" style="<%= fg_color %>" ><%= @profile.name unless @node.header_type == 'only_image' %>

  <%= display_header_buttons %>

<%= _("Collective consumption network") %>

<% style = (@node.image and @node.header_type != 'pure_color') ? "style=\"background: url('" + @node.image.public_filename + "') no-repeat;\" " : ""  %>
<% color = @node.header_bg_color ? "color-"+@node.header_bg_color.to_s : " " %>

<div class="menu-logo <%=  color + '" ' + style %>>
  <% fg_color = (@node.header_fg_color.nil?) ? "" : "color: " + @node.header_fg_color %>
  <div id="menu-title" style="<%= fg_color %>" ><%= @profile.name unless @node.header_type == 'only_image' %>

  <%= display_header_buttons %>

Fix color on distribution header

Fix color on distribution header


<%= t "errors.error_#{@status_code}.title" %>

      <%= t "errors.error_#{@status_code}.message_html" %>

    <%#
    FIXME: Why the normal image_tag does work locally but not on heroku?
           image_tag "basimilch_error_#{@status_code}", class: "error_page_image"

    DOC: https://devcenter.heroku.com/articles/rails-4-asset-pipeline#only-generate-digest-assets
    DOC: http://stackoverflow.com/questions/18324063/rails-4-images-not-loading-on-heroku
     %>
    <img src="<%= asset_path "basimilch_error_#{@status_code}" %>" alt="<%= "basimilch_error_#{@status_code}" %>" class="error_page_image">

        <%= "Error #{@status_code}" %>

<%= t "errors.error_#{@status_code}.title" %>

      <%= t "errors.error_#{@status_code}.message_html" %>

    <%= image_tag "basimilch_error_#{@status_code}", class: "error_page_image" %>

        <%= "Error #{@status_code}" %>

Revert "fix: image_tag not working on heroku"

This reverts commit eea5fdcad52a0c96593a325101f6a96efb7aea75.


<% if user_logged_in? %>

Welcome <%= current_user.name %>

News Feed

  <%= page_entries_info @games %>
  <%= div_for @games, :class => 'media' do |game| %>

<%= link_to game.versus, tournament_game_path(game.tournament_id, game) %>

      <% if game.confirmed? %>Confirmed<% else %>Unconfirmed<% end %> game for <%= link_to game.tournament.name, tournament_path(game.tournament_id) %> on <%= time_tag game.updated_at %>.

  <% end %>
  <%= paginate @games %>
<% else %>

Create and manage tournaments for pool, foosball or anything. Compete against your friends and colleagues.

<%= link_to "Login to start", session_path, :class => 'btn btn-primary btn-large' %>

<% end %>

<% if user_logged_in? %>

Welcome <%= current_user.name %>

News Feed

  <%= page_entries_info @games %>
  <%= div_for @games, :class => 'media' do |game| %>

<%= link_to game.versus, tournament_game_path(game.tournament_id, game) %>

      <% if game.confirmed? %>Confirmed<% else %>Unconfirmed<% end %> game for <%= link_to game.tournament.name, tournament_path(game.tournament_id) %> on <%= time_tag game.updated_at %>.

  <% end %>
  <%= paginate @games %>
<% else %>

Ladder

Create and manage tournaments for pool, foosball or anything. Compete against your friends and colleagues.

<%= link_to "Login to start", session_path, :class => 'btn btn-primary btn-large' %>

<% end %>

Use actual bootstrap hero unit

Use actual bootstrap hero unit


<% page_title "Home" %>

Recently updated

      <% @recently_updated.each do |document| %>
        <%= content_tag_for :li, document do %>

<%= link_to document.title, public_document_path(document), class: "title" %>

          <% if document.summary.present? %>

<%= document.summary %>

          <% end %>

            <%= human_friendly_document_type(document) %>
            published
            <%= time_ago(document.published_at, class: 'published_at') %>

        <% end %>
      <% end %>

<% page_title "Home" %>

Inside government

Information about the work, and inner workings, of the UK government.

This site provides policy, news, speeches, publications consultations and related information from the whole of government in one place.

It explains how the UK government is structured, what its organisations and ministers do, and how you can get involved.

This is a beta test, and is not complete. Over time this site will replace many of the websites which are currently run by government organisations at separate web addresses.

Recently updated

      <% @recently_updated.each do |document| %>
        <%= content_tag_for :li, document do %>

<%= link_to document.title, public_document_path(document), class: "title" %>

          <% if document.summary.present? %>

<%= document.summary %>

          <% end %>

            <%= human_friendly_document_type(document) %>
            published
            <%= time_ago(document.published_at, class: 'published_at') %>

        <% end %>
      <% end %>

Add first-draft content for homepage.

Add first-draft content for homepage.


!!!
%html{html_attrs}
  %head
    %meta(http-equiv='Content-Type' content='text/html;charset=utf-8')
    %meta(http-equiv='Content-Script-Type' content='text/javascript')
    - if protect_against_forgery?
      %meta(name='authenticity_token' content=form_authenticity_token)
    %title&= @title || "<%= File.basename(destination_path('')).gsub('_', ' ').capitalize %>"
<% if exist?("public/stylesheets/blueprint") -%>
    = stylesheet_link_tag 'blueprint/screen', :media => 'screen, projection'
    = stylesheet_link_tag 'blueprint/print', :media => 'print'
    /[if IE]
      = stylesheet_link_tag 'blueprint/ie', :media => 'screen, projection'
<% end -%>
<% if exist?("public/stylesheets/application.css") -%>
    = stylesheet_link_tag 'application', :media => 'screen, projection'
<% end -%>
<% if exist?("public/javascripts/jquery.js") -%>
    = javascript_include_tag 'jquery'
<% end -%>
    = javascript_include_tag 'application'
    = yield :head
  %body
    .container
      = yield

!!!
%html{html_attrs(I18n.locale)}
  %head
    %meta(http-equiv='Content-Type' content='text/html;charset=utf-8')
    %meta(http-equiv='Content-Script-Type' content='text/javascript')
    - if protect_against_forgery?
      %meta(name='authenticity_token' content=form_authenticity_token)
    %title&= @title || "<%= File.basename(destination_path('')).gsub('_', ' ').capitalize %>"
<% if exist?("public/stylesheets/blueprint") -%>
    = stylesheet_link_tag 'blueprint/screen', :media => 'screen, projection'
    = stylesheet_link_tag 'blueprint/print', :media => 'print'
    /[if IE]
      = stylesheet_link_tag 'blueprint/ie', :media => 'screen, projection'
<% end -%>
<% if exist?("public/stylesheets/application.css") -%>
    = stylesheet_link_tag 'application', :media => 'screen, projection'
<% end -%>
<% if exist?("public/javascripts/jquery.js") -%>
    = javascript_include_tag 'jquery'
<% end -%>
    = javascript_include_tag 'application'
    = yield :head
  %body
    .container
      = yield

Use locale as html lang attribute

Use locale as html lang attribute


$('.course-assessment-assessments.show #sortable-questions').html(
    '<%= j(render @assessment.reload.questions.map(&:specific)) %>'
);

$('.course-assessment-assessments.show #sortable-questions').html(
    '<%= j(render @assessment.reload.question_assessments) %>'
);

Fix a bug where reorder questions cannot render

This used to refer to course/assessment/question/_question.html.slim,
but was shifted in #2629, and this was not updated. The bug does
not break any functionality, but the page was not updated after
a reordering, and this fix corrects that.


 Destination

 Direction Details

 The wedding and cocktail hour will be held in the backyard of the mother of the bride.

Shortly after, guests will be transported by trolley down to the Fox River Park for dinner and dancing.

Don't worry about dancing too hard, as transportation will be provided to and from the nearby Holiday Inn.

 Links for Directions to:

Hotel Reservations

 While you are free to stay where ever you like, we recommend the Holiday Inn in Crystal Lake as transportation will be provided to and from the wedding activities.

       Book Your Room Here

Update the divs in hotel section

Update the divs in hotel section


[color]
  branch = auto
  diff = auto
  status = auto

[color "branch"]
  current = yellow reverse
  local = yellow
  remote = green

[color "diff"]
  meta = yellow bold
  frag = magenta bold
  old = red bold
  new = green bold

[color "status"]
  added = yellow
  changed = green
  untracked = cyan

[user]
  name = Matias Grunberg
  email = matias@yellowspot.com.ar

[core]
  excludesfile = /home/matias/.gitignore
  editor = vim

[alias]
  co = checkout
  nff = merge --no-ff

[mergetool]
  keepBackup = false

[rerere]
  enabled = 1

[push]
  default = tracking

[merge]
  tool = meld

[color]
  branch = auto
  diff = auto
  status = auto

[color "branch"]
  current = yellow reverse
  local = yellow
  remote = green

[color "diff"]
  meta = yellow bold
  frag = magenta bold
  old = red bold
  new = green bold

[color "status"]
  added = yellow
  changed = green
  untracked = cyan

[user]
  name = Matias Grunberg
  email = matias@yellowspot.com.ar

[core]
  excludesfile = /home/matias/.gitignore
  editor = vim

[alias]
  co = checkout
  nff = merge --no-ff
  lg = log --oneline --decorate --all --graph

[mergetool]
  keepBackup = false

[rerere]
  enabled = 1

[push]
  default = tracking

[merge]
  tool = meld

Add lg alias to git

Add lg alias to git


    <%= link_to 'School Directory', cms_schools_path %> > <%= link_to @school.name, cms_school_path(@school.id) %> > Edit

Edit: <%= @school.name %>

Warning: Please don't edit the school info unless you are 100% sure it needs to be changed.

    <%= form_for @school, url: cms_school_path(@school.id) do |f| %>
      <% @editable_attributes.each do |attribute_name, attribute_field| %>

            <%= attribute_name %>

            <%= f.text_field attribute_field, class: 'col-xs-4' %>

      <% end %>

      <%= f.hidden_field :id %>

          <%= f.button "Save", class: 'button-green' %>

    <% end %>

    <%= link_to 'School Directory', cms_schools_path %> > <%= link_to @school.name, cms_school_path(@school.id) %> > Edit

Edit: <%= @school.name %>

Warning: Please don't edit the school info unless you are 100% sure it needs to be changed.

Notes:

State is just initials (e.g. NY)

Private schools don't have a district.

Charter schools should have the charter network name as district.

Before adding a district, search for other schools in the same district so you can copy and paste the exact district name in the database.

Free and Reduced Price lunch is just a number (e.g. 75 — not 75%).

    <%= form_for @school, url: cms_school_path(@school.id) do |f| %>
      <% @editable_attributes.each do |attribute_name, attribute_field| %>

            <%= attribute_name %>

            <%= f.text_field attribute_field, class: 'col-xs-4' %>

      <% end %>

      <%= f.hidden_field :id %>

          <%= f.button "Save", class: 'button-green' %>

    <% end %>

Add warnings to cms schools edit page

Add warnings to cms schools edit page


<div class="<%= follow_link_class contact %>">
  <% if contact.sent? %>

      <%= t 'contact.following' %>

      <%= link_to t('contact.unfollow'), follower_path(contact), :method => :delete, :remote => true %>

  <% else %>

      <%= link_to t('contact.follow'), follower_path(contact), :method => :put, :remote => true %>

  <% end %>

Fix follow buttons not changing.

Fix follow buttons not changing.


Commits on this project

	<% @commits.each do |commit| %>

 <%= commit.author %>

 <%= commit.authored_date %>

 <%= commit.id %>

	<% end %>

<%#FIXME - add css to commits page %>

Commits on this project

	<% @commits.each do |commit| %>

 <%= avatar(commit.author.email)%> <%= commit.message %>

 <%= commit.authored_date %>

 <%= commit.id %>

	<% end %>

Add a fancy gravatar for the commits

Add a fancy gravatar for the commits


<% f.field_container :name do %>
  <%= f.label :name, t("name") %> *

  <%= error_message_on :taxonomy, :name, :class => 'fullwidth title'  %>
  <%= text_field :taxonomy, :name  %>
<% end %>

  <%= f.label :name, t("store") %> *

  <%= collection_select :taxonomy, :store_id, Store.all, :id, :name  %>

  <%= f.field_container :name do %>
    <%= f.label :name, t(:name) %> *

    <%= error_message_on :taxonomy, :name, :class => 'fullwidth title'  %>
    <%= text_field :taxonomy, :name  %>
  <% end %>

  <%= f.label :name, t("store") %> *

  <%= collection_select :taxonomy, :store_id, Store.all, :id, :name  %>

Fix the New Taxonomy form.

Fix the New Taxonomy form.


Choose an Image

<% @experience.moments.filo.each do |m| %>
  <%= image_tag(m.photo_url(:avatar), :class => 'photo', :onclick => "$('m').show().update(''); new Ajax.Updater('m','#{one_experience_moment_url(@experience,m)}',{method: 'get'})") %>
<% end %>

<%= javascript_tag do %>
  if( location.hash ) {
    var u = '<%= one_experience_moment_url(@experience,0) %>';
    u = u.replace('/0/','/'+location.hash.substr(1)+'/');
    $('m').show().update('<img src="<%= SiteAssets[:loading] %>"/>');
    new Ajax.Updater('m',u,{method: 'get'});
  }
<% end %>

Remove min-height on grid view

Remove min-height on grid view


<%= dashboard_control_bar() %>

Subject report links

<%= link_to 'Control Assignment Report', controls_path %>

<%= link_to 'Case Assignment Report', cases_path %>

<%= link_to 'Abstracts', abstracts_path %>

<%= dashboard_control_bar() %>

Subject report links

<%= link_to 'Control Assignment Report', controls_path %>

<%= link_to 'Case Assignment Report', cases_path %>

<%= link_to 'All Abstracts', abstracts_path %>

Put link to abstracts on study_subjects/reports.


<% content_for :template, 'lawyer' %>

          <%= form_tag search_user_path, method: :get, id: "search-form", remote: true do %>

Hello, <%= current_user.first_name %>!

                <button id="search-button">Search</button>
                <%= text_field_tag :q, "", :class => "form-control", autofocus: true, placeholder: "Find a tenant..." %>

            <% if current_user.is_demo_user? %>

<%= "The Demo Lawyer cannot access data for actual users, and changes are automatically reset." %>

            <% end %>

          <% end %>

    <%= render_collaborators_for(current_user) %>

<% content_for :template, 'lawyer' %>

          <%= form_tag search_user_path, method: :get, id: "search-form", remote: true do %>

Hello, <%= current_user.first_name %>!

              <% if (current_user.permissions === 0) %>

                  <button id="search-button">Search</button>
                  <%= text_field_tag :q, "", :class => "form-control", autofocus: true, placeholder: "Find a tenant..." %>

              <% end %>

            <% if current_user.is_demo_user? %>

<%= "The Demo Lawyer cannot access data for actual users, and changes are automatically reset." %>

            <% end %>

          <% end %>

    <%= render_collaborators_for(current_user) %>

Hide search bar except for superusers

Hide search bar except for superusers


<%= render "gobierto_admin/shared/validation_errors", resource: @file_attachment_form %>
<%= form_for(@file_attachment_form, as: :file_attachment, url: @file_attachment_form.persisted? ? admin_cms_file_attachment_path(@file_attachment) : :admin_cms_file_attachments) do |f| %>
  <%= f.hidden_field :collection_id, value: params[:collection_id] %>

        <% if f.object.url.present? %>
          <%= image_tag f.object.url, height: 150 %>
        <% else %>
          <%= f.label :file, t(".file_constraints") %>
          <%= f.file_field :file %>
        <% end %>

        <%= f.label :name %>
        <%= f.text_field :name, placeholder: t(".placeholders.name") %>

        <%= f.label :description %>
        <%= f.text_field :description, placeholder: t(".placeholders.description") %>

  <%= f.submit class: "button" %>

<% end %>

<%= render 'gobierto_admin/shared/validation_errors', resource: @file_attachment_form %>
<%= form_for(@file_attachment_form, as: :file_attachment, url: @file_attachment_form.persisted? ? admin_cms_file_attachment_path(@file_attachment) : :admin_cms_file_attachments) do |f| %>
  <%= f.hidden_field :collection_id, value: params[:collection_id] %>

        <% if f.object.url.present? %>
          <%= image_tag f.object.url, height: 150 %>
        <% else %>
          <%= f.label :file, t('.file_constraints') %>
          <%= f.file_field :file %>
        <% end %>

        <%= f.label :name %>
        <%= f.text_field :name, placeholder: t('.placeholders.name') %>

        <%= f.label :description %>
        <%= f.text_area :description, placeholder: t('.placeholders.description') %>

  <%= f.submit class: 'button' %>

<% end %>

Change document description to textarea

Change document description to textarea


<% content_for :title do %>
  How many years have you worked for your employer?
<% end %>

<% content_for :hint do %>
  Only count full years of service. For example, 3 years and 9 months count as 3 years.
<% end %>

<% content_for :suffix_label do %>
  full years worked
<% end %>

<% content_for :error_message do %>
  Please enter a number. Based on your previous answers this should be no greater than %{years_available}
<% end %>

<% content_for :title do %>
  How many years have you worked for your employer?
<% end %>

<% content_for :hint do %>
  Only count full years of service. For example, 3 years and 9 months count as 3 years.
<% end %>

<% content_for :suffix_label do %>
  full years worked
<% end %>

<% content_for :error_message do %>
  Please enter a number. Based on your previous answers this should be no greater than <%= years_available %>
<% end %>

Use ERB tag to interpolate value in template

This was not dealt with automatically by the conversion script.


!!! 5
%html(lang="en" ng-app="<%= name %>")
  %head
    %meta(charset="utf-8")
    %meta(http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1")
    %meta(name="viewport" content="width=device-width, initial-scale=1.0")
    %title
      <%= name.titleize %>

    / Le HTML5 shim, for IE6-8 support of HTML elements
    /[if lt IE 9]
      %script(src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript" charset="utf-8")
    %script(src="/assets/application.js" type="text/javascript" charset="utf-8")

  %body
    %div(ng-view)

!!! 5
%html(lang="en" ng-app="<%= name %>")
  %head
    %meta(charset="utf-8")
    %meta(http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1")
    %meta(name="viewport" content="width=device-width, initial-scale=1.0")
    %title
      <%= name.titleize %>

    / Le HTML5 shim, for IE6-8 support of HTML elements
    /[if lt IE 9]
      %script(src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript" charset="utf-8")
    %script(src="/assets/javascripts/application.js" type="text/javascript" charset="utf-8")
    %link(rel="stylesheet" type="text/css" href="/assets/stylesheets/application.css")
  %body
    %div(ng-view)

Include site's js and css.

Include site's js and css.


<fieldset>
  <legend align="center"><%= t('paysio') %></legend>

        <%= t('paysio.payment') %>

        <%= t("paysio.charge_id") %>:

          <%= payment.source.charge_id %>

        <%= t("paysio.merchant_id") %>:

          <%= payment.source.merchant_id %>

        <%= t("paysio.payment_system_id") %>:

          <%= payment.source.payment_system_id %>

        <%= t("paysio.wallet") %>:

          <%= payment.source.wallet %>

        <%= t("paysio.object") %>:

          <%= payment.source.object %>

</fieldset>

Add payment admin details view

Add payment admin details view


---
- job:
    name: TaggingMigrationCheck
    display-name: TaggingMigrationCheck
    project-type: freestyle
    description: "This job checks if taggings are in sync between contentapi and content-store"
    properties:
        - github:
            url: https://github.com/alphagov/tagging-migration-verifier.git
    scm:
      - tagging-migration-verifier
    logrotate:
        artifactNumToKeep: 10
    triggers:
        - timed: '0 * * * *' # every hour
    builders:
        - shell: |
            set +x
            cd "${WORKSPACE}"

            set +e

            git clone https://github.com/alphagov/tagging-migration-verifier.git
            cd tagging-migration-verifier
            bin/verify_migrated_apps
            EXITCODE=$?

            exit $EXITCODE
    publishers:
      - trigger-parameterized-builds:
        - project: Success_Passive_Check
          condition: 'SUCCESS'
          predefined-parameters: |
            NSCA_CHECK_DESCRIPTION=<%= @service_description -%>
            NSCA_OUTPUT=<%= @service_description -%> success
        - project: Failure_Passive_Check
          condition: 'FAILED'
          predefined-parameters: |
            NSCA_CHECK_DESCRIPTION=<%= @service_description -%>
            NSCA_OUTPUT=<%= @service_description -%> failed
    wrappers:
        - ansicolor:
            colormap: xterm
        - inject:
            script-content: PARALLEL_JOBS=2

---
- scm:
    name: tagging-migration-verifier
    scm:
        - git:
            url: git@github.com:alphagov/tagging-migration-verifier.git
            branches:
              - master

- job:
    name: tagging-migration-verifier
    display-name: TaggingMigrationCheck
    project-type: freestyle
    description: "This job checks if taggings are in sync between contentapi and content-store"
    scm:
      - tagging-migration-verifier
    logrotate:
        artifactNumToKeep: 100
    triggers:
        - timed: '0 * * * *' # every hour
    builders:
        - shell: |
            bin/verify_migrated_apps
    publishers:
      - trigger-parameterized-builds:
        - project: Success_Passive_Check
          condition: 'SUCCESS'
          predefined-parameters: |
            NSCA_CHECK_DESCRIPTION=<%= @service_description -%>
            NSCA_OUTPUT=<%= @service_description -%> success
        - project: Failure_Passive_Check
          condition: 'FAILED'
          predefined-parameters: |
            NSCA_CHECK_DESCRIPTION=<%= @service_description -%>
            NSCA_OUTPUT=<%= @service_description -%> failed
    wrappers:
        - ansicolor:
            colormap: xterm

Add an scm section for tagging-migration-verifier

The jenkins configuration for tagging-migration-verifier is currently
invalid, and broke our puppet run on staging.  Adding an scm section
should fix it.


    <%= f.field_container :product do %>
        <%= f.label :product_id, Spree.t(:product) %>

        <%= f.select :product_id, @products, {}, {:class=>'select2'} %>

        <%= f.label :user_id, "User" %>

        <%= f.collection_select :user_id, @users, :id, :email, {},{:class => 'select2'}  %>

        <%= f.label :start_datetime, "Start Date" %>

        <%= f.datetime_select :start_datetime %>

        <%= f.label :end_datetime, "End Date" %>

        <%= f.datetime_select :end_datetime %>

        <%= f.label :num_seats, "Number of Seats" %>

        <%= f.number_field :num_seats %>

        <%= f.label :token, "Token" %>

        <%= f.text_field :token %>

        <%= f.label :is_renewal, "Is renewal: #{@account_subscription.is_renewal}"%>

        <%= f.label :renewal_date, "Renewal Date: #{@account_subscription.renewal_date}"%>

        <%= f.error_message_on :product %>
    <% end %>

    <%= f.field_container :product do %>
        <%= f.label :product_id, Spree.t(:product) %>

        <%= f.select :product_id, @products, {}, {class: 'select2'} %>

        <%= f.label :user_id, "User" %>

        <%= f.select :user_id, @users, {}, {class: 'select2'} %>

        <%= f.label :start_datetime, "Start Date" %>

        <%= f.datetime_select :start_datetime %>

        <%= f.label :end_datetime, "End Date" %>

        <%= f.datetime_select :end_datetime %>

        <%= f.label :num_seats, "Number of Seats" %>

        <%= f.number_field :num_seats %>

        <%= f.label :token, "Token" %>

        <%= f.text_field :token %>

        <%= f.label :is_renewal, "Is renewal: #{@account_subscription.is_renewal}"%>

        <%= f.label :renewal_date, "Renewal Date: #{@account_subscription.renewal_date}"%>

        <%= f.error_message_on :product %>
    <% end %>

Fix up to previous commit

Fix up to previous commit


      Welcome, <%= current_user.name %>!

      <%= image_tag "#{@club.logo}" %>

<%= @club.name %>

<%= @club.description %>

Add Welcome Heading for Club Edit

Add Welcome Heading for Club Edit

Add a welcome heading to the Club edit page that includes the currently
signed up user.


Hello <%= @resource.full_name %>!

Someone has requested a password change for your AACT (Aggregated Analysis of ClinicalTrials.gov) database account. You can do this through the link below.

<%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %>

If you didn't request this, please ignore this email.

Your password won't change until you access the link above and create a new one.

<%= link_to 'AACT Website', aact.ctti-clinicaltrials.org %>

Hello <%= @resource.full_name %>!

Someone has requested a password change for your AACT (Aggregated Analysis of ClinicalTrials.gov) database account. You can do this through the link below.

<%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %>

If you didn't request this, please ignore this email.

Your password won't change until you access the link above and create a new one.

<%= link_to 'AACT Website', 'https://aact.ctti-clinicaltrials.org' %>

aact-458: Fix link to aact in reset password instructions


  <%= partial 'partials/file_link', :locals => {:file => wadl } %>
  <%= partial 'partials/file_link', :locals => {:file => swagger_yaml } %>
  <%= partial 'partials/file_link', :locals => {:file => swagger_json } %>

  <%- if swagger_json.nil? -%>
    N/A
  <%- else -%>
    <%- raw_git_url = "https://rawgit.com/rackerlabs/wadl2swagger/gh-pages/swagger/" -%>
    <%- validator_url = "http://online.swagger.io/validator?url=#{raw_git_url}#{basename}.json" -%>
    <%- validator_debug_url = "http://online.swagger.io/validator/debug?url=#{raw_git_url}#{basename}.json" -%>

    <%- edit_url = "http://editor.swagger.io/#/edit?import=#{raw_git_url}#{basename}.json" -%>
    <a href="<%= edit_url %>"><img src="<%= validator_url %>"/>

  <%- end -%>

  <%= partial 'partials/file_link', :locals => {:file => wadl } %>
  <%= partial 'partials/file_link', :locals => {:file => swagger_yaml } %>
  <%= partial 'partials/file_link', :locals => {:file => swagger_json } %>

  <%- if swagger_json.nil? -%>
    N/A
  <%- else -%>
    <%- raw_git_url = "https://rawgit.com/rackerlabs/wadl2swagger/gh-pages/swagger/" -%>
    <%- validator_url = "http://online.swagger.io/validator?url=#{raw_git_url}#{basename}.json" -%>
    <%- validator_debug_url = "http://online.swagger.io/validator/debug?url=#{raw_git_url}#{basename}.json" -%>
    <%- edit_url = "http://editor.swagger.io/#/edit?import=#{raw_git_url}#{basename}.yaml" -%>
    <a href="<%= edit_url %>"><img src="<%= validator_url %>" target="_blank"/>

  <%- end -%>

Load editor w/ YAML again, and open links in a new window.


    <%= f.select method, collection.map{ |c| [c.send(text_method), c.send(value_method), {:'data-url' => c.send(preview_url_method)}] }, options, html_options %>

  <%= image_tag nil, class: "image-association-select-image -hidden" %>

    <%= f.select method, collection.map{ |c| [c.send(text_method), c.send(value_method), {:'data-url' => c.send(preview_url_method)}] }, options, html_options %>

  <%= tag :img, class:"image-association-select-image -hidden" %>

Use tag instead of image_tag for image_association_select

Closes #55