<% content_for :title, "Organizations - Partners" %>

Partner Agencies

      Partner
      E-mail

    <%= render partial: "organization_row", collection: @organizations %>

<%= link_to "Add New Organization", new_admin_path, class: 'button success' %>
<%= link_to "Return to My Site", dashboard_path, class: 'button warning' %>

<% content_for :title, "Organizations - Partners" %>

All Diaperbase Organizations

      Organization
      Contact E-mail
      Actions

    <%= render partial: "organization_row", collection: @organizations %>

<%= link_to "Add New Organization", new_admin_path, class: 'button success' %>
<%= link_to "Return to My Site", dashboard_path, class: 'button warning' %>

Fix for admin page. Make the text more understandable.


User Profile Information

<%= form_for @user, url: '/profile/update' do |f| %>
  <%= render :partial => 'users/name' %>

  <%= render :partial => 'users/password' %>
  If password field is blank, the password will not be updated.

  <%= render :partial => 'users/email' %>

  <%= render :partial => 'users/prefs' %>
  <%= render :partial => 'handle' %>
  <% if @user.role.parent_id != nil %>
    <%= render :partial => 'limit' %>
  <% end %>
  Preferred Time Zone
  <%= time_zone_select("user", "timezonepref", ActiveSupport::TimeZone.all) %>

  <%= f.submit 'Save' %>
<% end %>

User Profile Information

<%= form_for @user, url: '/profile/update' do |f| %>
  <%= render :partial => 'users/name' %>

  <%= render :partial => 'users/password' %>
  If password field is blank, the password will not be updated.

  <%= render :partial => 'users/email' %>

  <%= render :partial => 'users/institutions' %>

  <%= render :partial => 'users/prefs' %>
  <%= render :partial => 'handle' %>
  <% if @user.role.parent_id != nil %>
    <%= render :partial => 'limit' %>
  <% end %>
  Preferred Time Zone
  <%= time_zone_select("user", "timezonepref", ActiveSupport::TimeZone.all) %>

  <%= f.submit 'Save' %>
<% end %>

Add institution partial to users' profile page


<%#
  ======================================================================
  The landing page of the flow.
  ======================================================================
%>

<% text_for :title do %>
  Check the next steps for your limited company
<% end %>

<% govspeak_for :body do %>
  If you’ve just registered your limited company, use this tool to find out:

  - rules you need to follow
  - things you need to get or register for
  - what help and financial support is available
<% end %>

<%#
  ======================================================================
  The landing page of the flow.
  ======================================================================
%>

<% text_for :title do %>
  Check the next steps for your limited company
<% end %>

<% govspeak_for :body do %>
  If you’ve just registered your limited company, use this tool to find out:

  - things you need to apply or register for
  - rules you need to follow
  - what help and financial support is available

  The tool will not share your details or answers with anyone.
<% end %>

Update start page for Next steps for your business

This updates the content on the start page.


Lobby

  <%= link_to "New Game", games_path, method: :post %>

  Invitations

  <% if current_user.invites.any? %>

      <% current_user.invites.open.each do |invite| %>

From <%= invite.game_owner.name %> (<%= pluralize invite.game.players.count, "player" %> / <%= pluralize invite.game.invites.open.count, "open invite" %>) <%= link_to "Accept", accept_invite_path(invite), method: :post %> | <%= link_to "Decline", decline_invite_path(invite), method: :post %>

      <% end %>

  <% else %>
    None
  <% end %>

Lobby

  <%= link_to "New Game", games_path, method: :post %>

  Invitations

  <% if current_user.invites.open.any? %>

      <% current_user.invites.open.each do |invite| %>

From <%= invite.game_owner.name %> (<%= pluralize invite.game.players.count, "player" %> / <%= pluralize invite.game.invites.open.count, "open invite" %>) <%= link_to "Accept", accept_invite_path(invite), method: :post %> | <%= link_to "Decline", decline_invite_path(invite), method: :post %>

      <% end %>

  <% else %>
    None
  <% end %>

  <% if current_user.invites.declined.any? %>
    Declined Invitations

      <% current_user.invites.declined.each do |invite| %>

From <%= invite.game_owner.name %> (<%= pluralize invite.game.players.count, "player" %> / <%= pluralize invite.game.invites.open.count, "open invite" %>) <%= link_to "Accept", accept_invite_path(invite), method: :post %>

      <% end %>

  <% end %>

Allow users to change their mind and accept previously declined invites.


<% if current_user.projects.count < 1 %>

    You must have at least one project to create a task. Click
    <%= link_to "here", new_project_path, class: 'alert-link' %> to create a project.

<% end %>
<%= form_for task do |f| %>
  <%= render partial: 'application/form_errors', locals: {object: task} %>

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

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

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

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

    <%= f.label :projects, "Select one or more projects to add this task to" %>

      <%= f.collection_check_boxes :project_ids, current_user.projects, :id, :name do |b| %>
        <%= b.label(class: "list-group-item") do %>
          <%= b.check_box %>
          <%= b.text %>
        <% end %>
      <% end %>

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

Add warning to new task page when the user doesnt have any projects


............................................

This task <%= @task.id %> was just updated with the information above. If you have any further comments to make, please reply to this email above the line.

To see the history of this task, visit:
<%= @user.company.site_URL%>/tasks/view/<%=@task.task_num%>

Sent to <%= "#{@user.name} <#{@user.email}>" %>
-------------------->
<%= $CONFIG[:productName] %>

............................................

This task <%= @task.task_num %> was just updated with the information above. If you have any further comments to make, please reply to this email above the line.

To see the history of this task, visit:
<%= @user.company.site_URL%>/tasks/view/<%=@task.task_num%>

Sent to <%= "#{@user.name} <#{@user.email}>" %>
-------------------->
<%= $CONFIG[:productName] %>

Use task num rather than task id in the email messages.


<%= _('Add a widget') %>

  <%= _("To add a widget for {{info_request_title}}, copy and paste " \
        "the following code to your web page:",
        :info_request_title => @info_request.title) %>

  <textarea autofocus readonly rows='4' cols='60' id='widgetbox'>
    <iframe src='<%= request_widget_url(@info_request) %>' width='320' height='215' frameborder='0' marginwidth='0' marginheight='0'>
  </textarea>

  <%= _("The widget will look like this:") %>

  <iframe src='<%= request_widget_url(@info_request) %>' width='320' height='215' frameborder='0' marginwidth='0' marginheight='0'>

<%= _('Add a widget') %>

  <%= _("To add a widget for {{info_request_title}}, copy and paste " \
        "the following code to your web page:",
        :info_request_title => @info_request.title) %>
  <textarea autofocus readonly rows='4' cols='60' id='widgetbox'><iframe src='<%= request_widget_url(@info_request) %>' width='320' height='215' frameborder='0' marginwidth='0' marginheight='0'></textarea>

  <%= _("The widget will look like this:") %>

  <iframe src='<%= request_widget_url(@info_request) %>' width='320' height='215' frameborder='0' marginwidth='0' marginheight='0'>

Remove visible padding in textarea content.


<%% <%= plural_name %>.each do |<%= singular_name %>| %>
  <li id="<%%= dom_id(<%= singular_name %>, @_dom_prefix) %>" class="<%= singular_name %>">
    <%%= render 'object', :<%= singular_name %>=><%= singular_name %> %>

    <%%= link_to 'Details (Page)',     <%= singular_name %> %> |
    <%%= link_to 'Details (DIV)',      <%= singular_name %>_path(<%= singular_name %>), :remote=>{:update=>'scratchpad', :format=>:htmlf} %> |
    <%%= link_to 'Details (Lightbox)', <%= singular_name %>_path(<%= singular_name %>, :format => :htmlf), :rel=>'facebox' %>

<%% end %>

<%% <%= plural_name %>.each do |<%= singular_name %>| %>
  <li class="<%= singular_name %>">
    <%%= render 'object', :<%= singular_name %>=><%= singular_name %> %>

    <%%= link_to 'Details (Page)',     <%= singular_name %> %> |
    <%%= link_to 'Details (DIV)',      <%= singular_name %>_path(<%= singular_name %>), :remote=>{:update=>'scratchpad', :format=>:htmlf} %> |
    <%%= link_to 'Details (Lightbox)', <%= singular_name %>_path(<%= singular_name %>, :format => :htmlf), :rel=>'facebox' %>

<%% end %>

Remove id attributes from the li elements for now. Only needed for stuff like sortables


How to play:

Click on the artist you prefer. Click skip if you'd like a new matchup.
        Keyboard arrows also work; right and left for votes, down to skip.

        x

Change things in the direction modal then change them back.


What's not included?

Not everything we have at the Libraries appears in these search results - specialized sources like full-text business reports, images, theses, or archival materials, can best be found using other tools.

How to find the other stuff

Ask our expert librarians

Browse specialized search tools by subject

Popular search tools

Course reserves search

Vera: Search e-journals and databases

WorldCat: Borrow from libraries worldwide

Google Scholar (Help setting preferences)

Other popular search tools

What's not included?

Not everything we have at the Libraries appears in these search results - specialized sources like full-text business reports, images, theses, or archival materials, can best be found using other tools.

How to find the other stuff

Ask our expert librarians

Browse specialized search tools by subject

Popular search tools

Course reserves search

Vera: Search e-journals and databases

WorldCat: Borrow from libraries worldwide

Google Scholar (see also: Setting MIT preferences)

Other popular search tools

Improve Google Scholar link in info well

https://mitlibraries.atlassian.net/browse/DI-356


Wurst

<%= link_to("Wurstüberblick", products_path) %>

Schweine

<%= link_to("Alle Schweine", schweine_path) %>

    <%- Spree::Schwein.limit(5).order('created_at DESC').each do |schwein| %>

<%=link_to schwein.name, schwein_path(schwein.permalink)%>

    <% end %>

<%- if @bauern_menu = Spree::MenuBar.find_by_name("Bauern") %>

Bauern

    <%= render :partial => "spree/shared/render_menu", :locals => {:menu_bar => @bauern_menu} %>

<%- end -%>

Add link to all products in sidebar.

Add link to all products in sidebar.


<%#- anything you put here will appear in a green bar on the top of every screen in Alaveteli -%>

<% if Date.today == Date.new(2016,9,28) %>
  It's International Right To Know Day.
  Do your friends know they have a right to information?
  Let them know.
  Share on Facebook
  or Twitter
<% end %>

Add a banner for Right To Know Day 2016

Add a banner for Right To Know Day 2016


Bitcoin Bookmarks

        <%= render 'shared/breadcrumb' %>
        <%= render 'shared/social_media' %>

  <% ['address', 'transaction', 'block'].each do |bookmark_type| %>
    <div class="panel panel-default" id='<%= "#{bookmark_type}_bookmarks" %>'>

Bitcoin <%= bookmark_type.capitalize.pluralize %>

No <%= bookmark_type.capitalize %> Bookmarks

        Sum:
          0 BTC

  <% end %>

 Bitcoin Bookmarks

        <%= render 'shared/breadcrumb' %>
        <%= render 'shared/social_media' %>

  <% ['address', 'transaction', 'block'].each do |bookmark_type| %>
    <div class="panel panel-default" id='<%= "#{bookmark_type}_bookmarks" %>'>

          <% if bookmark_type === 'address'
               icon = 'qrcode'
             elsif bookmark_type === 'transaction'
               icon = 'transfer'
             else
               icon = 'th-large'
             end %>
          <span class='glyphicon glyphicon-<%= icon %>' aria-hidden='true'>
          Bitcoin <%= bookmark_type.capitalize.pluralize %>

No <%= bookmark_type.capitalize %> Bookmarks

        Sum:
          0 BTC

  <% end %>

Add glyphicons to the bookmarks page.

