    <% if @result.result_flags.count == 0 %>

No workflows specified.

    <% end %>
    <% @result.result_flags.each do |result_flag| %>

<%= result_flag.try(:flag).try(:name) %>

      <a href="#" data-dropdown="drop<%= result_flag.id %>" class="button dropdown tiny secondary"><%= result_flag.stage.try(:name) %>

      <ul id="drop<%= result_flag.id %>" data-dropdown-content class="f-dropdown">
        <% result_flag.try(:stage).try(:next_steps).each do |next_step| %>

<%= link_to next_step.name, action_result_path(@result, result_flag.id, next_step.id), remote: true, method: :post %>

        <% end %>

    <% end %>

    <% if @result.result_flags.count == 0 %>

No workflows specified.

    <% end %>
    <% @result.result_flags.each do |result_flag| %>

<%= result_flag.try(:flag).try(:name) %>

      <a href="#" data-dropdown="drop<%= result_flag.id %>" class="button dropdown tiny secondary"><%= result_flag.try(:stage).try(:name) %>

      <ul id="drop<%= result_flag.id %>" data-dropdown-content class="f-dropdown">
        <% result_flag.try(:stage).try(:next_steps).try(:each) do |next_step| %>

<%= link_to next_step.name, action_result_path(@result, result_flag.id, next_step.id), remote: true, method: :post %>

        <% end %>

    <% end %>

Fix "undefined method 'each' for nil:NilClass" when result_flag is nil.


<% if @page_modules.none? %>

<%= t('page_module_collections.index.empty_collection') %>

<% else %>

      <tr class='<%= cycle('odd', 'even') %>'>
        <%= t('general.attributes.title') %>
        <%= t('general.attributes.slug') %>
        <%= t('general.attributes.published') %>

      <%= render partial: 'page_modules/page_module', collection: @page_modules %>

  <%= will_paginate @page_module_collections, renderer: BootstrapPagination::Rails %>
<% end %>

<% if @page_modules.none? %>

<%= t('page_modules.index.empty_collection') %>

<% else %>

      <tr class='<%= cycle('odd', 'even') %>'>
        <%= t('general.attributes.title') %>
        <%= t('general.attributes.slug') %>
        <%= t('general.attributes.published') %>

      <%= render partial: 'page_modules/page_module', collection: @page_modules %>

  <%= will_paginate @page_modules, renderer: BootstrapPagination::Rails %>
<% end %>

Complete renaming of model for copy, pasting and replacing the collection partial pattern.


<% if person.has_photo? %>
  <%= image_tag tn_person_photo_path(person, :m => person.updated_at.to_s(:number)), :alt => person.name, :class => 'icon thumbnail' %>
<% else %>
  <% if person.gender.to_s == 'Female' %>
    <%= image_tag 'woman.tn.gif', :alt => person.name, :class => 'icon thumbnail' %>
  <% else %>
    <%= image_tag 'man.tn.gif', :alt => person.name, :class => 'icon thumbnail' %>
  <% end %>
<% end %>

<% if person and person.has_photo? %>
  <%= image_tag tn_person_photo_path(person, :m => person.updated_at.to_s(:number)), :alt => person.name, :class => 'icon thumbnail' %>
<% else %>
  <% if person and person.gender.to_s == 'Female' %>
    <%= image_tag 'woman.tn.gif', :alt => person.name, :class => 'icon thumbnail' %>
  <% else %>
    <%= image_tag 'man.tn.gif', :alt => person.name, :class => 'icon thumbnail' %>
  <% end %>
<% end %>

Fix thumbnail on deleted person.

Fix thumbnail on deleted person.


<script src="https://cdn.auth0.com/js/lock-7.9.min.js"></script>
<script type="text/javascript">

  var lock = new Auth0Lock('WuwkvmO3lwnNQO0u7LMQrhYkiKlTjLGW', 'nghborly.auth0.com');
  var url = (document.location.origin + "/auth/auth0/callback")

  function signin() {
    lock.show({
        callbackURL: url
      , responseType: 'code'
      , authParams: {
        scope: 'openid profile'
      }
    });
  }
</script>
<button onclick="window.signin();">Login</button>

<script src="https://cdn.auth0.com/js/lock-7.9.min.js"></script>
<script type="text/javascript">

  var lock = new Auth0Lock('WuwkvmO3lwnNQO0u7LMQrhYkiKlTjLGW', 'nghborly.auth0.com');
  var url = (document.location.origin + "/auth/auth0/callback")

  function signin() {
    lock.show({
        callbackURL: url
      , responseType: 'code'
      , authParams: {
        scope: 'openid profile'
      }
    });
  }
</script>
Hi neighbor!
<button onclick="window.signin();">Log in</button>
To get started.

Add text to login button

Add text to login button


          <img src="<%= current_user.image %>" alt="">
          <%= current_user.name %>

Share

Logout

          <img src="<%= current_user.image %>" alt="">
          <%= current_user.name %>

Share

<a href='/users/<%= current_user.id %>/edit' id='update_user_settings'>My Settings

Logout

Add Settings option to dropdown

Add Settings option to dropdown


<% provide(:title, "PAX Attendance") %>
<% provide(:meta_description, "Paul’s attendance at PAX events") %>

PAX Attendance

I’ve attended <%= link_to "Penny Arcade Expo", "http://www.paxsite.com/", target: :_blank %> several times.

<% @paxen.each do |k, pax_data| %>
  <% pax_data.store(:gallery, k) %>
  <%= render partial: "static_pages/galleries/pax_tile", locals: pax_data %>
<% end %>

Click on the badges to see photo galleries!

<% provide(:title, "PAX Attendance and Photos") %>
<% provide(:meta_description, "Paul’s attendance at PAX events") %>

PAX Attendance and Photos

I’ve attended <%= link_to "Penny Arcade Expo", "http://www.paxsite.com/", target: :_blank %> several times. Select a badge to see a photo gallery!

<% @paxen.each do |k, pax_data| %>
  <% pax_data.store(:gallery, k) %>
  <%= render partial: "static_pages/galleries/pax_tile", locals: pax_data %>
<% end %>

Update title and body text on PAX

Update title and body text on PAX


$('.js-calories-form').replaceWith('<%=j render 'calories/form' %>');
$('.js-notices').replaceWith('<%=j render 'shared/notices' %>');
$('.js-filter-form :submit').click();

Refresh grid after chaging user calories setting.


            <%= image_tag("friends-page") %>

Friends Page

You have <%= @friends.count %> friends

            <%= render partial: 'friend_card', collection: @friends, as: :friend %>

Create the Index template for display all the friends of an user

- Add parallax effect to the page


Welcome#index

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

<%= javascript_pack_tag 'application' %>
<%= react_component 'Post', { title: 'A working react component', body: 'Simple but effective', imagePath: image_path('powpow.jpg') }, prerender: true %>

Welcome#index

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

<%= javascript_pack_tag 'welcome' %>
<%= react_component 'Post', { title: 'A working react component', body: 'Simple but effective', imagePath: image_path('powpow.jpg') } %>

Remove prerender: true from Post component


<%= render :partial => 'shared/form_errors', :locals => {:object => @reading} %>

  <%= f.label :label, class: 'control-label' %>

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

  <%= f.label :grade, class: 'control-label' %>

  <%= f.text_field :grade, class: 'form-control' %>

  <%= f.label :color, class: 'control-label' %>

    <%= f.text_field :color, :id => "color-form", class: 'form-control' %>
    <input type="button" class="btn btn-info" value="Pick color" id="pickcolor-button"></input>

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

<%= render :partial => 'shared/form_errors', :locals => {:object => @reading} %>

  <%= f.label :label, class: 'control-label' %>

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

  <%= f.label :grade, class: 'control-label' %>

  <%= f.text_field :grade, class: 'form-control' %>

  <%= f.label :color, class: 'control-label' %>

    <%= f.text_field :color, class: 'form-control' %>
    <input type="button" class="btn btn-info" id="pickcolor_button" value="Pick color"></input>

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

Fix tests by getting id by div instead of defining it


<div class="form-inline light-border modal_content_2" id="modal_content_<%=@count%>">
  <%= form_for @portfolio_name do |form| %>

        <%= form.label t(:name) %>

        <%= form.number_field :name %>

        <%= form.label :global, t(:global) %>

        <%= form.select(:global, ['true', 'false']) %>

        <%= form.submit  t(:update) + t(:portfolio_name) %>

  <% end %>

<div class="form-inline light-border modal_content_2" id="modal_content_<%=@count%>">
  <%= form_for @portfolio_name do |form| %>

        <%= form.label t(:name) %>

        <%= form.text_field :name %>

        <%= form.label :global, t(:global) %>

        <%= form.select(:global, ['true', 'false']) %>

        <%= form.submit  t(:update) + t(:portfolio_name) %>

  <% end %>

Fix text field mislabeled as number field


<% add_to_page_title "Editing: #{@record.to_title}" %>

<%= simple_form_for [:outpost, @record], html: { class: "form-horizontal" } do |f| %>
  <%= render 'errors', f: f %>
  <%= render 'form_fields', record: @record, f: f %>
  <%= render 'extra_fields', f: f %>
  <%= render "/outpost/shared/submit_row", record: @record %>
<% end %>

<% content_for :sidebar do %>

      Last Updated: <%= format_date @record.updated_at, time: true %>

    <%= render "/outpost/shared/form_nav" %>

<% end %>

<% content_for :footer do %>

<% end %>

<% add_to_page_title "Editing: #{@record.to_title}" %>

<%= simple_form_for [:outpost, @record], html: { class: "form-horizontal" } do |f| %>
  <%= render 'errors', f: f %>
  <%= render 'form_fields', record: @record, f: f %>
  <%= render 'extra_fields', f: f %>
  <%= render "/outpost/shared/submit_row", record: @record %>
<% end %>

<% content_for :sidebar do %>

      Last Updated: <%= format_date @record.updated_at, time: true %>

      <% if @record.respond_to? :status_text %>
        <span class="<%=status_bootstrap_map[@record.status]%>"><%= @record.status_text %>
      <% end %>

      <% if @record.respond_to?(:published_at) && @record.respond_to?(:published?) && @record.published? %>
        on <%= format_date @record.published_at, time: true %>
      <% end %>

      <% if @record.respond_to?(:publish_alarm) && @record.publish_alarm.present? && @record.publish_alarm.fire_at.present? %>
        Alarm - <%= format_date @record.publish_alarm.fire_at, time: true %>
      <% end %>

    <%= render "/outpost/shared/form_nav" %>

<% end %>

<% content_for :footer do %>

<% end %>

Add some more stuff to the sidebar by default


<%
winner = @competition.projects.order_by_points.first
%>

Meet the Inagural Billion Winner

The Columbus Community has spoken!

        <%= render partial: 'shared/project_card', locals: { project: winner } %>

<%
winner = @competition.projects.order_by_points.first
%>

Meet the Inaugural Billion Winner

The Columbus Community has spoken!

        <%= render partial: 'shared/project_card', locals: { project: winner } %>

Fix typo in winner section.

Fix typo in winner section.


<% form_tag({:action => :go, :department_id => @department}, {:id => 'date_form', :class => 'onchange_submit', :method => :get} ) do %>
  <%= select_tag :date, options_for_select(last_10_dates.map{|d|d.to_s(:long)}, Payform.default_period_date(date, @department).to_s(:long)) %>
  <%= submit_tag "Change Date", :id => 'submit_date', :class => 'no_js' %>
<% end %>

<% form_tag({action: :go, department_id: @department},
            {id: 'date_form', class: 'onchange_submit', method: :get} ) do %>
  <%= select_tag :date, options_for_select(last_10_dates.map{|d|d.to_s(:long)},
                        Payform.default_period_date(date, @department).to_s(:long)) %>
  <%= submit_tag "Change Date", id: 'submit_date' %>
