<h1 id='logo'>
  <%= link_to Refinery::Core.site_name, refinery.root_path %>
</h1>
<%= Refinery::Pages::MenuPresenter.new(refinery_menu_pages, self).to_html %>

<%= Refinery::Pages::MenuPresenter.new(refinery_menu_pages, self).to_html %>
<%= content_tag :div, id: "logo", itemscope: "",  itemtype: "http://schema.org/Organization" do %>
  <%= link_to refinery.root_path, itemprop: "url" do %>
    <%= content_tag :span, { itemprop: "name"} do %>
      <%= Refinery::Core.site_name %>
    <% end %>
  <% end %>
<% end %>

Improve logo HTML markup in header

Improve logo HTML markup in header


Blog Posts

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

        <a href="<%= article.url %>"><%= article.title %>
        <time><%= article.date.strftime('%b %e %Y') %></time>

<% end %>

Add a heading to the blog index

Add a heading to the blog index


<!DOCTYPE html>

  <meta charset="utf-8"/>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

  <title><%= yield_content(:title) %></title>

  <link rel="stylesheet" href="/assets/application.css">

  <link href='//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
  <link rel="icon" href="/assets/favicon.ico">

      <%= yield %>

    <% if development? %>

Paste the following at the top of <%= params[:dashboard] %>.erb

        <textarea id="gridster-code"></textarea>

      Save this layout
    <% end %>

<!DOCTYPE html>

  <meta charset="utf-8"/>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta http-equiv="refresh" content="3630">

  <title><%= yield_content(:title) %></title>

  <link rel="stylesheet" href="/assets/application.css">

  <link href='//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
  <link rel="icon" href="/assets/favicon.ico">

      <%= yield %>

    <% if development? %>

Paste the following at the top of <%= params[:dashboard] %>.erb

        <textarea id="gridster-code"></textarea>

      Save this layout
    <% end %>

Refresh page after one hour

Refresh page after one hour

HACK: after the meter widget is updated (once an hour) it loses its
formatting 72.3K becomes 72348, which is too long. Real solution: fix
formatting after update. This hack just reloads the page after an hour
which fixes it too.


  <% taxon.each do |org| %>

<%= org.english_name %>

Iconic Taxon: <%= org.iconic_taxon_name %>

Iconic Taxon Rank: <%= org.iconic_taxon_rank %>

Taxon: <%= org.taxon_name %>

Taxon Rank: <%= org.taxon_rank %>

  <% end %>

  <% taxon.each.with_index do |org, index| %>

<%= org.english_name || org.taxon_name %>

Iconic Taxon: <%= org.iconic_taxon_name %>

Iconic Taxon Rank: <%= org.iconic_taxon_rank %>

Taxon: <%= org.taxon_name %>

Taxon Rank: <%= org.taxon_rank %>

  <% end %>

Reformat results partial to display taxon name if it does not have English name; add css selectors


<% title "Licences" %>

  <%= form_tag licenses_path(params), :id => "filters", :method => :get do -%>
    <%= hidden_field_tag :direction, params[:direction] %>
    <%= hidden_field_tag :sort, params[:sort] %>

    <%= select_tag "by_editor", options_for_select(@editors.map{|s| [s, s]}, params[:by_editor]), :include_blank => true %>
    <%= text_field_tag "by_key", params[:by_key] %>
    <%= text_field_tag "by_title", params[:by_title] %>

    <%= select_tag "by_server", options_for_select(@servers.map{|s| [s.name, s.id]}, params[:by_server]), :include_blank => true %>

  <% end %>

    <%= render 'list' %>

Remove useless column in licenses/index

Remove useless column in licenses/index


<% GLSAMAKER_TEMPLATE_TARGETS.each do |target| %>
<div id="templates-<%= target %>" style="display: none;" class="popup">
  <%= form_tag({:controller => 'tools', :action => 'template'}, :remote => true) do |f| -%>
  <%= hidden_field('template', 'target', :value => target) %>
  <%= select('template', 'id', templates[target].collect {|template| [template.name, template.id]}) %><%= image_submit_tag 'icons/next.png', :style => 'margin-top: .3em; vertical-align: top;' %>
  <% end -%>
</div>
<% end %>

<% GLSAMAKER_TEMPLATE_TARGETS.each do |target| %>
<div id="templates-<%= target %>" style="display: none;" class="popup">
  <%= form_tag({:controller => 'tools', :action => 'template'}, :remote => true) do -%>
  <%= hidden_field('template', 'target', :value => target) %>
  <%= select('template', 'id', templates[target].collect {|template| [template.name, template.id]}) %><%= image_submit_tag 'icons/next.png', :style => 'margin-top: .3em; vertical-align: top;' %>
  <% end -%>
</div>
<% end %>

Remove block parameter from form_for

Remove block parameter from form_for


Related content

  <% categories.each do |category| %>

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

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

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

        <% end %>

  <% end %>

Related content

  <% categories.each do |category| %>

        <%= category.title %>

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

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

        <% end %>

<%= link_to 'View all...', category.path %>

  <% end %>

Add new HTML to the related links component


<% if image %>
  <%= image_tag(image.attachment.url(:product), :itemprop => "image") %>

  <%= link_to image_tag('zoom.gif'), image.attachment.url(:original), :class => 'fancybox zoom-image' %>
<% else %>
  <%= product_image(@product, :itemprop => "image") %>

  <%= link_to image_tag('zoom.gif'), @product.images.first.attachment.url(:original), :class => 'fancybox zoom-image' %>
<% end %>

<% if image %>
  <%= image_tag(image.attachment.url(:product), :itemprop => "image") %>

  <%= link_to image_tag('zoom.gif'), image.attachment.url(:original), :class => 'fancybox zoom-image' %>
<% else %>
  <%= product_image(@product, :itemprop => "image") %>

  <% unless @product.images.empty? %>
    <%= link_to image_tag('zoom.gif'), @product.images.first.attachment.url(:original), :class => 'fancybox zoom-image' %>
  <% end %>
<% end %>

Handle case where images are empty

Handle case where images are empty


Friends

    <button id='friendslistButton' action='/friends' type="submit">All Friends</button>  <button id='friendrequestButton' action='/friendrequests' type="submit">Friend Request</button>

    <form id='search' action='/searchfriends' method='GET'>
      <input type='text' name='email' placeholder='saech by email'>
      <button type="submit" >Search</button>
    </form>

Your Bio

 <%= current_user.bio %>

    <form class='bioEditCall' action='/profile' method='POST'>
      <input type="hidden" name="_method" value="PUT">
      <button type="submit" >Edit Profile</button>
    </form>

Your values

  <% if current_user %>

Friends

      <button id='friendslistButton' action='/friends' type="submit">All Friends</button>  <button id='friendrequestButton' action='/friendrequests' type="submit">Friend Request</button>

      <form id='search' action='/searchfriends' method='GET'>
        <input type='text' name='email' placeholder='saech by email'>
        <button type="submit" >Search</button>
      </form>

Your Bio

 <%= current_user.bio %>

        <form id='bioEdit' action='/profile' method='POST'>
          <input type="hidden" name="_method" value="PUT">
          <button type="submit" >Save Change</button>
        </form>

Your values

          <% valueIDs = Uservalue.where(user_id: current_user.id).map{ |us|us.value_id } %>
          <%= valueIDs.map { |vID| Value.find(vID).word }.join(", ") %>

  <% else %>

  <% end %>

Check current_user to show user's info.

Check current_user to show user's info.


<!DOCTYPE HTML>

    <title>The Tangent</title>
  	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" href="/stylesheets/bootstrap.min.css">
    <link rel="stylesheet" href="/stylesheets/main.css">

The Tangent

        <% categories.each do |category| %>

            <a href="/categories/<%= category.id %>">

<%= category.name %>

        <% end %>

      <%= yield %>

Make title hit box smaller

Make title hit box smaller


<head>
  <title><%= title %></title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="<%= yield :meta_description %>">
  <script>
    (function (h) {
    h.className = h.className.replace('no-js', 'js')
    })(document.documentElement)
  </script>
  <!--[if lt IE 9]>
  <script type="text/javascript"
          src="//cdnjs.cloudflare.com/ajax/libs/corysimmons-selectivizr2/1.0.8/selectivizr2.min.js"></script>
  <![endif]-->
  <!--[if lte IE 9]>
  <script type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js'></script>
  <![endif]-->

  <%= favicon_link_tag 'favicon.ico' %>
  <%= csrf_meta_tags %>
  <%= javascript_include_tag 'fonts', 'data-turbolinks-track': 'reload' %>
  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
  <%= stylesheet_link_tag 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css' %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>

<head>
  <title><%= title %></title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="<%= yield :meta_description %>">
  <script>
    (function (h) {
    h.className = h.className.replace('no-js', 'js')
    })(document.documentElement)
  </script>
  <!--[if lt IE 9]>
  <script type="text/javascript"
          src="//cdnjs.cloudflare.com/ajax/libs/corysimmons-selectivizr2/1.0.8/selectivizr2.min.js"></script>
  <![endif]-->
  <!--[if lte IE 9]>
  <script type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js'></script>
  <![endif]-->

  <%= favicon_link_tag 'favicon.ico' %>
  <%= csrf_meta_tags %>
  <%= javascript_include_tag 'fonts', 'data-turbolinks-track': 'reload', async: Rails.env.production? %>
  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload', async: Rails.env.production? %>
  <%= stylesheet_link_tag 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css', async: Rails.env.production? %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload', async: Rails.env.production? %>
</head>

Load JS and stylesheets asynchronously

Load JS and stylesheets asynchronously


<% require 'yaml' -%>
<% global_config = scope.lookupvar('::prometheus::server::global_config') -%>
<% rule_files = scope.lookupvar('::prometheus::server::_rule_files') -%>
<% scrape_configs = scope.lookupvar('::prometheus::server::scrape_configs') -%>
<% remote_read_configs = scope.lookupvar('::prometheus::server::remote_read_configs') -%>
<% remote_write_configs = scope.lookupvar('::prometheus::server::remote_write_configs') -%>
<% full_config = {
  'global'=>global_config,
  'rule_files'=>rule_files,
  'scrape_configs'=>scrape_configs,
  'alerting'=>{
    'alert_relabel_configs'=>scope.lookupvar('::prometheus::server::alert_relabel_config'),
    'alertmanagers'=>scope.lookupvar('::prometheus::server::alertmanagers_config'),
  },
}
if @prometheus_v2
    # this variable has to be absent on 1.X, so we filter using the helper variable
    full_config['remote_read'] = remote_read_configs
end
if @prometheus_v2
    full_config['remote_write'] = remote_write_configs
end
 -%>
<%= if @prometheus_v2
full_config.to_yaml
else
full_config.to_yaml(options = {:line_width => -1}).gsub(/source_labels: ".+?"/) { |x| x.gsub('"', '') }
end
 -%>

<% require 'yaml' -%>
<% global_config = scope.lookupvar('::prometheus::server::global_config') -%>
<% rule_files = scope.lookupvar('::prometheus::server::_rule_files') -%>
<% scrape_configs = scope.lookupvar('::prometheus::server::scrape_configs') -%>
<% remote_read_configs = scope.lookupvar('::prometheus::server::remote_read_configs') -%>
<% remote_write_configs = scope.lookupvar('::prometheus::server::remote_write_configs') -%>
<% full_config = {
  'global'=>global_config,
  'rule_files'=>rule_files,
  'scrape_configs'=>scrape_configs,
  'alerting'=>{
    'alert_relabel_configs'=>scope.lookupvar('::prometheus::server::alert_relabel_config'),
    'alertmanagers'=>scope.lookupvar('::prometheus::server::alertmanagers_config'),
  },
}
if @prometheus_v2
    # this variable has to be absent on 1.X, so we filter using the helper variable
    full_config['remote_read'] = remote_read_configs
end
if @prometheus_v2
    full_config['remote_write'] = remote_write_configs
end
 -%>
<%= if @prometheus_v2
full_config.to_yaml().gsub(/source_labels: ".+?"/) { |x| x.gsub('"', '') }
else
full_config.to_yaml(options = {:line_width => -1}).gsub(/source_labels: ".+?"/) { |x| x.gsub('"', '') }
end
 -%>

Remove double quotes from source_labels value with gsub

The value in source_labels have to be without quotes, but sometimes you
have to use brackets in the value and puppet surrounds it with double
quotes.

So we need to replace the double quotes with nothing in the template