Add glyphicons to the bookmarks page.


<%= provide(:header, "Exercício") %>
<%= provide(:description, "Vizualize, edite e adicione novas questões") %>

<%= link_to "Deletar", @exercise, method: :delete,
                       class: "btn btn-primary pull-right",
                       style: "margin-left: 10px",
                       data: { confirm: "Tem certeza que deseja excluir?" } %>

<%= link_to "Editar", edit_exercise_path(@exercise),
                      class: "btn btn-primary pull-right " %>

<%= @exercise.title %></h>

    <%= @exercise.description %>

    <button class="btn btn-primary pull-right">

      Adicionar questão
    </button>

    Possui <%= pluralize_questions(@exercise.questions.count) %>

<%= provide(:header, "Exercício") %>
<%= provide(:description, "Vizualize, edite e adicione novas questões") %>

<%= link_to "Deletar", @exercise, method: :delete,
                       class: "btn btn-primary pull-right",
                       style: "margin-left: 10px",
                       data: { confirm: "Tem certeza que deseja excluir?" } %>

<%= link_to "Editar", edit_exercise_path(@exercise),
                      class: "btn btn-primary pull-right " %>

<%= @exercise.title %></h>

    <%= markdown(@exercise.description) %>

    <button class="btn btn-primary pull-right">

      Adicionar questão
    </button>

    Possui <%= pluralize_questions(@exercise.questions.count) %>

Make display markdwon in exercise show view


ActiveAdmin.register <%= @user_class %> do
  permit_params :email, :password, :password_confirmation

  index do
    selectable_column
    id_column
    column :email
    column :current_sign_in_at
    column :sign_in_count
    column :created_at
    actions
  end

  filter :email
  filter :current_sign_in_at
  filter :sign_in_count
  filter :created_at

  form do |f|
    f.inputs "Admin Details" do
      f.input :email
      f.input :password
      f.input :password_confirmation
    end
    f.actions
  end

end

ActiveAdmin.register <%= @user_class %> do
  permit_params :email, :password, :password_confirmation

  index do
    selectable_column
    id_column
    column :email
    column :current_sign_in_at
    column :sign_in_count
    column :created_at
    actions
  end

  filter :email
  filter :current_sign_in_at
  filter :sign_in_count
  filter :created_at

  form do |f|
    f.inputs do
      f.input :email
      f.input :password
      f.input :password_confirmation
    end
    f.actions
  end

end

Remove untranslated string from template


window['CKEDITOR_BASEPATH'] = "/assets/ckeditor/";

window.CKEDITOR_ASSETS_MAPPING = {
<% Rails.application.assets.each_logical_path(->(path){ (path.include?('ckeditor/plugins/') || path.include?('ckeditor/skins/') || path.include?('effective/snippets/') || path.include?('effective/templates/') || path.include?('ckeditor/contents.css')) && !path.include?('effective_ckeditor')}) do |asset| %>
  "<%= asset %>": "<%= asset_path(asset) %>",
<% end %>
}

window.CKEDITOR_GETURL = function( resource ) {
  // If this is not a full or absolute path.
  if ( resource.indexOf( ':/' ) == -1 && resource.indexOf( '/' ) !== 0 )
    resource = this.basePath + resource;

  // Add the timestamp, except for directories.
  if ( resource.charAt( resource.length - 1 ) != '/' ) {
    var url = resource.match( /^(.*?:\/\/[^\/]*)\/assets\/(.+)/ );
    if(url) resource = (CKEDITOR_ASSETS_MAPPING[url[2]] || '/assets/' + url[2]);
  }

  return resource;
}

window['CKEDITOR_BASEPATH'] = "/assets/ckeditor/";

window.CKEDITOR_ASSETS_MAPPING = {
<% Rails.application.assets.each_logical_path(->(path, _){ (path.include?('ckeditor/plugins/') || path.include?('ckeditor/skins/') || path.include?('effective/snippets/') || path.include?('effective/templates/') || path.include?('ckeditor/contents.css')) && !path.include?('effective_ckeditor')}) do |asset| %>
  "<%= asset %>": "<%= asset_path(asset) %>",
<% end %>
}

window.CKEDITOR_GETURL = function( resource ) {
  // If this is not a full or absolute path.
  if ( resource.indexOf( ':/' ) == -1 && resource.indexOf( '/' ) !== 0 )
    resource = this.basePath + resource;

  // Add the timestamp, except for directories.
  if ( resource.charAt( resource.length - 1 ) != '/' ) {
    var url = resource.match( /^(.*?:\/\/[^\/]*)\/assets\/(.+)/ );
    if(url) resource = (CKEDITOR_ASSETS_MAPPING[url[2]] || '/assets/' + url[2]);
  }

  return resource;
}

Fix a sprockets compatibility issue so older sprockets versions work same as newer ones


<% require 'devise/version' %>

<%= t('.greeting', :recipient => @resource.email, :default => "Hello #{@resource.email}!") %>

<%= t('.instruction', :default => "Someone has requested a link to change your password, and you can do this through the link below.") %>

<%= link_to t('.action', :default => "Change my password"), edit_password_url(@resource, :reset_password_token => (Devis::VERSION.start_with?('3.') ? @token : @resource.reset_password_token)) %>

<%= t('.instruction_2', :default => "If you didn't request this, please ignore this email.") %>

<%= t('.instruction_3', :default => "Your password won't change until you access the link above and create a new one.") %>

<% require 'devise/version' %>

<%= t('.greeting', :recipient => @resource.email, :default => "Hello #{@resource.email}!") %>

<%= t('.instruction', :default => "Someone has requested a link to change your password, and you can do this through the link below.") %>

<%= link_to t('.action', :default => "Change my password"), edit_password_url(@resource, :reset_password_token => (Devise::VERSION.start_with?('3.') ? @token : @resource.reset_password_token)) %>

<%= t('.instruction_2', :default => "If you didn't request this, please ignore this email.") %>

<%= t('.instruction_3', :default => "Your password won't change until you access the link above and create a new one.") %>

Fix error in password reset e-mail

Fix error in password reset e-mail


    <a href="javascript:(function(){var xhr=new XMLHttpRequest();var params='url='+window.location.href;xhr.open('POST','<%= @env['REQUEST_URI'] %>clips',true);xhr.onreadystatechange=function(){if(this.readyState==4){if(xhr.status==200){if(xhr.responseText.success){}}}};xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xhr.send(params);})()" onclick="alert('Drag this link onto your browser bookmarks bar.'); return false;">Clips

<% unless @clips.empty? %>

        <% @clips.each do |c| %>

<%= c.url %>

        <% end %>

<% else %>
    No clips to display
<% end %>

Change bookmarklet code to dynamically grab request URI


<%

  # Read only fields.
  if @resource[:class].typus_field_options_for(:read_only).to_s.include?(attribute)
    options[:readonly] = 'readonly'
    label_text << " #{_("Read only")}"
  end

  # Auto generated fields.
  if @resource[:class].typus_field_options_for(:auto_generated).include?(attribute)
    options[:auto_generated] = true
    label_text << " #{_("Auto generated")}"
  end

%>

  <%= form.label attribute, label_text %>
  <%= form.text_field attribute, options %>

<%

  # Read only fields.
  if @resource[:class].typus_field_options_for(:read_only).to_s.include?(attribute)
    custom = { :readonly => 'readonly' }
    label_text << " #{_("Read only")}"
  end

  # Auto generated fields.
  if @resource[:class].typus_field_options_for(:auto_generated).include?(attribute)
    custom = { :auto_generated => true }
    label_text << " #{_("Auto generated")}"
  end

  options.merge!(custom) if custom

%>

  <%= form.label attribute, label_text %>
  <%= form.text_field attribute, options %>

Use custom hash as a convention.

Use custom hash as a convention.


<% content_for(:analytics) do %>
  <script type='text/javascript'>
    var _gaq = _gaq || [];
    _gaq.push(['_trackEvent','Affordability Calculator','Completion','Click']);
    _gaq.push(['_trackEvent','Affordability Calculator','Risk Level', '<%= @affordability.risk_level %>']);
    <% if @affordability.remaining_negative? %>
      _gaq.push(['_trackEvent','Affordability Calculator','Remaining', 'Non-positive']);
    <% end %>
  </script>
<% end %>

<% content_for(:head) do %>
<!--[if ( gte IE 7 ) & ( lte IE 8 ) & (!IEMobile) ]>
<%= javascript_include_tag 'r2d3', charset: 'utf-8' %>
<![endif]-->

<%# Responsive styles for all modern devices %>
<!--[if ( !IE ) | ( gte IE 9 ) ]><!-->
<%= javascript_include_tag 'd3' %>
<!--<![endif]-->
<% end %>

<div ng-controller="CalculatorCtrl" class="affcalc risk--<%= @affordability.risk_level %>"
  ng-class="{'high':'risk--high', 'medium':'risk--medium', 'low':'risk--low'}[affordability.riskLevel()]">
  <%= render 'form_step3' %>
</div>

<%= render 'feedback' %>

<% content_for(:analytics) do %>
  <script type='text/javascript'>
    var _gaq = _gaq || [];
    _gaq.push(['_trackEvent','Affordability Calculator','Completion','Click']);
    _gaq.push(['_trackEvent','Affordability Calculator','Risk Level', '<%= @affordability.risk_level %>']);
    <% if @affordability.remaining_negative? %>
      _gaq.push(['_trackEvent','Affordability Calculator','Remaining', 'Non-positive']);
    <% end %>
  </script>
<% end %>

<% content_for(:head) do %>
<!--[if ( gte IE 7 ) & ( lte IE 8 ) & (!IEMobile) ]>
<%= javascript_include_tag 'r2d3', charset: 'utf-8' %>
<![endif]-->

<%# Responsive styles for all modern devices %>
<!--[if ( !IE ) | ( gte IE 9 ) ]><!-->
<%= javascript_include_tag 'd3' %>
<!--<![endif]-->
<% end %>

<div ng-controller="CalculatorCtrl" class="mortgagecalc__container risk--<%= @affordability.risk_level %>"
  ng-class="{'high':'risk--high', 'medium':'risk--medium', 'low':'risk--low'}[affordability.riskLevel()]">
  <%= render 'form_step3' %>
</div>

<%= render 'feedback' %>

Use original grid on step 3 for now

Use original grid on step 3 for now


<%= render :partial => "common/vehicle_licensing_navigation" %>

<% content_for :title do %>Vehicle licensing - Service performance - GOV.UK<% end %>

<% @js_config = {
        "controller"   => "vehicle-licensing/controllers/overview"
} %>

    Service group performance
      Vehicle licensing

Service group relating to Vehicle Licensing: Tax disc relicensing, and SORN (Statutory Off Road Notification).

Applications by service

Data source: TBD

Applications per week broken down by service over the last 9 weeks

Application channels

Data source: TBD

Applications per week broken down by channel over the last 9 weeks

<%= render :partial => "common/vehicle_licensing_navigation" %>

<% content_for :title do %>Vehicle licensing - Service performance - GOV.UK<% end %>

<% @js_config = {
        "controller"   => "vehicle-licensing/controllers/overview"
} %>

    Service group performance
      Vehicle licensing

Service group relating to Vehicle Licensing: Tax disc relicensing, and SORN (Statutory Off Road Notification).

Applications by service

Data source: TBD

Applications per week broken down by service over the last 9 weeks

Application channels

Data source: TBD

Agent: Call centre agent

IVR: Interactive voice response

Applications per week broken down by channel over the last 9 weeks

Add explanations for abbreviations in EVL infobox


  	<%= image_tag("white_logo.png")%>

    <% if current_user %>

+

LOGOUT

PROFILE

    <% else %>

SIGN UP