<% end %>

Remove no_js from payforms/_date_select, reformat spacing, new hashsyntax


<% if current_page?(:controller => 'search', :action => 'search_boxed') %>
  <div class="results-more">
  <% if @results['total'] > 0 %>
    <%= link_to(
      "View all #{number_with_delimiter(@results['total'])} results",
      @results['view_more_url'],
      data: {count: @results['total']}, class: 'button button-subtle') %>
  <% else %>
    No results found.
  <% end %>
  </div>
<% end %>

<% if current_page?(:controller => 'search', :action => 'search_boxed') %>
  <div class="results-more">
  <% if @results['total'] > 0 %>
    <%= link_to(
      "View all #{number_with_delimiter(@results['total'])} results",
      @results['view_more_url'],
      data: {count: number_with_delimiter(@results['total'])}, class: 'button button-subtle') %>
  <% else %>
    No results found.
  <% end %>
  </div>
<% end %>

Use same number format in heading we do in view more


<% set_meta_tags(description: category.description) %>

<%= title category.title %>

<%= category.description %>

    <% category.contents.each do |subcategory| %>

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

        <% if subcategory.contents.present? %>

          <% subcategory.contents.each do |subsubcategory| %>

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

          <% end%>

        <% end %>

    <% end %>

Set meta description on category page

Set meta description on category page


  <% if article.published? %>
  <form accept-charset="UTF-8" action="/editor/articles/<%= article.id %>/publishing" method="post">
    <input type="hidden" name="_method" value="delete" />
    <button type="submit" class="btn btn-danger pull-right">Unpublish</button>
  <% else%>
    <form accept-charset="UTF-8" action="/editor/articles/<%= article.id %>/publishing" method="post">
      <button type="submit" class="btn btn-success pull-right">Publish</button>
    </form>
  <% end %>

  <a href="/editor/articles/<%= article.id %>/edit" class="btn btn-default pull-right">Edit

<%= article.title %> <%= article.author %>

  <%= article.content %>

    <% if article.published? %>

        <form accept-charset="UTF-8" action="/editor/articles/<%= article.id %>/publishing" method="post">
          <input type="hidden" name="_method" value="delete" />
          <button type="submit" class="btn btn-danger">Unpublish</button>
        </form>

    <% else%>

        <form accept-charset="UTF-8" action="/editor/articles/<%= article.id %>/publishing" method="post">
          <button type="submit" class="btn btn-success">Publish</button>
        </form>

    <% end %>

      <a href="/editor/articles/<%= article.id %>/edit" class="btn btn-default pull-right">Edit

<%= article.title %> <%= article.author %>

  <%= article.content %>

Fix button spacing on article show page

Fix button spacing on article show page


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

      </button>
      <%= link_to "RDRC'17 CFP", root_path, class: "navbar-brand" %>

        <% if current_user %>

<%= link_to "My papers", my_papers_path %>

<%= link_to "My profile", my_profile_path %>

<%= link_to "Sign out", sign_out_github_path, method: :delete %>

        <% else %>

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

        <% end %>

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

      </button>
      <%= link_to "RDRC'17 CFP", root_path, class: "navbar-brand" %>

        <% if current_user %>

                <%= link_to "New paper", new_my_paper_path, class: "btn btn-success" %>

<%= link_to "My papers", my_papers_path %>

<%= link_to "My profile", my_profile_path %>

<%= link_to "Sign out", sign_out_github_path, method: :delete %>

        <% else %>

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

        <% end %>

Add New paper button to header

Add New paper button to header


<% if @question.tags.any? %>
<div class="tags-display">
  <%= glyph :tags, 2, 'tag' %>
  <% @question.tags.each do |tag| %>
  <%= content_tag :span, tag.name, :class => 'tag' %>
  <% end %>
</div>
<% end %>

Add partial for rendering tags

Add partial for rendering tags


Styleguide

Welcome to the internal Money Advice Service (MAS) styleguide.

This is where you should look if you're interested in how to write code for MAS. We have a living HTML styleguide,
  CSS styleguide, SASS styleguide, JavaScript styleguide and some recommendations on
  how to write Ruby code.

Living Styleguide

Welcome to the internal Money Advice Service (MAS) style guide.

This is where you should look if you're interested in how to write code for MAS. We have a living HTML styleguide,
  CSS styleguide, SASS styleguide, JavaScript styleguide and some recommendations on
  how to write Ruby code.

Edit text on the overview page.

Edit text on the overview page.


  <%= track_icon(track_info.language, '60') %>

<%= track_info.track.language %>

    <% if track_info.completed? %>

Completed: <%= 'Problem'.pluralize(track_info.completed) %>

    <% end %>
    <% if track_info.reviewed? %>

Reviewed: <%= 'Iteration'.pluralize(track_info.reviewed) %>

    <% end %>

  <%= track_icon(track_info.language, '60') %>

<%= track_info.track.language %>

    <% if track_info.completed? %>

Completed: <%= track_info.completed %> <%= 'Problem'.pluralize(track_info.completed) %>

    <% end %>
    <% if track_info.reviewed? %>

Reviewed: <%= track_info.reviewed %> <%= 'Iteration'.pluralize(track_info.reviewed) %>

    <% end %>

Add missing numbers in profile progress

Add missing numbers in profile progress


  <% @messages.each do |message| %>

        <a href="<%= person_path(message.person) %>">
          <%= render :partial => 'people/thumbnail', :locals => {:person => message.person} %>

        <%= render :partial => 'walls/message', :locals => {:message => message} %>

  <% end %>

Remove extra spacing from wall messages.


<%= content_tag(:li, class: "version") do %>
  <% if audit_trail_entry.action == "published" %>
    <%= link_to "[Compare with previous version]", diff_admin_edition_path(@edition, audit_trail_entry_id: audit_trail_entry.version.item_id) %>
  <% end %>

  <div class="image">
    <%= gravatar_image(audit_trail_entry.actor, ssl: request.ssl?) %>
  </div>
  <%= describe_audit_trail_entry(audit_trail_entry) %>
<% end %>

<%= content_tag(:li, class: "version") do %>
  <% if audit_trail_entry.action == "published" && @edition.id != audit_trail_entry.version.item_id %>
    <%= link_to "[Compare with previous version]", diff_admin_edition_path(@edition, audit_trail_entry_id: audit_trail_entry.version.item_id) %>
  <% end %>

  <div class="image">
    <%= gravatar_image(audit_trail_entry.actor, ssl: request.ssl?) %>
  </div>
  <%= describe_audit_trail_entry(audit_trail_entry) %>
<% end %>

Fix to prevent comparing latest published edition with itself


<%= fields_for "form[fields][#{index}]", field do |f| %>

      <%= f.hidden_field :_type %><%= f.label :name, 'Name *' %><%= f.text_field :name %>
      Multi-Select box
      <%= f.label :label, 'Label' %><%= f.text_field :label %>
      <%= f.label :default, 'Default Option' %><%= f.text_field :default %>
      -
      <%= f.label :options, 'Options' %><%= f.text_field :options %>
      <%= f.label :required, 'Required?' %><%= f.check_box :required %>
      up
      down
      <%= link_to_function 'Delete', 'return delete_form_field(this);', :class => 'delete' %>

<% end %>

<%= fields_for "form[fields][#{index}]", field do |f| %>

      <%= f.hidden_field :_type %><%= f.label :name, 'Name *' %><%= f.text_field :name %>
      Multi-Select box
      <%= f.label :label, 'Label' %><%= f.text_field :label %>
      -
      -
      <%= f.label :options, 'Options' %><%= f.text_field :options %>
      <%= f.label :required, 'Required?' %><%= f.check_box :required %>
      up
      down
      <%= link_to_function 'Delete', 'return delete_form_field(this);', :class => 'delete' %>

<% end %>

Remove ability to set a default for Multi-selects

Doesn't make sense to have a default for this type of field


require "spec_helper"

describe Endpoints::<%= plural_class_name %> do
  include Committee::Test::Methods
  include Rack::Test::Methods

  def app
    Routes
  end

  it "GET <%= url_path %>" do
    get "<%= url_path %>"
    last_response.status.should eq(200)
    last_response.body.should eq("[]")
  end

  it "POST <%= url_path %>/:id" do
    post "<%= url_path %>"
    last_response.status.should eq(201)
    last_response.body.should eq("{}")
  end

  it "GET <%= url_path %>/:id" do
    get "<%= url_path %>/123"
    last_response.status.should eq(200)
    last_response.body.should eq("{}")
  end

  it "PATCH <%= url_path %>/:id" do
    patch "<%= url_path %>/123"
    last_response.status.should eq(200)
    last_response.body.should eq("{}")
  end

  it "DELETE <%= url_path %>/:id" do
    delete "<%= url_path %>/123"
    last_response.status.should eq("{}")
    last_response.body.should eq("{}")
  end
end

require "spec_helper"

describe Endpoints::<%= plural_class_name %> do
  include Committee::Test::Methods
  include Rack::Test::Methods

  def app
    Routes
  end

  it "GET <%= url_path %>" do
    get "<%= url_path %>"
    last_response.status.should eq(200)
    last_response.body.should eq("[]")
  end

  it "POST <%= url_path %>/:id" do
    post "<%= url_path %>"
    last_response.status.should eq(201)
    last_response.body.should eq("{}")
  end

  it "GET <%= url_path %>/:id" do
    get "<%= url_path %>/123"
    last_response.status.should eq(200)
    last_response.body.should eq("{}")
  end

  it "PATCH <%= url_path %>/:id" do
    patch "<%= url_path %>/123"
    last_response.status.should eq(200)
    last_response.body.should eq("{}")
  end

  it "DELETE <%= url_path %>/:id" do
    delete "<%= url_path %>/123"
    last_response.status.should eq(200)
    last_response.body.should eq("{}")
  end
end

Fix DELETE acceptance test template

Fix DELETE acceptance test template


Contact the [Embassy of Morocco](/government/publications/foreign-embassies-in-the-uk) before making any plans to find out about local marriage laws, including what documents you’ll need.

You also need to contact the Marriage Officer (Laadoul) in the city where you are going to get married.

^You should [get legal advice](/government/collections/list-of-lawyers) and check the [travel advice for Morocco](/foreign-travel-advice/morocco) before making any plans.

##What you need to do

You’ll be asked to provide an affirmation or affidavit document to prove you’re allowed to marry.

Make an appointment at the British embassy or consulate in Morocco to swear an affidavit (written statement of facts) that you’re free to marry. You’ll need to bring your passport, your partner’s passport and pay a fee.