<%
show_body = false if show_body.nil?
before_meta = lambda {|*args|} if before_meta.nil?
prepend_meta = lambda {|*args|} if prepend_meta.nil?
after_meta = lambda {|*args|} if after_meta.nil?
%>

      <%= link_to paper.body.state, paper.body, title: paper.body.name if show_body -%>
      <%= link_to_paper paper.full_reference, paper %>

    <%= link_to_paper paper.title, paper %>

  <%= capture paper, &before_meta %>

    <%= capture paper, &prepend_meta %>
    Eingereicht von: <%= paper.originators.collect(&:name).join(', ') %> — Veröffentlicht am <%= time_tag(paper.published_at, l(paper.published_at))%>
     — <%= paper.page_count || '?' %> <%= t :pages, count: paper.page_count || 0 -%><%- if paper.contains_table %>, enthält Tabelle<% end %>

  <%= capture paper, &after_meta %>

<%
show_body = false if show_body.nil?
before_meta = lambda {|*args|} if before_meta.nil?
prepend_meta = lambda {|*args|} if prepend_meta.nil?
after_meta = lambda {|*args|} if after_meta.nil?
%>

      <%= link_to paper.body.state, paper.body, title: paper.body.name if show_body -%>
      <%= link_to_paper paper.full_reference, paper %>

    <%= link_to_paper paper.title, paper %>

  <%= capture paper, &before_meta %>

    <%= capture paper, &prepend_meta %>
    Eingereicht von: <%= paper.originators.collect(&:name).join(', ') %>
    <%- if !paper.published_at.nil? -%> — Veröffentlicht am <%= time_tag(paper.published_at, l(paper.published_at))%><%- end -%>
     — <%= paper.page_count || '?' %> <%= t :pages, count: paper.page_count || 0 -%><%- if paper.contains_table %>, enthält Tabelle<% end %>

  <%= capture paper, &after_meta %>

Fix display of papers without published_at ^2


<% @title = "sign in" %>

      <%= t('users.new.rubyforge_banner', :link => link_to(t('users.new.or_rubyforge'), "http://update.gemcutter.org/2009/12/10/rubyforge-accounts-migrated.html")).html_safe %>

    <%= link_to t('.forgot_password'), new_password_url %>

<%= form_for :session, :url => session_path do |form| %>

    <%= form.label :who, t('activerecord.attributes.session.who') %>
    <%= form.text_field :who, :size => 25 %>

    <%= form.label :password, t('activerecord.attributes.session.password') %>
    <%= form.password_field :password, :size => 25 %>

    <%= form.submit "Sign in", :disable_with => t('form_disable_with') %>

<% end %>

<% @title = "sign in" %>

      <%= t('users.new.rubyforge_banner', :link => link_to(t('users.new.or_rubyforge'), "http://update.gemcutter.org/2009/12/10/rubyforge-accounts-migrated.html")).html_safe %>

    <%= link_to t('.forgot_password'), new_password_url %>

<%= form_for :session, :url => session_path do |form| %>

    <%= form.label :who, t('activerecord.attributes.session.who') %>
    <%= form.email_field :who, :size => 25 %>

    <%= form.label :password, t('activerecord.attributes.session.password') %>
    <%= form.password_field :password, :size => 25 %>

    <%= form.submit "Sign in", :disable_with => t('form_disable_with') %>

<% end %>

Update form to have an email-type field instead of a plain text field.


Add New Post

	We will add new post here

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

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

Add New Post

	We will add new post here

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

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

Add action, method, attributes to form

Add action, method, attributes to form


  <%= game.name %>: <%= game.description %>
  <%= link_to 'Edit', edit_game_path(game) %>
  <%= link_to 'Delete', game_path(game), :method => :delete %>

  <%= game.name %>: <%= game.description %>
  <%= link_to 'Edit', edit_game_path(game) %>
  <%= link_to 'Delete', game_path(game), :method => :delete, :confirm => "Are you sure you want to delete #{game.name}?" %>

Add confirmation popup on game deletes

Add confirmation popup on game deletes


<%= render partial: 'editor_tab_size' %>
<%= render partial: 'traffic_lights_scroller' %>

  <%= render partial: 'avatar_image' %>
  <%= render partial: 'test_button' %>
  <%= render partial: 'traffic_lights_count_total' %>
  <%= render partial: 'traffic_lights_count_predict' %>
  <%= render partial: 'traffic_lights' %>

  <%= render partial: 'file_new_rename_delete' %>
  <%= render partial: 'filenames' %>
  <%= render partial: 'sponsors' %>

  <%= render partial: 'tabs' %>
  <%= render partial: 'repl' %>
  <%= form_tag( { action: 'run_tests', id: @id } ) do %>
    <%= render partial: 'editor' %>
    <%= render partial: 'hidden_inputs' %>
  <% end %>

<%= render partial: 'editor_tab_size' %>
<%= render partial: 'traffic_lights_scroller' %>

  <%= render partial: 'avatar_image' %>
  <%= render partial: 'test_button' %>
  <%= render partial: 'traffic_lights_count_total' %>
  <%= render partial: 'traffic_lights_count_predict' %>
  <%= render partial: 'traffic_lights' %>

<%= form_tag( { action: 'run_tests', id: @id } ) do %>

    <%= render partial: 'file_new_rename_delete' %>
    <%= render partial: 'filenames' %>
    <%= render partial: 'sponsors' %>

    <%= render partial: 'tabs' %>
    <%= render partial: 'repl' %>
    <%= render partial: 'editor' %>
    <%= render partial: 'hidden_inputs' %>

<% end %>

Put form element back around both colum divs


<% @proposals.each do |proposal| %>

<a href="<%= proposal_path(proposal) %>">

<%= proposal.name %>

<%= proposal.description %>

<% end %>

<%= paginate @proposals %>

Add post class to sections in Proposals index.


<%= render "form_javascripts" %>

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

  <%= render "helpers/admin/resources/errors" %>

  <fieldset class="inputs">

      <%= build_form(fields, form) %>

  </fieldset>

  <fieldset class="buttons">

      <% build_save_options.each do |key, value| %>

<%= submit_tag Typus::I18n.t(value), :name => key, :onclick => "setConfirmUnload(false);", :disable_with => Typus::I18n.t(value) %>

      <% end %>

  </fieldset>

<% end %>

<%= render "form_javascripts" %>

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

  <%= render "helpers/admin/resources/errors" %>

  <fieldset class="inputs">

      <%= build_form(fields, form) %>

  </fieldset>

  <fieldset class="buttons">

      <% build_save_options.each do |key, value, special| %>
        <%
          message = Typus::I18n.t(value)
          options = { :name => key, :onclick => "setConfirmUnload(false);", :disable_with => message  }
        %>

<%= submit_tag message, options %>

      <% end %>

  </fieldset>

<% end %>

Build message once and some refactor

Build message once and some refactor


<%
  if (@tag)
    provide(:title, "#{@tag[:adjective]} Projects")
    provide(:meta_description, "Paul Bogard’s #{@tag[:description]}.")
  else
    provide(:meta_description, "Paul Bogard’s portfolio of programming, engineering, mapping, and other projects.")
  end
%>

<%= link_buttons(
  LinkButton.new("Paul’s Résumé", "resume", resume_path),
  LinkButton.new("Paul’s GitHub repositories", "github", "https://github.com/bogardpd/", target: :_blank)
  ) %>

<% if @tag %><%= @tag[:adjective] %> <% end %>Projects

  <%= project_tag_badges(@tags) %>

<% if @projects.any? %>

    <%= render partial: "project_tile", collection: @projects, as: :project %>

<% elsif params[:tag] %>

No projects have the tag <%= params[:tag] %>!

<%= link_to("All projects", projects_path) %>

<% else %>

Could not load projects!

<% end %>

<%
  if (@tag)
    provide(:title, "#{@tag[:adjective]} Projects")
    provide(:meta_description, "Paul Bogard’s #{@tag[:description]}.")
  else
    provide(:meta_description, "Paul Bogard’s portfolio of programming, engineering, mapping, and other projects.")
  end
%>

Paul Bogard’s Portfolio has been moved to paulbogard.net.

For a while, I’ve run this portfolio and a separate blog. Over the years, they started to overlap enough that a lot of content was duplicated. I’ve now merged the two into a single site, hosted at paulbogard.net.

Quick Links

Projects

About

Blog

Update front page to link to paulbogard.net


<% content_for :head, auto_discovery_link_tag(:atom, articles_url(format: "atom")) %>

      <% @posts.each do |post| %>

<%= link_to post.title, post %>

<%= post.created_at.strftime("%b %d, %Y") %>

<%= post.excerpt %>

<%= link_to "Continue reading →", post %>

<%= render 'tags', post: post %>

      <% end %>

      <%= paginate @posts %>

Tags

      <% tag_cloud Storytime::Post.tag_counts, %w[s m l] do |tag, css_class| %>

<%= link_to tag.name, tag_path(tag.name), class: css_class %>

      <% end %>

<% content_for :head, auto_discovery_link_tag(:atom, posts_url(format: "atom")) %>

      <% @posts.each do |post| %>

<%= link_to post.title, post %>

<%= post.created_at.strftime("%b %d, %Y") %>

<%= post.excerpt %>

<%= link_to "Continue reading →", post %>

<%= render 'tags', post: post %>

      <% end %>

      <%= paginate @posts %>

Tags

      <% tag_cloud Storytime::Post.tag_counts, %w[s m l] do |tag, css_class| %>

<%= link_to tag.name, tag_path(tag.name), class: css_class %>

      <% end %>

Fix reference to articles on atom feed url


<%=email_to_showname(current_user.email)%>'s profile

Teams you manage:

<% current_user.teams.each do |team| %>

<%= link_to("#{team.name}" , team) %>

<% end %>

Your email: <%=current_user.email%>

Your hashed password: <%=current_user.encrypted_password%> (you are safe)

Remove unnecessary hashed password debugging line


Repository Monitoring

  <% if current_user.public_repo_token.blank? %>
    <%= link_to 'Enable Public Repo Access', '/auth/github_public', class: 'btn btn-primary' %>
  <% else %>
    <% if current_user.private_repo_token.blank? %>
      <%= link_to 'Enable Private Repo Access', '/auth/github_private', class: 'btn btn-primary' %>
    <% end %>

        <%= link_to url_for(org: nil) do %>
          <%= image_tag current_user.avatar_url(40) %>
          <%= current_user.nickname %>
        <% end %>

      <% @orgs.each do |org| %>

          <%= link_to url_for(org: org) do %>
            <%= image_tag org.avatar_url(40) %>
            <%= org %>
          <% end %>

      <% end %>

      <% @repos.each do |github_repository| %>
        <%= render 'github_repository', github_repository: github_repository %>
      <% end %>
      <%= will_paginate @repos, renderer: BootstrapPagination::Rails, page_links: false %>

  <% end %>

Repository Monitoring

  <% if current_user.public_repo_token.blank? %>
    <%= link_to 'Enable Public Repo Access', '/auth/github_public', class: 'btn btn-primary' %>
  <% else %>
    <% if current_user.private_repo_token.blank? %>
      <%= link_to 'Enable Private Repo Access', '/auth/github_private', class: 'btn btn-primary' %>
    <% end %>

        <%= link_to url_for(org: nil) do %>
          <%= image_tag current_user.avatar_url(40), width: 40 %>
          <%= current_user.nickname %>
        <% end %>

      <% @orgs.each do |org| %>

          <%= link_to url_for(org: org) do %>
            <%= image_tag org.avatar_url(40) %>
            <%= org %>
          <% end %>

      <% end %>

      <% @repos.each do |github_repository| %>
        <%= render 'github_repository', github_repository: github_repository %>
      <% end %>
      <%= will_paginate @repos, renderer: BootstrapPagination::Rails, page_links: false %>

  <% end %>

Fix dashboard org avatar width

Fix dashboard org avatar width


        <%= link_to root_path do %>
          <%= image_tag 'billion_logo_white_small.png' %>

Made with <%= icon('heart') %> in Columbus, OH

        <% end %>

Resources

How It Works

Browse Projects

Legal

<%= link_to 'Terms Of Service', terms_path %>

<%= link_to 'Privacy Policy', privacy_path %>

        <%= link_to icon('facebook'), 'https://www.facebook.com/billioneffect' %>
        <%= link_to icon('twitter'), 'https://twitter.com/BillionEffect' %>
        <%= link_to icon('instagram'), 'https://instagram.com/BillionEffect' %>

        <%= link_to root_path do %>
          <%= image_tag 'billion_logo_white_small.png' %>

Made with <%= icon('heart') %> in Columbus, OH

        <% end %>

Resources

            <%= link_to 'The Billion Story', story_path %>

            <%= link_to 'Discover Projects', projects_path %>

Legal

<%= link_to 'Terms Of Service', terms_path %>

<%= link_to 'Privacy Policy', privacy_path %>

        <%= link_to icon('facebook'), 'https://www.facebook.com/billioneffect' %>
        <%= link_to icon('twitter'), 'https://twitter.com/BillionEffect' %>
        <%= link_to icon('instagram'), 'https://instagram.com/BillionEffect' %>