LOGIN

    <% end %>

Add href to signup button

Add href to signup button


Tattoos#show

Find me in app/views/tattoos/show.html.erb

<%= @tattoo.name %>

  <%= @tattoo.artist_id %>

  <%= @tattoo.shop_id %>

  <%= @tattoo.when %>

  <%= @tattoo.why %>

Add views for index and show.

Add views for index and show.


<%= Spree.t(:no_resource, resource: plural_resource_name(resource)) %>
<% if can? :create, resource %>
  <%= link_to Spree.t(:create_one), new_resource_url %>
<% end %>

Copy no objects found partial

Copy no objects found partial

this was introduced in spree 1.3, but I want the gem to be backwards
compatible. So I'm bringing this partial into the gem


<% if @hint %>

<%= display_type %>

<%= hint_link(@hint.title) %>

      <% if @hint.url.include?('libraries.mit.edu/get') %>

          <%= hint_link(@hint.url) %>

      <% end %>

<% end %>

<% if @hint %>

<%= display_type %>

<%= hint_link(@hint.title) %>

      <% if @hint.url.include?('libguides.mit.edu') %>

          <%= hint_link(@hint.url) %>

      <% end %>

<% end %>

Update hints view to render libguides URLs

Why these changes are being introduced:

We are moving from GetURLs to LibGuides for our friendly URLs.

Relevant ticket(s):

https://mitlibraries.atlassian.net/browse/UXWS-1371

How this addresses that need:

This updates the hint partial to render URLs that include
'libguides.mit.edu'.

Side effects of this change:

GetURLs will no longer render in the hints panel.


<%= @pod.month.strftime("%B %Y") %>

    <%= @pod.summary %>

  <% @pod.instructions.each do |instruction| %>

    <% if instruction.visible_to?(current_user) %>

<%= instruction.crop.name %>

        <% if instruction.image_url %>
          <%= image_tag instruction.image_url, class: "img-responsive pull-right", width:"300" %>
        <% end %>

<%= kramdown instruction.summary %>

<%= kramdown instruction.detail %>

    <% end %>

  <% end %>

Fix text appearance in pods

Fix text appearance in pods


<!DOCTYPE html>
<html>
  <head>
    <title>Community Platform</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <%= csrf_meta_tags %>
    <%= csp_meta_tag %>

    <%= favicon_link_tag asset_path('favicon.ico') %>

    <link rel="stylesheet" href="https://use.typekit.net/<%= ENV.fetch('TYPEKIT_CSS_ID') %>.css" />
    <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
    <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
    <%= render 'layouts/google_analytics' %>
    <%= javascript_importmap_tags %>
  </head>

  <body class="flex flex-col h-screen justify-between">
    <div class="flex flex-col flex-1">
      <%= render "layouts/header" unless @hide_header %>

      <main class="flex-1">
        <%= yield %>
      </div>
    </main>

    <%= render "layouts/footer" %>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title>Community Platform</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <%= csrf_meta_tags %>
    <%= csp_meta_tag %>

    <%= favicon_link_tag asset_path('favicon.ico') %>

    <link rel="stylesheet" href="https://use.typekit.net/<%= ENV.fetch('TYPEKIT_CSS_ID') %>.css" />
    <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
    <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
    <%= render 'layouts/google_analytics' %>
    <%= javascript_importmap_tags %>
  </head>

  <body class="flex flex-col h-screen justify-between" data-turbo="false">
    <div class="flex flex-col flex-1">
      <%= render "layouts/header" unless @hide_header %>

      <main class="flex-1">
        <%= yield %>
      </div>
    </main>

    <%= render "layouts/footer" %>
  </body>
</html>

Disable turbolinks globally to fix recaptcha issues.

Closes: #990


  <%= simple_form_for(@github_repository, url: admin_github_repository_path(@github_repository.id), html: { class: 'form-vertical col-md-6' }) do |form| %>

      Admin / <%= link_to @github_repository.full_name, github_repository_path(@github_repository.owner_name, @github_repository.project_name) %>
      <%= link_to fa_icon('github'), @github_repository.url, target: :blank %>

    <%= form.input :licenses, include_blank: true, selected: @github_repository.license, label: 'License', collection: Project.popular_licenses(:facet_limit => 100).map{|l| format_license(l.term) } %>

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

  <%= simple_form_for(@github_repository, url: admin_github_repository_path(@github_repository.id), html: { class: 'form-vertical col-md-6' }) do |form| %>

      Admin / <%= link_to @github_repository.full_name, github_repository_path(@github_repository.owner_name, @github_repository.project_name) %>
      <%= link_to fa_icon('github'), @github_repository.url, target: :blank %>

    <%= form.input :license, include_blank: true, selected: @github_repository.license, label: 'License', collection: Project.popular_licenses(:facet_limit => 100).map{|l| format_license(l.term) } %>

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

Fix github repo license selects

Fix github repo license selects


upstream app {
    server 127.0.0.1:3000;
}

server {
    listen 80 default;

    access_log <%= node.themis.basedir %>/logs/nginx_access.log;
    error_log <%= node.themis.basedir %>/logs/nginx_error.log;

    keepalive_timeout 100;
    charset utf-8;

    location / {
        root <%= node.themis.basedir %>/www;
        index index.html;
    }

    location /api/ {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;

        proxy_pass http://app/;
        proxy_redirect off;

        proxy_http_version 1.1;
        chunked_transfer_encoding off;
        proxy_buffering off;
        proxy_cache off;
    }
}

upstream app {
    server 127.0.0.1:3000;
}

server {
    listen 80 default;

    access_log <%= node.themis.basedir %>/logs/nginx_access.log;
    error_log <%= node.themis.basedir %>/logs/nginx_error.log;

    keepalive_timeout 100;
    charset utf-8;

    location / {
        root <%= node.themis.basedir %>/www;
        rewrite ^(.*)$ /index.html break;
    }

    location /api/ {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;

        proxy_pass http://app/;
        proxy_redirect off;

        proxy_http_version 1.1;
        chunked_transfer_encoding off;
        proxy_buffering off;
        proxy_cache off;
    }
}

Rewrite to one and only HTML file

Rewrite to one and only HTML file


<% if sizes.try(:any?) %>

    <% sizes.each do |size| %>
      <li class="<%= :active if size == current_size %>">
        <%= link_to size, params.merge({ per_page: size, page: corrected_page(size) }) %>

    <% end %>

<% end %>

<% if sizes.length > 1 && collection.count > sizes.min %>

    <% sizes.each do |size| %>
      <li class="<%= :active if size == current_size %>">
        <%= link_to size, params.merge({ per_page: size, page: corrected_page(size) }) %>

    <% end %>

<% end %>

Hide page_size options when there is only 1 page


<% content_for :title, "#{@heading.description} | Trade Tariff | GOV.UK" %>

<%= @heading.section.numeral %>

<%= @heading.section.title %>

<%= @heading.chapter.short_code %>

<%= @heading.chapter.description.downcase.titleize %>

<%= @heading.declarative? ? @heading.commodity_code : @heading.display_short_code %>

<%= @heading.description %>

                  <%= render @commodities %>

Add title element for headings

Add title element for headings


Upload

      Uploaded <%= @results.size %> facts
      (out of which <%= @results.select{|r| r[:imported]==false}.size %> ignored):

            Source
            Role
            Target
            Other

          <% @results.each do |result| %>
          <tr class=<%= result[:imported] ? 'field-match' : 'field-match-warning' %>>
            <%= result[:fact].properties['source'] %>
            <%= result[:fact].properties['role'] %>
            <%= result[:fact].properties['target'] %>
            <%= result[:fact].properties.reject {|k, v| ['source', 'role', 'target'].include? k } %>

          <% end %>

      You can now <%= link_to 'process them', import_process_path(importer: 'CSV') %>.

Upload

      Uploaded <%= @results.size %> facts
      (out of which <%= @results.select{|r| r[:imported]==false}.size %> ignored):

            Source
            Role
            Target
            Other

          <% @results.each do |result| %>
          <tr class=<%= result[:imported] ? 'success' : 'warning' %>>
            <%= result[:fact].properties['source'] %>
            <%= result[:fact].properties['role'] %>
            <%= result[:fact].properties['target'] %>
            <%= result[:fact].properties.reject {|k, v| ['source', 'role', 'target'].include? k } %>

          <% end %>

      You can now <%= link_to 'process them', import_process_path(importer: 'CSV') %>.

Fix styling in upload results

Fix styling in upload results


Hi Joseph

<% if session[:user_id] %>
  <%= User.find_by(id: session[:user_id]).username %>
  <%= link_to 'Logout', logout_path, method: 'delete' %>
<% end %>

Add testing for logging in

Add testing for logging in


<%= link_to t('.new', :default => t("Upload files")), course_new_material_path(@course, @folder), :class => 'btn btn-primary' %>
<%= link_to "Create Folder", "#create-subfolder-modal", "data-toggle" => "modal", :class => 'btn btn-primary' %>

<%= render partial: "subfolder_form", locals: { :subfolder_method => :post, :modal => true } %>

<%= link_to t('.new', :default => t("Upload files")), course_new_material_path(@course, @folder), :class => 'btn btn-primary' %>
<%= link_to "Create Folder", "#create-subfolder-modal", "data-toggle" => "modal", :class => 'btn btn-success' %>

<%= render partial: "subfolder_form", locals: { :subfolder_method => :post, :modal => true } %>

Change Create Folder button to green.

Change Create Folder button to green.


How’d You Get Here?

When you tap the link to this page, Turbolinks calls the SessionDelegate’s session: didProposeVisitToURL: withAction: method.

The demo app’s ApplicationController implements this method and decides how to handle the URL. In this case, it chooses to present a Turbolinks Visitable.

See ApplicationController’s presentVisitableForSession: URL: action: method for details on how the Visitable is created and displayed.

Here’s a link to another page presented in the same manner.

or

Here's a link to another page that does a replace instead of an advance

Add example of doing a replace visit to demo


---
- job:
    name: clear-template-cache
    display-name: Clear template caches
    project-type: freestyle
    description: >
      Clear the on-disk template caches for GOV.UK.
    properties:
      - build-discarder:
          num-to-keep: 30
    builders:
      - shell: |
          #!/usr/bin/env bash

          set -ex

          for node in `govuk_node_list -c frontend`; do
            ssh deploy@$node "rm -f /var/apps/static/public/templates/{wrapper,homepage,header_footer_only,core_layout}.html.erb"
            ssh deploy@$node "rm -rf /var/apps/{,government-}frontend/tmp/cache/*"
          done

          for node in `govuk_node_list -c calculators_frontend`; do
            ssh deploy@$node "rm -rf /var/apps/finder-frontend/tmp/cache/*"
          done
    wrappers:
      - ansicolor:
          colormap: xterm

---
- job:
    name: clear-template-cache
    display-name: Clear template caches
    project-type: freestyle
    description: >
      Clear the on-disk template caches for GOV.UK.
    properties:
      - build-discarder:
          num-to-keep: 30
    builders:
      - shell: |
          #!/usr/bin/env bash

          set -ex

          for node in `govuk_node_list -c frontend`; do
            ssh deploy@$node "rm -f /var/apps/static/public/templates/*.html.erb"
            ssh deploy@$node "rm -rf /var/apps/{,government-}frontend/tmp/cache/*"
          done

          for node in `govuk_node_list -c calculators_frontend`; do
            ssh deploy@$node "rm -rf /var/apps/finder-frontend/tmp/cache/*"
          done
    wrappers:
      - ansicolor:
          colormap: xterm

Bugfix: Clear Static templates in clear-template-cache job

The templates are added to and renamed over the past 8 months.
This led to a confusing to investigate problem where old
templates were served by Static due to caching.