Make an appointment at the [embassy in Rabat](https://www.book-consular-appointment.service.gov.uk/TimeSelection?location=52&service=13) or the [British Honorary Consulate Marrakech](https://www.book-consular-appointment.service.gov.uk/TimeSelection?location=54&service=13).

^Your partner must get an affirmation as well.^

###Legalisation and translation

You’ll need to get your affirmation or affidavit [translated](/government/collections/lists-of-translators-and-interpreters) into the local language and ‘[legalised](/get-document-legalised)’ (certified as genuine) by the local authorities - the embassy or consulate should be able to give you advice.

If you’ve been divorced or widowed, you’ll need to provide:

- a [decree absolute or final order](/copy-decree-absolute-final-order) or [death certificate](/order-copy-birth-death-marriage-certificate/)
- evidence of nationality or residence where your divorce took place if it was outside the UK. You’ll need to get it [translated](/government/collections/lists-of-translators-and-interpreters) if it’s not in English
- evidence if you’ve changed your name by deed poll

^An ’affirmation for marriage’ document issued in Morocco is valid for 3 months.^

## Fees

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

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

<%= render partial: 'how_to_pay', locals: {calculator: calculator} %>

It's not possible for you to get married in Morocco. British nationals can only marry Moroccan nationals in Morocco.

Update Morocco - local, other partner 1

Update Morocco - local, other partner 1


\## Managed by Chef on <%= node.name %> :heart_eyes_cat:
\## cookbook:: travis_build_environment
\##     file:: templates/default/etc/cloud/templates/hosts.tmpl.erb

<% %w(127.0.0.1 127.0.1.1).each do |addr| %>
<%= addr %> $hostname $fqdn
<%= addr %> localhost <%= @hostname %> nettuno travis vagrant
<% end %>

<% if node['ip6address'] %>
<% %W(#{node['ip6address']} ::1).each do |addr| %>
<%= addr %> $hostname $fqdn
<%= addr %> localhost <%= @hostname %> nettuno travis vagrant ip6-localhost ip6-loopback
<% end %>
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
<% end %>

\## Managed by Chef on <%= node.name %> :heart_eyes_cat:
\## cookbook:: travis_build_environment
\##     file:: templates/default/etc/cloud/templates/hosts.tmpl.erb

<% %w(127.0.0.1 127.0.1.1).each do |addr| %>
<%= addr %> $hostname $fqdn
<%= addr %> localhost <%= @hostname %> nettuno travis vagrant
<% end %>

<% unless node['travis_build_environment']['sysctl_disable_ipv6'] %>
<% if node['ip6address'] %>
<% %W(#{node['ip6address']} ::1).each do |addr| %>
<%= addr %> $hostname $fqdn
<%= addr %> localhost <%= @hostname %> nettuno travis vagrant ip6-localhost ip6-loopback
<% end %>
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
<% end %>
<% end %>

Apply ipv6 disabling logic to cloud-init template


[program:docker-<%= @title %>]
command=docker start -a fuel-core-<%= @release %>-<%= @title %>
numprocs=1
numprocs_start=0
priority=30
autostart=true
autorestart=true
startsecs=10
startretries=1000000
exitcodes=0,2
stopsignal=KILL
stopwaitsecs=60
redirect_stderr=true
stdout_logfile=/var/log/%(program_name)s.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=10
stdout_capture_maxbytes=0
stdout_events_enabled=false
stderr_logfile=/var/log/%(program_name)serr.log
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=10
stderr_capture_maxbytes=0
stderr_events_enabled=false
serverurl=AUTO

[program:docker-<%= @title %>]
command=dockerctl -V <%= @release %> start <%= @title %> --attach
numprocs=1
numprocs_start=0
priority=30
autostart=true
autorestart=true
startsecs=10
startretries=1000000
exitcodes=0,2
stopsignal=KILL
stopwaitsecs=60
redirect_stderr=true
stdout_logfile=/var/log/%(program_name)s.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=10
stdout_capture_maxbytes=0
stdout_events_enabled=false
stderr_logfile=/var/log/%(program_name)serr.log
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=10
stderr_capture_maxbytes=0
stderr_events_enabled=false
serverurl=AUTO

Use dockerctl start for supervisorctl container launch

If docker daemon is restarted, the mount points are not safely
torn down. dockerctl cleans these up before trying to start
the container and therefore should be used.

There was an original change to use direct docker commands
because you could not start a container from a different
Fuel release, but now this is possible and works. Therefore,
this patch depends on the patch that fixes it.

Depends-On: Ia864b0a9843f927aa85945e5ab0b2da4bec3a440
Change-Id: Ie3e471d1c394fac9228b7e2bf4b6877775680b3b
Closes-Bug: #1511294


---
- scm:
    name: govuk-provisioning_Check_CDN_IP_Ranges
    scm:
        - git:
            url: git@github.gds:gds/govuk-provisioning.git
            branches:
              - master

- job:
    name: Check_CDN_IP_Ranges
    display-name: Check_CDN_IP_Ranges
    project-type: freestyle
    description: "This job compares the published IP ranges of our Cloudflare and Fastly IPs against the ranges configured in gov      uk-provisioning and errors if they don't match"
    properties:
        - github:
            url: https://github.gds/gds/govuk-provisioning/
    scm:
      - govuk-provisioning_Check_CDN_IP_Ranges
    builders:
        - shell: |
            bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
            bundle exec ./tools/cdn_ips.rb production_carrenza
    publishers:
        - email:
            recipients: webops@digital.cabinet-office.gov.uk
    triggers:
        - timed: 'H 3 * * *'

---
- scm:
    name: govuk-provisioning_Check_CDN_IP_Ranges
    scm:
        - git:
            url: git@github.gds:gds/govuk-provisioning.git
            branches:
              - master

- job:
    name: Check_CDN_IP_Ranges
    display-name: Check_CDN_IP_Ranges
    project-type: freestyle
    description: "This job compares the IP ranges that Fastly publishes against the ranges configured in govuk-provisioning and errors if they don't match."
    properties:
        - github:
            url: https://github.gds/gds/govuk-provisioning/
    scm:
      - govuk-provisioning_Check_CDN_IP_Ranges
    builders:
        - shell: |
            bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
            bundle exec ./tools/cdn_ips.rb production_carrenza
    publishers:
        - email:
            recipients: webops@digital.cabinet-office.gov.uk
    triggers:
        - timed: 'H 3 * * *'

Update CDN IPs Jenkins job description

Update CDN IPs Jenkins job description


<!DOCTYPE html>
<html>
<body>

<p>
The <%= link_to 'Peek at Our Week(s) and Vocabulary', parents_peek_current_url %> for our upcoming unit has been posted for you to view. Login to see what fun and important learning we will be engaged in during the weeks ahead.
</p>

<%= render 'layouts/mailers/footer' %>
</body>
</html>

<!DOCTYPE html>
<html>
<body>

<p>
The <%= link_to 'Peek at Our Week(s) and Vocabulary', parents_curriculum_current_peek_url %> for our upcoming unit has been posted for you to view. Login to see what fun and important learning we will be engaged in during the weeks ahead.
</p>

<%= render 'layouts/mailers/footer' %>
</body>
</html>

Fix URL for current Peek

Fix URL for current Peek


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

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

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

        <% if question.has_hint? %>

<%= question.hint %>

        <% end %>

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

              <%= @presenter.error %>

          <% end %>

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

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

  </form>

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

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

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

        <% if question.has_hint? %>

<%= question.hint %>

        <% end %>

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

              <%= @presenter.error %>

          <% end %>

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

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

  </form>

Change input submit to button tag

Change input submit to button tag

Enable CSS in alphagov/static#124 to work


#!/bin/bash

address=<%= p("diego.rep.listen_addr").sub(/^0\.0\.0\.0:/, "localhost:") %>
start=`date +%s`
timeout=300

echo "$(date): Pinging rep..."
i=1

while [ $(( $(date +%s) - $timeout )) -lt $start ]; do
  if curl --fail --silent http://$address/ping >/dev/null 2>&1; then
    echo "$(date): Success!"
    exit 0
  fi
  echo "$(date): Attempt $i failed. Trying again..."
  i=$((i + 1))
  sleep 1
done

echo "$(date): Timed out pinging rep. Failing post-start."
exit 1

#!/bin/bash

function convert_to_seconds {
  hours_in_seconds=0
  minutes_in_seconds=0
  seconds=0

  if echo "$1" | grep -q '[0-9]\+h'; then
    hours_in_seconds=$(($(echo "$1" | grep -o '[0-9]\+h' | grep -o "[0-9]\+")*3600))
  fi

  if echo "$1" | grep -q '[0-9]\+m'; then
    minutes_in_seconds=$(($(echo "$1" | grep -o '[0-9]\+m' | grep -o "[0-9]\+")*60))
  fi

  if echo "$1" | grep -q '[0-9]\+s'; then
    seconds=$(echo "$1" | grep -o '[0-9]\+s' | grep -o "[0-9]\+")
  fi

  total_seconds=$(($hours_in_seconds + $minutes_in_seconds + $seconds))

  echo $total_seconds
}

address=<%= p("diego.rep.listen_addr").sub(/^0\.0\.0\.0:/, "localhost:") %>
start=`date +%s`
timeout=$(convert_to_seconds <%= p("diego.executor.garden_healthcheck.timeout") %>)

echo "$(date): Pinging rep..."
i=1

while [ $(( $(date +%s) - $timeout )) -lt $start ]; do
  if curl --fail --silent http://$address/ping >/dev/null 2>&1; then
    echo "$(date): Success!"
    exit 0
  fi
  echo "$(date): Attempt $i failed. Trying again..."
  i=$((i + 1))
  sleep 1
done

echo "$(date): Timed out pinging rep. Failing post-start."
exit 1

Use garden healthcheck timeout as rep timeout

Signed-off-by: Mark DeLillo <cb16bf7df25dbf84b90c1f94696c8a91f946dc1d@pivotal.io>


<%= t("projects.index.activity_tab") %>

  <% if @activities.size == 0 then %>

<%= t 'projects.index.no_activities' %>

  <% else %>
    <% @activities.each do |activity| %>

<%= l activity.created_at, format: :full %>

<%= activity_truncate(activity.message) %>

    <% end %>
  <% end %>

<%= t("projects.index.activity_tab") %>

  <% if @activities.size == 0 then %>

<%= t 'projects.index.no_activities' %>

  <% else %>
    <% @activities.each do |activity| %>

<%= l activity.created_at, format: :full %>

          <%= activity_truncate(activity.message) %>
          <% if activity.my_module %>
            [<%=t 'Module' %>:
            <% if activity.my_module.name.length >
                   Constants::NAME_TRUNCATION_LENGTH %>
              <%= truncate(activity.my_module.name,
                lenght: Constants::NAME_TRUNCATION_LENGTH) %>
            <% else %>
              <%= activity.my_module.name %>
            <% end %>]
          <% end %>

    <% end %>
  <% end %>

Add task name to project activity

Add task name to project activity [SCI-275]


    <div class="Slider__control" data-config="<%= { start: @lesson_obj.teaching_range.present? ? @lesson_obj.teaching_range.to_a : [3,5], connect: true, step: 1, range: { min: -1, max: 12 }, unit: 'ordinal' }.to_json %>">
      <input type="hidden" name="lesson[teaching_range]" value="<%= @lesson_obj.teaching_range %>" />

    <div class="Slider__control" data-config="<%= { start: @lesson_obj.teaching_range.to_a : [3,5], connect: true, step: 1, range: { min: -1, max: 12 }, unit: 'ordinal' }.to_json %>">
      <input type="hidden" name="lesson[teaching_range]" value="{ start: 1, end: 6 }" />

Set a stringy json to show how the js sets this value


#!/bin/bash

cd <%= @options[:app].path %>/current

exec 2>&1
exec <%= node[:runit][:chpst_bin] %> \
  -u <%= @options[:app].owner %>:<%= @options[:app].group %> \
  <%= @options[:bundler] ? "#{@options[:bundle_command]} exec" : '' %> \
  <%= @options[:smells_like_rack] ? 'unicorn' : 'unicorn_rails' %> \
  -E <%= @options[:rails_env] %> \
  -c /etc/unicorn/<%= @options[:app].application.name %>.rb

#!/bin/bash

export HOME=<%= @options[:app].path %>

cd <%= @options[:app].path %>/current

exec 2>&1
exec <%= node[:runit][:chpst_bin] %> \
  -u <%= @options[:app].owner %>:<%= @options[:app].group %> \
  <%= @options[:bundler] ? "#{@options[:bundle_command]} exec" : '' %> \
  <%= @options[:smells_like_rack] ? 'unicorn' : 'unicorn_rails' %> \
  -E <%= @options[:rails_env] %> \
  -c /etc/unicorn/<%= @options[:app].application.name %>.rb

Add HOME env var to satisfy readline

[COOK-4395] Add HOME env var to satisfy readline


<!DOCTYPE html>
<html lang="<%= I18n.locale %>">
<head>
  <meta charset="utf-8" />
  <meta name="ROBOTS" content="NOODP" />
  <meta name="viewport" content="initial-scale=1" />
  <%%#
    Configure default and controller-, and view-specific titles in
    config/locales/en.yml. For more see:
    https://github.com/calebthompson/title#usage
  %>
  <title><%%= title %></title>
  <%%= stylesheet_link_tag :application, media: "all" %>
  <%%= csrf_meta_tags %>
</head>
<body class="<%%= body_class %>">
  <%%= render "flashes" -%>
  <%%= yield %>
  <%%= render "javascript" %>
  <%%= render "css_overrides" %>
</body>
</html>

<!DOCTYPE html>
<html lang="<%= I18n.locale %>">
<head>
  <meta charset="utf-8" />
  <meta name="ROBOTS" content="NOODP" />
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
  <%%#
    Configure default and controller-, and view-specific titles in
    config/locales/en.yml. For more see:
    https://github.com/calebthompson/title#usage
  %>
  <title><%%= title %></title>
  <%%= stylesheet_link_tag :application, media: "all" %>
  <%%= csrf_meta_tags %>
</head>
<body class="<%%= body_class %>">
  <%%= render "flashes" -%>
  <%%= yield %>
  <%%= render "javascript" %>
  <%%= render "css_overrides" %>
</body>
</html>

Update the viewport meta tag

Update the viewport meta tag

- Add `width=device-width` to set the virtual viewport to the width of
the device's screen
- Add `shrink-to-fit=no` to tell Safari 9 not to shrink overflowing
content to fit the width of the virtual viewport

References:
- https://css-tricks.com/snippets/html/responsive-meta-tag/
- https://bitsofco.de/ios-safari-and-shrink-to-fit/


Files

<%= embargo_notice(@work) %>

	<% if allow_file_access(@work) %>
		<% if show_proof_embargo_notice(@work) %>

					The files listed below will NOT be available to <%= is_engineering_embargo(@work) ? "anyone" : "the general public" %> until the embargo date has passed.

		<% end %>

			<% @files.each { |file| %>

<%= link_to(file[:title], "#{file[:location]}?filename=#{file[:title]}") %>

Created:<%= file_date_created(file[:date]) %>

			<% } %>

	<% end %>

Files

<%= embargo_notice(@work) %>

	<% if allow_file_access(@work) %>
		<% if show_proof_embargo_notice(@work) %>

					The files listed below will NOT be available to <%= is_engineering_embargo(@work) ? "anyone" : "the general public" %> until the embargo date has passed.

		<% end %>

			<% @files.each { |file| %>

<%= link_to(file[:title], "#{file[:location]}?filename=#{file[:title]}") %>

Uploaded:<%= file_date_created(file[:date]) %>

			<% } %>

	<% end %>

Change label from Created to Uploaded

LIBRA-550: Change label from Created to Uploaded


<!DOCTYPE html>
<html>
  <head>
    <title>Markovky</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
    <%= stylesheet_link_tag 'application', 'https://fonts.googleapis.com/css?family=Audiowide|Source+Serif+Pro' %>

  </head>

  <body>
    <%= render 'home/header' %>
    <%= yield :content%>
    <%= render 'home/footer' %>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title>Markovky</title>
    <%= csrf_meta_tags %>
    <meta name="viewport" content="width=device-width">

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
    <%= stylesheet_link_tag 'application', 'https://fonts.googleapis.com/css?family=Audiowide|Source+Serif+Pro' %>

  </head>

  <body>
    <%= render 'home/header' %>
    <%= yield :content%>
    <%= render 'home/footer' %>
  </body>
</html>

Fix width issue on iphones

Fix width issue on iphones


<!DOCTYPE html>

  <title>StackOverphil</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>

<%= link_to "stackOverphil", root_path %>

<% if logged_in? %>
<<<<<<< Updated upstream

<%= link_to current_user.username, user_path(current_user.id) %> | <%= link_to "logout", logout_path %>

=======

<%= link_to current_user.username, user_path(current_user.id) %> | <%= link_to "logout", logout_path %> | <%= link_to 'Ask a question', new_question_path %>
>>>>>>> Stashed changes
<% else %>

<%= link_to "register", register_path %> | <%= link_to "login", login_path %>

<% end %>

<%= yield %>

<!DOCTYPE html>

  <title>StackOverphil</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tags %>

<%= link_to "stackOverphil", root_path %>

<% if logged_in? %>

<%= link_to current_user.username, user_path(current_user.id) %> | <%= link_to "logout", logout_path %> | <%= link_to 'Ask a question', new_question_path %> |
<% else %>

<%= link_to "register", register_path %> | <%= link_to "login", login_path %>

<% end %>

<%= yield %>

Add new q link formatted

Add new q link formatted


<!DOCTYPE html>
<html>
<head>
  <title>Haunted</title>
  <script src="https://cdn.firebase.com/js/client/1.0.19/firebase.js"></script>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>
  <ul class="hmenu">
    <%= render 'devise/menu/registration_items' %>
    <%= render 'devise/menu/login_items' %>
  </ul>
<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>Haunted</title>
  <script src="https://cdn.firebase.com/js/client/1.0.19/firebase.js"></script>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <% if request.original_url != "http://localhost:3000/" %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <% end %>
  <%= csrf_meta_tags %>
</head>
<body>
  <ul class="hmenu">
    <%= render 'devise/menu/registration_items' %>
    <%= render 'devise/menu/login_items' %>
  </ul>
<%= yield %>

</body>
</html>

Modify layout.erb so that game script does not load on homepage.


<!DOCTYPE html>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Бъдещето е код</title>
  <meta name="description" content="Бъдещето е код е турне на работещи в IT-сферата из училища в страната, организирано от доброволци със съдействието на МОН.">
  <meta name="viewport" content="width=device-width">

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

  <% if notice.present? %>

<%= notice %>

  <% end %>
  <% if alert.present? %>

<%= alert %>

  <% end %>

  <%= yield %>

<!DOCTYPE html>

  <%= render 'layouts/head' %>

  <%= render 'layouts/alerts' %>

      <%= yield %>

  <%= render 'layouts/analytics' %>

Add a default application layout

Add a default application layout


<!DOCTYPE html>

  <title>DynamicPlaylister</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application', 'http://localhost:9292/faye.js' %>
  <%= csrf_meta_tags %>
  <%= analytics_init if Rails.env.production? %>

  <%= render 'layouts/header' %>
  <% if flash[:notice] %>

<%= flash[:notice].join("
").html_safe %>

  <% end %>

    <%= yield %>

<!DOCTYPE html>

  <title>DynamicPlaylister</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'application', 'http://localhost:9292/faye.js' %>
  <%= csrf_meta_tags %>
  <%= analytics_init if Rails.env.production? %>

  <%= render 'layouts/header' %>
  <% if flash[:notice] %>
    <% if flash[:notice].class == Array %>

<%= flash[:notice].join("
").html_safe %>

    <% else %>

<%= flash[:notice] %>

    <% end %>
  <% end %>

    <%= yield %>

Fix error loading pages with one flash message


<!DOCTYPE html>

    <title>Cubecomp</title>

Cubecomp

    <%= yield %>

<!DOCTYPE html>

    <title><%= request.host %></title>

<%= request.host %>

    <%= yield %>

Use request host as front page title

Use request host as front page title


Hello <%= @person -%>

Your profile is only <%= @person.completion_score %>% complete, log in to update your details:

<%= edit_person_url(@person) -%>

Update your profile to stop further reminder emails.

Thanks,
Peoplefinder Team

Hello <%= @person %>

Your profile is only <%= @person.completion_score %>% complete, log in to update your details:

<%= edit_person_url(@person) %>

Update your profile to stop further reminder emails.

Thanks,
Peoplefinder Team

Format reminder email with line spaces

Format reminder email with line spaces


  <%=
    instagram_block_patterns = [
      /<blockquote (.*)<\/blockquote>(\s+)

Fix pattern for Instagram block

Fix pattern for Instagram block


Posts tagged with <%=@tag.name%>:

<% @tag.questions.each do |question| %>
    <%= render partial: "questions/question", locals: {question: question} %>
<% end %>

Add header to tag show page

Add header to tag show page


<%= t("admin.settings.index.title") %>

      <%= t("admin.settings.setting_name") %>
      <%= t("admin.settings.setting_value") %>

    <% @settings.each do |setting| %>

          <%= t("settings.#{setting.key}") %>

            <%= t("settings.#{setting.key}_description", default: t("admin.settings.no_description")) %>

          <%= form_for(setting, url: admin_setting_path(setting), html: { id: "edit_#{dom_id(setting)}"}) do |f| %>

              <%= f.text_area :value, label: false, id: dom_id(setting), lines: 1 %>

              <%= f.submit(t('admin.settings.index.update_setting'), class: "button hollow expanded") %>

          <% end %>

    <% end %>

Change layout on admin settings to prevent broken buttons


    <%= f.label :change_note, "Summary of changes to this edition" %>

    <%= f.text_area :change_note, rows: 3, disabled: @resource.locked_for_edits?, class: "input-md-7 form-control" %>

  <% if f.object.errors[:change_note].any? %>

      <% f.object.errors[:change_note].each do |error| %>

<%= error %>

      <% end %>

  <% end %>

    <%= f.label :major_change, class: "control-label" do %>
      <%= f.check_box :major_change, disabled: @resource.locked_for_edits?, class: "input-md-7" %>
      Alert the public to this change
    <% end %>

<%= form_group(f, :change_note, label: "Summary of changes to this edition", attributes: { id: "edition_change_note_input" }) do %>
  <%= f.text_area :change_note, rows: 3, disabled: @resource.locked_for_edits?, class: "input-md-7 form-control" %>
<% end %>

    <%= f.label :major_change, class: "control-label" do %>
      <%= f.check_box :major_change, disabled: @resource.locked_for_edits?, class: "input-md-7" %>
      Alert the public to this change
    <% end %>

Convert the edition major change fields to use the FormHelper module


<%= sub_nav_tag({}) do %>

    <%= link_to inventory_asset_events_path(@asset) do %>
			 Back
		<% end %>

	<% if can? :update, @asset %>
  	<% if @asset_event && ! @asset_event.new_record? && ! current_page?(edit_inventory_asset_event_path(@asset, @asset_event))%>

    	  <%= link_to edit_inventory_asset_event_path(@asset, @asset_event) do %>
         Update
  		  <% end %>

    	  <%= link_to inventory_asset_event_path(@asset, @asset_event), :method => :delete, :data => {:confirm => "Are you sure you want to remove this event?"} do %>
			  Remove
		    <% end %>

	  <% end %>
	<% end %>
<% end %>

<%= sub_nav_tag({}) do %>

    <%= link_to inventory_path(@asset) do %>
			 Back
		<% end %>

	<% if can? :update, @asset %>
  	<% if @asset_event && ! @asset_event.new_record? && ! current_page?(edit_inventory_asset_event_path(@asset, @asset_event))%>

    	  <%= link_to edit_inventory_asset_event_path(@asset, @asset_event) do %>
         Update
  		  <% end %>

    	  <%= link_to inventory_asset_event_path(@asset, @asset_event), :method => :delete, :data => {:confirm => "Are you sure you want to remove this event?"} do %>
			  Remove
		    <% end %>

	  <% end %>
	<% end %>
<% end %>

Fix back button for asset event's detail subnav


<%form_for prepare_for_form(@attachment), :html => { :multipart => true, :method => :put} do |f|%>
  <% f.fields_for :post do |post_f| %>
	  <%= post_f.hidden_field :title %>
		<%= post_f.hidden_field :text %>
	<% end %>

  <%=t('tags')%>:
	<input id="attachment_tags" type="hidden" value="" name="attachment[_tags][]"/>
	<select id="attachment_edit_tags" multiple="multiple" name="attachment[_tags][]">
	  <%=options_for_select_with_class_selected(@space.tags.map{|t| t.name }, attachment.tags.map{|t| t.name})%>
	</select>
  <button type="submit"><%=t("button.update")%></button>
<%end%>

<%form_for prepare_for_form(@attachment), :html => { :multipart => true, :method => :put} do |f|%>
  <%=t('tags')%>:
	<input id="attachment_tags" type="hidden" value="" name="attachment[_tags][]"/>
	<select id="attachment_edit_tags" multiple="multiple" name="attachment[_tags][]">
	  <%=options_for_select_with_class_selected(@space.tags.map{|t| t.name }, attachment.tags.map{|t| t.name})%>
	</select>
  <button type="submit"><%=t("button.update")%></button>
<%end%>

Edit tag form, post bug fixed

Edit tag form, post bug fixed


Editing bill

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

    <%= f.label :delivery_date %>

    <%= f.date_select :delivery_date %>

    <%= f.label :billing_date %>

    <%= f.date_select :billing_date %>

    <%= f.submit "Update" %>

<% end %>

<%= link_to 'Show', @bill %> |
<%= link_to 'Back', bills_path %>

Editing bill

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

<%= link_to 'Show', @bill %> |
<%= link_to 'Back', bills_path %>

Edit now uses same form as new

Edit now uses same form as new


<% include_tag_hover_highlight ||= false %>

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

    <%= tag_links(@tags[:exclude], :prefix => "-", :with_hover_highlight => true, :with_hover_highlight => include_tag_hover_highlight) %>
    <%= tag_links(@tags[:include], :with_aliases => @include_tag_reverse_aliases, :with_hover_highlight => include_tag_hover_highlight) %>
    <%= tag_links(Tag.find_related(@tags[:related].to_a), :with_hover_highlight => true, :with_hover_highlight => include_tag_hover_highlight) %>

<% include_tag_hover_highlight = false if include_tag_hover_highlight.nil? %>

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

    <%= tag_links(@tags[:exclude], :prefix => "-", :with_hover_highlight => include_tag_hover_highlight) %>
    <%= tag_links(@tags[:include], :with_aliases => @include_tag_reverse_aliases, :with_hover_highlight => include_tag_hover_highlight) %>
    <%= tag_links(Tag.find_related(@tags[:related].to_a), :with_hover_highlight => include_tag_hover_highlight) %>

Remove duplicated key, fix boolean variable initialization.


Edit Profile

	<%= render 'user_form' %>

Edit Profile

	<%= render 'user_form' %>

Delete This Account

			Once you delete this account, there is no going back. Please be certain

			<%= link_to "Delete", @user, method: :delete, data: {confirm: "Are you sure you want to delete your account?"}, class: "button alert" %>

Add Section To Edit Profile, Allow User To Delete


<%= flash[:notice]  %>

<% if admin? %>

Recipes <%= @user.name %> Posted:

<% else %>

Welcome, <%= @user.name %>!

Recipes You've Posted:

<% end %>

  <% @user.recipes.each do |recipe| %>

<%= link_to "#{recipe.title}", recipe %>

  <% end %>

<%= flash[:notice]  %>

<% if admin? %>

Recipes by <%= @user.name %>:

<% else %>

Welcome, <%= @user.name %>!

Recipes You've Posted:

<% end %>

  <% @user.recipes.each do |recipe| %>

<%= link_to "#{recipe.title}", recipe %>

  <% end %>

Change header on user profile page for admin view


  <% if @grade_entry_forms.empty? %>

<%= t(:no_grade_entry_forms_message) %>

  <% else %>

          <%= t(:name) %>

        <% @grade_entry_forms.each do |grade_entry_form| -%>

              <%= link_to grade_entry_form.short_identifier + ': ' + grade_entry_form.description,
                          view_summary_grade_entry_form_path(grade_entry_form.id),
                          data: { remote: true, id: grade_entry_form.short_identifier },
                          class: (grade_entry_form == @current_assignment ? "link_disabled" : "") %>
              <% end %>

        <% end %>

Fix HTML for dashboard spreadsheet list

Fix HTML for dashboard spreadsheet list


  <%= form_tag(master_files_path) do -%>

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

      <%= render partial: "dropbox_file_navigator", locals: {file_set: @dropbox_files} %>

        <%= link_to 'Remove Selected Files', bulk_delete_dropbox_index_path, class: 'btn btn-danger pull-left remove-selected-files' %>
        <%= button_tag "Close", type: "button", class: "btn", 'data-dismiss'=>'modal' %>
        <%= button_tag "Attach Selected Files", class: "btn", donot_advance: true %>

  <% end %>

Add fade class to dropbox modal

Add fade class to dropbox modal


  <% if sequence.archive.present? %>
    <%= truncate(sequence.locus, length: 16) %>
    <%= truncate(sequence.archive, length: 16).t %>
    <%= truncate(sequence.accession, length: 16).t %>
  <% else %>
    <%= truncate(sequence.locus, length: 16) %>:
    <%= truncate(sequence.bases, length: 32) %>
  <% end %>
  <%= link_with_query(:SHOW.t, sequence.show_link_args) %>
  <% if check_permission(@observation) || check_permission(sequence) %>
    <%= link_with_query(:EDIT.t, sequence.show_link_args) %>
  <% end %>

Add Show and Edit links to Sequences in show_observation


<!-- DO NOT EDIT: File is autogenerated -->
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
             version="2.0">
  <persistence-unit name="main">
    <provider>org.hibernate.ejb.HibernatePersistence</provider><%
    schema_set.schemas.each do |schema|
     schema.object_types.each do |object_type|
%>
    <class><%= object_type.java.fully_qualified_name %></class><% end %>
<% end %>
    <shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
    <validation-mode>CALLBACK</validation-mode>
    <properties>
      <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
    </properties>
  </persistence-unit>
</persistence>

<!-- DO NOT EDIT: File is autogenerated -->
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
             version="2.0">
  <persistence-unit name="main">
    <provider>org.hibernate.ejb.HibernatePersistence</provider><%
    schema_set.schemas.each do |schema|
     schema.object_types.each do |object_type|
%>
    <class><%= object_type.java.fully_qualified_name %></class><% end %>
<% end %>
    <properties>
      <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
    </properties>
  </persistence-unit>
</persistence>

Remove some settings that did not make sense in the way we were embedding for some providers


<%= t('.help_html', url: prison ? prison.prison_finder_url : nil) %>

<%= t('.help_html', url: prison ? prison.prison_finder_url : link_directory.prison_finder) %>

Fix the prison finder when there is no prison


  <%= render :partial=>"interventions/participants/participant",:collection=>@intervention.participant_users %>

  <%= link_to_function("Add Participant", nil)  { |page| page.insert_html(:top,'participants_list', :partial=>'interventions/participants/new')} %>

<% readonly=false if readonly.nil? %>

  <%= render :partial=>"interventions/participants/participant",:collection=>@intervention.participant_users %>

  <%= link_to_function("Add Participant", nil)  { |page| page.insert_html(:top,'participants_list', :partial=>'interventions/participants/new')} unless readonly%>

Fix view of inactive interventions

Fix view of inactive interventions


<% if management_plan_document %>

Management Plan

    <a href="<%= management_plan_document %>" class="info-box__link">
      <%= "#{@protected_area.name} Management Plan" %>

<% end %>

<% if management_plan_document %>

Management Plan

    <a href="<%= management_plan_document %>" class="info-box--margin-top info-box__link">
      <%= "#{@protected_area.name} Management Plan" %>

<% end %>

Add a bit of top margin

Add a bit of top margin


<% chosen_class = "chzn-select-#{attribute_id}" %>

<li id="<%= attribute_id %>_li">
  <%= form.label attribute, label_text %>
  <% if values.any? %>
    <%= form.select related_fk, values, options, html_options.merge(:class => chosen_class, :style => "width: 350px;") %>
  <% else %>
    <%= Typus::I18n.t("No entries found.") %>
  <% end %>
</li>

<script type="text/javascript">
  $(document).ready(function () { $(".<%= chosen_class %>").chosen(); });
</script>

<% chosen_class = "chzn-select-#{attribute_id}" %>

<li id="<%= attribute_id %>_li">
  <%= form.label attribute, label_text %>
  <% if values.kind_of?(String) %>
    <%= select_tag related_fk, values.html_safe, options.merge(html_options).merge(:class => chosen_class, :style => "width: 350px;", :id => "#{form.object.class.name.underscore}_#{related_fk}", :name => "#{form.object.class.name.underscore}[#{related_fk}]") %>
  <% elsif values.any? %>
    <%= form.select related_fk, values, options, html_options.merge(:class => chosen_class, :style => "width: 350px;") %>
  <% else %>
    <%= Typus::I18n.t("No %{resources} found.", :resources => related.model_name.human.downcase.pluralize) %>
  <% end %>
</li>

<script type="text/javascript">
  $(document).ready(function () { $(".<%= chosen_class %>").chosen(); });
</script>

Fix view bug when using belongs_to a model that have a tree.


.table
{
  width: 100%;
  border-collapse:collapse;
  font-size: 13px;
  border: 1px solid #d4d4d4;
  border-top: none;
}
.table th,
.table td
{
  border-left: 1px solid #d4d4d4;
  border-right: 1px solid #d4d4d4;
}
.table tr th
{
  text-align: center;
  font-weight: bold;
}

.table tr:nth-child(odd) td
{
  background-color: #f3f1f1;
}

.table tr:hover td{
  background-color: #d0eeec;
}
.table td a {
  text-decoration: none;
  color: #1d1d1d;
  display: inline-block;
  height:100%;
  width:100%;
}
.table th,
.table td:not(.tools) a
{
  padding: 5px 0;
}
.table th span,
.table td a > span,
.table td > span
{
  display: inline-block;
  padding: 0 6px;
}
.table th span
{
  display: block;
}

.table
{
  width: 100%;
  border-collapse:collapse;
  font-size: 13px;
  border: 1px solid #d4d4d4;
  border-top: none;
}
.table th,
.table td
{
  border-left: 1px solid #d4d4d4;
  border-right: 1px solid #d4d4d4;
}
.table tr th
{
  text-align: center;
  font-weight: bold;
}

.table tr:nth-child(odd) td
{
  background-color: #f3f1f1;
}

.table tr:hover td{
  background-color: #d0eeec;
}
.table td a {
  text-decoration: none;
  color: #1d1d1d;
  display: inline-block;
  height:100%;
  width:100%;
}
.table th,
.table td:not(.tools) a
{
  padding: 5px 0;
}
.table th span,
.table td a > span,
.table td > span
{
  display: inline-block;
  padding: 0 6px;
}
.table td > span
{
  padding: 5px 6px;
}

.table th span
{
  display: block;
}

Add vertical padding for cells without links


    <%= form_tag "", :method => :get do %>

      <% filters.each do |filter| %>

          <select name="<%= filter[:filter] %>">
            <option value=""><%= filter[:message] %></option>
            <% filter[:items].each do |key, value| %>
            <% selected = "selected" if params[filter[:filter]].eql?(key.to_s) %>
            <option <%= selected %> value="<%= key %>"><%= value %></option>
            <% end %>
          </select>

      <% end %>

      <%= submit_tag _("Filter"), :name => nil %>

    <% end %>

    <%= form_tag "", :method => :get do %>

      <% filters.each do |filter| %>

          <select name="<%= filter[:filter] %>">
            <option value=""><%= filter[:message] %></option>
            <% filter[:items].each do |key, value| %>
            <% selected = "selected" if params[filter[:filter]].eql?(key.to_s) %>
            <option <%= selected %> value="<%= key %>"><%= value %></option>
            <% end %>
          </select>

      <% end %>

    <%= hidden_field_tag :search, params[:search] %>

      <%= submit_tag _("Filter"), :name => nil %>

    <% end %>

Include params[:search] as a hidden field


/* DO NOT EDIT: File is auto-generated */
package <%= service.data_module.jws.service_package %>;

<%= description_javadoc_for(service, "") %>@javax.annotation.Generated( "Domgen" )
@SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
@javax.jws.WebService( name = "<%= service.jws.service_name %>" )
public interface <%= service.jws.service_name %>
  extends java.rmi.Remote
{
  String SERVICE_NAME = "<%= service.jws.qualified_service_name %>";

<% service.methods.select{|method| method.jws?}.each do |method|
%><%= description_javadoc_for(method)
%>  @javax.jws.WebMethod( operationName = "<%= method.name %>" )
  <%= annotated_type(method.return_value, :jws) %> <%= Domgen::Naming.camelize(method.name) %>(<%= method.parameters.collect{|p| "@javax.jws.WebParam( name = \"#{p.name}\", mode = javax.jws.WebParam.Mode.IN, header = false ) #{annotated_type(p, :jws)} #{Domgen::Naming.camelize(p.name)}" }.join(",\n      ") %>)<%=
    exceptions = ["java.rmi.RemoteException"] + method.exceptions.collect{|e| e.jws.qualified_name}
    "\n    throws #{exceptions.join(', ')}"
%>;

<% end %>}

/* DO NOT EDIT: File is auto-generated */
package <%= service.data_module.jws.service_package %>;

<%= description_javadoc_for(service, "") %>@javax.annotation.Generated( "Domgen" )
@SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
@javax.jws.WebService( name = "<%= service.jws.service_name %>" )
public interface <%= service.jws.service_name %>
  extends java.rmi.Remote
{
  String SERVICE_NAME = "<%= service.jws.qualified_service_name %>";

<% service.methods.select{|method| method.jws?}.each do |method|
%><%= description_javadoc_for(method)
%>  @javax.jws.WebMethod( operationName = "<%= method.name %>" )
  <%= annotated_type(method.return_value, :jws) %> <%= Domgen::Naming.camelize(method.name) %>(<%= method.parameters.collect{|p| "@javax.jws.WebParam( name = \"#{p.name}\", mode = javax.jws.WebParam.Mode.IN, header = false ) #{annotated_type(p, :jws)} #{Domgen::Naming.camelize(p.name)}" }.join(",\n      ") %>)<%=
    exceptions = ["java.rmi.RemoteException"] + method.exceptions.collect{|e| e.ejb.qualified_name}
    "\n    throws #{exceptions.join(', ')}"
%>;

<% end %>}

Throw the exceptions generated by the ejb package from jws interface


---
layout: post
title:  "Welcome to Jekyll!"
date:   <%= Time.now.strftime('%Y-%m-%d %H:%M:%S') %>
categories: jekyll update
---
You’ll find this post in your `_posts` directory – edit it and re-build (or run with the `--watch` switch) to see your changes. To add new posts, simply add a file in the `_posts` directory that follows the convention: YYYY-MM-DD-name-of-post.ext.

Jekyll also offers powerful support for code snippets:

{% highlight ruby %}
def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh].

[jekyll-gh]: https://github.com/jekyll/jekyll
[jekyll]:    http://jekyllrb.com

---
layout: post
title:  "Welcome to Jekyll!"
date:   <%= Time.now.strftime('%Y-%m-%d %H:%M:%S') %>
categories: jekyll update
---
You’ll find this post in your `_posts` directory – edit it and re-build (or run with the `--watch` switch) to see your changes.

To add new posts, simply add a file in the `_posts` directory that follows the convention YYYY-MM-DD-name-of-post.ext and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.

Jekyll also offers powerful support for code snippets:

{% highlight ruby %}
def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh].

[jekyll-gh]: https://github.com/jekyll/jekyll
[jekyll]:    http://jekyllrb.com

Update welcome post to clarify front matter usage


use strict;

#
# Place your configuration directives here.  They will override those in
# earlier files.
#
# See /usr/share/doc/amavisd-new/ for documentation and examples of
# the directives you can use in this file
#

$myhostname = '<%= @fqdn %>';
@local_domains_acl = qw(.);
$inet_socket_bind = '<%= @ipaddress %>';
@inet_acl = qw(10.40.0.8); # IP Address of the haproxy node.

#$log_level = 5;

$sa_tag_level_deflt = -999; # add spam info headers if at, or above that level

#------------ Do not modify anything below this line -------------
1;  # ensure a defined return

use strict;

#
# Place your configuration directives here.  They will override those in
# earlier files.
#
# See /usr/share/doc/amavisd-new/ for documentation and examples of
# the directives you can use in this file
#

$myhostname = '<%= @fqdn %>';
@local_domains_acl = qw(.);
$inet_socket_bind = '<%= @ipaddress %>';
@inet_acl = qw(10.40.0.8); # IP Address of the haproxy node.

$log_level = 2;

$sa_tag_level_deflt = -999; # add spam info headers if at, or above that level

$max_servers = 25;

#------------ Do not modify anything below this line -------------
1;  # ensure a defined return

Increase number of forked children

Increase number of forked children


<% if session[:organization_id] || session[:artist_id] %>

Artists In Your Area

  <% else %>

Artists on Scene

  <% end %>

    Name
    Profile
    Art

  <% @artists.each do |artist| %>

     <%= link_to image_tag(artist.avatar), artist_path(artist) %>
     <%= artist.name %>
     <%= link_to("Profile", artist_path(artist)) %>
     <% if !artist.pieces.empty? %>
          <% sample_piece = artist.pieces.sample %>
          <%= link_to image_tag(sample_piece.img), artist_piece_path(sample_piece.artist_id, sample_piece) %>
        <% end %>

  <% end %>

<% if session[:organization_id] || session[:artist_id] %>

Artists In Your Area

  <% else %>

Artists on Scene

  <% end %>

<% @artists.each do |artist| %>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">

                <% unless artist.pieces[0].nil? %>

                <% end %>

                    <%= link_to image_tag(artist.avatar), artist_path(artist) %>

                        <%= link_to artist.name, artist_path(artist) %>

<%= link_to artist.website, "http://#{artist.website}" %>

Passionate designer

Curious developer

Tech geek

                    <% if artist.twitter %>
                    <a class="btn btn-primary btn-twitter btn-sm" href="<%= "http://twitter.com/#{artist.twitter}" %>">

                    <% end %>
                    <% if artist.facebook %>
                    <a class="btn btn-primary btn-sm" rel="publisher"
                       href="<%= "http://#{artist.facebook}" %>">

                    <% end %>

<% end %>

Add artist profiles w/ custom art heading


upstream nailgun-application {
    server 127.0.0.1:8001;
}

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;
    }

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

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

    location ~ ^/ostf/(.*) {
        proxy_pass http://127.0.0.1:8777/v1/$1;
        proxy_buffering off;
    }

    location / {
        proxy_pass http://nailgun-application;
        proxy_read_timeout 2m;
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

upstream nailgun-application {
    server 127.0.0.1:8001;
}

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://127.0.0.1:8777/v1/$1;
        proxy_buffering off;
    }

    location / {
        proxy_pass http://nailgun-application;
        proxy_read_timeout 2m;
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

Enable gzip in Nginx for Nailgun 'text/plain' and 'application/json' content types


Gallery Homepage

Featured Pieces:

<% @random_pieces.each do |piece| %>
	<img src="<%= piece.img %>"/>
<% end %>

Featured Scenes:

<% @random_scenes.each do |scene| %>
	<img src="<%= scene.img %>"/>
<% end %>

Pieces by Category

<% @gallery_images.each do |image| %>
	<%= image %>
<% end %>

Gallery Homepage

Featured Pieces:

	<% @random_pieces.each do |piece| %>

 <%= link_to image_tag(piece.img), artist_piece_path(piece.artist_id, piece.id) %>

	<% end %>

Featured Scenes:

	<% @random_scenes.each do |scene| %>
		<%= link_to image_tag(scene.img), organization_space_path(scene.organization_id, scene.id) %>
	<% end %>

Pieces by Category

	<% @gallery_images.each do |image| %>
		<%= image %>
	<% end %>

Update image links on gallery homepage to route to their respective show page


/* DO NOT EDIT: File is auto-generated */
package <%= enumeration.data_module.jpa.entity_package %>;

<%= description_javadoc_for(enumeration, "") %>@javax.annotation.Generated( "Domgen" )
@SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public enum <%= enumeration.jpa.name %>
  implements java.io.Serializable
{
  <%= enumeration.values.keys.collect {|k| "#{k}" } .join(",\n    ")%>
}

/* DO NOT EDIT: File is auto-generated */
package <%= enumeration.data_module.jpa.entity_package %>;

<%= description_javadoc_for(enumeration, "") %>@javax.annotation.Generated( "Domgen" )
@SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public enum <%= enumeration.jpa.name %>
  implements java.io.Serializable
{
  <%= enumeration.values.keys.collect {|k| "#{k}" } .join(",\n  ") %>
}

Stop double indenting subsequent enum values


<!-- Windows service definition for Sensu -->
<service>
  <id>sensu-client</id>
  <name>Sensu Client</name>
  <description>This service runs a Sensu Client</description>
  <executable>C:\opt\sensu\embedded\bin\ruby</executable>
  <arguments>C:\opt\sensu\embedded\bin\sensu-client -l C:\opt\sensu\sensu-client.log -d C:\opt\sensu\conf.d -L <%= scope.lookupvar("sensu::log_level") -%></arguments>
</service>

<!-- Windows service definition for Sensu -->
<service>
  <id>sensu-client</id>
  <name>Sensu Client</name>
  <description>This service runs a Sensu Client</description>
  <executable>C:\opt\sensu\embedded\bin\ruby</executable>
  <arguments>C:\opt\sensu\embedded\bin\sensu-client -d C:\opt\sensu\conf.d -L <%= scope.lookupvar("sensu::log_level") -%></arguments>
  <logpath>C:\opt\sensu\</logpath>
  <log mode="roll-by-size">
        <sizeThreshold>10240</sizeThreshold>
        <keepFiles>10</keepFiles>
  </log>
</service>

Add support to rotate windows logs

Add support to rotate windows logs


App.factory 'StripeCheckout', ->
  open: (options, successCallback) ->
    StripeCheckout.configure(
      key: Hound.settings.stripePublishableKey,
      image: '<%= image_path('logo-square.png') %>',
      token: successCallback
    ).open(
      angular.extend(
        options,
        email: Hound.settings.userEmailAddress,
        panelLabel: options.buttonText || '{{amount}} per month',
        allowRememberMe: false
      )
    )

App.factory 'StripeCheckout', ->
  open: (options, successCallback) ->
    StripeCheckout.configure(
      key: Hound.settings.stripePublishableKey,
      image: '<%= image_path('icon.svg') %>',
      token: successCallback
    ).open(
      angular.extend(
        options,
        email: Hound.settings.userEmailAddress,
        panelLabel: options.buttonText || '{{amount}} per month',
        allowRememberMe: false
      )
    )

Update image used for Stripe Checkout

Update image used for Stripe Checkout


<%= form_for @post do |f| %>
  <%= f.label :title %>
  <%= f.text_field :title %>

  <%= f.label :body %>
  <%= f.text_area :body %>

  <%= f.submit "Publish" %>
<% end %>

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

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

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

      <%= f.submit "Publish", class: "btn btn-primary" %>
    <% end %>

Add CSS styles to post new form

Add CSS styles to post new form


<%= link_to current_user.email, root_path %>

<%= link_to @current_applicant.description, @current_applicant %>

<%= @residence.description %>

<%= render 'section_tabs', active_section: :residence_history %>

<%= bootstrap_form_for(@residence) do |f| %>

Time period

  <%= render "fields", f: f %>

Residence Address

  <%= f.fields_for :address do |a| %>
    <%= render "addresses/fields", builder: a %>
  <% end %>

Landlord

  <%= f.fields_for :landlord do |l| %>
    <%= render "people/name", builder: l %>
    <%= render "people/contact", builder: l %>

Landlord's address

    <%= l.fields_for :mail_address do |m| %>
      <%= render "addresses/fields", builder: m %>
    <% end %>
  <% end %>
  <%= render "buttons_update_back", f: f %>
<% end %>

<%= link_to current_user.email, root_path %>

<%= link_to @current_applicant.description, @current_applicant %>

<%= @residence.description %>

<%= render 'section_tabs', active_section: :residence_history %>

<%= bootstrap_form_for(@residence) do |f| %>

Time period

      <%= render "fields", f: f %>

Residence Address

      <%= f.fields_for :address do |a| %>
        <%= render "addresses/fields", builder: a %>
      <% end %>

Landlord

      <%= f.fields_for :landlord do |l| %>
        <%= render "people/name", builder: l %>
        <%= render "people/contact", builder: l %>
      <% end%>

Landlord's address

      <%= f.fields_for :landlord do |l| %>
        <%= l.fields_for :mail_address do |m| %>
          <%= render "addresses/fields", builder: m %>
        <% end %>
      <% end %>

  <%= render "buttons_update_back", f: f %>
<% end %>

Break residence edit screen into columns


<% if @total == 0 %>
  No Chef resources found, skipping coverage calculation...
<% else %>
ChefSpec Coverage report generated at '<%= @output %>':

  Total Resources:   <%= @total %>
  Touched Resources: <%= @touched %>
  Touch Coverage:    <%= @coverage %>%
<% unless @untouched_resources.empty? %>

Untouched Resources:

<% @untouched_resources.each do |resource| %>
  <%= resource.to_s.ljust(32) %>  <%= resource.source_file %>:<%= resource.source_line %>
<% end %>
<% end %>
<% end %>

<% if @total == 0 %>
  No Chef resources found, skipping coverage calculation...
<% else %>
ChefSpec Coverage report generated...

  Total Resources:   <%= @total %>
  Touched Resources: <%= @touched %>
  Touch Coverage:    <%= @coverage %>%
<% unless @untouched_resources.empty? %>

Untouched Resources:

<% @untouched_resources.each do |resource| %>
  <%= resource.to_s.ljust(32) %>  <%= resource.source_file %>:<%= resource.source_line %>
<% end %>
<% end %>
<% end %>

Add an extra newline at the end of coverage generation


        <%= answer.author.username %>
          <%= answer.created_at %>
          <%= render partial: "answers/votes", locals: {answer: answer} %>

<%= answer.content %>

  <% if answer.author_id == session[:user_id] %>

<%= link_to 'Edit', edit_answer_path(answer) %>

  <% end %>

Add link to add comment to answers

Add link to add comment to answers


Change your password

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

    <%= f.label :password, "New password" %>

    <% if @minimum_password_length %>
    (<%= @minimum_password_length %> characters minimum)
    <% end %>

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

    <%= f.label :password_confirmation, "Confirm new password" %>

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

    <%= f.submit "Change my password" %>

<% end %>

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

Remove unnecessary line break on edit password page.


<%
content_for :title, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name)
content_for :h1, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name)
%>

  <% str = '' %>
  <%
  @threads.each do |thread|
    str << '<article class="thread threadlist'
    str << 'sticky' if thread.sticky
    str << thread.attribs['classes'].join(' ') unless thread.attribs['classes'].blank?
    str << ' id="t' + thread.thread_id.to_s + '">'
    str << message_header(thread, thread.message, first: true, show_icons: true)

    if not thread.message.messages.blank? and thread.attribs['open_state'] != 'closed'
      str << message_tree(thread, thread.message.messages, show_icons: true,
                          hide_repeating_subjects: uconf('hide_subjects_unchanged', 'yes') == 'yes')
    end
    str << '
'
  end
  %>
  <%== str %>

<%= render 'pages' %>

<%
content_for :title, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name)
content_for :h1, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name)
%>

  <% @threads.each do |thread| %>
    <article class="thread threadlist<% if thread.sticky %> sticky<% end %><% unless thread.attribs['classes'].blank? %> <%= thread.attribs['classes'].join(' ') %><% end %>" id="t<%= thread.thread_id %>">
      <%= message_header(thread, thread.message, first: true, show_icons: true) %>

      <% if not thread.message.messages.blank? and thread.attribs['open_state'] != 'closed' %>
        <%= message_tree(thread, thread.message.messages, show_icons: true,
                         hide_repeating_subjects: uconf('hide_subjects_unchanged', 'yes') == 'yes') %>
      <% end %>

  <% end %>