Add missing link in footer.

Add missing link in footer.


    <%= link_to(icon_label_text('glyphicon glyphicon-plus', 'Créer un nouveau groupe'),
                new_group_path,
                :class => 'btn btn-default btn-sm') %>

      Nom

    <%= render(:partial => @groups) || raw("
Pas encore de groupe !
") %>

<%= page_navigation_links(@groups) %>

    <%= link_to(icon_label_text('glyphicon glyphicon-plus', 'Créer un nouveau groupe'),
                new_group_path,
                :class => 'btn btn-default btn-sm') %>

      Nom

    <%= render(:partial => @groups) || raw("
Pas encore de groupe, tous les utilisateurs ont tous les droits !
") %>

<%= page_navigation_links(@groups) %>

Add notice about user rights if there is no group.


<%= link_to 'Members', members_path %> /

<%= @organization.name %>

<%= render :partial => 'organizations/organization', :locals => {:organization => @organization}%>

<%= render 'shared/alternate_formats' %>

Add alternate format links to individual member page


Lägg till sida

  <%= form_for [:admin, @item], :as => :item, :url => admin_items_path do |f| %>
    <%= render 'admin/shared/error_messages', :object => f.object %>
    <%= hidden_field_tag 'type', params[:type] if params[:type] %>
    <%= hidden_field_tag 'page_template_id', params[:page_template_id] if params[:page_template_id] %>

    <%= f.label :title %>

<%= f.text_field :title, :class => "title" %>

    <%= f.label :template_name %>
    <%= f.select :template_name, PageFileTemplate.all.collect { |t| [t.name.titlecase, t.handle] } %>

      <%= f.submit t(:save), :class => 'commit' %> eller <%= link_to t(:cancel), admin_items_path(type: @item.class.model_name) %>

  <% end %>

Lägg till sida

  <%= form_for [:admin, @item], :as => :item, :url => admin_items_path do |f| %>
    <%= render 'admin/shared/error_messages', :object => f.object %>
    <%= hidden_field_tag 'type', params[:type] if params[:type] %>
    <%= hidden_field_tag 'page_template_id', params[:page_template_id] if params[:page_template_id] %>

    <%= f.label :title %>

<%= f.text_field :title, :class => "title" %>

    <%= f.label :template_name %>
    <%= f.select :template_name, PageFileTemplate.all.sort_by(&:name).map { |t| [t.name.titlecase, t.handle] }, {}, class: "choose_me" %>

      <%= f.submit t(:save), :class => 'commit' %> eller <%= link_to t(:cancel), admin_items_path(type: @item.class.model_name) %>

  <% end %>

Sort PageFileTemplate by name and use chosen.js for select element


Users

      <%= sortable "id", %>
      <%= sortable "email", %>
      <%= sortable "created_at", "Signed up" %>
      Edit

    <% @users.each do |user| %>

      <%= user.id %>
      <%= link_to(user.email, admin_user_path(user)) %>
      <%= user.created_at %>
      <%= link_to 'Edit', edit_admin_user_path(user) %>

    <% end %>

Users

      <%= sortable "id", %>
      <%= sortable "email", %>
      <%= sortable "created_at", "Signed up" %>
      <%= sortable "sign_in_count", "Times signed in" %>
      <%= sortable "last_sign_in_at", "Last signed in" %>
      <%= sortable "last_sign_in_ip", "Last sign in IP" %>
      Edit

    <% @users.each do |user| %>

      <%= user.id %>
      <%= link_to(user.email, admin_user_path(user)) %>
      <%= user.created_at %>
      <%= user.sign_in_count %>
      <%= user.last_sign_in_at %>
      <%= user.last_sign_in_ip %>
      <%= link_to 'Edit', edit_admin_user_path(user) %>

    <% end %>

Add additional fields to admin users list.


---
processes:
- name: tcp_router
  env:
    GODEBUG: tls13=0
  hooks:
    pre_start: /var/vcap/jobs/tcp_router/bin/bpm-pre-start
  additional_volumes:
    - path: /var/vcap/data/tcp_router/config
      writable: true
  capabilities:
  - NET_BIND_SERVICE
  - SYS_RESOURCE
  executable: /var/vcap/jobs/tcp_router/bin/tcp_router_ctl

---
processes:
- name: tcp_router
  hooks:
    pre_start: /var/vcap/jobs/tcp_router/bin/bpm-pre-start
  additional_volumes:
    - path: /var/vcap/data/tcp_router/config
      writable: true
  capabilities:
  - NET_BIND_SERVICE
  - SYS_RESOURCE
  executable: /var/vcap/jobs/tcp_router/bin/tcp_router_ctl

feat: Remove GODEBUG TLS 1.3 flag from TCP Router

- TCP Router is only a Go wrapper for HA Proxy (which is not written in
go) so the GODEBUG flag does nothing.

[#172188707](https://www.pivotaltracker.com/story/show/172188707)

Co-authored-by: Tim Downey <ac5faf2072a7e8487ec8b27348636434d5c3410d@vmware.com>
Co-authored-by: Alex Standke <d5b5c41212ed50aae0fa89dda95a6a18e21e524a@vmware.com>


<%= link_to "Press", "/press" %>

<%= link_to "Bio", "/bio" %>

<%= link_to "Contact", "/contact" %>

<%= link_to "FAQ", "/faq" %>

<%= link_to "Pinterest", "#" %>

<%= link_to "Twitter", "#" %>

<%= link_to "Facebook", "#" %>

<%= link_to "LinkedIn", "#" %>

<%= link_to "Google+", "#" %>

<%= link_to "Copyright 2014 Hobrecht All Rights Reserved", "/" %>

<%= link_to "Terms & Conditions", "/terms" %>

<%= link_to "Privacy Policy", "/privacy" %>

<%= link_to "Press", "/press" %>

<%= link_to "Bio", "/bio" %>

<%= link_to "Contact", "/contact" %>

<%= link_to "FAQ", "/faq" %>

<%= link_to "Pinterest", "#" %>

<%= link_to "Twitter", "#" %>

<%= link_to "Facebook", "#" %>

<%= link_to "Instagram", "#" %>

<%= link_to "LinkedIn", "#" %>

<%= link_to "Google+", "#" %>

<%= link_to "© 2014 Hopkins Holdings, LLC dba Hobrecht", "/" %>

<%= link_to "Terms & Conditions", "/terms" %>

<%= link_to "Privacy Policy", "/privacy" %>

Update copyright notice. Add classes to menu items.


<%= link_to name, '#', options.deep_merge(data: {toggle: 'modal', target: "##{strong_confirm_id}"}) %>

<aside id="<%= strong_confirm_id %>" class="modal fade" role="dialog" data-controller="confirm">

Are you absolutely sure?

        <button type="button" tabindex="2" class="close" data-dismiss="modal" aria-label="Close">
          ×</button>

This action cannot be undone.

<%= message %>

To proceed, please type <%= required_pattern %> below and click the Delete button.

        <%= text_field_tag 'confirm', nil, class: 'form-control input-block', autofocus: true, tabindex: 1, data: {action: 'keyup->confirm#compare', "confirm-target" => 'pattern', 'pattern-required' => required_pattern} %>
        <%= link_to 'Permanently Delete', path_on_confirm, tabindex: -1, class: 'btn btn-block btn-danger font-weight-bold disabled', method: :delete, data: {"confirm-target" => 'deleteButton', action: 'click->confirm#onClickDelete'} %>

<%= link_to name, '#', options.deep_merge(data: {toggle: 'modal', target: "##{strong_confirm_id}"}) %>

<aside id="<%= strong_confirm_id %>" class="modal fade" role="dialog" data-controller="confirm">

Are you absolutely sure?

        <button type="button" tabindex="2" class="close" data-dismiss="modal" aria-label="Close">
          ×</button>

This action cannot be undone.

<%= message %>

To proceed, please type <%= required_pattern %> below and click the Delete button.

        <%= text_field_tag 'confirm', nil, class: 'form-control col', autofocus: true, tabindex: 1, data: {action: 'keyup->confirm#compare', "confirm-target" => 'pattern', 'pattern-required' => required_pattern} %>
        <%= link_to 'Permanently Delete', path_on_confirm, tabindex: -1, class: 'btn btn-block btn-danger font-weight-bold disabled', method: :delete, data: {"confirm-target" => 'deleteButton', action: 'click->confirm#onClickDelete'} %>

Fix formatting of input field in strong confirm modal


<%= stylesheet_link_tag    "stash_engine/application", media: "all" %>

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

<%= javascript_include_tag "geobl_application", 'data-turbolinks-track' => true %>

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

<%= stylesheet_link_tag    "stash_engine/application", media: "all" %>

<%= javascript_include_tag "geobl_application", 'data-turbolinks-track' => true %>

Load stash_engine CSS last, so it has a chance to override Blacklight/Geoblacklight


<%= @project.name %>

    <%= link_to @project.url do %>
      <%= image_tag("#{@project.avatar.url}",
      width: "500",
      height: "500",
      alt: "#{@project.description}",
      class: "debug projectSection__image") %>
    <% end %>

Technology: <%= @project.technology %>

Description:<%= @project.description %>

Purpose:    <%= @project.purpose %>

URL:        <%= @project.url %>

  <%= link_to "Edit Project Page", edit_project_path(@project) %>
  <%= link_to "Delete Project",    project_path(@project),
  data: {
    confirm: "Are you sure you want to delete this project?",
    method: :delete
  } %>
  <%= link_to "All Projects Page", projects_path %>

  <div class="project<%= @project.id %> projectCard">

<%= @project.name %>

    <%= link_to @project.url do %>
      <%= image_tag(@project.avatar.url(:medium),
      width:  "300",
      height: "300",
      alt:    "#{@project.description}") %>
    <% end %>
    Description:
<%= @project.description %>

    Purpose:
<%= @project.purpose     %>

    Technology:
<%= @project.technology  %>

    Project Url:

      <%= link_to @project.url, class:"projectCard__url" do %>
      <%= @project.url %>
      <% end %>

      <%= link_to "Edit", edit_project_path(@project) %>
      <%= link_to "Delete",    project_path(@project),
      data: {
        confirm: "Are you sure you want to delete this project?",
        method: :delete
        } %>
        <%= link_to "Show all Projects", projects_path %>

Fix positioning of project card.

Fix positioning of project card.


<%= @section %>

      <%= render @chapters %>

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

<%= @section %>

      <%= render @chapters %>

Add a title to the sections page as well


    <% lectures.each do |lecture| %>

<%= l lecture.start_date, format: :short %>

      <%= lecture.title -%>

        <%- if can? :read, lecture -%>
          <%= link_to 'Zobacz', lecture, class: "ui teal button" %>
        <%- end -%>

        <%- if can? :edit, lecture -%>
          <%= link_to 'Edytuj', edit_lecture_path(lecture), class: "ui positive button" %>
        <%- end -%>

        <%- if can? :destroy, lecture -%>
          <%= link_to 'Usuń', lecture, class: "ui negative button", method: :delete, data: {confirm: "You sure?"} %>
        <%- end -%>

    <% end %>

    <% lectures.sort_by{ |e| e[:start_date] }.each do |lecture| %>

<%= l lecture.start_date, format: :short %>

      <%= lecture.title -%>

        <%- if can? :read, lecture -%>
          <%= link_to 'Zobacz', lecture, class: "ui teal button" %>
        <%- end -%>

        <%- if can? :edit, lecture -%>
          <%= link_to 'Edytuj', edit_lecture_path(lecture), class: "ui positive button" %>
        <%- end -%>

        <%- if can? :destroy, lecture -%>
          <%= link_to 'Usuń', lecture, class: "ui negative button", method: :delete, data: {confirm: "You sure?"} %>
        <%- end -%>

    <% end %>

Sort related events by start date

Sort related events by start date


  <% case paper.state %>
  <% when "review_pending" %>
  This paper is <%= paper.pretty_state %> but the
    review hasn't started. Editor and reviewer assignments are happening over <%= link_to "on
    GitHub »".html_safe, paper.meta_review_url %>
  <% when "submitted" %>
  This paper is <%= paper.pretty_state %> but the
    review hasn't started.
  <% when "under_review" %>
  This paper is <%= paper.pretty_state %> which means
    review has begun. You can track the progress of this review <%= link_to "on GitHub »".html_safe, paper.review_url %>
  <% when "review_completed" %>
  This paper is <%= paper.pretty_state %> which means
    the review is completed and is awaiting review by the editor.
    You can track the progress of this paper <%= link_to "on GitHub »".html_safe, paper.review_url %>
  <% when "accepted" %>
  This paper is <%= paper.pretty_state %> which means
    the review is completed and it has been accepted into The Journal
    of Open Source Software. You can view the review of this paper <%= link_to "on GitHub »".html_safe, paper.review_url %>
  <% when "rejected" %>
  This paper is <%= paper.pretty_state %> which means
    is has not been accepted into The Journal of Open Source Software.
  <% end %>

  <% case paper.state %>
  <% when "review_pending" %>
  This paper is <%= paper.pretty_state %> but the
    review hasn't started. Editor and reviewer assignments are happening over <%= link_to "on
    GitHub »".html_safe, paper.meta_review_url %>
  <% when "submitted" %>
  This paper is <%= paper.pretty_state %> but the
    review hasn't started.
  <% when "under_review" %>
  This paper is <%= paper.pretty_state %> which means
    review has begun. You can track the progress of this review <%= link_to "on GitHub »".html_safe, paper.review_url %>
  <% when "review_completed" %>
  This paper is <%= paper.pretty_state %> which means
    the review is completed and is awaiting review by the editor.
    You can track the progress of this paper <%= link_to "on GitHub »".html_safe, paper.review_url %>
  <% when "accepted" %>
  This paper is <%= paper.pretty_state %> which means
    the review is completed and it has been accepted into The Journal
    of Open Source Software. You can view the review of this paper <%= link_to "on GitHub »".html_safe, paper.review_url %>
  <% when "rejected" %>
  This paper is <%= paper.pretty_state %> which means
    is has not been accepted into The Journal of Open Source Software.
  <% when "withdrawn" %>
  This paper was <%= paper.pretty_state %>.
  <% end %>

Add status message for withdrawn papers

Add status message for withdrawn papers


<%= render "shared/globalize_locales", resource: @admin_notification %>

<%= translatable_form_for [:admin, @admin_notification] do |f| %>
  <%= render "shared/errors", resource: @admin_notification %>

  <%= f.select :segment_recipient, options_for_select(user_segments_options,
                                                      @admin_notification[:segment_recipient]) %>
  <%= f.text_field :link %>

  <%= f.translatable_fields do |translations_form| %>
    <%= translations_form.text_field :title %>
    <%= translations_form.text_area :body %>
  <% end %>

  <div class="margin-top">
    <%= f.submit t("admin.admin_notifications.#{admin_submit_action(@admin_notification)}.submit_button"),
                 class: "button success" %>
  </div>
<% end %>

<%= render "shared/globalize_locales", resource: @admin_notification %>

<%= translatable_form_for [:admin, @admin_notification] do |f| %>
  <%= render "shared/errors", resource: @admin_notification %>

      <%= f.select :segment_recipient, options_for_select(user_segments_options,
                                                          @admin_notification[:segment_recipient]) %>

      <%= f.text_field :link %>

    <%= f.translatable_fields do |translations_form| %>

        <%= translations_form.text_field :title %>

        <%= translations_form.text_area :body %>

    <% end %>

      <%= f.submit t("admin.admin_notifications.#{admin_submit_action(@admin_notification)}.submit_button"),
                   class: "button success" %>

<% end %>

Align admin_notifications form fields with new translations interface


<fieldset>
  <%= form.label :country_ids, 'Countries' %>
  <%= form.select :country_ids, options_from_collection_for_select(Country.all, 'id', 'name', document.country_ids), {}, multiple: true, class: 'chzn-select', data: { placeholder: "Choose countries..."} %>
</fieldset>

<fieldset>
  <%= form.label :country_ids, "Select the international locations this #{main_document_type(document).downcase} is about" %>
  <%= form.select :country_ids, options_from_collection_for_select(Country.all, 'id', 'name', document.country_ids), {}, multiple: true, class: 'chzn-select', data: { placeholder: "International locations..."} %>
</fieldset>

Clarify the association between documents and countries.


<% content_for :page_title do %>
  <%= link_to Spree.t(:taxonomies), spree.admin_taxonomies_url %> /
  <%= link_to @taxonomy.name, spree.edit_admin_taxonomy_url(@taxonomy) %> /
  <%= @taxon.name %>
<% end %>

<%# Because otherwise the form would attempt to use to_param of @taxon %>
<% form_url = admin_taxonomy_taxon_path(@taxonomy.id, @taxon.id) %>
<%= form_for [:admin, @taxonomy, @taxon], method: :put, url: form_url, html: { multipart: true } do |f| %>
  <%= render 'form', f: f %>

    <%= button Spree.t('actions.update'), 'save' %>
    <%= Spree.t(:or) %>
    <%= button_link_to Spree.t('actions.cancel'), edit_admin_taxonomy_url(@taxonomy), icon: "remove" %>

<% end %>

<% content_for :page_title do %>
  <%= link_to Spree.t(:taxonomies), spree.admin_taxonomies_url %> /
  <%= link_to @taxonomy.name, spree.edit_admin_taxonomy_url(@taxonomy) %> /
  <%= @taxon.name %>
<% end %>

<%# Because otherwise the form would attempt to use to_param of @taxon %>
<% form_url = admin_taxonomy_taxon_path(@taxonomy.id, @taxon.id) %>

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

<%= form_for [:admin, @taxonomy, @taxon], method: :put, url: form_url, html: { multipart: true } do |f| %>
  <%= render 'form', f: f %>

    <%= button Spree.t('actions.update'), 'save' %>
    <%= Spree.t(:or) %>
    <%= button_link_to Spree.t('actions.cancel'), edit_admin_taxonomy_url(@taxonomy), icon: "remove" %>

<% end %>

Add error partial to Taxon edit view

Add error partial to Taxon edit view


# Generated by Chef for <%= node["fqdn"] %>.
# Local modifications will be overwritten.

<% if node["platform_family"] == "debian" -%>
# debian-sys-maint user for administration
SET PASSWORD FOR '<%= @debian_user %>'@'localhost' = PASSWORD('<%= @debian_password %>');
  <% [['SELECT', 'mysql.user'], ['SHUTDOWN', '*.*']].each do |priv, loc| %>
<%= "GRANT #{priv} ON #{loc} TO '#{@debian_user}'@'localhost';" %>
  <% end -%>
<% end -%>

<% if node["percona"]["backup"]["configure"] %>
# Grant permissions for the XtraBackup user
# Ensure the user exists, then revoke all grants, then re-grant specific permissions
GRANT RELOAD, LOCK TABLES, REPLICATION CLIENT ON *.* TO '<%= node["percona"]["backup"]["username"] %>'@'localhost' IDENTIFIED BY '<%= @backup_password %>';
REVOKE ALL PRIVILEGES, GRANT OPTION FROM '<%= node["percona"]["backup"]["username"] %>'@'localhost';
GRANT RELOAD, LOCK TABLES, REPLICATION CLIENT ON *.* TO '<%= node["percona"]["backup"]["username"] %>'@'localhost' IDENTIFIED BY '<%= @backup_password %>';
<% end -%>

# Set the server root password. This should be preseeded by the package installation.
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('<%= @root_password %>');

FLUSH PRIVILEGES;

# Generated by Chef for <%= node["fqdn"] %>.
# Local modifications will be overwritten.

<% if node["platform_family"] == "debian" -%>
# debian-sys-maint user for administration
  <% [['SELECT', 'mysql.user'], ['SHUTDOWN', '*.*']].each do |priv, loc| %>
<%= "GRANT #{priv} ON #{loc} TO '#{@debian_user}'@'localhost';" %>
  <% end -%>
SET PASSWORD FOR '<%= @debian_user %>'@'localhost' = PASSWORD('<%= @debian_password %>');
<% end -%>

<% if node["percona"]["backup"]["configure"] %>
# Grant permissions for the XtraBackup user
# Ensure the user exists, then revoke all grants, then re-grant specific permissions
GRANT RELOAD, LOCK TABLES, REPLICATION CLIENT ON *.* TO '<%= node["percona"]["backup"]["username"] %>'@'localhost' IDENTIFIED BY '<%= @backup_password %>';
REVOKE ALL PRIVILEGES, GRANT OPTION FROM '<%= node["percona"]["backup"]["username"] %>'@'localhost';
GRANT RELOAD, LOCK TABLES, REPLICATION CLIENT ON *.* TO '<%= node["percona"]["backup"]["username"] %>'@'localhost' IDENTIFIED BY '<%= @backup_password %>';
<% end -%>

# Set the server root password. This should be preseeded by the package installation.
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('<%= @root_password %>');

FLUSH PRIVILEGES;

Set debian-sys-maint password after grant

- If a new data dir is initialized, there wont be a debian-sys-maint
user created, so the recipe fails trying to set a password to a
nonexistent user. This change makes it succeed.


  fastlane.ci

    Dashboard
    <% if defined?(user) && user %>
      Configuration
      Notifications
      Users
      Provider Credentials
    <% end %>
    Settings

Remove unused menu item from sidebar

Remove unused menu item from sidebar


			 #
			 Name
			 Number
			 Price

		<% total_price = 0 %>
		<% @orders_arr.each do |order| %>

				<%= order[0].id %>
				<%= order[0].title %>
				<%= order[1]%>
				<%= order[0].price %>
				<% total_price += order[1].to_i * order[0].price %>

		<% end %>

				Total: <%= total_price %>

<form action='/place_order' method="POST" role="form">
  <input name="order[orders_input]" type="hidden">

    Your name
    <input name="order[name]" type="text" class="form-control" placeholder="Your name" value="">

    Your phone
    <input name="order[phone]" type="text" class="form-control" placeholder="Your phone" value="">

    Delivery address
    <textarea name="order[address]" type="text" class="form-control"  placeholder="Delivery address"></textarea>

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

Add form to place order

Add form to place order


<%
  add_body_class "new_discussion discussion_form"
  @page_title = "New #{@exchange.class.to_s.downcase}"
  if @recipient
    @page_title += " with #{@recipient.username}"
  end
%>

  <% if @exchange.kind_of?(Conversation) %>
    <%= link_to "Conversations", conversations_path %> »
    <% if @recipient %>
      <%= link_to "New conversation with #{@recipient.username}", new_conversation_with_path(username: @recipient.username) %>
    <% else %>
      <%= link_to "New", new_conversation_path %>
    <% end %>
  <% else %>
    <%= link_to "Discussions", discussions_path %> » <%= link_to "New", new_discussion_path %>
  <% end %>

<%= form_for(@exchange) do |f| %>
  <%= render partial: "exchanges/form", locals: {f: f} %>

<button type="submit">Create <%= @exchange.class.to_s.downcase %></button>

<% end %>

<%
  add_body_class "new_discussion discussion_form"
  @page_title = "New #{@exchange.class.to_s.downcase}"
  if @recipient
    @page_title += " with #{@recipient.username}"
  end
%>

  <% if @exchange.kind_of?(Conversation) %>
    <%= link_to "Conversations", conversations_path %> »
    <% if @recipient %>
      <%= link_to "New conversation with #{@recipient.username}", new_conversation_with_path(username: @recipient.username) %>
    <% else %>
      <%= link_to "New", new_conversation_path %>
    <% end %>
  <% else %>
    <%= link_to "Discussions", discussions_path %> » <%= link_to "New", new_discussion_path %>
  <% end %>

<%= form_for(@exchange), builder: Sugar::FormBuilder do |f| %>
  <%= render partial: "exchanges/form", locals: {f: f} %>

<button type="submit">Create <%= @exchange.class.to_s.downcase %></button>

<% end %>

Use the form builder for new discussions


wak

<%= image_tag 'gunther.png',
    id: 'wak-img',
    alt: 'Gunther from Adventure Time' %>

Fix declaration of image to use asset helper


<% @page_title = 'Check Headers' %>
<% if @import_job.failed? %>

  <%= render(:partial => "import_jobs/issues", :locals => { :issues => @import_job.validation_issues, :issue_type => :headers}) %>

<% elsif @import_job.validated_headers? %>

Headers are valid in <%= @import_job.file_name %>, continue to parse rows

  <%= link_to("Next", next_wizard_path, :class => 'btn') %>

<% elsif @import_job.running? || @import_job.counted_rows? %>

Validating Headers, reload to check status

  <%= link_to("Reload", wizard_path, :class => 'btn') %>

<% end %>

<% @page_title = 'Check Headers' %>
<% if @import_job.failed? %>

  <%= render(:partial => "import_jobs/issues", :locals => { :issues => @import_job.validation_issues, :issue_type => :headers}) %>
  <%= link_to("Discard Dataset", {:action => 'delete', :id => @import_job.csv_dataset.id}, :class => 'btn btn-danger', :method => :delete) %>

<% elsif @import_job.validated_headers? %>

Headers are valid in <%= @import_job.file_name %>, continue to parse rows

  <%= link_to("Next", next_wizard_path, :class => 'btn') %>

<% elsif @import_job.running? || @import_job.counted_rows? %>

Validating Headers, reload to check status

  <%= link_to("Reload", wizard_path, :class => 'btn') %>

<% end %>

Add discard button to validate headers

Add discard button to validate headers


<% if resource.errors.any? %>

      <%= I18n.t("errors.messages.not_saved",
                 count: resource.errors.count,
                 resource: resource.class.model_name.human.downcase)
       %>

      <% resource.errors.full_messages.each do |message| %>

<%= message %>
      <% end %>

<% end %>

Fix unclosed `li` tag in `error_messages` partial


© <%= Date.today.year %>, <%= link_to "Murtaza Gulamali", "http://www.gulamali.net/", title: "gulamali.net" %>. I made this. Some rights reserved. Fork me on GitHub.

<footer>
  <p>© <%= Date.today.year %>, <%= link_to "Murtaza Gulamali", "http://www.gulamali.net/", title: "gulamali.net" %>. I made this. All rights reserved.</p>
</footer>

Remove link to GitHub repo in footer

Remove link to GitHub repo in footer


Filters:

    <%= label_tag "Programming Languages:" %>
    <%= @programming_languages.each do |programming_language| %>

<%= check_box_tag(:programming_language, programming_language.name) %>

    <% end %>

    <%= label_tag "Skills:" %>
    <%= @skills.each do |skill| %>

<%= check_box_tag(skill.name) %>

    <% end %>

    <%= label_tag "Sexual Preferences:" %>
    <%= @sexual_prefences.each do |sexual_prefence| %>

<%= check_box_tag(sexual_prefence.name) %>

    <% end %>

    <%= label_tag "Age:" %>
    <%= select_tag(:%>

Add age to index page

Add age to index page


All Sponsors

        Company

        Next Date

        Proposal Sent?

        Status

        Update

    <% @allSponsors.each do |sponsor| %>

        <%= sponsor.company %>

        <%= sponsor.next_date %>

        <%= sponsor.proposal_sent %>

        <%= sponsor.status %>

        <a href="/sponsors/update/<%= sponsor.id %>">
        <button type="button" name="Edit" class="btn btn-primary">Edit</button>

        <a href="/sponsors/view/<%= sponsor.id %>">
        <button type="button" name="Edit" class="btn btn-success">View</button>

    <% end %>

  All Sponsors

    <button class="btn btn-primary" type="button">Add sponsor</button>

        Company

        Next Date

        Proposal Sent?

        Status

        Update

    <% @allSponsors.each do |sponsor| %>

        <%= sponsor.company %>

        <%= sponsor.next_date %>

        <%= sponsor.proposal_sent %>

        <%= sponsor.status %>

        <a href="/sponsors/update/<%= sponsor.id %>">
        <button type="button" name="Edit" class="btn btn-primary">Edit</button>

        <a href="/sponsors/view/<%= sponsor.id %>">
        <button type="button" name="Edit" class="btn btn-success">View</button>

    <% end %>

Add the new sponsor button in the sponsors page.

Signed-off-by: Siddharth Kannan <805f056820c7a1cecc4ab591b8a0a604b501a0b7@gmail.com>


<%= @src_set.name %>

<% if current_user && @src_set.user == current_user %>
    <%= button_to 'Delete Set', {:action => :destroy, :id => @src_set.name},
                  :confirm => "Are you sure?", :method => :delete, :class => 'btn btn-danger' %>
<% end %>

<%= render :partial => 'src_images/src_images' %>

<%= @src_set.name %>

<%= render :partial => 'src_images/src_images' %>

<% if current_user && @src_set.user == current_user %>
    <%= button_to 'Delete Set', {:action => :destroy, :id => @src_set.name},
                  :confirm => "Are you sure?", :method => :delete, :class => 'btn btn-danger' %>
<% end %>

Move delete set button to bottom.

Move delete set button to bottom.


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

      <input type="checkbox" class="Checkbox__input" name="lesson[contexts][]" value="<%= c %>" id="lesson_contexts_<%= c.id %>" />
      <label class="Checkbox__label" for="lesson_contexts_<%= c.id %>">
        <%= c.name.titleize %>

    <% end %>

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

      <input type="checkbox" class="Checkbox__input" name="lesson[contexts][]" value="<%= c.id %>" id="lesson_contexts_<%= c.id %>" />
      <label class="Checkbox__label" for="lesson_contexts_<%= c.id %>">
        <%= c.name.titleize %>

    <% end %>

Use id of context as value

Use id of context as value


Import/Export

<% if ENV['AWS_ACCESS_KEY_ID'] %>

Import

  <%= direct_upload_form_for @uploader do |f| %>

<%= f.file_field :upload %>

<%= f.submit "Import", class: 'button' %>

  <% end %>

You can import OPML or starred.json files. Import is done in the background so you may not see every subscription or starred item right away.

<% else %>

Import disabled. AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_S3_BUCKET are missing.

<% end %>

Export

<%= link_to "Download Subscriptions", subscriptions_path(format: :xml), class: "button" %>

Import/Export

Import

<% if ENV['AWS_ACCESS_KEY_ID'] %>
  <%= direct_upload_form_for @uploader do |f| %>

<%= f.file_field :upload %>

<%= f.submit "Import", class: 'button' %>

  <% end %>

You can import OPML or starred.json files. Import is done in the background so you may not see every subscription or starred item right away.

<% else %>

Import disabled. AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_S3_BUCKET are missing.

<% end %>

Export

<%= link_to "Download Subscriptions", subscriptions_path(format: :xml), class: "button" %>

Move header above conditional so it always shows up.


  <%= octicon 'rocket' %> Site Admin
  <%= link_to 'Search', stafftools_root_path, class: 'menu-item selected' %>

  <%= octicon 'code' %> Developer Tools
  <%= link_to 'Features', stafftools_flipper_path, class: 'menu-item' %>

  <%= octicon 'rocket' %> Site Admin
  <%= link_to 'Search', stafftools_root_path, class: "menu-item #{'selected' if current_page?(stafftools_root_path)}" %>

  <%= octicon 'code' %> Developer Tools
  <%= link_to 'Features', stafftools_flipper_path, class: 'menu-item' %>

Make stafftools search link selected only on search page

Add selected class to search link only on stafftools_root page


<%
  border = true unless index < 2
  mobile_only_border = true if index.eql?(1)
%>

  <h2 class="govuk-heading-m
        landing-page__section-title
        <%= "landing-page__section--border" if border %>
        <%= "landing-page__section--mobile-border" if mobile_only_border %> "
  >
    <% if bucket["link_path"] %>
      <%= link_to(t('taxons.brexit.' + bucket["id"]), bucket["link_path"], data: {
        module: "track-click",
        "track-category": "navGridContentClicked",
        "track-action": index,
        "track-label": bucket["link_path"]
      }) %>
    <% else %>
      <%= t('taxons.brexit.' + bucket["id"]) %>
    <% end %>

  <% if bucket["description"] %>

<%= bucket["description"] %>

  <% end %>

  <% if bucket["block"] %>
    <%= render "govuk_publishing_components/components/govspeak", {} do %>
      <%= bucket["block"] %>
    <% end %>
  <% end %>

  <% if bucket["items"] %>
    <%= render "components/taxon-list", {
      items: bucket["items"]
    } %>
  <% end %>

<%
  border = true unless index < 2
  mobile_only_border = true if index.eql?(1)
%>

  <h2 class="govuk-heading-m
        landing-page__section-title
        <%= "landing-page__section--border" if border %>
        <%= "landing-page__section--mobile-border" if mobile_only_border %> "
  >
    <% if bucket["link_path"] %>
      <%= link_to(t('taxons.brexit.' + bucket["id"]), bucket["link_path"], data: {
        module: "track-click",
        "track-category": "navGridContentClicked",
        "track-action": index,
        "track-label": bucket["link_path"]
      }) %>
    <% else %>
      <%= t('taxons.brexit.' + bucket["id"]) %>
    <% end %>

  <% if bucket["description"] %>

<%= bucket["description"] %>

  <% end %>

  <% if bucket["block"] %>
    <%= render "govuk_publishing_components/components/govspeak", {} do %>
      <%= bucket["block"] %>
    <% end %>
  <% end %>

  <% if bucket["items"] %>
    <%= render "components/taxon-list", {
      heading_level: 0,
      items: bucket["items"]
    } %>
  <% end %>

Update landing page to remove headings for document links


<%= @question.title %>

<%= @question.body %>

      <% if session[:user_id] == @question.user_id %>
        <%= button_to 'Edit Question', {action: "edit", id: @question.id}, method: :get %>
        <%= button_to 'Delete Question', {action: "destroy", id: @question.id}, method: :delete %>
      <% end %>

    <% @article = @question %>

 <%= link_to 'Reply', new_question_comment_path(@article) %>

<%= link_to 'View Comments', question_comments_path(@article)%>

    <%= render 'comments/index', locals: {article: @article} %>

 Answers

 <%= link_to 'Post an Answer', new_question_answer_path(@article) %>

    <% @question.answers.each do |answer| %>
      <%= render partial: "answers/show", locals: {answer: answer} %>

    <% end %>

Move conditional wrapper outside of div.


  <% if (@searched_stories + @searched_snippets).empty? %>

 We couldn't find any content Containing "<%= params[:search] %>"

  <% elsif !@searched_stories.empty? %>

 Stories with "<%= params[:search] %> in the title: "

    <% @searched_stories.each do |story| %>
      <% display_string = story.title %>
      <% x = params[:search].upcase %>
       <% if display_string.include?(params[:search]) %>
        <% display_string.sub!(params[:search], x ) %>

<%= link_to display_string, story_path(story) %>

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

  <% if @searched_snippets.empty? %>

We couldn't find any Snippets containing "<%= params[:search] %>".

  <% else %>

 Snippets that contain"<%= params[:search] %>":

    <% @searched_snippets.each do |snip| %>

<%= link_to snip.content, snippet_path(snip) %>

   <% end %>
  <% end %>

  <div class="large-vine columns"

  <% if (@searched_stories + @searched_snippets).empty? %>

 We couldn't find any content containing "<%= params[:search] %>".

  <% elsif !@searched_stories.empty? %>

 Stories with "<%= params[:search] %> in the title: "

    <% @searched_stories.each do |story| %>
      <% display_string = story.title %>
      <% x = params[:search]%>
      <% if display_string.include?(params[:search]) %>
        <% display_string.sub!(params[:search], "#{x}" ) %>

<%= link_to display_string.html_safe, story_path(story) %>

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

  <% if !@searched_snippets.empty? %>

Snippets that contain"<%= params[:search] %>":

    <% @searched_snippets.each do |snip| %>
    <% display_string = snip.content %>
    <% x = params[:search]%>
    <% display_string.sub!(params[:search], "#{x}" ) %>

<%= link_to snip.content.html_safe, snippet_path(snip) %>

   <% end %>
  <% end %>

Add logic to hightlight snippets that contain keywords


  <%= link_to "Neues Konto", new_account_path, :class => "icon icon-add" %>

Konten

  <%= render 'list_header' %>
  <%= render @accounts %>
  <%= render 'list_footer' %>

Add context link to new account to account index.


<% @meetings.each do |meeting| %>

    <% date_and_time = "#{meeting.display_time} #{meeting.display_date}" %>

<%= link_to date_and_time, meeting_url(meeting) %>

<%= meeting.description %>

    <% meeting.talks.each do |talk| %>

<%= talk.speaker.name %> - <%= link_to talk.title, talk_url(talk) %>

<%= talk.description %>

    <% end %>
    <% if current_user %>
      <%= link_to 'Edit', edit_meeting_path(meeting) %> |
      <%= link_to 'Destroy', meeting, method: :delete, data: { confirm: 'Are you sure?' } %>
    <% end %>

<% end %>

<% @meetings.each do |meeting| %>

    <% date_and_time = "#{meeting.display_time} #{meeting.display_date}" %>

<%= link_to date_and_time, meeting_url(meeting) %>

<%= meeting.description %>

    <% if meeting.talks.count > 0 %>

        <% meeting.talks.each do |talk| %>

<%= talk.speaker.name %> - <%= link_to talk.title, talk_url(talk) %>

<%= talk.description %>

        <% end %>

    <% end %>
    <% if current_user %>
      <%= link_to 'Edit', edit_meeting_path(meeting) %> |
      <%= link_to 'Destroy', meeting, method: :delete, data: { confirm: 'Are you sure?' } %>
    <% end %>

<% end %>

Fix formatting of talks in the meeting list view


# ADD DELETE OF PUMA SOCKET IN PRE-START
# FIX FOR MYSQL
# FIX TO BE LIKE THE ONE WORKING ON HORSE!

<% ruby_version     = "1.9.3" if ruby_version.nil? %>
# bluepill - process monitor -
# Rails application: <%= "#{application}" %>
# Environment: <%= "#{rails_env}" %>
#
# simple process monitoring tool

description     "Simple process monitoring tool for <%= "#{application}" %> - <%= "#{rails_env}" %>"

#start on runlevel [2345]
start on (local-filesystems and net-device-up IFACE=eth0 and running mongodb)
stop on shutdown

expect daemon
# respawn

pre-start script
  echo "Pre-start <%= "#{application}" %>"
  mkdir -p /var/run/bluepill
  chown -R <%= "#{user}:#{group}" %> /var/run/bluepill
end script

pre-stop script
  echo "Pre-stop <%= "#{application}" %>"
  # When running RVM system-wide this should work:
  exec su - -c "cd <%= "#{current_path}" %>; RAILS_ENV=<%= "#{rails_env}" %> bundle exec bluepill stop <%= "#{application}_#{rails_env}"%> --no-privileged" <%= "#{user}" %>
end script

script
  echo "Starting <%= "#{application}" %>"
  # When running RVM system-wide this should work:
  exec su - -c "cd <%= "#{current_path}" %>; RAILS_ENV=<%= "#{rails_env}" %> bundle exec bluepill load <%= "#{bluepill_remote_config}" %> --no-privileged" <%= "#{user}" %>
end script

# bluepill - process monitor -
# Rails application: <%= "#{application}" %>
# Environment: <%= "#{rails_env}" %>
#
# simple process monitoring tool

description     "Simple process monitoring tool for <%= "#{application}" %> - <%= "#{rails_env}" %>"

#start on runlevel [2345]
start on (local-filesystems and net-device-up IFACE=eth0 and running <%= database %>})
stop on shutdown

expect daemon
# respawn

pre-start script
  echo "Pre-start <%= "#{application}" %>"
  mkdir -p /var/run/bluepill
  chown -R <%= "#{user}:#{group}" %> /var/run/bluepill
  <%= "rm -f /web/#{rails_env}/#{application}/shared/sockets/puma.sock" if bluepill_use_puma == true %>
end script

pre-stop script
  echo "Pre-stop <%= "#{application}" %>"
  # When running RVM system-wide this should work:
  exec su - -c "cd <%= "#{current_path}" %>; RAILS_ENV=<%= "#{rails_env}" %> bundle exec bluepill stop <%= "#{application}_#{rails_env}"%> --no-privileged" <%= "#{user}" %>
end script

script
  echo "Starting <%= "#{application}" %>"
  # When running RVM system-wide this should work:
  exec su - -c "cd <%= "#{current_path}" %>; RAILS_ENV=<%= "#{rails_env}" %> bundle exec bluepill load <%= "#{bluepill_remote_config}" %> --no-privileged" <%= "#{user}" %>
end script

Fix db requirement and puma socket hanging for bluepill init


Fix jquery issue parsing invalid id values


<% if can? :create, new_post(receiver) %>

      <% SocialStream.activity_forms.each do |element| %>
        <%= render :partial => element.to_s.pluralize+'/new_activity',
                   :locals => {
                       :receiver => receiver
                   } %>
      <% end %>

      <button id="attachFileButton" class="menu_resources"><%= image_tag("adjuntar.png",:class => "imgnoradio" )%></button>

      <%= submit_tag(t('share'), :class => "button submitActivity", :id => "masterSubmitButton") %>

<% end %>

<%= javascript_tag do %>
  $(function(){
  SocialStream.Wall.init();
  Vish.Wall.init();
  });
<% end %>

Fix comments in timeline due to midding </div>.


<%
  if @page.parent
    self.page_title = "#{@page.parent.name} » New Page".html_safe
    self.page_description = "#{@page.parent.name} » New Page"
  else
    self.page_title = "Create new page"
    self.page_description = "You are creating a new root page"
  end

  @url_options = { action: :new }
  @url_options[:parent] = @page.parent if @page.parent
%>

<% content_for :sidebar do %>
  <%= form_for(@page,
               url: admin_pages_url(@locale),
               html: {class: "edit-page", id: 'page-form-sidebar'}) do |f| %>
    <%= render partial: 'edit_options', locals: {f: f} %>
  <% end %>
<% end %>

<%= form_for(@page,
             url: admin_pages_url(@locale),
             html: {
               class: "edit-page",
               id: 'page-form',
               method: :post,
               multipart: true
             }
) do |f| %>

    <%= render partial: 'edit_options', locals: {f: f} %>

  <%= hidden_field_tag 'locale', @locale %>
  <%= f.hidden_field 'parent_page_id' if @page.parent %>

  <%# #### CONTENT #### %>
  <%= content_tab "Content" do %>
    <%= render partial: 'edit_content', locals: {f: f} %>
  <% end %>

    <%= submit_tag "Save" %>

<% end %>

<%
  if @page.parent
    self.page_title = "New page"
    self.page_description = "#{@page.parent.name} » New Page"
  else
    self.page_title = "Create new page"
    self.page_description = "You are creating a new root page"
  end

  @url_options = { action: :new }
  @url_options[:parent] = @page.parent if @page.parent
%>

<% content_for :sidebar do %>
  <%= form_for(@page,
               url: admin_pages_url(@locale),
               html: {class: "edit-page", id: 'page-form-sidebar'}) do |f| %>
    <%= render partial: 'edit_options', locals: {f: f} %>
  <% end %>
<% end %>

<%= form_for(@page,
             url: admin_pages_url(@locale),
             html: {
               class: "edit-page",
               id: 'page-form',
               method: :post,
               multipart: true
             }
) do |f| %>

    <%= render partial: 'edit_options', locals: {f: f} %>

  <%= hidden_field_tag 'locale', @locale %>
  <%= f.hidden_field 'parent_page_id' if @page.parent %>

  <%# #### CONTENT #### %>
  <%= content_tab "Content" do %>
    <%= render partial: 'edit_content', locals: {f: f} %>
  <% end %>

    <%= submit_tag "Save" %>

<% end %>

Fix page title on new page

Fix page title on new page


<%= render 'form_page' %>

<%= bootstrap_form_for(@model, url: basic_path(@model)) do |f| %>

Time period

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

Residence Address

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

Landlord

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

Landlord's address

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

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

<%= link_to 'Delete', basic_path(@model), method: :delete, class: "btn btn-danger", data: { confirm: 'Are you sure?' } %>

Make residence edit headings consistent

Make residence edit headings consistent


Warning:

The data you upload here is visible to everyone. Other people will see the probability with which you are going to develop certain diseases. Think about your relatives: what if they share your SNPs? Your data tells more about your parents, brothers and sisters than you think. So please don't blame us when people on the internet know more about your family than you would like.

Put warning into own shared-page, put it on users/new and genotype/new


Films

<% @films.each do |film| %>

<%= film.title %>

Year: <%= film.year %>

Directed by: <%= film.director %>

Runtime: <%= film.runtime %>

Description: <%= film.description %>

<%= link_to 'Show', film_path(film) %>

<% end %>

Films

<% @films.each do |film| %>

<%= link_to film.title, film_path(film) %> (3.8 / 4 reels and <%= film.reviews.count %> reviews)

Year: <%= film.year %>

Directed by: <%= film.director %>

Runtime: <%= film.runtime %>

Description: <%= film.description %>

<% end %>

Make film title a link to films/show view


<tr id="role<%=role.id%>">
    <%= role.allowable.name %>
    <%= readable_role_type(role.role_type) %>
    <%= link_to_remote("remove", :url => user_role_path(@user, role), :method => :delete, :confirm => "Are you sure you would like to revoke this right?", :html => {:class => "delete-button"} ) if @user != current_user %>

<tr id="role<%=role.id%>">
    <%= role.allowable.name rescue "-" %>
    <%= readable_role_type(role.role_type) %>
    <%= link_to_remote("remove", :url => user_role_path(@user, role), :method => :delete, :confirm => "Are you sure you would like to revoke this right?", :html => {:class => "delete-button"} ) if @user != current_user %>

Hide project from super admin role in view


<?xml version="1.0" encoding="UTF-8"?>
<Run>
  <GameIcon />
  <GameName>
  </GameName>
  <CategoryName><%= @run.to_s %></CategoryName>
  <Offset><%= Time.at(@run.offset || 0).utc.strftime("%H:%M:%S").strip %></Offset>
  <AttemptCount><%= @run.attempts || 0 %></AttemptCount>
  <RunHistory />
  <Segments>
  <% @run.splits.each do |split| %>
    <Segment>
      <Icon />
      <Name><%= split.name %></Name>
      <PersonalBestSplitTime><%= Time.at(split.finish_time || 0).utc.strftime("%H:%M:%S.%7N").strip %></PersonalBestSplitTime>
      <BestSegmentTime><%= Time.at(split.best || 0).utc.strftime("%H:%M:%S.%7N").strip %></BestSegmentTime>
      <SegmentHistory />
    </Segment>
  <% end %>
  </Segments>
</Run>

<?xml version="1.0" encoding="UTF-8"?>
<Run>
  <GameIcon />
  <GameName>
  </GameName>
  <CategoryName><%= @run.to_s %></CategoryName>
  <Offset><%= Time.at(@run.offset || 0).utc.strftime("%H:%M:%S").strip %></Offset>
  <AttemptCount><%= @run.attempts || 0 %></AttemptCount>
  <RunHistory />
  <Segments>
  <% @run.segments.each do |segment| %>
    <Segment>
      <Icon />
      <Name><%= segment.name %></Name>
      <PersonalBestSplitTime><%= Time.at((segment.end_milliseconds || 0) / 1000).utc.strftime("%H:%M:%S.%7N").strip %></PersonalBestSplitTime>
      <BestSegmentTime><%= Time.at((segment.shortest_duration_milliseconds || 0) / 1000).utc.strftime("%H:%M:%S.%7N").strip %></BestSegmentTime>
      <SegmentHistory />
    </Segment>
  <% end %>
  </Segments>
</Run>

Fix a LiveSplit exporting issue

Fix a LiveSplit exporting issue


# Ubuntu upstart file at /etc/init/storm-<%= @name %>.conf

limit nofile 32768 32768

start on (local-filesystems and net-device-up IFACE=eth0)
stop on [!12345]

<% if @respawn %>
respawn
<% end %>

script
  # Source /etc/default
  . /etc/default/storm
  . /etc/default/storm-<%= @name %>

  # Set STORM Options
  STORM_CMD="-classpath $STORM_CLASSPATH -Xms$STORM_<%= @name.upcase %>_JVM_MEMORY -Xmx$STORM_<%= @name.upcase %>_JVM_MEMORY -Djava.library.path=\"$JAVA_LIBRARY_PATH\" -Dstorm.options=\"$STORM_OPTIONS\" -Dstorm.home=$STORM_HOME -Dlogback.configurationFile=storm-logback.xml -Dlogfile.name=<%= @name %>.log -Dstorm.log.dir=<%= @storm_logdir %> $SUPERVISOR_JVM_OPTS <%= @classname %>"

  if [ "x$ENABLE" = "xyes" ]; then
    exec start-stop-daemon --start --pidfile ${STORM_PID} --make-pidfile --chuid ${STORM_USER} --chdir ${STORM_HOME} --exec /usr/bin/java -- ${STORM_CMD}
  fi

end script

# Ubuntu upstart file at /etc/init/storm-<%= @name %>.conf

limit nofile 32768 32768

start on (local-filesystems and net-device-up IFACE=eth0)
stop on [!12345]

<% if @respawn %>
respawn
<% end %>

script
  # Source /etc/default
  . /etc/default/storm
  . /etc/default/storm-<%= @name %>

  # Set STORM Options
  STORM_CMD="-classpath $STORM_CLASSPATH -Xms$STORM_<%= @name.upcase %>_JVM_MEMORY -Xmx$STORM_<%= @name.upcase %>_JVM_MEMORY -Djava.library.path=\"$JAVA_LIBRARY_PATH\" -Dstorm.options=\"$STORM_OPTIONS\" -Dstorm.home=$STORM_HOME -Dlogback.configurationFile=/etc/storm/storm-logback.xml -Dlogfile.name=<%= @name %>.log -Dstorm.log.dir=<%= @storm_logdir %> $SUPERVISOR_JVM_OPTS <%= @classname %>"

  if [ "x$ENABLE" = "xyes" ]; then
    exec start-stop-daemon --start --pidfile ${STORM_PID} --make-pidfile --chuid ${STORM_USER} --chdir ${STORM_HOME} --exec /usr/bin/java -- ${STORM_CMD}
  fi

end script

Add missing path to storm-logback.xml in init-service.


<%= form_for [@book, @chapter, @note, @comment] do |f| %>

    Comment on this note (Markdown enabled)
    <% if current_user.author? %>
      <% if @note.completed? %>
        <%= f.submit "Reopen", :class => "reopen-button" %>
      <% else %>
        <%= f.submit "Accept", :class => "accept-button" %>
        <%= f.submit "Reject", :class => "reject-button" %>
      <% end %>
    <% end %>

      <%= f.text_area :text, :rows => 5 %>

    <%= f.submit "Leave Comment", :class => "comment-button" %>

<% end %>

<%= form_for [@book, @chapter, @note, @comment] do |f| %>

    Comment on this note (Markdown enabled)
    <% if current_user.author? %>
      <% if @note.completed? %>
        <%= f.submit "Reopen", :class => "reopen-button" %>
      <% else %>
        <%= f.submit "Accept", :class => "accept-button" %>
        <%= f.submit "Reject", :class => "reject-button" %>
      <% end %>
    <% end %>

      <%= f.text_area :text, :rows => 5, :tabindex => 1 %>

    <%= f.submit "Leave Comment", :class => "comment-button" %>

<% end %>

Comment form now has tabindex=1 on notes/show


# Host definitions
#
# Autogenerated by Chef.

<% @nodes.each do |n| -%>
define host {
  use server
  address <%= (!n['cloud'].nil? && n['cloud'] != node['cloud']) ? n['cloud']['public_ipv4'] : n['ipaddress'] %>
  host_name <%= n['hostname'] %>
  <% if node['nagios']['multi_environment_monitoring'] -%>
  <% if n.run_list.roles.nil? || n.run_list.roles.length == 0 -%>
  hostgroups all,<%= n.os %>,<%= n.chef_environment %>
  <% else -%>
  hostgroups <%= (n.run_list.roles.to_a & @hostgroups).join(",") %>,<%= n.os %>,<%= n.chef_environment %>
  <% end -%>
  <% elsif -%>
  <% if n.run_list.roles.nil? || n.run_list.roles.length == 0 -%>
  hostgroups all,<%= n.os %>
  <% else -%>
  hostgroups <%= n.run_list.roles.to_a.join(",") %>,<%= n['os'] %>
  <% end -%>
  <% end -%>
}

<% end -%>

<% unless @unmanaged_hosts.nil? -%>
<% @unmanaged_hosts.each do |n| -%>
define host {
  use server
  address <%= n['address'] %>
  host_name <%= n['id'] %>
  hostgroups <%= n['hostgroups'].join(",") %>
  notifications_enabled <%= n['notifications'] %>
}
<% end -%>
<% end -%>

# Host definitions
#
# Autogenerated by Chef.

<% @nodes.each do |n| -%>
define host {
  use server
  address <%= (!n['cloud'].nil? && n['cloud'] != node['cloud']) ? n['cloud']['public_ipv4'] : n['ipaddress'] %>
  host_name <%= n['hostname'] %>
  <% if node['nagios']['multi_environment_monitoring'] -%>
  <% if n.run_list.roles.nil? || n.run_list.roles.length == 0 -%>
  hostgroups all,<%= n.os %>,<%= n.chef_environment %>
  <% else -%>
  hostgroups <%= (n.run_list.roles.to_a & @hostgroups).join(",") %>,<%= n.os %>,<%= n.chef_environment %>
  <% end -%>
  <% elsif -%>
  <% if n.run_list.roles.nil? || n.run_list.roles.length == 0 -%>
  hostgroups all,<%= n.os %>
  <% else -%>
  hostgroups <%= (n.run_list.roles.to_a & @hostgroups).join(",") %>,<%= n['os'] %>
  <% end -%>
  <% end -%>
}

<% end -%>

<% unless @unmanaged_hosts.nil? -%>
<% @unmanaged_hosts.each do |n| -%>
define host {
  use server
  address <%= n['address'] %>
  host_name <%= n['id'] %>
  hostgroups <%= n['hostgroups'].join(",") %>
  notifications_enabled <%= n['notifications'] %>
}
<% end -%>
<% end -%>

Add the check to make sure the roles all exist even if we're not using multi_environment monitoring

Former-commit-id: c4a94afb61aa5d767d3a29bbaed717799f3a4ef8 [formerly 7b3dc0cd48fe7aad8833984e31dd7ae17e3425f3] [formerly 2ffc8c370fcc91a98ac4559c7e6c9b9067c1c1d4 [formerly aef9c98e6af175df19de4286c7aa1e7ce697a512 [formerly 2bb65db0d3b8ee3a4cb53c379f312414f317c220]]]
Former-commit-id: 2f73ace33aaadc5cba08fabbb417e09030f4a7aa [formerly 7b0dd82eb115b1d8e6553eb0ac0229a030784ce7]
Former-commit-id: 128a3fb27309fd29905cc75abc7034094a39d00a
Former-commit-id: 6f72cc4b9c63a970f33f6eb3881cbefbdb5fdb83


<% if type == :notice %>
  <%= alert_box context: :success, dismissible: true do %>
    <%= message %>
  <% end %>
<% else %>
  <%= alert_box context: :danger, dismissible: true do %>
    <%= message %>
  <% end %>
<% end %>

<% if type == :success %>
  <%= alert_box context: :success, dismissible: true do %>
    <%= message %>
  <% end %>
<% elsif type == :error %>
  <%= alert_box context: :danger, dismissible: true do %>
    <%= message %>
  <% end %>
<% elsif type == :warning %>
    <%= alert_box context: :warning, dismissible: true do %>
      <%= message %>
    <% end %>
<% else %>
  <%= alert_box context: :info, dismissible: true do %>
    <%= message %>
  <% end %>
<% end %>

Fix flash message alert boxes

Fix flash message alert boxes


Heads up <%= @reservation.user.name %>!! Your Reservation for <%= @reservation.restaurant %> will be ready in 5 minutes.

Heads up <%= @reservation.user.name %>!! Your Reservation for <%= @reservation.restaurant.title %> will be ready in 5 minutes.

Set up sidekiq to send fake email

Set up sidekiq to send fake email


<%# Uses rails_bootstrap_form gem. API at: https://github.com/bootstrap-ruby/rails-bootstrap-forms %>
<%= bootstrap_form_for(osc_job) do |f| %>
  <%= f.alert_message "Please fix the errors below." %>

  <%= f.text_field :name %>
  <%= f.text_field :batch_host %>

  <%= f.submit 'Save', class: 'btn btn-primary' %>
  <%= f.button 'Reset', type: :reset, class: 'btn btn-default' %>

  <hr>

  <%= link_to 'Back', osc_jobs_path, class: 'btn btn-default' %>
  <%= link_to 'Show', osc_job, class: 'btn btn-primary' unless osc_job.new_record? %>
<% end %>

<%# Uses rails_bootstrap_form gem. API at: https://github.com/bootstrap-ruby/rails-bootstrap-forms %>
<%= bootstrap_form_for(osc_job) do |f| %>
  <%= f.alert_message "Please fix the errors below." %>

  <%= f.text_field :name %>
  <%= f.select :batch_host, Servers, { label: "Batch Server:" }, { class: "selectpicker" } %>

  <%= f.submit 'Save', class: 'btn btn-primary' %>
  <%= f.button 'Reset', type: :reset, class: 'btn btn-default' %>

  <hr>

  <%= link_to 'Back', osc_jobs_path, class: 'btn btn-default' %>
  <%= link_to 'Show', osc_job, class: 'btn btn-primary' unless osc_job.new_record? %>
<% end %>

Add batch server dropdown select

Add batch server dropdown select


Localisation

<%= simple_form_for(@request, url: request_path(@request.service)) do |form| %>
  <% @request.service.ordered_attrs.each do |code, attr| %>
    <%= form.input attr.code.to_sym,
      :label => attr.description,
      :as => "open311_#{attr.datatype}",
      :collection => attr.values,
      :label_method => lambda { |v| v['name'] },
      :value_method => lambda { |v| v['key'] },
      :required => attr.required,
      :input_html => { value: nil } %>
  <% end %>
<% end %>

Localisation

<%= simple_form_for(@request, url: request_path(@request.service)) do |form| %>
  <% @request.service.ordered_attrs.each do |code, attr| %>
    <%= form.input attr.code.to_sym,
      :label => attr.description,
      :placeholder => attr.description,
      :as => "open311_#{attr.datatype}",
      :collection => attr.values,
      :label_method => lambda { |v| v['name'] },
      :value_method => lambda { |v| v['key'] },
      :required => attr.required,
      :input_html => { value: nil } %>
  <% end %>
<% end %>

Add placeholder to all inputs

Add placeholder to all inputs


<form class="search-form form-inline">
  <%= react_component("Filters", @searcher_serializer.as_json.merge({
    controllerName: Settings.filters_beta.present? ? controller_name.to_json : nil,
  })) %>

    <%= search_examples %>
    <%= t('search.help_link') %>

</form>

<%# help search modal %>

<%= t("search.help_title") %>

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

         <%= tmd("search.help_text.#{controller_name}", search_help_text_params) %>

        <button type="button" class="btn btn-secondary" data-dismiss="modal"><%= I18n.t("common.close") %></button>

<%= javascript_doc_ready do %>
  ELMO.searchFormView = new ELMO.Views.SearchFormView();
<% end %>

<form class="search-form form-inline">
  <%= react_component("Filters", @searcher_serializer.as_json.merge({
    controllerName: Settings.filters_beta.present? ? controller_name.to_json : nil,
  })) %>

    <%= Settings.filters_beta.present? && controller.is_a?(ResponsesController) ? nil : search_examples %>
    <%= t('search.help_link') %>

</form>

<%# help search modal %>

<%= t("search.help_title") %>

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

         <%= tmd("search.help_text.#{controller_name}", search_help_text_params) %>

        <button type="button" class="btn btn-secondary" data-dismiss="modal"><%= I18n.t("common.close") %></button>

<%= javascript_doc_ready do %>
  ELMO.searchFormView = new ELMO.Views.SearchFormView();
<% end %>

9733: Remove search examples if filter buttons are present


<%= t("hyrax.file_manager.link_text") %>

    <%= t('.back_to') %> <%= link_to @form.to_s, [main_app, @form] %>

<% if !@form.member_presenters.empty? %>

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

      <%= render "file_manager_actions" %>

      <%= render "file_manager_members" %>

<% end %>

  <%= render "file_manager_extra_tools" %>

Remove spacer div, add wrapping row.

Remove spacer div, add wrapping row.


      Meal:

        <%= meal.title_or_no_title %>

        <% if meal.head_cook %>
          By <%= meal.head_cook_name %>

        <% end %>
        <%= meal.served_at_datetime %> at <%= meal.location_name %>

      Date of grocery purchase:

      Amount spent for ingredients:
      $

    <% if meal.formula.pantry_reimbursement? %>

        Amount spent on pantry/staple items:
        $

        Total amount to be reimbursed:
        $

    <% end %>

      Reimbursement method:

        <%= icon_tag("square-o") %> Account credit

        <%= icon_tag("square-o") %> Check payable to

      Meal:

        <%= meal.title_or_no_title %>

        <% if meal.head_cook %>
          By <%= meal.head_cook_name %>

        <% end %>
        <%= meal.served_at_datetime %> at <%= meal.location_name %>

      Amount spent for ingredients:
      $

    <% if meal.formula.pantry_reimbursement? %>

        Amount spent on pantry/staple items:
        $

        Total amount to be reimbursed:
        $

    <% end %>

      Reimbursement method:

        <%= icon_tag("square-o") %> Account credit

        <%= icon_tag("square-o") %> Check payable to

45: Remove grocery purchase date from summary form


<%#
Copyright 2011-2019, The Trustees of Indiana University and Northwestern
  University.  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.

You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  CONDITIONS OF ANY KIND, either express or implied. See the License for the
  specific language governing permissions and limitations under the License.
---  END LICENSE_HEADER BLOCK  ---
%>
<section id="content" style="width: 100%;" tabIndex="-1">
  <% if section.present? and section.derivatives.present? %>

    <% if section_info[:is_video] %>
      <%= render partial: 'modules/player/video_element', locals: {section: section, section_info: section_info, f_start: @f_start, f_end: @f_end} %>
    <% else %>
      <%= render partial: 'modules/player/audio_element', locals: {section: section, section_info: section_info, f_start: @f_start, f_end: @f_end} %>
    <% end %>
  <% end %>
  <%= render 'share' if will_partial_list_render? :share %>
</section>

<%#
Copyright 2011-2019, The Trustees of Indiana University and Northwestern
  University.  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.

You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  CONDITIONS OF ANY KIND, either express or implied. See the License for the
  specific language governing permissions and limitations under the License.
---  END LICENSE_HEADER BLOCK  ---
%>
<section id="content" style="width: 100%;" tabIndex="-1">
  <% if section.present? and section.derivatives.present? %>

    <% if section_info[:is_video] %>
      <%= render partial: 'modules/player/video_element', locals: {section: section, section_info: section_info, f_start: @f_start, f_end: @f_end} %>
    <% else %>
      <%= render partial: 'modules/player/audio_element', locals: {section: section, section_info: section_info, f_start: @f_start, f_end: @f_end} %>
    <% end %>
  <% end %>
</section>

Remove duplicate 'share' button on media object page

Revert to upstream fix for https://github.com/ualbertalib/avalon/issues/303 and https://github.com/ualbertalib/avalon/pull/304


// This JavaScript is executed when the #create controller method finishes

// compose new list item
<% annotationText = render :partial => "annotations/single_annotation_table_row", :locals => { :annotation => @annotation } %>
var response = "<%= escape_javascript(annotationText)%>";
$("#annotations-header").fadeIn("slow");
$(response).hide().prependTo("#annotation-table").fadeIn("slow");

// re-enable new tooltips
$(".tooltip").tooltip();
$("a[rel=tooltip]").tooltip();

// first clear everything, then reload OpenLayers
$("#viewer").empty();
$("#layerswitcher").empty();
initOpenLayers();

// slide down the panel
$("#modal-annotation").modal('hide');

//reset the tags
window.tagging_view.reset();

// re-enable annotation mode
$("#control-toggle-annotation-types button.active").click();

// This JavaScript is executed when the #create controller method finishes

// compose new list item
<% annotationText = render :partial => "annotations/single_annotation_table_row", :locals => { :annotation => @annotation } %>
var response = "<%= escape_javascript(annotationText)%>";
$("#annotations-header").fadeIn("slow");
$(response).hide().prependTo("#annotation-table").fadeIn("slow");

// re-enable new tooltips
$(".tooltip").tooltip();
$("a[rel=tooltip]").tooltip();

// first clear everything, then reload OpenLayers
$("#viewer").empty();
$("#layerswitcher").empty();
initOpenLayers();

// slide down the panel
$("#modal-annotation").modal('hide');

//reset the tags
window.tagging_view.reset();

// enable this if we want to stay in annotation edit mode
// $("#control-toggle-annotation-types button.active").click();
$("#control-toggle-navigate").click();

Switch back to navigate mode after adding annotation


    HTTP
Status
    Path
    Count

  <% max = hits.first.count %>

  <% hits.each do |hit| %>

      <%= hit.http_status %>

        <%= render partial: 'bar_chart_row', locals: { count: hit.count, max: max, status: hit.http_status } %>
        <%= link_to_hit(hit) %>

      <%= number_with_delimiter hit.count %>

  <% end %>

Add "HTTP" to Status column header

Add "HTTP" to Status column header


    Home
    /

 Account

<%= accurate_title %>

<%= accurate_title %>

          <%= link_to Spree.t(:edit_your_email), spree.edit_account_path %>

          <%= link_to Spree.t(:change_your_password), spree.edit_account_path %>

My Orders

           View your order history

           Downloads

          Your Reward Points

          View your return requests

          Your Transactions

Newsletter

           Subscribe
           unsubscribe to newsletter

Account

           My Account

          Edit Account

          Password

          Wish List

Order History

Downloads

Returns

           Transactions

          Newsletter

          Logout

Create backend todavia no esta terminado pero ya se integro el diseño hay mas o menos


#set $pkgsel_packages = ["openssh-server", "debconf-utils", "ntp", "ruby-ipaddress", "ruby-netaddr", "ruby-openstack", "libaugeas-ruby", "libstomp-ruby1.8", "libshadow-ruby1.8", "libjson-ruby1.8", "vim", "vlan", "curl", "anacron", "python-amqp", "nailgun-agent", "nailgun-mcagents", "lvm2", "nailgun-net-check", "dhcp-checker", "puppet", "gdisk", "daemonize", "rsync", "virt-what" ]

#if $str($getVar('mco_auto_setup','')) == "1"
    #silent $pkgsel_packages.append("ruby-stomp")
    #silent $pkgsel_packages.append("mcollective")
#end if

d-i pkgsel/include string #echo " ".join($pkgsel_packages)

#set $pkgsel_packages = ["acl", "openssh-server", "debconf-utils", "ntp", "ruby-ipaddress", "ruby-netaddr", "ruby-openstack", "libaugeas-ruby", "libstomp-ruby1.8", "libshadow-ruby1.8", "libjson-ruby1.8", "vim", "vlan", "curl", "anacron", "python-amqp", "nailgun-agent", "nailgun-mcagents", "lvm2", "nailgun-net-check", "dhcp-checker", "puppet", "gdisk", "daemonize", "rsync", "virt-what" ]

#if $str($getVar('mco_auto_setup','')) == "1"
    #silent $pkgsel_packages.append("ruby-stomp")
    #silent $pkgsel_packages.append("mcollective")
#end if

d-i pkgsel/include string #echo " ".join($pkgsel_packages)

Add acl package to Ubuntu

Add acl package to Ubuntu

Change-Id: Ia84fcb271b115952018c67b963ea3fe6ab849d8e


<%= simple_form_for @supporter, remote: true, html: {id: 'sign-form', class: 'overlay-container'} do |f| %>
  <% if @success %>

Благодарим Ви!

Скриване на това съобщение.

  <% end %>

  <%= f.hidden_field :area %>
  <%= f.input :first_name, placeholder: 'Весела' %>
  <%= f.input :last_name, placeholder: 'Радостинова' %>
  <%= f.input :email, placeholder: 'vesela@radostinova.com' %>
  <%= f.input :is_organization %>
  <%= f.input :organization, placeholder: 'Вашата организация' %>
  <%= f.button :submit, 'Подкрепи', class: 'button standart green' %>
<% end %>

<%= simple_form_for @supporter, remote: true, html: {id: 'sign-form', class: 'overlay-container'} do |f| %>
  <% if @success %>

Благодарим Ви!

Изпратихме Ви имейл, в който има инструкции как да потвърдите подкрепата си.

Скриване на това съобщение.

  <% end %>

  <%= f.hidden_field :area %>
  <%= f.input :first_name, placeholder: 'Весела' %>
  <%= f.input :last_name, placeholder: 'Радостинова' %>
  <%= f.input :email, placeholder: 'vesela@radostinova.com' %>
  <%= f.input :is_organization %>
  <%= f.input :organization, placeholder: 'Вашата организация' %>
  <%= f.button :submit, 'Подкрепи', class: 'button standart green' %>
<% end %>

Revert "Temporary hide the “confirmation email” text"

This reverts commit 9f53aaed279fea85d03a035d1dd35c013fddcf1a.


 Devices

          Device Identifier
          Device Label
          Number of Surveys

          Last Survey
          Last Update
          Sync Data

    <% @devices.each do |device| %>
        <tr class="<%= "danger" if device.danger_zone? %>">
          <%= device.identifier %>
          <%= device.label %>
          <%= device.surveys.count %>

          <% unless device.last_survey.nil? %>
            <%= link_to device.last_survey.uuid, project_survey_path(current_project, device.last_survey) %>
            <%= time_ago_in_words(device.device_sync_entries.last.updated_at) %> ago
          <% end %>
          <%= link_to 'Sync Entries', project_device_device_sync_entries_path(current_project, device) %>

    <% end %>

 Devices

          Device Identifier
          Device Label
          Number of Surveys

          Last Survey
          Last Update
          Current App Version
          Sync Data

    <% @devices.each do |device| %>
        <tr class="<%= "danger" if device.danger_zone? %>">
          <%= device.identifier %>
          <%= device.label %>
          <%= device.surveys.count %>

          <% unless device.last_survey.nil? %>
            <%= link_to device.last_survey.uuid, project_survey_path(current_project, device.last_survey) %>
            <%= time_ago_in_words(device.device_sync_entries.last.updated_at) %> ago
            <%= device.device_sync_entries.last.current_version %>
          <% end %>
          <%= link_to 'Sync Entries', project_device_device_sync_entries_path(current_project, device) %>

    <% end %>

Add current version of app to device list


<!DOCTYPE html>
<html lang="en-GB">
<head>
  <title><%= page_title %></title>
  <%= stylesheet_link_tag 'admin' %>
  <%= javascript_include_tag "admin" %>
  <%= csrf_meta_tag %>
  <link rel="shortcut icon" type="image/x-icon" href="/favicon-admin.ico" />
  <%= yield :js %>
  <meta name="viewport" content="width = device-width"/>
</head>
<body class="admin">
  <%= render '/admin/shared/header' %>
  <main id="content" role="main">
    <%= render '/admin/shared/messages' %>
    <%= yield %>
  </main>
</body>
</html>

<!DOCTYPE html>
<html lang="en-GB">
<head>
  <title><%= page_title %></title>
  <%= stylesheet_link_tag 'admin' %>
  <%= javascript_include_tag "admin" %>
  <%= csrf_meta_tag %>
  <link rel="shortcut icon" type="image/x-icon" href="/favicon-admin.ico" />
  <%= yield :js %>
  <meta name="viewport" content="width = device-width" />
  <meta name="robots" content="noindex" />
</head>
<body class="admin">
  <%= render '/admin/shared/header' %>
  <main id="content" role="main">
    <%= render '/admin/shared/messages' %>
    <%= yield %>
  </main>
</body>
</html>

Add noindex tag to prevent admin pages being indexed


Fix link to writing game

Fix link to writing game


<%= @teacher.name %> Students

<% if @teacher.students.length == nil %>

Welcome, <%= @teacher.name %>!  You currently have no students.  Click <%= link_to 'here', students_path %>to start adding students.

<% else %>

    <% counter = 1 %>

      Student Name
      Grade Level
      GPA
      Discipliary Strikes

    <% @teacher.students.each do |student| %>

        <%= counter %>
        <%= render 'student_list' %>

      <% counter =+ 1 %>
    <% end %>

<% end %>

Add teacher profile page with student list


Welcome to Picture

<%= link_to 'Sign up', new_user_registration_path, class: 'btn btn-lg btn-success', role: 'button' %>

Built with <3 by @vinc. Code licensed MIT.

Add some content to landing page

Add some content to landing page


:smiley: Your submission passed all our automated tests.

<%= build_details %>

:smiley: Your submission passed all our automated tests.

Below are some sample citations generated based on your proposed changes:

<%= build_details %>

Add text for sample citations

Add text for sample citations


<% wrap_layout :layout do %>

<%= current_article.date.strftime('%b %e') %>

<%= current_article.title %>

<%= current_article.data.topic_list %>

    <% if current_page.data.soundcloud_id %>

        <iframe
          width="100%"
          height="450"
          scrolling="no"
          frameborder="no"
          src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/<%= current_page.data.soundcloud_id %>&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true">

    <% end %>

    <%= current_article.body %>

<% end %>

<% wrap_layout :layout do %>

<%= current_article.date.strftime('%b %e | %Y') %>

<%= current_article.title %>

<%= current_article.data.topic_list %>

    <% if current_page.data.soundcloud_id %>

        <iframe
          width="100%"
          height="450"
          scrolling="no"
          frameborder="no"
          src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/<%= current_page.data.soundcloud_id %>&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true">

    <% end %>

    <%= current_article.body %>

<% end %>

Add year to date in blog layout for post details


<%= label_tag("#{field.abstract_model.to_param}_#{field.name}", field.label) %>

  <% if field.bindings[:object].send(field.name) %>

      <% if field.bindings[:object].send(field.name).mime_type.include? 'image' %>
        <%= image_tag(field.bindings[:object].send(field.name).url) %>

      <% else %>
        <%= link_to field.bindings[:object].send(field.name).url, field.bindings[:object].send(field.name).url %>
      <% end %>

  <% end %>

    <%= file_field(field.abstract_model.to_param, field.name, :class => "fileUploadField #{field.has_errors? ? "errorField" : nil}") %>

<div class="field <%= field.to_param %>">
 <%= label_tag("#{field.abstract_model.to_param}_#{field.name}", field.label) %>

   <% if field.bindings[:object].send(field.name) %>

       <% if field.bindings[:object].send(field.name).mime_type.include? 'image' %>
         <%= image_tag(field.bindings[:object].send(field.name).url) %>

       <% else %>
         <%= link_to field.bindings[:object].send(field.name).url, field.bindings[:object].send(field.name).url %>
       <% end %>

   <% end %>

     <%= form.file_field(field.name, field.html_attributes) %>

 <% if field.has_errors? %>
 <%= "#{field.label} #{field.errors.first}" %>
 <% end %>

<%= field.help %>

Patch to Dragonfly partial from Erik Östling


<%= @question.title %>
  <%= @question.content %>

  <% @question.answers.each do |answer| %>

      <%= answer.content %>

<% end %>

Add show view for Questions

Add show view for Questions