This clears all cached templates when running the
clear-template-cache job.


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

      <%= text_field_tag :search, params[:search] %>
      <%= submit_tag "Search", :name => nil %>

  <% end %>

 SOME SHIT YOU'VE SEARCHED FOR:

    <% @searched_stories.each do |story|%>

<%= story.title %>

    <% end %>

  <% @stories.each do |story| %>

<%= link_to story.title, story_path(story) %>

  <% end %>

Remove search bar from stories index

Remove search bar from stories index


<% content_for(:page_title, t('service.title', page_title: 'Page not found (404 error)')) %>

Page not found

Please check that you entered the correct web address.

Or, you can browse from the <%= link_to 'browse from the homepage', root_path %>
  to find the information you need.

<% content_for(:page_title, t('service.title', page_title: 'Page not found (404 error)')) %>

Page not found

Please check that you entered the correct web address.

Or, you can <%= link_to 'browse from the homepage', root_path %> to find the information you need.

Fix 404 error page copy

Fix 404 error page copy


Metrics

    <form class="form-inline" action="" method="post">
      <fieldset>
        Repository
        <select name="repository">
          <% for repository in @repositories %>
            <option <%= selected?(repository.name, params[:repository])
            %>><%= repository.name %></option>
          <% end %>
        </select>
        <button type="submit" class="btn">Select</button>
      </fieldset>
    </form>

        Completeness

        Weighted Completeness

        Richness of Information

        Accuracy

Remove repository submit button temporarily

I just noticed that I do not need the repository submit button on the
metrics dashboard. After all the current repository is read dynamically
with JavaScript. I will add it a later point when the metric scores are
loaded from the database.

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


<% wrap_layout :layout do %>

<%= date %>

<%= title %>

<%= topic_list %>

    <% if soundcloud_id %>

        <iframe
          width="100%"
          height="450"
          scrolling="no"
          frameborder="no"
          src=<%= big_soundcloud_player %>>

    <% end %>

    <% if interviewee %>

Other Episodes

      <a class='other-episodes' href="/tags/<%= dasherize(interviewee) %>.html"><%= interviewee %>
    <% end %>

    <%= current_article.body %>

<% end %>

<% wrap_layout :layout do %>

<%= date %>

<%= title %>

<%= topic_list %>

    <% if soundcloud_id %>

        <iframe
          width="100%"
          height="450"
          scrolling="no"
          frameborder="no"
          src=<%= big_soundcloud_player %>>

    <% end %>

    <% if interviewee %>

Other Episodes

      <a class='other-episodes' href="/betweenscreens/tags/<%= dasherize(interviewee) %>.html"><%= interviewee %>
    <% end %>

    <%= current_article.body %>

<% end %>

Update path for tag urls

Update path for tag urls


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

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

  <%= render "layouts/navbar" %>

  <div class="container container-width">

          <% flash.each do |name, msg| -%>
            <%= content_tag :div, msg, class: "flash #{name}" %>
          <% end -%>

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

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

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
  </head>
  <body data-userid="<%= current_user.id if user_signed_in? %>">

  <%= render "layouts/navbar" %>

  <div class="container container-width">

          <% flash.each do |name, msg| -%>
            <%= content_tag :div, msg, class: "flash #{name}" %>
          <% end -%>

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

Add current user id to body data tag

Add current user id to body data tag


<!DOCTYPE html>

    <title><%= full_title(yield(:title)) %></title>
    <%= stylesheet_link_tag    "application", media: "all" %>
    <%= javascript_include_tag "application" %>
    <%= csrf_meta_tags %>
    <%= render 'layouts/shim' %>

    <%= render 'layouts/header' %>

      <% if flash[:success] %>

<%= flash[:success] %>

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

<%= flash[:notice] %>

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

<%= [:alert] %>

      <% end %>
      <%= yield %>
      <%= render 'layouts/footer' %>

<!DOCTYPE html>

    <title><%= full_title(yield(:title)) %></title>
    <%= stylesheet_link_tag    "application", media: "all" %>
    <%= javascript_include_tag "application" %>
    <%= csrf_meta_tags %>
    <%= render 'layouts/shim' %>

    <%= render 'layouts/header' %>

      <% if flash[:success] %>

<%= flash[:success] %>

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

<%= flash[:info] %>

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

<%= flash[:notice] %>

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

<%= [:alert] %>

      <% end %>
      <%= yield %>
      <%= render 'layouts/footer' %>

Fix flash display for info messages

Fix flash display for info messages


#!/bin/bash

export AWS_ACCESS_KEY_ID=<%= @aws_access_key_id %>
export AWS_SECRET_ACCESS_KEY=<%= @aws_secret_access_key %>
export DB_HOST=<%= @db_host %>
export DB_PASSWORD=<%= @db_password %>

Add new line at the end of file

Add new line at the end of file


<% content_for :header_title, "Current Income" %>

      <%= t("medicaid.income_job.edit.title",
        count: current_application.members.count) %>

      This includes full time, part time, and contract jobs. We'll ask you
      about the specific amounts you earn later

  <%= render "shared/yes_no_form", step: @step, field: :anyone_employed %>

<% content_for :header_title, "Current Income" %>

      <%= t("medicaid.income_job.edit.title",
        count: current_application.members.count) %>

      This includes full time, part time, and contract jobs. If so, we'll ask you
      about the specific amounts you earn later

  <%= render "shared/yes_no_form", step: @step, field: :anyone_employed %>

Update Current Income subheader copy

Update Current Income subheader copy


  <hgroup>

      Service
      Trade Tariff

    <p class="tariff-date <%= @section_css %>">This tariff is for <%= @tariff_date.date.to_formatted_s(:rfc822) %> change date

  </hgroup>

<%= form_for @search, method: :get, url: perform_search_path, html: { class: "tariff-search #{@section_css}"  } do |f| %>
    <a href="<%= sections_path%>" class="js-pjax">View all sections
    <%= f.label :t, "Search the tariff" %>
    <%= f.text_field :t, required: false,
                size: 21,
                placeholder: "name or code",
                name: 't'  %>
    <%= f.hidden_field :as_of, name: 'as_of' %>
    <%= f.hidden_field :q, name: 'q' %>

    <%= f.button 'Search', class: 'button right' %>
<% end %>

  <hgroup>

      Service
      Trade Tariff

    <p class="tariff-date <%= @section_css %>">This tariff is for <%= @tariff_date.date.to_formatted_s(:rfc822) %> change date

  </hgroup>

<%= form_for @search, method: :get, url: perform_search_path, html: { class: "tariff-search #{@section_css}"  } do |f| %>
    <a href="<%= sections_path%>" class="js-pjax">View all sections
    <%= f.hidden_field :q, name: 'q' %>
    <%= f.label :t, "Search the tariff" %>
    <%= f.text_field :t, required: false,
                size: 21,
                placeholder: "name or code",
                name: 't'  %>
    <%= f.hidden_field :as_of, name: 'as_of' %>

    <%= f.button 'Search', class: 'button right' %>
<% end %>

Switch around 'q' and 't' search params.

As per request from the analytics team.


<%= environment %> CF: BOSH Agent reporting as unhealthy below threshold

Question: avg(last_5m):avg:bosh.healthmonitor.system.healthy{deployment:<%= deployment %>} by {job} < 0.8

One or more of the BOSH agents are reporting either that the VM that they are running on or the job that they are running is unhealthy. <%= backend_pagerduty %>

Question: avg(last_5m):avg:bosh.healthmonitor.system.healthy{deployment:<%= deployment %>} by {deployment,job} < 0.8

Add deployment name to unhealthy job alert