<%= render 'pages' %>

Revert "trying to get the performance better for main views of forums"

This reverts commit 009f6e3d5ef966fbd856e44152c735cc92d52b1e.

No performance gain measurable


<%= javascript_include_tag "create_assignment.js" %>
<%= javascript_include_tag "PeriodLister/PeriodLister.js" %>

<%= render :partial => "boot.js" %>

<%= I18n.t(:create_new_assignment) %>

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

<%= javascript_include_tag "create_assignment.js" %>

<%= render :partial => "boot.js" %>

<%= I18n.t(:create_new_assignment) %>

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

Remove JavaScript inclusion of non-existing file.

This file did not exist and was only producing 404s.


<%= simple_form_for [forem, :admin, @category] do |f| %>
  <%= f.input :name %>
  <%= f.submit %>
<% end %>

<%= simple_form_for [forem, :admin, @category] do |f| %>
  <%= f.input :name %>
  <%= f.submit :class => "btn btn-primary" %>
<% end %>

Add btn-primary classes to categories form button


require 'rubygems'
require 'merb-core'

Merb::Config.setup(:merb_root   => File.expand_path(File.dirname(__FILE__)),
                   :environment => ENV['RACK_ENV'], :init_file => File.dirname(__FILE__) / "config/init.rb")
Merb.environment = "production" #Merb::Config[:environment]
Merb.root = Merb::Config[:merb_root]
Merb::BootLoader.run

# Uncomment if your app is mounted at a suburi
#if prefix = ::Merb::Config[:path_prefix]
#  use Merb::Rack::PathPrefix, prefix
#end

Chef::Config.from_file(File.join("/etc", "chef", "server.rb"))

run Merb::Rack::Application.new

require 'rubygems'
require 'merb-core'
require 'chef'

Chef::Config.from_file(File.join("/etc", "chef", "server.rb"))

Merb::Config.setup(:merb_root   => File.expand_path(File.dirname(__FILE__)),
                   :environment => ENV['RACK_ENV'], :init_file => File.dirname(__FILE__) / "config/init.rb")
Merb.environment = "production" #Merb::Config[:environment]
Merb.root = Merb::Config[:merb_root]
Merb::BootLoader.run

# Uncomment if your app is mounted at a suburi
#if prefix = ::Merb::Config[:path_prefix]
#  use Merb::Rack::PathPrefix, prefix
#end

run Merb::Rack::Application.new

Load server.rb prior to attempting anything that may rely on these settings.


<%= form_for @item, :url  => options, :html => { :multipart => true } do |form| %>
  <fieldset class="inputs">

      <%= raw build_form(@fields, form) %>

  </fieldset>
  <fieldset class="buttons">

<%= submit_tag button , :class => 'commit' %>

  </fieldset>