[#97263974]

Signed-off-by: Gary Liu <e2834181ebd96d7544bc16fb46591d272d6ed785@pivotal.io>


<form method="POST" action="/projects/<%= project.id %>/save">

Project Name

    <input class="mdl-textfield__input" type="text" name="project_name" value="<%= project.project_name %>">
    Project Name

Lane to run

Fastfile located at path <%= fastfile_path %>

  <select name="selected_lane">
    <% available_lanes.each do |current_lane| %>
      <option value="<%= current_lane %>"><%= current_lane %></option>
    <% end %>
  </select>

  <input class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" type="submit" title="Save">
</form>

<form method="POST" action="/projects/<%= project.id %>/save">

Project Name

    <input class="mdl-textfield__input" type="text" name="project_name" value="<%= project.project_name %>">
    Project Name

Git URL

<%= project.repo_config.git_url %>

Lane to run

Fastfile located at path <%= fastfile_path %>

  <select name="selected_lane">
    <% available_lanes.each do |current_lane| %>
      <option value="<%= current_lane %>"><%= current_lane %></option>
    <% end %>
  </select>

  <input class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" type="submit" title="Save">
</form>

Print Git URL as part of project settings (readonly)

This will make debugging/testing easier for the time being 👍


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

<% @container_taxonomies.each do |container_taxonomy| %>
  <tr id="<%= dom_id container_taxonomy %>" data-hook="container_taxonomies_row">
    <%= container_taxonomy.name %>
    <%= container_taxonomy.container_taxons.count %>

      <%= link_to_edit container_taxonomy.id, :class => 'edit' %>

      <%= link_to_delete container_taxonomy %>

<% end %>

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

<% @container_taxonomies.each do |container_taxonomy| %>
  <tr id="<%= dom_id container_taxonomy %>" data-hook="container_taxonomies_row">
    <%= link_to container_taxonomy.name, admin_container_taxonomy_container_taxons_path(container_taxonomy) %>
    <%= container_taxonomy.container_taxons.count %>

      <%= link_to_edit container_taxonomy.id, :class => 'edit' %>

      <%= link_to_delete container_taxonomy %>

<% end %>

Add a show link to container_taxonomies index view


<% @title = "Terms of Service" %>

Terms of Service

        <% if @viewing_terms['current'] %>
          These are the current terms of service. See other versions in the Changelog.
        <% elsif @viewing_terms['old'] %>
          These are old terms of service. <%= link_to "Read the current Terms of Service here.", terms_url %>
        <% elsif @viewing_terms['pending'] %>
          These terms of service will go into effect <%= @viewing_terms['start'].to_s(:long) %>.
          <%= link_to "Read the current Terms of Service here.", terms_url %>
        <% end %>

      <%= render partial: "home/terms/v#{@viewing_terms['version']}" %>

Changelog

      <%= render partial: "home/terms/changelog_entry", collection: @versions, locals: { viewing: @viewing_terms } %>

Fix page anchor to terms changelog

Fix page anchor to terms changelog


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

  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title><%= t(:markus) %> - <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'main.css', :media => 'all' %>
  <%= stylesheet_link_tag "livepipe/tabs.css", :media => 'all' %>
  <%= javascript_include_tag :defaults -%>
  <%= javascript_include_tag 'menu.js' -%>
  <%= yield :head %>

  <div id="<%= if (controller.action_name == 'login') then
                  "loggedOut"
               else
                  "loggedIn"
               end %>">
  <%= render :partial => 'layouts/header' %>
  <%= render :partial => 'layouts/menu' %>
  <%= render :partial => 'layouts/sub_menu' %>
  <%= render :partial => 'layouts/about' %>
  <%= render :partial => 'layouts/role_switch' %>

<%= render :partial => 'layouts/noscript'%>
    <%= @content_for_layout %>

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

  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title><%= t(:markus) %> - <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'main.css', :media => 'all' %>
  <%= stylesheet_link_tag "livepipe/tabs.css", :media => 'all' %>
  <%= javascript_include_tag :defaults -%>
  <%= javascript_include_tag 'menu.js' -%>
  <%= yield :head %>

  <div id="<%= if (controller.action_name == 'login') then
                  "loggedOut"
               else
                  "loggedIn"
               end %>">
  <%= render :partial => 'layouts/header' %>
  <%= render :partial => 'layouts/menu' %>
  <%= render :partial => 'layouts/sub_menu' %>
  <%= render :partial => 'layouts/about' %>
  <%= render :partial => 'layouts/role_switch' %>

    <%= render :partial => 'layouts/noscript'%>
    <%= content_for?(:content) ? yield(:content) : yield %>

FIX The layout is now displayed properly


Blades of grass image:  Evan Leeson, https://www.flickr.com/photos/ecstaticist/

Rainbow image, main welcome page
  David Grimes, https://www.flickr.com/photos/grimeshome/

Daisies image:

Cross and Clouds image, prayer request entry page
  John Wright, https://www.flickr.com/photos/mtbjohn/

Website designed and built by Katye McCullough Russell, copyright 2015

Blades of grass image:  Evan Leeson, https://www.flickr.com/photos/ecstaticist/

Rainbow image, main welcome page
  David Grimes, https://www.flickr.com/photos/grimeshome/

Daisies image:

Cross and Clouds image, prayer request entry page
  John Wright, https://www.flickr.com/photos/mtbjohn/

Hope Does Not Disappoint image, Sunday Lesson page
  Dane Vandeputte, https://www.flickr.com/photos/dane_vandeputte/

Final Word image, Sunday Lesson page
  Craig Hodgson, https://www.flickr.com/photos/hodge/

Email Me image, Email Directory Page
  RosieCotton, https://www.flickr.com/photos/pinwheels-folly/

Typing image, Email Directory Page
  Jackie Meredith, https://www.flickr.com/photos/jackie_brand/

Website designed and built by Katye McCullough Russell, copyright 2015

Add credit info for new images.

Add credit info for new images.


Bread for the City

Welcome to the DC Housing Applications Assistant!

<% if user_signed_in? %>
<%= link_to "List of Residents in System", residents_path %>
<% else %>
<%= link_to "Log in", new_user_session_path %> or <%= link_to "Create an account", new_user_registration_path %>
<% end %>

Bread for the City

Welcome to the DC Housing Applications Assistant!

<% if user_signed_in? %>
<%= link_to "Get started!", housing_forms_path %>
<% else %>
<%= link_to "Log in", new_user_session_path %> or <%= link_to "Create an account", new_user_registration_path %>
<% end %>

Change the front page link to the list of housing forms

Choosing desired locations seems like the right first step.  Selecting a
person's info seems akin to giving information at checkout.


<% provide :page_title, @page.title %>
<% provide :page_description, @page.description %>

<%= @page.body %>

<% content_for :page_title, @page.title %>
<% content_for :page_description, @page.description %>

<%= @page.body %>

Switch from `provide` to `content_for`

Switch from `provide` to `content_for`

since we are not using or calling streaming anywhere in the app

Ref: https://api.rubyonrails.org/classes/ActionController/Streaming.html


<%= form_tag(change_visibility_path, method: :post, html: { :class => "form-horizontal"}) do %>
  <%= hidden_field_tag :plan_id, plan_id %>

      <%= radio_button_tag :visibility, :institutional, :class => 'radio inline', :id => 'institutional' %>
      <%= label_tag :institutional, "With others from #{current_user.institution.full_name}", :class => 'radio-label' %>

      <%= radio_button_tag :visibility, :public, :class => 'radio inline', :id => 'public' %>
      <%= label_tag :public, 'Publicly on the web', :class => 'radio-label' %>

      <%= radio_button_tag :visibility, :private, :class => 'radio inline', :id => 'private', checked: true  %>
      <%= label_tag :private, '...Or keep it Private', :class => 'radio-label'%>

  <%= submit_tag "Share", :class => 'btn btn-success', method: 'post' %>

  <%= button_tag 'Cancel', type: :reset, :class => 'btn btn-success', id: "cancel_action" %>

<% end %>

<%= form_tag(change_visibility_path, method: :post, html: { :class => "form-horizontal"}) do %>
  <%= hidden_field_tag :plan_id, plan_id %>

      <%= radio_button_tag :visibility, :institutional, :class => 'radio inline', :id => 'institutional' %>
      <%= label_tag :institutional, "With others from #{current_user.institution.full_name}", :class => 'radio-label' %>

      <%= radio_button_tag :visibility, :public, :class => 'radio inline', :id => 'public' %>
      <%= label_tag :public, 'Publicly on the web', :class => 'radio-label' %>

      <%= radio_button_tag :visibility, :private, :class => 'radio inline', :id => 'private', checked: true  %>
      <%= label_tag :private, '...Or keep it Private', :class => 'radio-label'%>

  <%= submit_tag "Share", :class => 'btn btn-success', method: 'post' %>

<% end %>

Remove the extra Cancel button on the change visibility.


<%= notice %>

  Table:
  <%= @registration_table.table.session.name %>: <%= @registration_table.table.scenario.long_name %>

  Registration:
  <%= @registration_table.user_event.event.name %>

<%= link_to 'Edit', edit_event_session_table_registration_table(@event, @session, @table, @registration_table) %> |
<%= link_to 'Back', registration_tables_path %>

<%= notice %>

  Table:
  <%= @registration_table.table.session.name %>: <%= @registration_table.table.scenario.long_name %>

  Registration:
  <%= @registration_table.user_event.event.name %>

<%= link_to 'Edit', edit_event_session_table_registration_table_path(@event, @session, @table, @registration_table) %> |

<%= link_to 'Back', registration_tables_path %>

Correct path for edit reg table

Correct path for edit reg table


---
- scm:
    name: govuk-content-api-docs
    scm:
      - git:
          url: git@github.com:alphagov/govuk-content-api-docs.git
          basedir: govuk-content-api-docs
          branches:
            - master
- job:
    name: govuk-content-api-docs
    display-name: Publish GOV.UK Content API Docs
    project-type: freestyle
    description: |
      Builds and publishes the govuk-content-api-docs.
    scm:
      - govuk-content-api-docs
    logrotate:
      numToKeep: 10
      artifactDaysToKeep: 3
    triggers:
      - timed: 'H * * * *'
    builders:
      - shell: |
          #!/bin/bash
          set -eu

          cd "${WORKSPACE}"

          rm -rf content-store

          git clone https://github.com/alphagov/content-store.git

          cd govuk-content-api-docs

          export BUNDLE_PATH="${HOME}/bundles/${JOB_NAME}"
          make publish API_SPEC=../content-store/openapi.yaml

          cd ..

          rm -rf content-store

---
- scm:
    name: govuk-content-api-docs
    scm:
      - git:
          url: git@github.com:alphagov/govuk-content-api-docs.git
          basedir: govuk-content-api-docs
          branches:
            - master
- job:
    name: govuk-content-api-docs
    display-name: Publish GOV.UK Content API Docs
    project-type: freestyle
    description: |
      Builds and publishes the govuk-content-api-docs.
    scm:
      - govuk-content-api-docs
    logrotate:
      numToKeep: 10
      artifactDaysToKeep: 3
    triggers:
      - timed: 'H * * * *'
    builders:
      - shell: |
          #!/bin/bash
          set -eu

          cd "${WORKSPACE}"

          rm -rf content-store

          git clone -b deployed-to-production https://github.com/alphagov/content-store.git

          cd govuk-content-api-docs

          export BUNDLE_PATH="${HOME}/bundles/${JOB_NAME}"
          make publish API_SPEC=../content-store/openapi.yaml

          cd ..

          rm -rf content-store

Build Content API docs from production

Build Content API docs from production

Currently it builds from master, but it would be better for the
documentation to represent production.


  <%= audit.created_at.getlocal.ctime %>

    <% case audit.auditable_type
         when "Entry" %>
           <% if Event.find_by_id(audit.associated_id).present? %>
		<%= link_to "Entry for Event #{audit.associated_id}", Event.find(audit.associated_id) %>
           <% else %>
                Entry for <%= audit.associated_id %> (deleted!)
           <% end %>
      <% when "Event" %>
           <% if Event.find_by_id(audit.auditable_id).present? %>
		<%= link_to "Event #{audit.auditable_id}", Event.find(audit.auditable_id) %>
           <% else %>
                Event <%= audit.auditable_id %> (deleted!)
           <% end %>
      <% when "LostAndFoundItem" %>
           <% if LostAndFoundItem.find_by_id(audit.auditable_id).present? %>
                <%= link_to "Lost/Found", LostAndFoundItem.find(audit.auditable_id) %>
           <% else %>
                Lost/Found <%= audit.auditable_id %> (deleted!)
           <% end %>
      <% when "LoginLog" %>
           Login/Out
    <% end %>

    <% user = User.find_by_id audit.user_id if audit.user_id %>
    <%= link_to user.username, user if user %>

  <%= audit.audited_changes %>

  <%= audit.created_at.getlocal.ctime %>

    <% case audit.auditable_type
         when "Entry" %>
           <% if Event.find_by_id(audit.associated_id).present? %>
		<%= link_to "Entry for Event #{audit.associated_id}", Event.find(audit.associated_id) %>
           <% else %>
                Entry for <%= audit.associated_id %> (deleted!)
           <% end %>
      <% when "Event" %>
           <% if Event.find_by_id(audit.auditable_id).present? %>
		<%= link_to "Event #{audit.auditable_id}", Event.find(audit.auditable_id) %>
           <% else %>
                Event <%= audit.auditable_id %> (deleted!)
           <% end %>
      <% when "LostAndFoundItem" %>
           <% if LostAndFoundItem.find_by_id(audit.auditable_id).present? %>
                <%= link_to "Lost/Found", LostAndFoundItem.find(audit.auditable_id) %>
           <% else %>
                Lost/Found <%= audit.auditable_id %> (deleted!)
           <% end %>
      <% when "LoginLog" %>
           Login/Out
      <% else %>
            <%= audit.auditable_type %> <%= audit.auditable_id %>
    <% end %>

    <% user = User.find_by_id audit.user_id if audit.user_id %>
    <%= link_to user.username, user if user %>

  <%= audit.audited_changes %>

Make display of audit trail slightly more useful for non-common objects.


Storage {
  Name                    = <%= fqdn %>-sd
  WorkingDirectory        = <%= working_directory %>
  Pid Directory           = <%= pid_directory %>
  SDPort                  = <%= port %>
}

Device {
  Name           = <%= device_name %>
  Media Type     = <%= media_type %>
  Archive Device = <%= device %>
  LabelMedia     = yes; # lets Bacula label unlabeled media
  Random Access  = yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen     = no;
}

# Send all messages to the Director,
Messages {
  Name     = Standard
  director = <%= bacula_director %>-dir = all
  syslog   = all, !skipped
  #append   = "/var/log/bacula/log" = all, !skipped
}

Storage {
  Name                    = <%= fqdn %>-sd
  WorkingDirectory        = <%= working_directory %>
  Pid Directory           = <%= pid_directory %>
  SDPort                  = <%= scope.lookupvar('bacula::params::storage_port') %>
}

Device {
  Name           = <%= device_name %>
  Media Type     = <%= media_type %>
  Archive Device = <%= device %>
  LabelMedia     = yes; # lets Bacula label unlabeled media
  Random Access  = yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen     = no;
}

# Send all messages to the Director,
Messages {
  Name     = Standard
  director = <%= bacula_director %>-dir = all
  syslog   = all, !skipped
  #append   = "/var/log/bacula/log" = all, !skipped
}

Use params class for bacula storage port


<% content_for :main_content do %>

Register

You can further <a class="btn btn-info" href="<%= edit_user_path(@user.id) %>" target="_blank">complete your profile for registration

          <%= render 'registration_form', locals: {user: @user, survey_template: survey_template, registration: registration, questions: questions} %>

<% end %>

<% content_for :main_content do %>

Register

        <% if is_registration_open? %>

You can further <a class="btn btn-info" href="<%= edit_user_path(@user.id) %>" target="_blank">complete your profile for registration

          <%= render 'registration_form', locals: {user: @user, survey_template: survey_template, registration: registration, questions: questions} %>
        <% else %>

            Registration for Orbital <%=current_cohort%> has closed. Thank you for your interest.

        <% end %>

<% end %>

Add check for registration status

Add check for registration status

Signed-off-by: Aadit <524ee5f6f65108e1a57086bf53235bd43dbe8e71@gmail.com>


Edit Your Story

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

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

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

    <%= f.submit %>

  <% end %>

Edit Your Story

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

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

    <%= f.label :content %>
    <%= f.text_field :content, class: "redactor" %>

    Would you like to publish this story?
    <%= f.radio_button 'published', false, { :checked => true } %> No
    <%= f.radio_button 'published', true %> Yes

    <%= f.submit %>

  <% end %>

  Are you sure? This story will no longer be editable.

Add radio buttons for publish/no publish


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

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

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

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

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

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

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

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

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

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

Revert "Change blog link to go directly to OAF site"

This reverts commit cd2553188aaede2d9f936051850697924cf4adbe.


<% content_for :sidebar do %>

    <% if "products" == params[:controller] && @taxon %>
      <%= render :partial => 'spree/shared/filters' %>
    <% else %>
      <%= render :partial => 'spree/shared/taxonomies' %>
    <% end %>

<% end %>

<% if params[:keywords] %>

    <% if @products.empty? %>

<%= t(:no_products_found) %>

    <% else %>
      <%= render :partial => 'spree/shared/products', :locals => { :products => @products, :taxon => @taxon } %>
    <% end %>

<% else %>

    <%= render :partial => 'spree/shared/products', :locals => { :products => @products, :taxon => @taxon } %>

<% end %>

<% content_for :sidebar do %>

    <% if "spree/products" == params[:controller] && @taxon %>
      <%= render :partial => 'spree/shared/filters' %>
    <% else %>
      <%= render :partial => 'spree/shared/taxonomies' %>
    <% end %>

<% end %>

<% if params[:keywords] %>

    <% if @products.empty? %>

<%= t(:no_products_found) %>

    <% else %>
      <%= render :partial => 'spree/shared/products', :locals => { :products => @products, :taxon => @taxon } %>
    <% end %>

<% else %>

    <%= render :partial => 'spree/shared/products', :locals => { :products => @products, :taxon => @taxon } %>

<% end %>

Update controller check to have spree namespace.

Fixes #2686


Notification Statuses

        User
        Device
        Provider
        Status

      <% @notification_statuses.each do |ns| %>

          <%= link_to(ns.device_token.user.alias, admin_account_app_user_path(@account, @app, ns.device_token.user)) if ns.device_token.user %>
          <%= ns.device_token.name %>
          <%= ns.device_token.provider %>
          <%= ns.status %>

      <% end %>

<%= paginate @notification_statuses, :theme => 'twitter-bootstrap-3', :pagination_class => "pagination-sm" %>

Notification Statuses

        Date
        User
        Device
        Provider
        Status

      <% @notification_statuses.each do |ns| %>

          <%= ns.created_at %>
          <%= link_to(ns.device_token.user.alias, admin_account_app_user_path(@account, @app, ns.device_token.user)) if ns.device_token.user %>
          <%= ns.device_token.name %>
          <%= ns.device_token.provider %>
          <%= ns.status %>

      <% end %>

<%= paginate @notification_statuses, :theme => 'twitter-bootstrap-3', :pagination_class => "pagination-sm" %>

Add created at date to notifiable statuses


#import late_command
#if $str($getVar('puppet_auto_setup','')) == "1"
in-target mkdir -p /etc/puppet /var/lib/hiera && \
in-target touch /var/lib/hiera/common.yaml /etc/puppet/hiera.yaml && \
    #if $getVar('puppet_master','') != ''
in-target $late_command.late_file("""[main]
    logdir = /var/log/puppet
    rundir = /var/run/puppet
    ssldir = $vardir/ssl
    pluginsync = true
[agent]
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    server = %(puppet_master)s
    report = false
    configtimeout = 600
""" % {"puppet_master": $puppet_master},
    "/etc/puppet/puppet.conf", source_method="content") \
    #else
true \
    #end if
#end if

#import late_command
#if $str($getVar('puppet_auto_setup','')) == "1"
in-target mkdir -p /etc/puppet /var/lib/hiera && \
in-target touch /var/lib/hiera/common.yaml /etc/puppet/hiera.yaml && \
in-target touch /var/log/puppet.log && \
in-target chmod 600 /var/log/puppet.log && \
    #if $getVar('puppet_master','') != ''
in-target $late_command.late_file("""[main]
    logdir = /var/log/puppet
    rundir = /var/run/puppet
    ssldir = $vardir/ssl
    pluginsync = true
[agent]
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    server = %(puppet_master)s
    report = false
    configtimeout = 600
""" % {"puppet_master": $puppet_master},
    "/etc/puppet/puppet.conf", source_method="content") \
    #else
true \
    #end if
#end if

Make /var/log/puppet.log readable only to its owner

This file is currently world-readable and exposes all passwords used for
deployment, including OpenStack services and MySQL database.

The commit changes permissions only for classical provisioning.
Related review for IBP: I0be5ffd806ddf708344205fe374f716e4cd2d831

Change-Id: Ib5cbc088a572369224ba56052657069b0bbea52e
Related-bug: 1486399


	<title> HPP Payment</title>

  <% hpp_client = Adyen::HPP::Client.new(:test, :testing) %>
	<form action="<%= hpp_client.url %>" method="post">

 Price: EUR 43.21.

			<%= hpp_client.new_request.hidden_fields(@payment) %>
			<input type="submit" value="Pay" />

	</form>

If you are using the test account of this library, you will be redirected back
    to example.com after you complete the payment on Adyen's hosted
    payment pages. This is due to how the test account is configured.

    <title> HPP Payment</title>

    <% hpp_request = Adyen::HPP::Request.new(@payment, environment: :test, skin: :testing) %>
    <form action="<%= hpp_request.url %>" method="post">

 Price: EUR 43.21.

      <%= hpp_request.hidden_fields %>
      <input type="submit" value="Pay" />

    </form>

If you are using the test account of this library, you will be redirected back
    to example.com after you complete the payment on Adyen's hosted
    payment pages. This is due to how the test account is configured.

Use HPP::Request instead of missing HPP::Client


New role

<%= form_for(@role, :url => admin_role_path(@role)) do |f| %>

    <%= f.label :onid %>

    <%= f.text_field :onid %>

    <%= f.label :role %>

    <%= f.select :role, {:staff => 'staff', :admin => 'admin'}, :class=>'span6'%>

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

<% end %>

  <%= link_to 'Back', admin_roles_path, :class => 'btn' %>

New role

<%= simple_form_for(@role, :url => admin_role_path(@role), :html => {:class => 'form-horizontal'}) do |f| %>
  <%= f.input :onid %>

    <%= f.label :role %>

<%= f.select :role, {:staff => 'staff', :admin => 'admin'}, :class=>'span6'%>

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

<% end %>

  <%= link_to 'Back', admin_roles_path, :class => 'btn' %>

Refactor the new role template to work with simple_form


2010 ©

<%= link_to t('socialstream'), 'http://social_stream.dit.upm.es/' %>

2010 ©

<%= link_to t('socialstream'), 'http://social-stream.dit.upm.es/' %>

Fix link in layout footer

Fix link in layout footer


<!doctype html>

    <title>Local</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <meta name="google" content="notranslate" />
    <meta name="path" content="<%= request.path %>" />
    <%=  %>

Handle the case when a request's path ends with '/'


<% breadcrumb.add t('b.add'), new_backend_snippet_path %>
<%= render 'backend/breadcrumbs' %>

<%= simple_form_for [:backend, @model] do |f| %>
  <fieldset class="radius">
    <legend><%= t 'b.general' %></legend>
    <%= f.input :identifier %>
    <%= f.input :description, as: :string %>
  </fieldset>

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

<% breadcrumb.add t('b.add') %>
<%= render 'backend/breadcrumbs' %>

<%= simple_form_for [:backend, @model] do |f| %>

          <%= t 'b.general' %>

          <%= f.input :identifier %>
          <%= f.input :description, as: :string %>

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

Fix the snippets new action.

Fix the snippets new action.


<% title 'Discover Products' %>
<% activate_nav! :platform_discover %>

<%= render 'shared/navbar' %>

This week's most actively developed products

            From the <%= Product.launched.count %> launched products on Assembly
            and <%= Product.stealth.count %> others in stealth.

          <% @products.each do |product| %>

              <%= render 'product', product: product %>

          <% end %>

<%= render 'shared/footer' %>

<% title 'Discover Products' %>
<% activate_nav! :platform_discover %>

<%= render 'shared/navbar' %>

This week's 8 most actively developed products

          <% @products.each do |product| %>

              <%= render 'product', product: product %>

          <% end %>

<%= render 'shared/footer' %>

Remove confusing numbers on discover page

Feedback from @awwstn.


 <% @qr.modules.each_index do |x| -%>

   <% @qr.modules.each_index do |y| -%>
    <% if @qr.dark?(x,y) -%>

    <% else -%>

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

 <% end -%>

<%= button_link_to t(:back), edit_admin_user_path(@user) %>

<%= render :partial => 'spree/admin/shared/qr', :locals => { :qr => @qr } %>

<%= button_link_to t(:back), edit_admin_user_path(@user) %>

Change users QR, so to use the shared QR partial


poller = () ->
  $.getJSON("<%= Rails.application.routes.url_helpers.join_dynamic_path %>",
    (data, textStatus) ->
      if data["ready"]
        adjust_page(data["step"], data["body"], data["explanation"])
      if data["keep_polling"]
        setTimeout(poller, 200)
  )

<%# Include a helper for the header styles below %>
<% environment.context_class.instance_eval { include JoinHelper } %>

adjust_page = (step, body, explanation) ->
  for i in [1,2,3]
    if i == step
      if body
        node = $("#body#{i} > .contents")
        node.empty()
        node.append(body)
      if explanation
        node = $("#explanation#{i} > .contents")
        node.empty()
        node.append(explanation)
      $("#header#{i}").removeClass("<%= inactive_header_style %>")
      $("#header#{i}").addClass("<%= active_header_style %>")
      $("#body#{i}").removeClass("hidden")
      $("#explanation#{i}").removeClass("hidden")
    else
      $("#header#{i}").removeClass("<%= active_header_style %>")
      $("#header#{i}").addClass("<%= inactive_header_style %>")
      $("#body#{i}").addClass("hidden")
      $("#explanation#{i}").addClass("hidden")

$(document).ready ->
  setTimeout(poller, 200)
  history.replaceState(null, null, "<%= Rails.application.routes.url_helpers.join_path %>")

Remove ?code from the url on the /join url.


<%= link_to adslug_path(ad, ad.slug), class: 'aod_content' do %>
  <% if ad.image.exists? %>

      <%= image_tag ad.image.url(:thumb), title: ad.filtered_title,
                                          alt: ad.filtered_title %>

  <% end %>

    <%= ad.filtered_title %>

    <%= ad.woeid_name %> >
    <%= ad.type_string %>

  <% if ad.give? %>
    <span class="ad_status <%= ad.status %>">
      <%= ad.status_string %>

  <% end %>

  <%= published_ago_by(ad.published_at, ad.user) %>

<%= truncate ad.filtered_body, length: 200, separator: ' ' %>

  <%= render "ads/stats", comments_count: comment_counts[ad.id] || 0,
                          readed_count: ad.readed_count %>
<% end %>

Add some spacing to ad template for readability


Contents

      <% @sections.each do |section| %>

<%= section %>

      <% end %>

<%= @version.article.title %>

Written by <%= @version.article.orig_author.username %>

    <% if @version.article.orig_author != @version.updating_author %>

Edited by <%= @version.updating_author.username %>

    <% end %>
    <%= @markdown_content.html_safe %>
    <% if @version.footnotes %>

Footnotes

<%= @version.footnotes %>

    <% end %>
    <% if @version.article.versions.length > 1 %>

See All Versions of This Article

      <% @version.article.versions.each do |version| %>

<a href="articles/<%= version.article.to_param %>/version/<%= version.id %>">version id: <%= version.id %> (updated by <%= version.updating_author.username %>)

      <% end %>

    <% end %>

Contents

      <% section_num = 0 %>
      <% @sections.each do |section| %>

<a href="#<%= section_num %>"><%= section %>

        <% section_num += 1 %>
      <% end %>

<%= @version.article.title %>

Written by <%= @version.article.orig_author.username %>

    <% if @version.article.orig_author != @version.updating_author %>

Edited by <%= @version.updating_author.username %>

    <% end %>
    <%= @markdown_content.html_safe %>
    <% if @version.footnotes %>

Footnotes

<%= @version.footnotes %>

    <% end %>
    <% if @version.article.versions.length > 1 %>

See All Versions of This Article

      <% @version.article.versions.each do |version| %>

<a href="articles/<%= version.article.to_param %>/version/<%= version.id %>">version id: <%= version.id %> (updated by <%= version.updating_author.username %>)

      <% end %>

    <% end %>

Add links to table of contents sections

Add links to table of contents sections


    <hgroup>

Licence <%= @licence.title %>

    </hgroup>

        <%= to_govspeak(@licence.licence_overview) %>

    <hgroup>

Licence <%= @licence.title %>

    </hgroup>

Overview

        <%= to_govspeak(@licence.licence_overview) %>

Add sidebar navigation HTML to licence template


Move accu logo into sponsors dir

Move accu logo into sponsors dir


Messages:

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

<%= message.text %>

<%= message.username %>

<% end %>

Messages:

<% @messages.each do |message| %>
    <% if message.inspected == true %>

<%= message.text %>

<%= message.username %>

    <% end %>
<% end %>

Add display messages are inspected

Add display messages are inspected


<%= form_for(@snippet) do |f| %>
  <% if @snippet.errors.any? %>

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

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

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :title %>

    <%= f.text_field :title %>

    <%= f.label :language %>

    <%= f.number_field :language %>

    <%= f.label :content %>

    <%= f.text_area :content %>

    <%= f.submit %>

<% end %>

<%= form_for(@snippet) do |f| %>
  <% if @snippet.errors.any? %>

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

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

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :title %>

    <%= f.text_field :title %>

    <%= f.label :language %>

    <%= f.select :language, Snippet.languages.keys.map { |k| [k.humanize, k] } %>

    <%= f.label :content %>

    <%= f.text_area :content %>

    <%= f.submit %>

<% end %>

Use dropdown field for snippet language in form


Use F12 to open Dev Tools Network Tab (Mac + Firefox)

Create F12 shortcut to open up Dev Tools Network

only for Mac/Firefox


<%= link_to submit_text, {:controller => "reservations", :action => "new", :reservation => { :start_dt => start_dt, :end_dt => end_dt }, :page => params[:page], :sort => params[:sort], :direction => params[:direction]}, remote: true %>

<%= link_to submit_text, {:controller => "reservations", :action => "new", :reservation => { :start_dt => start_dt, :end_dt => end_dt }, :page => params[:page], :sort => params[:sort], :direction => params[:direction]}, data: { remote: true, type: 'script' } %>

Change the way data is set on the link_to for rebuild grid


<% if @batches.length > 0 %>

        Name
        Created
        Total Contributions

      <% @batches.each do |batch| %>

          <%= link_to batch.title, batch_path(batch) %>
          <%= batch.created_at_string %>
          <%= number_to_currency(batch.total_contributions) %>

      <% end %>

  <%= will_paginate @batches %>
<% end %>

<% if @batches.length > 0 %>

        Name
        Created
        Total Contributions

      <% @batches.each do |batch| %>

          <%= link_to batch.title, batch_contributions_path(batch) %>
          <%= batch.created_at_string %>
          <%= number_to_currency(batch.total_contributions) %>

      <% end %>

  <%= will_paginate @batches %>
<% end %>

Update batches/_batches partial to reflect batch contributions change


<% provide :page_title, "#{@presenter.title.join(', ')} - #{application_name}" %>

<% provide :sidebar do %>
  <%= render 'search_sidebar' %>
<% end %>

  <% @presenter.title.each do |title| %>

<%= title %>

  <% end %>

  <%= render 'curation_concerns/base/representative_media', presenter: @presenter %>

  <% unless has_collection_search_parameters? %>
    <%= render 'collections/show_actions' %>
    <%= render 'attributes', presenter: @presenter %>
  <% end %>

  <%= render 'search_form', presenter: @presenter %>
  <%= render 'sort_and_per_page', collection: @presenter %>

  <% if has_collection_search_parameters? %>

Search Results within this Collection

  <% else %>

Items in this Collection

  <% end %>
  <%= render_document_index @member_docs %>

  <%= render partial: 'paginate' %>

<% provide :page_title, "#{@presenter.title.join(', ')} - #{application_name}" %>

<% provide :sidebar do %>
  <%= render 'search_sidebar' %>
<% end %>

  <% @presenter.title.each do |title| %>

<%= title %>

  <% end %>

  <% unless has_collection_search_parameters? %>
    <%= render 'collections/show_actions' %>
    <%= render 'attributes', presenter: @presenter %>
  <% end %>

  <%= render 'search_form', presenter: @presenter %>
  <%= render 'sort_and_per_page', collection: @presenter %>

  <% if has_collection_search_parameters? %>

Search Results within this Collection

  <% else %>

Items in this Collection

  <% end %>
  <%= render_document_index @member_docs %>

  <%= render partial: 'paginate' %>

Remove collection viewer from show page.


    <% @courses.each do |course| %>

COURSE: <%= course.name %>

        <% course.sections.each do |section| %>

SECTION: <%= section.code %> | <%= section.name %>

ENROLLED: <%= section.students.count %>/<%= possible_seats(section) %>

          <% section.students.each do |student| %>

<%= student.last_name %>, <%= student.first_name %>

<%= student.email %>

<%= student.id_number %>

<%= student.current_homeroom %>

<%= student.grade_level %>

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

    <% @courses.each do |course| %>

COURSE: <%= course.name %>

        <% course.sections.each do |section| %>

SECTION: <%= section.name %> | Period <%= section.period_id %>

ENROLLED: <%= section.students.count %>/<%= possible_seats(section) %>

          <% section.students.each do |student| %>

<%= student.last_name %>, <%= student.first_name %>

<%= student.email %>

<%= student.id_number %>

<%= student.current_homeroom %>

<%= student.grade_level %>

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

Add period display to section on 'course enrollments'


<%= render layout: "shared/model_show" do %>

  <%= attribute_table_row(t("myplaceonline.locations.name"), @obj.name) %>
  <%= attribute_table_row(t("myplaceonline.locations.address1"), @obj.address1) %>
  <%= attribute_table_row(t("myplaceonline.locations.address2"), @obj.address2) %>
  <%= attribute_table_row(t("myplaceonline.locations.address3"), @obj.address3) %>
  <%= attribute_table_row(t("myplaceonline.locations.sub_region2"), @obj.sub_region2) %>
  <%= attribute_table_row(t("myplaceonline.locations.sub_region1"), @obj.sub_region1_name) %>
  <%= attribute_table_row(t("myplaceonline.locations.postal_code"), @obj.postal_code) %>
  <%= attribute_table_row(t("myplaceonline.locations.region"), @obj.region_name) %>
  <%= attribute_table_row_url(t("myplaceonline.locations.full_address"), @obj.address_one_line) %>
  <%= attribute_table_row_url(t("myplaceonline.locations.map"), @obj.map_url) %>
  <% @obj.location_phones.each do |phone| %>

    <%= attribute_table_row(t("myplaceonline.locations.phone"), phone.number) %>

  <% end %>

<% end %>

<%= render layout: "shared/model_show" do %>

  <%= attribute_table_row(t("myplaceonline.locations.name"), @obj.name) %>
  <%= attribute_table_row(t("myplaceonline.locations.address1"), @obj.address1) %>
  <%= attribute_table_row(t("myplaceonline.locations.address2"), @obj.address2) %>
  <%= attribute_table_row(t("myplaceonline.locations.address3"), @obj.address3) %>
  <%= attribute_table_row(t("myplaceonline.locations.sub_region2"), @obj.sub_region2) %>
  <%= attribute_table_row(t("myplaceonline.locations.sub_region1"), @obj.sub_region1_name) %>
  <%= attribute_table_row(t("myplaceonline.locations.postal_code"), @obj.postal_code) %>
  <%= attribute_table_row(t("myplaceonline.locations.region"), @obj.region_name) %>
  <%= attribute_table_row_url(t("myplaceonline.locations.full_address"), @obj.address_one_line) %>
  <%= attribute_table_row(t("myplaceonline.locations.map"), @obj.map_url) %>
  <% @obj.location_phones.each do |phone| %>

    <%= attribute_table_row(t("myplaceonline.locations.phone"), phone.number) %>

  <% end %>

<% end %>

Remove link from full address

Remove link from full address


<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Payments' } %>

<% content_for :page_actions do %>
  <% if @order.outstanding_balance? %>

      <%= button_link_to t(:new_payment), new_admin_order_payment_url(@order), :icon => 'icon-plus' %>

  <% end %>

<%= button_link_to t(:back_to_orders_list), admin_orders_path, :icon => 'icon-arrow-left' %>

<% end %>

<% content_for :page_title do %>
   <%= t(:payments) %>
<% end %>

<% if @order.outstanding_balance? %>

<%= @order.outstanding_balance < 0 ? t(:credit_owed) : t(:balance_due) %>: <%= @order.display_outstanding_balance %>

<% end %>

<% if @payments.any? %>
  <%= render :partial => 'list', :locals => { :payments => @payments } %>
<% else %>

<%= t(:order_has_on_payments) %>

<% end %>

<%= button_link_to t(:continue), admin_orders_url, :icon => 'icon-arrow-right' %>

<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Payments' } %>

<% content_for :page_actions do %>
  <% if @order.outstanding_balance? %>

      <%= button_link_to t(:new_payment), new_admin_order_payment_url(@order), :icon => 'icon-plus' %>

  <% end %>

<%= button_link_to t(:back_to_orders_list), admin_orders_path, :icon => 'icon-arrow-left' %>

<% end %>

<% content_for :page_title do %>
   <%= t(:payments) %>
<% end %>

<% if @order.outstanding_balance? %>

<%= @order.outstanding_balance < 0 ? t(:credit_owed) : t(:balance_due) %>: <%= @order.display_outstanding_balance %>

<% end %>

<% if @payments.any? %>
  <%= render :partial => 'list', :locals => { :payments => @payments } %>
<% else %>

<%= t(:order_has_no_payments) %>

<% end %>

<%= button_link_to t(:continue), admin_orders_url, :icon => 'icon-arrow-right' %>

[backend] Fix 'order_has_no_payments' key in payments/index


---
title: Donate
---

Donate

From time to time, people ask us how they can support our ministry. If you feel that the Lord has directed you to send a financial gift to us, you have a couple options:

Mail a check, made out to Nathan Day, to our address in the States:

  Nathan Day

  19845 Hopi Pines Grv

  Peyton, CO 80831

  Or, if you prefer, you can
  <%= link_to "send money online via PayPal.", "http://paypal.me/nathanday", target: :_blank, rel: :noopener  %>

    Unfortunately, neither funds sent via check, nor via PayPal are tax-deductible.

---
title: Donate
---

Donate

From time to time, people ask us how they can support our ministry. If you feel that the Lord has directed you to send a financial gift to us, you have a couple options:

If you wish your donation to be tax-deductible, you can mail a check made out to Fairpark Baptist Church, with a note requesting that the money be used to support the Day Family's ministry to Ukraine, to the following address:

  Fairpark Baptist Church

  6000 Crowley Rd.

  Fort Worth, TX 76134

  Or, if you prefer, you can
  <%= link_to "send money online via PayPal.", "http://paypal.me/nathanday", target: :_blank, rel: :noopener  %>
  (Money sent to us via PayPal is not tax-deductible).

Update donate page with Fairpark info

Update donate page with Fairpark info


<%= t('fb_app_plugin.lib.plugin.name') %>

<%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>

  <%= render 'intro' if @auth.not_authorized? %>

    <%= render 'auth' %>

<% if @auth.connected? or Rails.env.development? %>
<% if FbAppPlugin.test_user? user %>

      <%= t('fb_app_plugin.views.myprofile.timeline.heading') %>

      <%= render 'track_form' %>

<% end %>

    <%= render 'catalogs' %>

<% end %>

<%= button(:back, _('Back to control panel'), {:controller => 'profile_editor'}, :class => 'fb-app-final-back-button') %>

<%= t('fb_app_plugin.lib.plugin.name') %>

<%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>

  <%= render 'intro' if @auth.not_authorized? %>

    <%= render 'auth' %>

<% if @auth.connected? or Rails.env.development? %>

    <%= render 'catalogs' %>

      <%= t('fb_app_plugin.views.myprofile.timeline.heading') %>

      <%= t('fb_app_plugin.views.myprofile.timeline.explanation_title') %>

      <%= t('fb_app_plugin.views.myprofile.timeline.explanation_text') %>

<% if FbAppPlugin.test_user? user %>

      <%= render 'track_form' %>

<% end %>

<% end %>

<%= button(:back, _('Back to control panel'), {:controller => 'profile_editor'}, :class => 'fb-app-final-back-button') %>

Make some suspense about timeline posting in cirandas


    <% if defined?(controls) && controls %>

        <select name="filter" class="dropdown-select">
          <option value="" selected>All languages</option>
          <% languages.each do |language| %>
            <option value=".lang-<%= language.downcase.gsub(/\s/, '-') %>">Only <%= language %></option>
          <% end %>
        </select>

        <select name="sort" class="dropdown-select">
          <option value="stars" selected>Sorted by stars</option>
          <option value="forks">Sorted by forks</option>
          <option value="issues">Sorted by issues</option>
          <option value="title">sorted by title</option>
        </select>

    <% end %>

About StaticGen

The Rules

    <% if defined?(controls) && controls %>

        <select name="filter" class="dropdown-select">
          <option value="" selected>All languages</option>
          <% languages.each do |language| %>
            <option value=".lang-<%= language.downcase.gsub(/\s/, '-') %>">Only <%= language %></option>
          <% end %>
        </select>

        <select name="sort" class="dropdown-select">
          <option value="stars" selected>Sorted by stars</option>
          <option value="forks">Sorted by forks</option>
          <option value="issues">Sorted by issues</option>
          <option value="title">Sorted by title</option>
        </select>

    <% end %>

About StaticGen

The Rules

Fix capitalization on sort dropdown menu


[Unit]
Description=Zabbix Agent
After=network.target

[Service]
Type=simple
Restart=on-failure
PIDFile=<%= @pidfile %>
KillMode=control-group
ExecStart=/usr/sbin/zabbix_agentd -c <%= @agent_configfile_path %>
ExecStop=/bin/kill -SIGTERM $MAINPID
RestartSec=10s

[Install]
WantedBy=multi-user.target

[Unit]
Description=Zabbix Agent
After=network.target

[Service]
Type=simple
Restart=on-failure
<% if @pidfile %>PidFile=<%= @pidfile %><% end %>
KillMode=control-group
ExecStart=/usr/sbin/zabbix_agentd -c <%= @agent_configfile_path %>
ExecStop=/bin/kill -SIGTERM $MAINPID
RestartSec=10s

[Install]
WantedBy=multi-user.target

Make the pidfile in the systemd unit optional

The pidfile option isn't needed always. systemd is able to automatically
determine the path to the created pidfile.


<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" >
    <meta rel="icon" href="/img/favicon.ico">
    <title>example page</title>
    <link href="/css/main.css" media="screen" rel="stylesheet" type="text/css">
  </head>
  <body>
<%= yield %>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" >
  <meta rel="icon" href="/img/favicon.ico">
  <title>example page</title>
  <link href="/css/main.css" media="screen" rel="stylesheet" type="text/css">
</head>
<body>
  <%= yield %>
  <script src="/js/main.js"></script>
</body>
</html>

Fix format and add main.js

Fix format and add main.js


---
title: Documentação
layout: mobile
description: Use direto dos nossos servidores ou baixe uma versão estável para incorporar em seu projeto ou usar offline.
---

<script>
  window.location.href = '/documentacao/introducao/';
</script>

---
title: Documentação
layout: mobile
description: Use direto dos nossos servidores ou baixe uma versão estável para incorporar em seu projeto ou usar offline.
---

<%= partial 'documentacao/shared/passo-a-passo/passo' %>

Revert "Change /documentacao/ redict to /documentacao/introducao/"

This reverts commit 72cb04753d4c11bf47a1f9f757dcdc40ae8877ae.


New clock

<%= render 'form' %>

<%= link_to 'Back', clocks_path %>

New clock

<%= simple_form_for(@clock) do |f| %>
  <%= f.error_notification %>

      LCD count
      <input class="numeric integer optional" id="clock_lcd_count" name="clock[lcd_count]" step="1" value="6" type="number">

    <%= f.button :submit %>

<% end %>

<%= link_to 'Back', clocks_path %>

Copy & paste the simple_form generated HTML

There isn't a way to generate and HTML input element, with the various nice
things like classes for styling, using simple_form, without it asking the model
for the current value. e.g. something like

    f.input :lcd_count, as: :integer

Won't work since it'll ask the Clock model what it's LCD count currently is.
(Clock doesn't know, or care.)


Rails Github Skeleton

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

Rails Github Skeleton

Aliquam pellentesque est eget nisl vehicula a iaculis lectus aliquet. In hac habitasse platea dictumst. Duis id sapien elit, at sodales nisi. Aliquam erat volutpat. Duis suscipit feugiat enim nec fringilla. Suspendisse in risus eu dui bibendum vehicula. Aenean vulputate tristique tincidunt. Sed consequat turpis nec mi feugiat ultricies. Morbi lobortis, nisl sed pellentesque bibendum, elit mi hendrerit sapien, malesuada dignissim sem libero non diam. Nullam a nunc eu ligula suscipit egestas.

Add some lorem ipsum example text.

Add some lorem ipsum example text.


<% content_for :title, @page.title %>

<%= link_to @page.title, page_path(@page), :class => 'no-decoration' %>

  <%= raw @page.to_html %>

    Last modified: <%= content_tag :abbr, @page.mtime.to_date.to_formatted_s(:rfc822), :title => @page.mtime.iso8601 %>

    <% @page.tags.each do |tag| %>

<%= link_to "##{tag}", tag_path(tag), :rel => 'tag' %>

    <% end %>

<% content_for :title, @page.title %>

<%= link_to @page.title, page_path(@page), :class => 'no-decoration' %>

  <%= raw @page.to_html %>

    Last modified: <%= content_tag :abbr, @page.mtime.to_date.to_formatted_s(:rfc822), :title => @page.mtime.utc.iso8601 %>

    <% @page.tags.each do |tag| %>

<%= link_to "##{tag}", tag_path(tag), :rel => 'tag' %>

    <% end %>

Make last modified time UTC in abbr title


<fieldset data-hook="credit_card">
  <% if payment.source && payment.source.transaction_id && payment.source.transaction_response && payment.source.transaction_response.payment %>
    <legend align="center"><%= Spree.t(:credit_card) %></legend>

<%= Spree.t(:transaction) %>:

<%= link_to payment.source.transaction_id, "https://app.paymill.com/transactions/#{payment.source.transaction_id}", target: "_blank" %>

<%= Spree.t(:card) %>:

          <% if payment.source.transaction_response.payment.kind_of?(Paymill::Payment) %>

XXXX-XXXX-XXXX-<%= payment.source.transaction_response.payment.last4.to_s %>

          <% else %>

XXXX-XXXX-XXXX-<%= payment.source.transaction_response.payment["last4"] %>

          <% end %>

<%= Spree.t(:expiration) %>:

<%= payment.source.transaction_response.payment.expire_month %>/<%= payment.source.transaction_response.payment.expire_year %>

  <% else %>
    <legend align="center">No payment details available</legend>
  <% end %>
</fieldset>

<fieldset data-hook="credit_card">
  <% if payment.source &&
      payment.source.transaction_id &&
      payment.source.transaction_response &&
      payment.source.transaction_response.payment %>
    <% transaction_response = payment.source.transaction_response %>
    <% transaction_payment = transaction_response.payment %>
    <legend align="center"><%= Spree.t(:credit_card) %></legend>

<%= Spree.t(:transaction) %>:

<%= link_to payment.source.transaction_id, "https://app.paymill.com/transactions/#{payment.source.transaction_id}", target: "_blank" %>

          <% if transaction_payment.kind_of?(Paymill::Payment) %>

<%= Spree.t(:card) %>:

XXXX-XXXX-XXXX-<%= transaction_payment.last4.to_s %>

<%= Spree.t(:expiration) %>:

<%= payment.source.transaction_response.payment.expire_month %>/<%= payment.source.transaction_response.payment.expire_year %>

          <% else %>

<%= Spree.t(:card) %>:

XXXX-XXXX-XXXX-<%= transaction_payment["last4"] %>

<%= Spree.t(:expiration) %>:

<%= transaction_payment["expire_month"] %>/<%= transaction_payment["expire_year"] %>

          <% end %>

  <% else %>
    <legend align="center">No payment details available</legend>
  <% end %>
</fieldset>

Fix card expiry which may be stored as a hash


$<%= number_with_delimiter(number_with_precision(@coin_info['data']['markets']['coinbase']['value'], precision: 2), delimiter: ',') %> per coin

<%= "#{number_with_delimiter(@coin_info['data']['volume']['current'], delimiter: ',')} / #{number_with_delimiter(@coin_info['data']['volume']['all'], delimiter: ',')} mined" %>

<%= number_with_precision(@coin_info['data']['volume']['perc'], precision: 2) %>% of total coins

Market Cap $<%= number_with_delimiter(number_with_precision(@coin_info['data']['markets']['coinbase']['value'] * @coin_info['data']['volume']['current'], precision: 2), delimiter: ',') %>

Add Market Cap to homepage.

Add Market Cap to homepage.


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

  <% if @sequences.empty? %>

          This workspace is empty.

  <% else %>

<%= @current_workspace.name %>

      <%= render "shared/pager" %>

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

          <%= sequence.type %>

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

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

    <% end %>

      <%= render "shared/pager" %>

  <% end %>

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

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

  <% if @sequences.empty? %>

          This workspace is empty.

  <% else %>

<%= @current_workspace.name %>

      <%= render "shared/pager" %>

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

<%= sequence.type %>

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

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

    <% end %>

      <%= render "shared/pager" %>

  <% end %>

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

Change the text style of the list sequences page