<% end %>

<%= form_for @item, :url  => options, :html => { :multipart => true } do |form| %>

  <% if @item.errors.any? %>

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

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

<%= msg %>

    <% end %>

  <% end %>

  <fieldset class="inputs">

      <%= raw build_form(@fields, form) %>

  </fieldset>
  <fieldset class="buttons">

<%= submit_tag button , :class => 'commit' %>

  </fieldset>

<% end %>

Use the new way to handle errors.

Use the new way to handle errors.


<% content_for :title, "Student finance - Support Pages - GOV.UK Beta (Test)" %>

    <hgroup class="full-width">

Student finance

    </hgroup>

On this page:

<% content_for :body_classes do %>full-width<% end %>
<% content_for :extra_stylesheets do %>
  <%= stylesheet_link_tag 'support-styles' %>
<% end %>

<% content_for :title, "Student finance - Support Pages - GOV.UK Beta (Test)" %>

    <hgroup class="full-width">

Student finance

    </hgroup>

On this page:

Can you help me sort out my Student Finance?

Can you help me sort out my Student Finance?

We aren't able to offer advice about individual Student Finance and Student Loans, and we don't have access to specific accounts or applications.

You can contact Student Loans Company directly, using the link below:

http://www.slc.co.uk/contact.aspx

<% content_for :body_classes do %>full-width<% end %>
<% content_for :extra_stylesheets do %>
  <%= stylesheet_link_tag 'support-styles' %>
<% end %>

Add content for student finance page

Add content for student finance page


<persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
             version="2.0">
  <persistence-unit name="<%= schema.name %>">
    <provider>org.hibernate.ejb.HibernatePersistence</provider><%
     schema.object_types.each do |object_type|
%>
    <class><%= object_type.java.fully_qualified_name %></class><% end %>
    <shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
    <validation-mode>CALLBACK</validation-mode>
    <properties>
      <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
    </properties>
  </persistence-unit>
</persistence>

<persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
             version="2.0">
<% schema_set.schemas.each do |schema| %>
  <persistence-unit name="<%= schema.name %>">
    <provider>org.hibernate.ejb.HibernatePersistence</provider><%
     schema.object_types.each do |object_type|
%>
    <class><%= object_type.java.fully_qualified_name %></class><% end %>
    <shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
    <validation-mode>CALLBACK</validation-mode>
    <properties>
      <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
    </properties>
  </persistence-unit>
<% end %>
</persistence>

Refactor so that there is a single unit per "schema"


<% @page_title = @entry.title %>

<% content_for(:head) do %>
  <%= cache [@entry, :head] do %>
    <%= stylesheet_link_tag('pageflow/application', media: 'all', 'data-turbolinks-track' => true) %>
    <%= entry_theme_stylesheet_link_tag(@entry) %>
    <%= entry_stylesheet_link_tag(@entry) %>

    <%= social_share_meta_tags_for(@entry.share_target) %>
    <%= render_widget_head_fragments(@entry) %>

    <%= tag :link, :rel => 'icon', :href => image_path("pageflow/themes/#{@entry.theming.theme.directory_name}/favicon.ico"), :type => 'image/ico' %>
  <% end %>
<% end %>

<%= cache @entry do %>

  <%= render 'pageflow/entries/ie8_hint' %>
  <%= render 'pageflow/entries/loading_spinner' %>
  <%= render 'pageflow/entries/multimedia_alert' %>
  <%= render @entry %>

  <script>
    pageflow.manualStart.enabled = <%= @entry.manual_start ? 'true' : 'false' %>;
    pageflow.visited.enabled = <%= @entry.emphasize_new_pages ? 'true' : 'false' %>;
    pageflow.pages = <%= @entry.pages.to_json(:only => [:id, :perma_id, :configuration]).html_safe %>;
    pageflow.entryId = <%= @entry.id %>;
  </script>

  <%= render 'pageflow/entries/analytics', :entry => @entry %>
<% end %>

<% @page_title = @entry.title %>

<% content_for(:head) do %>
  <%= cache [@entry, :head, @entry.share_target] do %>
    <%= stylesheet_link_tag('pageflow/application', media: 'all', 'data-turbolinks-track' => true) %>
    <%= entry_theme_stylesheet_link_tag(@entry) %>
    <%= entry_stylesheet_link_tag(@entry) %>

    <%= social_share_meta_tags_for(@entry.share_target) %>
    <%= render_widget_head_fragments(@entry) %>

    <%= tag :link, :rel => 'icon', :href => image_path("pageflow/themes/#{@entry.theming.theme.directory_name}/favicon.ico"), :type => 'image/ico' %>
  <% end %>
<% end %>

<%= cache @entry do %>

  <%= render 'pageflow/entries/ie8_hint' %>
  <%= render 'pageflow/entries/loading_spinner' %>
  <%= render 'pageflow/entries/multimedia_alert' %>
  <%= render @entry %>

  <script>
    pageflow.manualStart.enabled = <%= @entry.manual_start ? 'true' : 'false' %>;
    pageflow.visited.enabled = <%= @entry.emphasize_new_pages ? 'true' : 'false' %>;
    pageflow.pages = <%= @entry.pages.to_json(:only => [:id, :perma_id, :configuration]).html_safe %>;
    pageflow.entryId = <%= @entry.id %>;
  </script>

  <%= render 'pageflow/entries/analytics', :entry => @entry %>
<% end %>

Include Share Target in Head Cache Key

Include Share Target in Head Cache Key

Otherwise page specific share headers are not rendered.


  <%= render "onboarding/progress", active: "deploy_app" %>

Add your SSH deploy key

    <%= render "flash_messages" %>
    <%= form_for @ssh_key, url: setup_deploy_key_path, method: :post do |f| %>

You're almost ready to deploy your app. One thing you need to do is
        add the SSH key from your workstation to the server.
        This gives you access to deploy <%= current_app.name %>.

        <div class="form-group <%= "field_with_errors" if validation_errors?(@ssh_key, :key) %>">
          <%= f.label :key, "Paste your SSH key here" %>
          <%= f.text_area :key %>
          <%= validation_errors(@ssh_key, :key) %>

You can find your key in ~/.ssh/id_rsa.pub.

        <%= f.button "Add this key", class: "btn btn-continue" %>

    <% end %>

  <%= render "onboarding/progress", active: "deploy_app" %>

Add your SSH deploy key

    <%= render "flash_messages" %>
    <%= form_for @ssh_key, url: setup_deploy_key_path, method: :post do |f| %>

You're almost ready to deploy your app. One thing you need to do is
        add the SSH key from your workstation to the server.
        This gives you access to deploy appname.

        <div class="form-group <%= "field_with_errors" if validation_errors?(@ssh_key, :key) %>">
          <%= f.label :key, "Paste your SSH key here" %>
          <%= f.text_area :key %>
          <%= validation_errors(@ssh_key, :key) %>

You can find your key in ~/.ssh/id_rsa.pub.

        <%= f.button "Add this key", class: "btn btn-continue" %>

    <% end %>

Revert "Replace static "appname" placeholder with actual app name from database when adding an SSH key"

This reverts commit 53d8d8ba09dddd5a72b0f1a990082cf842d28c9c.


Welcome to Typus!

Documentation is available here.

If you need help don't hesitate in joining the Typus mailing list.

Replace this message adding a _sidebar.html.erb file on the app/views/admin/dashboard folder.

Have a nice day!

Welcome to Typus!

Documentation is available <%= link_to 'here', 'http://intraducibles.com/projects/typus', :rel => 'external' %>.

If you need help don't hesitate in joining the <%= link_to 'Typus', 'http://groups.google.com/group/typus', :rel => 'external' %> mailing list.

Replace this message adding a _sidebar.html.erb file on the app/views/admin/dashboard folder.

Have a nice day!

Use link_to instead of href with rel option.


# This file is being managed by Puppet.
# /etc/puppet/modules/spamassassin/templates/local.cf.erb
#
# Data is sourced from hiera, predominantly data/common.yaml
#
###########################################################################

use_bayes 		0
#use_auto_whitelist 	0
required_hits 		10
lock_method 		flock
skip_rbl_checks 	0
#check_mx_attempts 	0
report_safe 		1
use_pyzor 		0
use_razor2 		0
dns_available 		yes
remove_header 		all Report

<% if @trusted_networks %>
trusted_networks <%= @trusted_networks %>
<% end %>

<% @whitelist_from.each do |val| -%>
whitelist_from <%= val %>
<% end -%>
<% @blacklist_from.each do |val| -%>
blacklist_from <%= val %>
<% end -%>

<%
  custom_scoring = scope.lookupvar('spamassassin::spamd::custom_scoring')
-%>

<% if @custom_scoring %>
# Custom Scoring
<% custom_scoring.each_pair do |key, hash| -%>
score <%= hash['name'] %> 			<%= hash['score'] %>
<% end -%>
<% end %>

# This file is being managed by Puppet.
# /etc/puppet/modules/spamassassin/templates/local.cf.erb
#
# Data is sourced from hiera, predominantly data/common.yaml
#
###########################################################################

use_bayes 		0
#use_auto_whitelist 	0
required_hits 		10
lock_method 		flock
skip_rbl_checks 	0
#check_mx_attempts 	0
report_safe 		1
use_pyzor 		0
use_razor2 		0
dns_available 		yes
remove_header 		all Report

<% if @trusted_networks %>
trusted_networks <%= @trusted_networks %>
<% end %>

<% @whitelist_to.each do |val| -%>
whitelist_to <%= val %>
<% end -%>
<% @whitelist_from.each do |val| -%>
whitelist_from <%= val %>
<% end -%>
<% @blacklist_from.each do |val| -%>
blacklist_from <%= val %>
<% end -%>

<%
  custom_scoring = scope.lookupvar('spamassassin::spamd::custom_scoring')
-%>

<% if @custom_scoring %>
# Custom Scoring
<% custom_scoring.each_pair do |key, hash| -%>
score <%= hash['name'] %> 			<%= hash['score'] %>
<% end -%>
<% end %>

Add support for specifying whitelist_to addresses


<domain type='<%= @domain_type %>'>
  <name><%= @name %></name>
  <memory><%= @memory_size %></memory>
  <vcpu><%= @cpus %></vcpu>

  <% if @nested %>
    <cpu match='exact'>
      <model>core2duo</model>
      <feature policy='require' name='vmx'/>
    </cpu>
  <% end %>

  <os>
    <type arch='x86_64'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <devices>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='<%= @domain_volume_cache %>'/>
      <source file='<%= @domain_volume_path %>'/>
      <%# we need to ensure a unique target dev -%>
      <target dev='vda' bus='virtio'/>
    </disk>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1' keymap='en-us'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
    </video>
  </devices>
</domain>

<domain type='<%= @domain_type %>'>
  <name><%= @name %></name>
  <memory><%= @memory_size %></memory>
  <vcpu><%= @cpus %></vcpu>

  <% if @nested %>
    <cpu mode='host-passthrough'>
      <model fallback='allow'>qemu64</model>
      <feature policy='optional' name='vmx'/>
      <feature policy='optional' name='svm'/>
    </cpu>
  <% end %>

  <os>
    <type arch='x86_64'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <devices>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='<%= @domain_volume_cache %>'/>
      <source file='<%= @domain_volume_path %>'/>
      <%# we need to ensure a unique target dev -%>
      <target dev='vda' bus='virtio'/>
    </disk>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1' keymap='en-us'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
    </video>
  </devices>
</domain>

Support AMD and Intel processors with nested vm's

Use a more generic model and optional vmx or svm feature.


# file is managed by puppet

#################
#### MODULES ####
#################

$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog   # provides kernel logging support (previously done by rklogd)
#$ModLoad immark  # provides --MARK-- message capability

###########################
#### GLOBAL DIRECTIVES ####
###########################

#
# Set the default permissions for all log files.
#
$FileOwner <%= scope.lookupvar('rsyslog::log_user') %>
$FileGroup <%= scope.lookupvar('rsyslog::log_group') %>
$FileCreateMode <%= scope.lookupvar('rsyslog::perm_file') %>
$DirCreateMode <%= scope.lookupvar('rsyslog::perm_dir') %>
$PrivDropToUser <%= scope.lookupvar('rsyslog::run_user') %>
$PrivDropToGroup <%= scope.lookupvar('rsyslog::run_group') %>

#
# Include all config files in <%= scope.lookupvar('rsyslog::rsyslog_d') %>
#
$IncludeConfig <%= scope.lookupvar('rsyslog::rsyslog_d') -%>*.conf

#
# Emergencies are sent to everybody logged in.
#
*.emerg				*

# file is managed by puppet

#################
#### MODULES ####
#################

$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog   # provides kernel logging support (previously done by rklogd)
#$ModLoad immark  # provides --MARK-- message capability

###########################
#### GLOBAL DIRECTIVES ####
###########################

#
# Set the default permissions for all log files.
#
$FileOwner <%= scope.lookupvar('rsyslog::log_user') %>
$FileGroup <%= scope.lookupvar('rsyslog::log_group') %>
$FileCreateMode <%= scope.lookupvar('rsyslog::perm_file') %>
$DirOwner <%= scope.lookupvar('rsyslog::log_user') %>
$DirGroup <%= scope.lookupvar('rsyslog::log_group') %>
$DirCreateMode <%= scope.lookupvar('rsyslog::perm_dir') %>
$PrivDropToUser <%= scope.lookupvar('rsyslog::run_user') %>
$PrivDropToGroup <%= scope.lookupvar('rsyslog::run_group') %>

#
# Include all config files in <%= scope.lookupvar('rsyslog::rsyslog_d') %>
#
$IncludeConfig <%= scope.lookupvar('rsyslog::rsyslog_d') -%>*.conf

#
# Emergencies are sent to everybody logged in.
#
*.emerg				*

Create log directories with same ownership as files


<%

  # attachment = attribute.split('_file_name').first

  if @item.send(attribute).exists?
    message = _("Remove %{attribute}", :attribute => @item.class.human_attribute_name(attribute).downcase)
    label_text << <<-HTML
 #{link_to message, { :action => 'detach',
                             :id => @item,
                             :attachment => attribute },
                             :confirm => _("Are you sure?")}
    HTML
  end

%>

  <%= form.label attribute, raw(label_text) %>
  <%= form.file_field attribute, options %>
  <%= typus_preview(@item, attribute) %>

<%

  # attachment = attribute.split('_file_name').first

  if !@item.class.validators.map { |i| i.class }.include?(ActiveModel::Validations::PresenceValidator) && @item.send(attribute).exists?
    message = _("Remove %{attribute}", :attribute => @item.class.human_attribute_name(attribute).downcase)
    label_text << <<-HTML
 #{link_to message, { :action => 'detach',
                             :id => @item,
                             :attachment => attribute },
                             :confirm => _("Are you sure?")}
    HTML
  end

%>

  <%= form.label attribute, raw(label_text) %>
  <%= form.file_field attribute, options %>
  <%= typus_preview(@item, attribute) %>

Check if class has enabled the PresenceValidator


<%= render 'shared/error_messages', object: f.object %>

<%= f.input :name, :size => 40 -%>

<%= f.input :description, input_html: {:rows => 4, :cols => 60} -%>

<%= f.select("layout", [[t(:layout_table, default: 'Table'),"table"],[t(:layout_grid, default: "Grid"),"grid"],[t(:layout_qna, default: "Q&A"),"qna"]], include_blank: t(:layout_select, default: 'Select Format')) %>

<%= f.input :allow_topic_voting %>
<%= f.input :allow_post_voting %>
<%= f.input  :private %>
<%= f.submit t(:save_changes, default: "Save Changes"), class: 'btn btn-warning' %>

<%= render 'shared/error_messages', object: f.object %>

<%= f.input :name, :size => 40 -%>

<%= f.input :description, input_html: {:rows => 4, :cols => 60} -%>

<%= f.select("layout", [[t(:layout_table, default: 'Table'),"table"],[t(:layout_grid, default: "Grid"),"grid"],[t(:layout_qna, default: "Q&A"),"qna"]], include_blank: t(:layout_select, default: 'Select Format')) %>

<%= f.input :allow_topic_voting %>
<%= f.input :allow_post_voting %>
<%#= f.input  :private %>
<%= f.submit t(:save_changes, default: "Save Changes"), class: 'btn btn-warning' %>

Remove delete option from forum editor

Remove delete option from forum editor