<% if show_stats_or_results? %>

        <% if @poll.results_enabled? %>
          <% if results_menu? %>

<%= t("polls.show.results_menu") %>

          <% else %>

<%= link_to t("polls.show.results_menu"), results_poll_path(@poll) %>

          <% end %>
        <% end %>

        <% if @poll.stats_enabled? %>
          <% if stats_menu? %>

<%= t("polls.show.stats_menu") %>

          <% else %>

<%= link_to t("polls.show.stats_menu"), stats_poll_path(@poll) %>

          <% end %>
        <% end %>

        <% if info_menu? %>

<%= t("polls.show.info_menu") %>

        <% else %>

<%= link_to t("polls.show.info_menu"), poll_path(@poll) %>

        <% end %>

<% end %>

<% if show_stats_or_results? %>

        <% if @poll.results_enabled? %>
          <% if results_menu? %>

<%= t("polls.show.results_menu") %>

          <% else %>

<%= link_to t("polls.show.results_menu"), results_poll_path(id: @poll.slug) %>

          <% end %>
        <% end %>

        <% if @poll.stats_enabled? %>
          <% if stats_menu? %>

<%= t("polls.show.stats_menu") %>

          <% else %>

<%= link_to t("polls.show.stats_menu"), stats_poll_path(id: @poll.slug) %>

          <% end %>
        <% end %>

        <% if info_menu? %>

<%= t("polls.show.info_menu") %>

        <% else %>

<%= link_to t("polls.show.info_menu"), poll_path(id: @poll.slug) %>

        <% end %>

<% end %>

Use poll slug on stats and results paths


<% subscribe events_path(channels: ["stack.#{@stack.id}"]), '#layout-content' %>

<%= render partial: 'shipit/stacks/header', locals: {stack: @stack} %>
<%= render partial: 'shipit/stacks/banners', locals: {stack: @stack} %>

Undeployed Commits

        <% if params[:force] %>
          <%= link_to t('emergency_mode.disable'), stack_path(@stack) %>
        <% else %>
          <%= link_to t('emergency_mode.enable'), stack_path(@stack, force: 1, noredirect: 1), title: t('emergency_mode.enable_description') %>
        <% end %>

      <%= render partial: 'shipit/commits/commit', collection: @undeployed_commits %>

Currently Deploying Commits

      <%= render partial: 'shipit/commits/commit', collection: @active_commits %>

  <% cache @stack do %>

Previous Deploys

        <%= render @tasks %>

  <% end %>

<% subscribe events_path(channels: ["stack.#{@stack.id}"]), '#layout-content' %>

<%= render partial: 'shipit/stacks/header', locals: {stack: @stack} %>
<%= render partial: 'shipit/stacks/banners', locals: {stack: @stack} %>

Undeployed Commits

        <% if params[:force] %>
          <%= link_to t('emergency_mode.disable'), stack_path(@stack) %>
        <% else %>
          <%= link_to t('emergency_mode.enable'), stack_path(@stack, force: 1, noredirect: 1), title: t('emergency_mode.enable_description') %>
        <% end %>

      <%= render partial: 'shipit/commits/commit', collection: @undeployed_commits %>

Currently Deploying Commits

      <%= render partial: 'shipit/commits/commit', collection: @active_commits %>

  <% cache [@stack, params[:force]] do %>

Previous Deploys

        <%= render @tasks %>

  <% end %>

Add `force` to stack cache key

Add `force` to stack cache key


<% content_for :title do %><%= @presenter.title %><% end %>
<section id="content"<% if @presenter.started? %> class="smart-answer-questions group"<% end %>>
  <%= render partial: "content" %>
</section>

<% content_for :title do %><%= @presenter.title %><% end %>
<main id="content" role="main" <% if @presenter.started? %> class="smart-answer-questions group"<% end %>>
  <%= render partial: "content" %>
</main>

Replace sections with role=main with main element


Please login

<%= form_for @user do |f| %>
	<%= f.label :name %>
	<%= f.text_field :name %>
	<%= f.label :password %>
	<%= f.text_field :password %>
	<%= f.submit %>
<% end %>

Add new template to sessions views

Add new template to sessions views


		      <a href="<%= following_user_path(@user) %>" style="color: white;">Following

		      <a href="<%= following_user_path(@user) %>" style="color: white;"><%= @user.following.count %>

		      <a href="<%= followers_user_path(@user) %>" style="color: white;">
		        Followers

		      <a href="<%= followers_user_path(@user) %>" style="color: white;"><%= @user.followers.count %>

		     Your Topics

		    <%= @user.topics.count %>

		      Starred

              <%= @user.followed_topics.count %>

		      Following

		      <%= @user.following.count %>

		        Followers

		      <%= @user.followers.count %>

		     Your Topics

		    <%= @user.topics.count %>

		      Starred

              <%= @user.followed_topics.count %>

Remove links from stats card

Remove links from stats card


  <%= render "govuk_publishing_components/components/heading", {
    text: details.live_stream["title"],
    heading_level: 2,
    margin_bottom: 6,
    padding: true,
    border_top: 2
  } %>

  <%= render partial: 'coronavirus_landing_page/components/landing_page/live_stream', locals: {
    live_stream: details.live_stream
  } %>

      <a href="<%= details.live_stream["previous_videos"]["url"] %>" class="covid__topic-list-link govuk-link">
        <%= details.live_stream["previous_videos"]["previous_videos_text"] %>

    <% if details.live_stream["ask_a_question_visible"] == true %>

        <a href="<%= details.live_stream["ask_a_question_link"] %>" class="covid__topic-list-link govuk-link">
          <%= details.live_stream["ask_a_question_text"] %>

    <% end %>

  <%= render "govuk_publishing_components/components/heading", {
    text: details.live_stream["title"],
    heading_level: 2,
    margin_bottom: 6,
    padding: true,
    border_top: 2
  } %>

  <%= render partial: 'coronavirus_landing_page/components/landing_page/live_stream', locals: {
    live_stream: details.live_stream
  } %>

      <a href="<%= details.live_stream["transcript_link"] %>" class="covid__topic-list-link govuk-link">
        <%= details.live_stream["transcript_text"] %>

      <a href="<%= details.live_stream["previous_videos"]["url"] %>" class="covid__topic-list-link govuk-link">
        <%= details.live_stream["previous_videos"]["previous_videos_text"] %>

    <% if details.live_stream["ask_a_question_visible"] == true %>

        <a href="<%= details.live_stream["ask_a_question_link"] %>" class="covid__topic-list-link govuk-link">
          <%= details.live_stream["ask_a_question_text"] %>

    <% end %>

Add a new link to the transcript collections page


<%= link_to_function 'Post a message', "Element.show('wall_message'); $('message_body').focus();" %>
on <%=h @person.name_possessive %> wall.

  <% form_for(:message, nil, :url => messages_path, :method => 'post', :html => {:style => 'border:none;'}) do |form| %>
    <%= hidden_field_tag :wall_id, @person.id %>
    All users will see your message; to send a private
    message, <%= link_to 'click here', new_message_path(:person_id => @person) %>.

    <%= form.text_area :body, :rows => 3, :cols => 40 %>
    Please respect the privacy of others. Abusing the wall will get you banned from the site.

    <%= submit_tag 'Save Message' %>
  <% end %>

<%= link_to_function 'Post a message', "Element.show('wall_message'); $('message_body').focus();" %>
on <%=h @person.name_possessive %> wall.

  <% form_for Message.new(:wall => @person), :html => {:style => 'border:none;'} do |form| %>
    <%= form.hidden_field :wall_id %>
    All users will see your message; to send a private
    message, <%= link_to 'click here', new_message_path(:person_id => @person) %>.

    <%= form.text_area :body, :rows => 3, :cols => 40 %>
    Please respect the privacy of others. Abusing the wall will get you banned from the site.

    <%= submit_tag 'Save Message' %>
  <% end %>

Fix bug saving wall message.

Fix bug saving wall message.


# Systemd unit file for tomcat_<%= @instance %>

[Unit]
Description=<%= @instance %> Apache Tomcat Application
After=syslog.target network.target

[Service]
Type=forking

<% @env_vars.each do |h| -%>
  <% h.each_pair do |k,v| -%>
Environment="<%= k -%>=<%= v %>"
  <% end -%>
<% end -%>

ExecStart=<%= @install_path %>/bin/catalina.sh start
ExecStop=<%= @install_path %>/bin/catalina.sh stop

User=tomcat_<%= @instance %>
Group=tomcat_<%= @instance %>

[Install]
WantedBy=multi-user.target

# Systemd unit file for tomcat_<%= @instance %>

[Unit]
Description=<%= @instance %> Apache Tomcat Application
After=syslog.target network.target

[Service]
Type=simple

<% @env_vars.each do |h| -%>
  <% h.each_pair do |k,v| -%>
Environment="<%= k -%>=<%= v %>"
  <% end -%>
<% end -%>

ExecStart=<%= @install_path %>/bin/catalina.sh run
ExecStop=<%= @install_path %>/bin/catalina.sh stop

User=tomcat_<%= @instance %>
Group=tomcat_<%= @instance %>

[Install]
WantedBy=multi-user.target

Fix Tomcat 7 installs with systemd

Fix Tomcat 7 installs with systemd

The catalina.sh script seems to fail when we fork in the script. If we run in the foreground with catalina.sh and let systemd handle it things seem to work.


certificate-authority: {
    certificate-status: {
        client-whitelist: [
        <%= @dashboard_fqdn -%>
        <% @cert_fqdn_names.each do |fqdn_name| -%>
          <%= fqdn_name.chomp %>
        <% end -%>
        ]
    }
}

certificate-authority: {
    certificate-status: {
    client-whitelist: [ <%= @console_client_certname %>, example.cert.com ]
    }
}

Correct template file to be dropped in puppet_enterprise module template dir


    <%= render partial: "progress_updates/progress_update_content", locals: {progress_update: @update} %>

<%= render @update.comments %>

    <% if can? :create, Comment %>

Add New Comment

        <%= form_for [@update.project, @update, @comment] do |f| %>
            <%= f.text_area :content, class: "form-control" %>

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

    <% end %>

    <%= edit_update_link(@update) %>
    <%= delete_update_link(@update) %>

    <%= render partial: "progress_updates/progress_update_content", locals: {progress_update: @update} %>

<%= render @update.comments %>

    <% if can? :create, Comment %>

Add New Comment

        <%= form_for [@update.project, @update, @comment] do |f| %>
            <%= f.text_area :content, class: "form-control" %>

            <button class="btn btn-primary" id="add-comment-button">Add Comment</button>
        <% end %>

    <% end %>

    <%= edit_update_link(@update) %>
    <%= delete_update_link(@update) %>

Fix new comment button to work multiple times without page reload


Buildings

        <%= link_to new_admin_building_path, class: "admin-button" do %>
            Add Building

+

        <% end %>

            Address
            City
            State
            Zip
            BBL
            Manage

        <% @buildings.each do |b| %>

          <%= [b.property_name, b.street_address].join(" - ") %>
          <%= b.city %>
          <%= b.state %>
          <%= b.zip_code %>
          <%= b.bbl %>

            <%= link_to "", edit_admin_building_path(b),
                        class: "fa fa-wrench fa-lg",
                        title: "Edit" %>

        <% end %>

Buildings

        <%= link_to new_admin_building_path, class: "admin-button" do %>
            Add Building

+

        <% end %>

            Address
            City
            State
            Zip
            BBL
            Manage

        <% @buildings.each do |b| %>

          <%= [b.property_name, b.street_address].join(" ") %>
          <%= b.city %>
          <%= b.state %>
          <%= b.zip_code %>
          <%= b.bbl %>

            <%= link_to "", edit_admin_building_path(b),
                        class: "fa fa-wrench fa-lg",
                        title: "Edit" %>

        <% end %>

Reformat building index name and address


<a class="Sessions-oauthButton Sessions-githubButton" <% if @button_color %>style="background-color: <%= @button_color %>;"<% end %> href="<%= config.redirect_url %>">

<a class="Sessions-oauthButton Sessions-githubButton fs-Sessions-githubButton" <% if @button_color %>style="background-color: <%= @button_color %>;"<% end %> href="<%= config.redirect_url %>">

Add fs event to github button

Add fs event to github button


<%= provide(:header, "Objeto de Aprendizagem") %>
<%= provide(:description, "Vizualize, edite e adicione novos exercícios") %>

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

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

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

    <%= @learning_object.description %>

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

      Adicionar novo exercício
    </button>

    <%= available_text(@learning_object.available) %>
    Possui <%= pluralize_exercises(@learning_object.exercises.count) %>

Add a header to the show page

Add a header to the show page


<%# Get an Alma Record %>
<%= form_tag('/bibliographic', method: 'get', class: 'form-horizontal') do %>

    <%= label_tag(:bib_id, 'Get an Alma Record:', class: 'col-sm-2 control-label') %>

      <%= hidden_field_tag(:items_only, 0) %>
      <%= hidden_field_tag(:holdings_only, 0) %>
      <%= hidden_field_tag(:adapter, "alma") %>
      <%= number_field_tag(:bib_id, nil,  class: 'form-control', placeholder: 'BibID') %>

    <%= submit_tag('Submit', class: 'col-sm-1 btn btn-default') %>

<% end %>

<%= form_tag('/bibliographic', method: 'get', class: 'form-horizontal') do %>

    <%= label_tag(:bib_id, 'Get Holdings:', class: 'col-sm-2 control-label') %>

      <%= hidden_field_tag(:items_only, 0) %>
      <%= hidden_field_tag(:holdings_only, 1) %>
      <%= hidden_field_tag(:adapter, "alma") %>
      <%= number_field_tag(:bib_id, nil,  class: 'form-control', placeholder: 'BibID') %>

    <%= submit_tag('Submit', class: 'col-sm-1 btn btn-default') %>

<% end %>

<%# Get an Alma Record %>
<%= form_tag('/bibliographic', method: 'get', class: 'form-horizontal') do %>

    <%= label_tag(:bib_id, 'Get an Alma Record:', class: 'col-sm-2 control-label') %>

      <%= hidden_field_tag(:items_only, 0) %>
      <%= hidden_field_tag(:holdings_only, 0) %>
      <%= hidden_field_tag(:adapter, "alma") %>
      <%= number_field_tag(:bib_id, nil,  class: 'form-control', placeholder: 'AlmaID') %>

    <%= submit_tag('Submit', class: 'col-sm-1 btn btn-default') %>

<% end %>

<%= form_tag('/bibliographic', method: 'get', class: 'form-horizontal') do %>

    <%= label_tag(:bib_id, 'Get Holdings:', class: 'col-sm-2 control-label') %>

      <%= hidden_field_tag(:items_only, 0) %>
      <%= hidden_field_tag(:holdings_only, 1) %>
      <%= hidden_field_tag(:adapter, "alma") %>
      <%= number_field_tag(:bib_id, nil,  class: 'form-control', placeholder: 'AlmaID') %>

    <%= submit_tag('Submit', class: 'col-sm-1 btn btn-default') %>

<% end %>

Update the Alma input placeholder on the homepage


<%= render 'shared/homepage_feature',
           strapline: t('home.show.strapline'),
           items:     t('home.show.featured') %>

<%= render 'shared/home_contact',
           title:        t('home.show.contact.title'),
           introduction: t('home.show.contact.introduction_html'),
           details:      t('home.show.contact.details_html') %>

<%= render 'shared/home_promoted', items: t('home.show.promoted') %>

<%= render 'shared/contact' %>

Add new contact component to the demo page


	<% if @article.author_id == current_user.id %>

<%= t('edit_article.subject') %>

		<%= form_for :article, url: article_path(@article), method: :put do |f| %>

			<% if @article && @article.errors.any? %>

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

<%= msg %>

						<% end %>

			<% end %>

				<%= f.label :title %>

				<%= f.text_field :title %>

				<%= f.label :text %>

				<%= f.text_area :text %>

				<%= f.submit t('edit_article.btn_save') %>

		<% end %>

		<%= form_for :article, url: article_path(@article), method: :delete, data: { confirm: t('edit_article.confirm_del') } do |f| %>

				<%= f.submit t('edit_article.btn_delete') %>

		<% end %>

	<% else %>

<%= t('edit_article.access_d') %>

	<% end %>

	<% if @article.author_id == current_user.id %>

<%= t('edit_article.subject') %>

		<%= form_for :article, url: article_path(@article), method: :put do |f| %>

			<% if @article && @article.errors.any? %>

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

<%= msg %>

						<% end %>

			<% end %>

				<%= f.label t('new_article.title') %>

				<%= f.text_field :title %>

				<%= f.label t('new_article.text') %>

				<%= f.text_area :text %>

				<%= f.submit t('edit_article.btn_save') %>

		<% end %>

		<%= form_for :article, url: article_path(@article), method: :delete, data: { confirm: t('edit_article.confirm_del') } do |f| %>

				<%= f.submit t('edit_article.btn_delete') %>

		<% end %>

	<% else %>

<%= t('edit_article.access_d') %>

	<% end %>

Add labels text to locales on edit article view


<%= @channel.name %>

<%= channel_action_links @channel %>

Type: <%= @channel.type_name %>

Description: <%= @channel.description %>

Entity: <%= link_to @channel.entity.name, @channel.entity %>

<%= @channel.service_id_name %>: <%= @channel.service_identifier %>

    <%- if @channel.instance_of? WebChannel %>

URL: <%= @channel.url %>

    <%- end %>

Item Count: <%= @channel.item_count %>

Last Update: <%= @channel.last_updated_at %>

    <%- @channel.items.each do |item| %>

<%= item.description %>

    <%- end %>

<%= @channel.name %>

<%= channel_action_links @channel %>

Type: <%= @channel.type_name %>

Description: <%= @channel.description %>

Entity: <%= link_to @channel.entity.name, @channel.entity %>

<%= @channel.service_id_name %>: <%= @channel.service_identifier %>

    <%- if @channel.instance_of? WebChannel %>

URL: <%= @channel.url %>

    <%- end %>

Item Count: <%= @channel.item_count %>

Last Item Refresh: <%= @channel.last_polled_at %>

    <%- @channel.items.each do |item| %>

<%= item.description %>

    <%- end %>

Change field name in view

Change field name in view


<!DOCTYPE html>
<html>
  <head>
    <%= csrf_meta_tags %>
    <%= display_meta_tags site: 'hcxp', description: 'Indepenent online hardcore punk events directory', reverse: true, separator: '/', 'fb:app_id' => ENV['FACEBOOK_APP_ID'] %>

    <script src="https://use.fontawesome.com/54c3771c61.js"></script>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-AysaV+vQoT3kOAXZkl02PThvDr8HYKPZhNT5h/CXfBThSRXQ6jW5DO2ekP5ViFdi" crossorigin="anonymous">
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>

    <%= render 'layouts/google_analytics' if ENV['GOOGLE_ANALYTICS'] %>
  </head>

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

<!DOCTYPE html>
<html>
  <head>
    <%= csrf_meta_tags %>
    <%= display_meta_tags site: 'hcxp', description: 'Indepenent online hardcore punk events directory', reverse: true, separator: '/', 'fb:app_id' => ENV['FACEBOOK_APP_ID'] %>

    <script src="https://use.fontawesome.com/54c3771c61.js"></script>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-AysaV+vQoT3kOAXZkl02PThvDr8HYKPZhNT5h/CXfBThSRXQ6jW5DO2ekP5ViFdi" crossorigin="anonymous">
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
  </head>

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

Disable analytics on embed pages

Disable analytics on embed pages


    <% if admin? %>
      <%= link_to album.name, [:edit, album] %>
    <% elsif album.bandcamp_url %>
      <%= link_to album.name, album.bandcamp_url %>
    <% else %>
      <%= album.name %>
    <% end %>

  <% album.songs_with_lyrics.each do |song| %>
    <section class="<%= cycle('left', 'right') %>">

        <%= link_to song.name, song, id: dom_id(song), class: song.version %>

        <%= raw_format song.lyrics || 'Lyrics coming soon!'.html_safe %>

  <% end %>

    <% if admin? && album.persisted? %>
      <%= link_to album.name, edit_album_path(album) %>
    <% elsif album.bandcamp_url %>
      <%= link_to album.name, album.bandcamp_url %>
    <% else %>
      <%= album.name %>
    <% end %>

  <% album.songs_with_lyrics.each do |song| %>
    <section class="<%= cycle('left', 'right') %>">

        <%= link_to song.name, song, id: dom_id(song), class: song.version %>

        <%= raw_format song.lyrics || 'Lyrics coming soon!'.html_safe %>

  <% end %>

Fix error with everything else link

Fix error with everything else link


Welcome!

We’re stoked you want to try Foundation!

		Translate Community is a web platform designed to help developers to translate each others' applications.

		TODO : description ++

		Tired to see approximative translations ?

		So join the community and help us to translate the world !

				Already an account ?

				<%= link_to 'Sign in', new_user_session_path, :class => "small button" %>

				Create an account !

				<%= link_to 'Sign up', new_user_registration_path, :class => "small button" %>

Add content to welcome page

Add content to welcome page


#
# Telefónica Digital - Product Development and Innovation
#
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
#
# Copyright (c) Telefónica Investigación y Desarrollo S.A.U.
# All rights reserved.
#

include "cluster-properties"

"core" {
    "properties" {
        "fs.infinity.impl" = "es.tid.cosmos.platform.infinity.InfinityFileSystem",
        "fs.infinity.defaultAuthority" = ${InfinityMasterNode}":50070",
        "es.tid.cosmos.clustersecret" = ${ClusterSecret}
    }
}

"infinity_driver" {
    "configType"="infinity-driver"
    "properties" {
      "blocked_ports" = "8088,8032,50060,19888"
    }
}

Add blocked ports list to infinity driver


<%= _("Help pages") %>

<%= link_to_unless_current "Úvod", "/help/about" %>

<%= link_to_unless_current "Vznesení dotazu", "/help/requesting" %>

<%= link_to_unless_current "Vaše soukromí", "/help/privacy" %>

<%= link_to_unless_current "O nás", "/help/credits" %>

<%= link_to_unless_current "Odpovídající instituce", "/help/officers" %>

Kontaktujte nás

Pokud jste nenašli co jste hledali, nebo jen máte připomínky ke stránkám, kontaktujte nás.

<%= _("Help pages") %>

<%= link_to_unless_current "Úvod", "/help/about" %>

<%= link_to_unless_current "Vznesení dotazu", "/help/requesting" %>

<%= link_to_unless_current "Vaše soukromí", "/help/privacy" %>

<%= link_to_unless_current "O nás", "/help/credits" %>

<%= link_to_unless_current "Odpovídající instituce", "/help/officers" %>

<%= link_to_unless_current "Pokročilé hledání", "/search" %>

Kontaktujte nás

Pokud jste nenašli co jste hledali, nebo jen máte připomínky ke stránkám, kontaktujte nás.

Add link to advanced search.

Add link to advanced search.


Create Your Project

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

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

    <%= f.label :description %>
    <%= f.text_area :description, rows: 10, cols: 80 %>

    <%= f.label :skills_desired %>
    <%= f.text_area :skills_desired, rows: 10, cols: 80 %>

    <%= label_tag :tags %>
    <%= text_field_tag :tags, @project.tags_for_edit %>

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

    <%= f.label :start_date %>
    <%= f.date_field :start_date %>

    <%= f.label :end_date %>
    <%= f.date_field :end_date %>

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

    <%= f.submit "Edit Project" %>

  <% end %>

Edit Project

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

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

    <%= f.label :description %>
    <%= f.text_area :description, rows: 10, cols: 80 %>

    <%= f.label :skills_desired %>
    <%= f.text_area :skills_desired, rows: 10, cols: 80 %>

    <%= label_tag :tags %>
    <%= text_field_tag :tags, @project.tags_for_edit %>

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

    <%= f.label :start_date %>
    <%= f.date_field :start_date %>

    <%= f.label :end_date %>
    <%= f.date_field :end_date %>

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

    <%= f.submit "Edit Project" %>

  <% end %>

    <%= f.submit "Create Project" %>

  <% end %>

Change class name of project form to be more generic


<% if Translation.find_by_key('site.twitter.query') %>
  <% content_for :side do %>
    <% content_for :head do %>

    <% end %>

Latest Tweets

  <% end %>
<% end %>

<% twitter_username = Translation.find_by_key('site.twitter.username').try(:value) %>
<% twitter_query    = Translation.find_by_key('site.twitter.query').try(:value) %>

<% if twitter_username.present? || twitter_query.present? %>

  <% content_for :head do %>

  <% end %>

  <% content_for :side do %>

Latest Tweets

  <% end %>

<% end %>

Allow twitter name to be used with jquery.tweet


<!DOCTYPE html>

    <%= erb(:headers) %>

      <iframe id="nav" src="<%= @nav_url %>">

        <%= erb(:breadcrumb) %>
        <%= erb(:search) %>

You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

        <%= yieldall %>

      <%= erb(:footer) %>

Add Privacy Notice to Docs

Add Privacy Notice to Docs


<button class="js-issues-archive" href="<%= archive_prioritized_issues_path %>">Archive closed issues</button>
<div class="row js-buckets">
  <%= render :partial => "bucket", :collection => @buckets %>
</div>

  <%= render :partial => "bucket", :collection => @buckets %>

    <button class="js-issues-archive" href="<%= archive_prioritized_issues_path %>">Archive closed issues</button>

Move archive button below columns for now


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

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

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

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :name, 'Match Name' %>
    <%= f.text_field :name %>

    <%= f.label :tanks, 'Tanks Competing (at least two)' %>

    <%= f.select :tanks, options_for_select(Tank.all.collect {|t| [t.name, t.id]}), {}, multiple: true, style: 'width: 300px;' %>

    <%= f.submit class:"primary" %>
    <%= link_to 'Match List', matches_path, class:"button" %>

<% end %>

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

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

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

<%= message %>

      <% end %>

  <% end %>

    <%= f.label :name, 'Match Name' %>
    <%= f.text_field :name %>

    <%= f.label :tanks, 'Tanks Competing (at least two)' %>

    <%= f.select :tanks, options_for_select(Tank.all.collect {|t| [t.name, t.id]}), {}, multiple: true, style: 'width: 300px;' %>

    <%= f.label :public, 'Make public' %>
    <%= f.check_box :public, data:{toggle: 'toggle'} %>

    <%= f.submit class:"primary" %>
    <%= link_to 'Match List', matches_path, class:"button" %>

<% end %>

Add toggle to make match public

Add toggle to make match public


<!DOCTYPE html>

    <meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />

Welcome to Code-Laborate,
      <%if @user.org_affiliate %>
       <%= @user.first_name %>
      <% else %>
       <%= @user.first_name %>
      <% end %>

      You have successfully signed up to code-laborate.herokuapp.com,
      your username is: <%= @user.email %>.

      To login to the site, just follow this link: <%= @url %>.

Thanks for joining and have a great day!

  <code>laborate Team

<!DOCTYPE html>

    <meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />

Welcome to Code-Laborate
      <%if @user.org_affiliate %>
       <%= @user.first_name %>!
      <% else %>
       <%= @user.first_name %>!
      <% end %>

      You have successfully signed up to code-laborate.herokuapp.com,
      your username is: <%= @user.email %>.

      To login to the site, just follow this link: <%= @url %>.

Thanks for joining and have a great day!

  <code>laborate Team

Terms & Guidlines:

Add border and box for email content

Add border and box for email content


# Meta API

The Meta API endpoint returns a list of IP addresses that Buildkite uses to send outbound traffic such as webhooks and commit statuses.

It does not require authentication.

{:toc}

## Get IP addresses

Returns IP addresses:

```bash
curl "https://api.buildkite.com/v2/user"
```

```json
{
  "webhook_ips":["54.165.103.71"]
}
```

Success response: `200 OK`

# Meta API

The Meta API endpoint returns a list of IP addresses that Buildkite uses to send outbound traffic such as webhooks and commit statuses.

It does not require authentication.

{:toc}

## Get IP addresses

Returns IP addresses:

```bash
curl "https://api.buildkite.com/v2/meta"
```

```json
{
  "webhook_ips": ["100.24.182.113", "35.172.45.249", "54.165.103.71", "54.85.125.32"]
}
```

Success response: `200 OK`

Fix typo of the meta API endpoint

Fix typo of the meta API endpoint


Help pages

<%= link_to_unless_current "Introduction", help_about_path %>

<%= link_to_unless_current "Making requests", help_requesting_path %>

<%= link_to_unless_current "Your privacy", help_privacy_path %>

<%= link_to_unless_current "FOI officers", help_officers_path %>

<%= link_to_unless_current "About the software", help_alaveteli_path %>

<%= link_to_unless_current "Credits", help_credits_path %>

<%= link_to_unless_current "Programmers API", help_api_path %>

<%= link_to_unless_current "Advanced search", advanced_search_path %>

Contact us

If your question isn't answered here, or you just wanted to let us know
  something about the site, <a href="<%= help_contact_path %>">contact us.

Help pages

<%= link_to_unless_current "Introduction", help_about_path %>

<%= link_to_unless_current "Making requests", help_requesting_path %>

<%= link_to_unless_current "Your privacy", help_privacy_path %>

<%= link_to_unless_current "FOI officers", help_officers_path %>

<%= link_to_unless_current "About the software", help_alaveteli_path %>

<%= link_to_unless_current "Downloads", "/help/downloads" %>

<%= link_to_unless_current "Credits", help_credits_path %>

<%= link_to_unless_current "Programmers API", help_api_path %>

<%= link_to_unless_current "Advanced search", advanced_search_path %>

Contact us

If your question isn't answered here, or you just wanted to let us know
  something about the site, <a href="<%= help_contact_path %>">contact us.

Add /help/downloads to /help sidebar

Add /help/downloads to /help sidebar


<script nonce="68afd870-ae85-48c6-9689-9a5c359d5a1f">
  (function(i,s,o,g,r,a,m){i['InstanaEumObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//internal-eum.instana.io/eum.min.js','ineum');

  ineum('reportingUrl', '//internal-eum.instana.io');
  ineum('apiKey', '<%=::Instana.config[:eum_api_key]%>');
  ineum('traceId', '<%=::Instana.tracer.trace_id_header%>');

  <% if !::Instana.config[:eum_baggage].empty? %>
    <% ::Instana.config[:eum_baggage].each do |k, v| %>
      ineum('meta', '<%=k%>', '<%=v%>');
    <% end %>
  <% end %>
</script>

<script nonce="68afd870-ae85-48c6-9689-9a5c359d5a1f">
  (function(i,s,o,g,r,a,m){i['InstanaEumObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//eum-test-fullstack-0-us-west-2.instana.io/eum.min.js','ineum');

  ineum('reportingUrl', '//eum-test-fullstack-0-us-west-2.instana.io');
  ineum('apiKey', '<%=::Instana.config[:eum_api_key]%>');
  ineum('traceId', '<%=::Instana.tracer.trace_id_header%>');

  <% if !::Instana.config[:eum_baggage].empty? %>
    <% ::Instana.config[:eum_baggage].each do |k, v| %>
      ineum('meta', '<%=k%>', '<%=v%>');
    <% end %>
  <% end %>
</script>

Update EUM test reporting URL

Update EUM test reporting URL


 <%=@page_owner.username %>

  <%=@page_owner.first_name %> <%=@page_owner.last_name %>

  <%=@page_owner.age %>

  <%=@page_owner.height %>

  <%=@page_owner.bio %>

Add a comment for <%= @page_owner.username %>

  <form action="/comment/<%=@page_owner.id%>/new" method = "POST">
  <input type="text" name="comment[content]">
  <input type="submit">
  </form>

 <%=@page_owner.username %>'s Comments

  <% Comment.all.each do |x| %>
    <% if @page_owner.id == x.receiver_id %>
    <%= x.sender_id%> said:
    <%= x.content %>

  <% end %>
  <% end %>

 <%=@page_owner.username %>

  <%=@page_owner.first_name %> <%=@page_owner.last_name %>

  <%=@page_owner.age %>

  <%=@page_owner.height %>

  <%=@page_owner.bio %>

Add a comment for <%= @page_owner.username %>

  <form action="/comment/<%=@page_owner.id%>/new" method = "POST">
  <input type="text" name="comment[content]">
  <input type="submit">
  </form>

 <%=@page_owner.username %>'s Comments

  <% Comment.all.each do |x| %>
    <% if @page_owner.id == x.receiver_id %>
    <%= x.sender_id%> said:
    <%= x.content %>

      <% if x.sender_id == current_user.id %>
       <a href="/comment/<%=x.id%>/edit">Edit/Delete

      <%end %>

  <% end %>
  <% end %>

Add edit links to corresponding user comments.


    <%#

      Sobre

 %>

      Palestrantes

      Agenda

    <%#

      Local

 %>
    <%#

      Patrocinadores

 %>

      Realização

      <%= link_to 'Garanta Seu Ingresso', data.site.tickets, class: 'button' , title: 'Garanta seu ingresso'  %>

    <%#

      Sobre

 %>

      Palestrantes

      Agenda

    <%#

      Local

 %>
    <%#

      Patrocinadores

 %>

      Realização

      <%= link_to 'Garanta Seu Ingresso', data.site.tickets, class: 'button' , title: 'Garanta seu ingresso', target: '_blank'  %>

Add target blank to buy tickets link

Add target blank to buy tickets link


# /etc/environment
#
# DO NOT CHANGE THIS FILE MANUALLY!
#
# This file is managed by the Chef `sys` cookbook.

<% node['sys']['env'].each_pair do |key,value| %>
<% raise "Whitespace in environment variable name" if key =~ /\s/ %>
<%= key %>="<%= value %>"
<% end %>

# /etc/environment
#
# DO NOT CHANGE THIS FILE MANUALLY!
#
# This file is managed by the Chef `sys` cookbook.

<% node['sys']['env'].keys.sort_by(&:downcase) do |key| %>
<% raise "Whitespace in environment variable name" if key =~ /\s/ %>
<%= key %>="<%= node['sys']['env'][key] %>
<% end %>

Sort lines in /etc/environment ignoring case


#!/bin/bash

# This script allows Hopsworks to cleanup local directories for Jupyter Notebook Servers.
# There will be 1 notebook-server per ProjectUser.
# This script can be run by hopsworks (running as user 'glassfish') as a sudo command as 'root'
# The script should run as 'root' as the jupyter user does not have read privileges on the base directory for a user's
# project and cannot do a recursive delete on the directory.
#

help() {
    echo ""
    echo "usage: $0 project"
    echo "e.g., "
    exit 1
}

if [ $# -ne 1 ]; then
    help
fi
base="#{node['jupyter']['base_dir']}/Projects/$1"
# Sanity checks for injection attacks
if [ ! -d "$base" ] ; then
    echo "Invalid JUPYTER_HOME directory: $base"
    exit 1
fi

sudo rm -rf $base

exit $?

#!/bin/bash

# This script allows Hopsworks to cleanup local directories for Jupyter Notebook Servers.
# There will be 1 notebook-server per ProjectUser.
# This script can be run by hopsworks (running as user 'glassfish') as a sudo command as 'root'
# The script should run as 'root' as the jupyter user does not have read privileges on the base directory for a user's
# project and cannot do a recursive delete on the directory.
#

help() {
    echo ""
    echo "usage: $0 project"
    echo "e.g., "
    exit 1
}

if [ $# -ne 1 ]; then
    help
fi

base="<%= node['jupyter']['base_dir'] %>/Projects/$1"
# Sanity checks for injection attacks
if [ ! -d "$base" ] ; then
    echo "Invalid JUPYTER_HOME directory: $base"
    exit 1
fi

sudo rm -rf $base

exit $?

Fix string interpolation in Chef template


<!DOCTYPE html>

    <title>Service Worker on Rails</title>
    <%= site_metatags %>
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
    <%= csrf_meta_tags %>
    <link rel="manifest" href="manifest.json">
    <%= yield :head %>

      <%= render "layouts/navbar" %>

<%= notice %>

<%= alert %>

      <%= yield %>

    <%= render "layouts/footer" %>
    <%= render "layouts/analytics" %>

<!DOCTYPE html>

    <title>Service Worker on Rails</title>
    <%= site_metatags %>
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
    <%= csrf_meta_tags %>
    <link rel="manifest" href="manifest.json">
    <link rel="apple-touch-icon"                 href="<%= image_path("circle-turtle-192x192.png") %>" />
    <link rel="icon"             sizes="192x192" href="<%= image_path("circle-turtle-192x192.png") %>" />
    <%= yield :head %>

      <%= render "layouts/navbar" %>

<%= notice %>

<%= alert %>

      <%= yield %>

    <%= render "layouts/footer" %>
    <%= render "layouts/analytics" %>

Add touch image link tags

Add touch image link tags


<!DOCTYPE html>
<html>
<head>
  <title>NeighborhoodDashboard</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.9/mapbox.js'></script>
  <link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.9/mapbox.css' rel='stylesheet' />
  <link href='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-draw/v0.2.2/leaflet.draw.css' rel='stylesheet' />
  <script src='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-draw/v0.2.2/leaflet.draw.js'></script>
  <script src='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-geodesy/v0.1.0/leaflet-geodesy.js'></script>

</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>NeighborhoodDashboard</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.9/mapbox.js'></script>
  <link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.9/mapbox.css' rel='stylesheet' />
  <link href='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-draw/v0.2.2/leaflet.draw.css' rel='stylesheet' />
  <script src='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-draw/v0.2.2/leaflet.draw.js'></script>
  <script src='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-geodesy/v0.1.0/leaflet-geodesy.js'></script>

</head>
<body>

<%= yield %>

</body>
</html>

Add Responsive Header to the Site Layout


 Terms and Conditions

    <%= link_to t('ngos.registrations.terms_and_conditions.title'), '#ngos', class: 'pages-nav-link' %>
    <%= link_to t('users.registrations.terms_and_conditions.title'), '#users', class: 'pages-nav-link' %>

 <%= t('ngos.registrations.terms_and_conditions.title') %>

    <%= simple_format t('ngos.registrations.terms_and_conditions.body') %>

 <%= t('users.registrations.terms_and_conditions.title') %>

    <%= simple_format t('users.registrations.terms_and_conditions.body') %>

 <%= t('application.terms_and_conditions') %>

    <%= link_to t('ngos.registrations.terms_and_conditions.title'), '#ngos', class: 'pages-nav-link' %>
    <%= link_to t('users.registrations.terms_and_conditions.title'), '#users', class: 'pages-nav-link' %>

 <%= t('ngos.registrations.terms_and_conditions.title') %>

    <%= simple_format t('ngos.registrations.terms_and_conditions.body') %>

 <%= t('users.registrations.terms_and_conditions.title') %>

    <%= simple_format t('users.registrations.terms_and_conditions.body') %>

Fix translation of terms of conditions headline


<%= semantic_form_for @latest_edition, :url => admin_answer_edition_path(@answer, @latest_edition), :as => :edition do |f| %>
  <%= f.inputs do %>
    <%= f.input :title, :label => "Name of answer" %>
    <%= f.input :body, :as => :text %>
  <% end %>
<% end %>

<% content_for :extra_javascript do %>
<script type="text/javascript">
  $(function () {
    $('#edition_title')[0].focus();
    $('input.title').
      live('change', function () {
        var elem = $(this);
        var header = elem.closest('fieldset').prev('h3').find('a');
        header.text(elem.val());
      }).
      live('change', function () {
        var title_field = $(this);
        var slug_field = title_field.closest('.part').find('.slug');
        console.log(title_field, slug_field);
        if (slug_field.text() == '') {
          slug_field.val(GovUKGuideUtils.convertToSlug(title_field.val()));
        }
      });
  });
</script>
<% end %>

<%= semantic_form_for @latest_edition, :url => admin_answer_edition_path(@answer, @latest_edition), :as => :edition do |f| %>
  <%= f.inputs do %>
    <%= f.input :title, :label => "Name of answer" %>
    <%= f.input :body, :as => :text %>
  <% end %>
<% end %>

<% content_for :extra_javascript do %>
<script type="text/javascript">
  $(function () {
    $('#edition_title')[0].focus();
    $('input.title').
      live('change', function () {
        var title_field = $(this);
        var slug_field = title_field.closest('.part').find('.slug');
        if (slug_field.text() == '') {
          slug_field.val(GovUKGuideUtils.convertToSlug(title_field.val()));
        }
      });
  });
</script>
<% end %>

Remove some unneeded JS from answers editing


<%= render 'backend/breadcrumbs' %>

<% if @forms.any? %>

        <%= t 'b.identifier' %>

      <% @forms.each do |f| %>

          <%= f.description %>

            <%= link_to_edit [:backend, f] %>
            <%= link_to icon(:search), backend_form_submissions_path(f) %>

      <% end %>

<% else %>

<%= t 'b.msg.no_items' %>

<% end %>

<%= render 'backend/breadcrumbs' %>

<% if @forms.any? %>

        <%= t 'b.description' %>

      <% @forms.each do |f| %>

          <%= f.description %>

            <%= link_to_edit [:backend, f] %>
            <%= link_to icon(:search), backend_form_submissions_path(f) %>

      <% end %>

<% else %>

<%= t 'b.msg.no_items' %>

<% end %>

Use the right label for the form description.


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

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

Disable annoying MathJax loading messages


<!DOCTYPE html>
<html>
<head>
  <%= yield :head %>
  <title>LibraryMapping</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <%= yield :head %>
  <title>LibraryMapping</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

<%= render 'layouts/footer' %>

</body>
</html>

Fix Google Analytics tracking bug

Fix Google Analytics tracking bug


<!DOCTYPE html>

  <title>Giftoppr</title>
  <link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>

        <%= image_tag "logo.png", :width => 253, :height => 55 %>

        <%= image_tag "by.png", :width => 158, :height => 38 %>

        <% if user_signed_in? %>

Hi <%= current_user.name %>!

<%= link_to "Logout", auth_logout_path %>

        <% else %>

<%= link_to "Signin with Dropbox", auth_path(:dropbox) %>

        <% end %>

    <%= yield %>

<!DOCTYPE html>

  <title>Giftoppr</title>
  <link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= csrf_meta_tags %>

        <%= image_tag "logo.png", :width => 253, :height => 55 %>

        <%= image_tag "by.png", :width => 158, :height => 38 %>

        <% if user_signed_in? %>

Hi <%= current_user.name %>!

<%= link_to "Logout", auth_logout_path %>

        <% else %>

<%= link_to "Signin with Dropbox", auth_path(:dropbox) %>

        <% end %>

    <%= yield %>

  <%= javascript_include_tag "application" %>

Move js to the bottom of the page

Move js to the bottom of the page


<!DOCTYPE html>

    <title><%= yield :title %> | GOV.UK</title>
    <%= stylesheet_link_tag 'calendar' %>
    <%= yield :head %>

      <%= yield %>

<!DOCTYPE html>

    <title><%= yield :title %> - GOV.UK</title>
    <%= stylesheet_link_tag 'calendar' %>
    <%= yield :head %>

      <%= yield %>

Use hypens instead of pipes in page titles


        ×

Please log in to continue.

Don't have an account?

              Click here to register

        <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>

            <%= f.label :email %>
            <%= f.email_field :email, autofocus: true %>

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

          <% if devise_mapping.rememberable? -%>

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

          <% end -%>

            <%= f.submit "Login", class: 'button success radius small' %>

            <%= link_to "Forgot your password?", new_password_path(:user) %>

        <% end %>

        ×

Please log in to continue.

Don't have an account?

              Click here to register

        <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>

            <%= f.label :email %>
            <%= f.email_field :email, autofocus: true %>

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

          <% if devise_mapping.rememberable? -%>

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

          <% end -%>

            <%= f.submit "Login", class: 'button success radius small' %>

        <% end %>

Delete forgot your password link

Delete forgot your password link


Sign up

<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

    <%= f.label :email %>

    <%= f.email_field :email, autofocus: true %>

    <%= f.label :password %>
    <% if @minimum_password_length %>
    (<%= @minimum_password_length %> characters minimum)
    <% end %>

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

    <%= f.label :password_confirmation %>

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

    <%= f.submit "Sign up" %>

<% end %>

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

Sign up

<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

    <%= f.label :first_name %>
    <%= f.text_field :first_name, autofocus: true %>

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

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

    <%= f.label :password %>
    <% if @minimum_password_length %>
    (<%= @minimum_password_length %> characters minimum)
    <% end %>

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

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

    <%= f.submit "Sign up" %>

<% end %>

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

Add first name and last name fields to the sign up form


<%
  #--
  #   Copyright (C) 2013 Gitorious AS
  #
  #   This program is free software: you can redistribute it and/or modify
  #   it under the terms of the GNU Affero General Public License as published by
  #   the Free Software Foundation, either version 3 of the License, or
  #   (at your option) any later version.
  #
  #   This program is distributed in the hope that it will be useful,
  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #   GNU Affero General Public License for more details.
  #
  #   You should have received a copy of the GNU Affero General Public License
  #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
  #++
  %>

<%= pull_box("Active users") do %>

      <% users.each do |user| %>

            <%= avatar(user, { :size => 16 }) %>
            <%= link_to h(user.title), user %>

      <% end %>

<% end %>

<%
  #--
  #   Copyright (C) 2013 Gitorious AS
  #
  #   This program is free software: you can redistribute it and/or modify
  #   it under the terms of the GNU Affero General Public License as published by
  #   the Free Software Foundation, either version 3 of the License, or
  #   (at your option) any later version.
  #
  #   This program is distributed in the hope that it will be useful,
  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #   GNU Affero General Public License for more details.
  #
  #   You should have received a copy of the GNU Affero General Public License
  #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
  #++
  %>

<%= pull_box("Active users") do %>

      <% users.each do |user| %>

            <%= avatar(user, :class => 'gts-avatar', :size => 16) %>
            <%= link_to h(user.title), user %>

      <% end %>

<% end %>

Add gts-avatar class to user avatars in active users box


 <%= titleize params[:category] %> Ideas

      <% @suggestions.each do |suggestion| %>

          <%= suggestion.content %> <%= "- #{suggestion.author}" if suggestion.author? %>

      <% end %>

    <%= link_to "Back", root_path %>

 <%= titleize params[:category] %> Ideas <%= link_to "Have an Idea?", new_suggestion_path(category: params[:category]), class: "btn btn-primary-outline" %>

        <% @suggestions.each_with_index do |suggestion, i| %>
        <blockquote class="blockquote <%= "blockquote-reverse" if i.odd? %>">

<%= suggestion.content %>

          <% if suggestion.author? %>
          <%= suggestion.author %> <%= suggestion.created_at.strftime("%b %d, %Y") %>
          <% end %>

        <% end %>

Add blockquote styles to suggestion views


<%= @title %>

      <%= form_tag surveyforms_path, :method => 'get' do %>

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

    <% end %>
  <%= will_paginate %>

    Title
    Actions

  <% for survey in @surveyforms %>

      <%= survey.title %>
      <%= link_to "Show", survey %>&nbsp
      <%= link_to "Edit", edit_surveyform_path(survey) %>&nbsp
      <%= link_to "Clone", clone_surveyform_path(survey) %>&nbsp
      <%= link_to "Destroy", survey, :confirm => 'Are you sure?', :method => :delete %>

  <% end %>

<%= will_paginate %>

  <%= link_to "New Survey", new_surveyform_path() %>&nbsp
  <%= link_to "Take a Survey", surveyor.available_surveys_path %>&nbsp

Add a link to take surveys from the Surveyforms index.

	modified:   app/views/surveyforms/index.html.erb


<% content_for :title, "2-step verification" %>
<% content_for :thin_form, true %>
<% content_for :suppress_navbar_items, true %>

2-step verification

<%= form_tag([resource_name, :two_factor_authentication], :method => :put) do %>

        <%= label_tag :code, 'Verification code' %>

Use the verification app on your phone to get your code.
You won’t need to do this again for 30 days.

        <%= text_field_tag :code, nil,
          class: 'form-control input-md-4 input-lg',
          placeholder: 'Enter 6 digit code',
          tabindex: 1,
          autofocus: 'autofocus' %>

      <%= submit_tag "Sign in", tabindex: 2, class: 'btn btn-success btn-lg btn-block' %>

<% end %>

<% content_for :title, "2-step verification" %>
<% content_for :thin_form, true %>
<% content_for :suppress_navbar_items, true %>

2-step verification

<%= form_tag([resource_name, :two_factor_authentication], :method => :put) do %>

        <%= label_tag :code, 'Verification code' %>

Use the verification app on your phone to get your code.
You won’t need to do this again for 30 days.

        <%= text_field_tag :code, nil,
          class: 'form-control input-md-4 input-lg',
          placeholder: 'Enter 6 digit code',
          tabindex: 1,
          autofocus: 'autofocus',
          autocomplete: 'off' %>

      <%= submit_tag "Sign in", tabindex: 2, class: 'btn btn-success btn-lg btn-block' %>

<% end %>

Disable autocomplete for 2SV code

Disable autocomplete for 2SV code


---
layout: default
title: Categories
---

Not just Macs

There are currently <%= @site.categories.count %> categories on the site.

<% @site.categories.keys.map { |key| key[0] }.uniq.sort.each do |letter| %>

<%= letter.upcase %>

    <% @site.categories.keys.select { |key| key[0] == letter }.sort.each do |slug| %>

        <a href="/categories/<%= slug %>/" title="All the <%= @site.categories[slug].name %> interviews."><%= @site.categories[slug].name %>

        <%= @site.categories[slug].posts.count %> interview<% if @site.categories[slug].posts.count != 1 %>s<% end %>.

    <% end %>

<% end %>

---
layout: default
title: Categories
---

Not just Macs

There are currently <%= @site.categories.count %> categories on the site.

<% ('a'..'z').each do |letter| %>
  <% unless (slugs = @site.categories.keys.select { |key| key[0] == letter }.sort).empty? %>
    <h3 id="<%= letter %>"><%= letter.upcase %>

      <% slugs.each do |slug| %>

          <a href="/categories/<%= slug %>/" title="All the <%= @site.categories[slug].name %> interviews."><%= @site.categories[slug].name %>

          <%= @site.categories[slug].posts.count %> interview<% if @site.categories[slug].posts.count != 1 %>s<% end %>.

      <% end %>

  <% end %>
<% end %>

Simplify the letter category walking, add letter anchors to the headers


<script type="text/javascript">
  // Declare 3rd party Analytics modules
  YUI.add('google-analytics', function(Y) {
    // Google Analytics basic
    var pageTracker = _gat._getTracker("UA-8152756-4");
    Y.log("pageTracker:"+ pageTracker, 'info', 'Google Analytics');
    pageTracker._trackPageview(<%= @ga_pagename || '' %>);
  }, '0.1' , {
    requires:['google-analytics-lib'],
    after:['google-analytics-lib']
  });

  YUI.add('webtrends', function(Y) {
    // Webtrends basic
    var _tag=new WebTrends();
    _tag.dcsCollect();
  }, '0.1', {
    requires:['webtrends-lib'],
    after:['webtrends-lib']
  });

  YUI({
    base: 'http://yui.yahooapis.com/combo?3.0.0/build/',
    modules:  {
      "google-analytics-lib": {
        fullpath: (("https:" == document.location.protocol) ? "https://ssl." : "http://www.") +"google-analytics.com/ga.js"
      },
      "webtrends-lib": {
        fullpath: "/retail/javascripts/webtrends/webtrends_basic/webtrends.js"
      }
    }
  }).use('google-analytics', 'webtrends', function(Y, result) {
    if (!result.success) {
        Y.log('Load failure: ' + result.msg, 'warn', 'jsHub');
    } else {
        Y.log('Loaded: 3rd party analytics', 'info', 'jsHub');
    }
  });
</script>

<!-- Google Analytics tracking -->
<script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-8152756-4");
  pageTracker._trackPageview(<%= @ga_pagename || '' %>);
  } catch(err) {}
</script>

<!-- Webtrends tracking -->
<script type="text/javascript" src="/retail/javascripts/webtrends/webtrends_basic/webtrends.js"></script>
<script type="text/javascript">
  // Webtrends basic
  var _tag=new WebTrends();
  _tag.dcsCollect();
</script>

Remove universal tagging, revert to basic analytics tags


<% if object.errors.any? %>

     The form contains <%= pluralize(object.errors.count, "error") %>.

   <% object.errors.full_messages.each do |msg| %>

<%= msg %>

   <% end %>

<% end %>

Add partial for displaying all error messages for a form object


  <% issue.valence_issue_explanations.order(:priority).each do |valence| %>

        <% valence.parties.each do |party| %>
          <%= link_to issue_url(issue, anchor: party.slug) do %>
            <%= image_tag party.logo.versions[:medium] %>
          <% end %>
        <% end %>

<%= valence.title %>

<%= valence.explanation %>

  <% end %>

  <% issue.valence_issue_explanations.order(:priority).each do |valence| %>

        <% valence.parties.each do |party| %>
          <%= link_to issue_url(issue, anchor: party.slug) do %>
            <%= image_tag party.logo.versions[:medium] %>
          <% end %>
        <% end %>

<%= valence.title %>

      <% if valence.explanation.blank? %>

      <% else %>

<%= valence.explanation %>

      <% end %>

  <% end %>

Add some space if explanation is blank.

Add some space if explanation is blank.


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

/var/log/tile/replicate.log {
  compress
  delaycompress
  notifempty
  postrotate
    /usr/bin/service replicate restart
  endscript
}

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

/var/log/tile/replicate.log {
  compress
  delaycompress
  notifempty
  postrotate
    /bin/systemctl try-restart replicate
  endscript
}

Use systemctl to restart replication

Use systemctl to restart replication


<%= @user.name %>'s Movies:

      Title
      Rating
      Genre
      Edit

    <% @user.movies.each do |movie| %>

        <%= movie.name %>
        <%= movie.rating %>
        <%= movie.genres.first.name %>
        <a href="/user/<%= @user.id %>/<%= movie.name %>">EDIT

    <% end %>

    <a href="/user/<%= @user.id %>/add">ADD MOVIE

<%= @user.name %>'s Movies:

      Title
      Rating
      Genre
      Edit

    <% @user.movies.each do |movie| %>

        <a href="/movie/<%= movie.id %>"><%= movie.name %>
        <%= movie.rating %>
        <%= movie.genres.first.name %>
        <a href="/user/<%= @user.id %>/<%= movie.name %>">EDIT

    <% end %>

    <a href="/user/<%= @user.id %>/add">ADD MOVIE

Add links to individual movie show page

Add links to individual  movie show page


	<% if @article.author_id == current_user.id %>

Edit article

		<%= form_for :article, url: article_path(@article), method: :put do |f| %>

			<% if @article && @article.errors.any? %>

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

<%= msg %>

						<% end %>

			<% end %>

				<%= f.label :title %>

				<%= f.text_field :title %>

				<%= f.label :text %>

				<%= f.text_area :text %>

				<%= f.submit %>

		<% end %>

		<%= form_for :article, url: article_path(@article), method: :delete, data: { confirm: 'Are you sure?' } do |f| %>

				<%= f.submit 'Delete article' %>

		<% end %>

	<% else %>

ACCESS DENIED

	<% end %>

Add verification of authorship before editing articles


Informatii generale
---------------------------

- Categorie: <%= @category %>
- Judetul: <%= @county %>
<% if not @source_url.blank? %>- Surse: <%= @source_url %><% end %>
<% if not @homepage.blank? %>- Homepage: <%= @homepage %><% end %>

Descriere
--------------

<%= @description %>

Tehnologii
---------------

<%= @technical_description %>

Cerinte sistem
---------------------

<%= @system_requirements %>

Realizatori
---------------------
<% @contestants.each do |contestant| %>
### <%= contestant.name %> ###
- Scoala: <%= contestant.school_name %>
- Clasa: <%= contestant.grade %>
- Judet: <%= contestant.county %>
- Oras: <%= contestant.city %>
<% end %>

Screenshots
------------------
<% @screenshots.each do |screenshot| %>
<img src='<%= screenshot.url%>' />
<% end %>

Informatii generale
---------------------------

- Categorie: <%= @category %>
- Judetul: <%= @county %>
<% unless @source_url.blank? %>- Surse: <%= @source_url %><% end %>
<% unless @homepage.blank? %>- Homepage: <%= @homepage %><% end %>

Descriere
--------------

<%= @description %>

Tehnologii
---------------

<%= @technical_description %>

Cerinte sistem
---------------------

<%= @system_requirements %>

Realizatori
---------------------
<% @contestants.each do |contestant| %>
### <%= contestant.name %> ###
- Scoala: <%= contestant.school_name %>
- Clasa: <%= contestant.grade %>
- Judet: <%= contestant.county %>
- Oras: <%= contestant.city %>
<% end %>

Screenshots
------------------
<% @screenshots.each do |screenshot| %>
<img src='<%= screenshot.url%>' />
<% end %>

Replace if not with unless

Replace if not with unless


<%= form_for(@user) do |f| %>

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

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

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

    <%= f.submit %>

<% end %>

<%= form_for(@user) do |f| %>

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

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

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

    <%= f.submit %>

<% end %>

Update new user password text_field to password_field so text isn't visible as typing out password


E-RIVE LLC | 1538 N Western Ave Chicago IL 60622 USA

Copyright © 2015 E-RIVE LLC, All rights reserved.

E-RIVE LLC | 1538 N Western Ave Chicago IL 60622 USA

Copyright © 2016 E-RIVE LLC, All rights reserved.

Update copyright year to 2016

Update copyright year to 2016


<%= notice %>

    This page lists all projects for you and any of your employees. To change the priority, simply drag
    items up and down in the list.

  <%
     # List projects for this user
     @user = User.find_by_id(session[:user_id])
  %>
  <%= render 'user_projects' %>

  <%
     # List projects for each employee
     Boss.employees_for(session[:user_id]).each do |employee|
       @user = employee
       if @user.id != session[:user_id]
  %>
      <%= render 'user_projects' %>
    <% end %>
  <% end %>

    Legend:
    New, In Progress,
    Stalled, Done

  <%= link_to 'Create new project', new_project_path %>

<%= notice %>

  <%
     # List projects for this user
     @user = User.find_by_id(session[:user_id])
  %>
  <%= render 'user_projects' %>

  <%
     # List projects for each employee
     Boss.employees_for(session[:user_id]).each do |employee|
       @user = employee
       if @user.id != session[:user_id]
  %>
      <%= render 'user_projects' %>
    <% end %>
  <% end %>

    Legend:
    New, In Progress,
    Stalled, Done

  <%= link_to 'Create new project', new_project_path %>

Remove the note at the top of the project list


  <%= page_title "Projects" %>

        <button id="all" class="btn btn-primary">All</button>
        <button id="current-projects" class="btn btn-default js-filter">Current</button>
        <button id="past-projects" class="btn btn-default js-filter">Past</button>

      <% @project_categories.each do |category| %>
        <button id="<%= category.slug %>" class="btn btn-default js-filter">
          <%= category.name %>
        </button>
      <% end %>

<%= render @projects %>

<% if current_tenant == current_user %>
<%= link_to "New Project", new_project_path, :class => 'btn btn-primary' if user_signed_in? %>
<% end %>

  <%= page_title "Projects" %>

    <button id="all" class="btn btn-primary">All</button>
    <button id="current-projects" class="btn btn-default js-filter">Current</button>
    <button id="past-projects" class="btn btn-default js-filter">Past</button>

    <% @project_categories.each do |category| %>
      <button id="<%= category.slug %>" class="btn btn-default js-filter">
        <%= category.name %>
      </button>
    <% end %>

  <% if user_signed_in? and current_tenant == current_user %>

    <%= link_to new_project_path, class: 'btn btn-primary btn-sm' do %>
      <%= icon 'plus', 'Add' %>
    <% end %>
    <button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" aria-expanded="false">

      Toggle Dropdown
    </button>

<%= link_to "New Project", new_project_path %>

<%= link_to "New Project Category", new_project_category_path %>

  <% end %>

<%= render @projects %>

Move add project button to project button toolbar. add link to add project category.

Signed-off-by: Max Fierke <0706025b2bbcec1ed8d64822f4eccd96314938d0@maxfierke.com>


<%= @proposal.title %>,
      by <%= link_to @proposal.speaker.name, speaker_path(@proposal.speaker) %>

       <% @proposal.tag_list.each do |tag| %>
         #<%= tag %>
       <% end %>

<%= markdown(@proposal.body) %>

    <%= link_to 'Edit proposal', edit_proposal_path(@proposal) %>

Submissions

    <% @proposal.submissions.each do |submission| %>

      <%= link_to submission.event_instance.name_and_year, submission.event_instance %> -
      <%= submission.result.capitalize %>
      <%= link_to '[Edit]', edit_submission_path(submission), id: 'edit-submission' %>

    <% end %>
    <%= link_to 'Add submission', new_submission_path(proposal: @proposal.id) %>

<%= @proposal.title %>,
      by <%= link_to @proposal.speaker.name, speaker_path(@proposal.speaker) %>

       <% @proposal.tag_list.each do |tag| %>
         #<%= tag.gsub(" ", "") %>
       <% end %>

<%= markdown(@proposal.body) %>

    <%= link_to 'Edit proposal', edit_proposal_path(@proposal) %>

Submissions

    <% @proposal.submissions.each do |submission| %>

      <%= link_to submission.event_instance.name_and_year, submission.event_instance %> -
      <%= submission.result.capitalize %>
      <%= link_to '[Edit]', edit_submission_path(submission), id: 'edit-submission' %>

    <% end %>
    <%= link_to 'Add submission', new_submission_path(proposal: @proposal.id) %>

Remove all whitespace from tags with multiple words


ALL RIGHTS RESERVED. VidEdu © SFSU, CSC 667 Internet Application Design and Development

View Documentation

COPYRIGHT © VIDEDU, ALL RIGHTS RESERVED

View Documentation

Update copyright text from footer

Update copyright text from footer


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

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

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

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

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

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

      Adicionar questão
    </button>

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

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

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

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

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

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

    <a href="<%= new_exercise_question_path(@exercise) %>" class="btn btn-primary pull-right">

      Adicionar questão

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

Add href to 'add question' button

Add href to 'add question' button


<%= render @question %>
<%= render "votes/vote_count", :object => @question%>
<%= render "votes/questions_vote_form", :object => @question, :vote => @vote %>
<%= link_to "comment", new_question_response_path(@question) %>
<% if @question.responses %>
  <%= render :partial => "responses/response", :collection => @question.responses %>
<% end %>
<%= render "answers/answer_form.html", :question => @question %>

<% @question.sorted_answers.each do |answer| %>
  <% if @question.best_answer_id == answer.id %>
    <%= render "answers/best_answer_identifier" %>

  <% end %>
  <%= render answer %>
  <% if @question.best_answer_id == nil && @question.asker_id == current_user.id %>
    <%= render "answers/best_answer_form", :answer => answer %>

  <% end %>

<% end %>

<%= render @question %>
<%= render "votes/vote_count", :object => @question%>
<%= render "votes/vote_form", :object => @question, :vote => @vote %>
<%= link_to "comment", new_question_response_path(@question) %>
<% if @question.responses %>
  <%= render :partial => "responses/response", :collection => @question.responses %>
<% end %>
<%= render "answers/answer_form.html", :question => @question %>

<% @question.sorted_answers.each do |answer| %>
  <% if @question.best_answer_id == answer.id %>
    <%= render "answers/best_answer_identifier" %>

  <% end %>
  <%= render answer %>
  <% if @question.best_answer_id == nil && @question.asker_id == current_user.id %>
    <%= render "answers/best_answer_form", :answer => answer %>

  <% end %>

<% end %>

Update questions/show view with updated name of partial vote form


<% @show_tabs = (promoter? || administrator? || official?) -%>

<%= @person.name %>

  <% if @person.versions.empty? %>
    No other versions
  <% end -%>

<%= render :partial => "version", :collection => @person.versions.sort_by(&:updated_at).reverse %>

      <%= render :partial => "people/created_updated" %>

    <%= link_to("Edit Account", edit_admin_person_path(@person), :class => "obvious") if administrator? %>
    <%= link_to("Edit Account", edit_person_path(@person), :class => "obvious") unless administrator? %>

<% @show_tabs = (promoter? || administrator? || official?) -%>

<%= @person.name %>

  <% if @person.versions.empty? %>
    No other versions
  <% end -%>

<%= render :partial => "version", :collection => @person.versions.sort_by(&:updated_at).reverse %>

    <%= link_to("Edit Account", edit_admin_person_path(@person), :class => "obvious") if administrator? %>
    <%= link_to("Edit Account", edit_person_path(@person), :class => "obvious") unless administrator? %>

<%= render :partial => "people/created_updated" %>

Fix bad HTML on versions footer

Fix bad HTML on versions footer


<%= link_to image_tag('facebook.png', alt: 'Facebook logo'), '#' %>

<%= link_to image_tag('divider.png', alt: 'Logo divider'), '#' %>

<%= link_to image_tag('twitter.png', alt: 'Twitter logo'), '#' %>

<%= link_to image_tag('divider.png', alt: 'Logo divider'), '#' %>

<%= link_to image_tag('anchorlink.png', alt: 'Anchor Link logo'), '#' %>

Copyright © 2013 Vanderbilt Performing Arts Council

<%= link_to image_tag('facebook.png', alt: 'Facebook logo'),
                            'https://www.facebook.com/VanderbiltPerformingArtsCouncil', target: '_blank' %>

<%= link_to image_tag('divider.png', alt: 'Logo divider'), '#' %>

<%= link_to image_tag('twitter.png', alt: 'Twitter logo'), '#' %>

<%= link_to image_tag('divider.png', alt: 'Logo divider'), '#' %>

<%= link_to image_tag('anchorlink.png', alt: 'Anchor Link logo'),
                            'https://anchorlink.vanderbilt.edu/organization/vpac', target: '_blank' %>

Copyright © 2013 Vanderbilt Performing Arts Council

Add Facebook and Anchor Link links to footer.


<% content_for :page_actions do %>

    <%= link_to I18n.t('spree.add_volume_price'), 'javascript:;', {
        :'data-target' => 'tbody#volume_prices',
        class: 'btn btn-primary spree_add_fields',
        id: 'add_volume_price'
      } %>

<% end %>

<%= I18n.t('spree.volume_prices') %>

      <%= I18n.t('spree.name') %>
      <%= I18n.t('spree.discount_type') %>
      <%= I18n.t('spree.range') %>
      <%= I18n.t('spree.amount') %>
      <%= I18n.t('spree.position') %>
      <%= I18n.t('spree.role') %>

    <%= f.fields_for :volume_prices do |vp_form| %>
      <%= render partial: 'spree/admin/volume_prices/volume_price_fields', locals: { f: vp_form } %>
    <% end %>

<%= I18n.t('spree.volume_prices') %>

      <%= I18n.t('spree.name') %>
      <%= I18n.t('spree.discount_type') %>
      <%= I18n.t('spree.range') %>
      <%= I18n.t('spree.amount') %>
      <%= I18n.t('spree.position') %>
      <%= I18n.t('spree.role') %>

    <%= f.fields_for :volume_prices do |vp_form| %>
      <%= render partial: 'spree/admin/volume_prices/volume_price_fields', locals: { f: vp_form } %>
    <% end %>

  <%= link_to t(:add_volume_price, scope: :spree), 'javascript:;', {
    data: { target: 'tbody#volume_prices' },
    class: 'btn btn-primary spree_add_fields',
    id: 'add_volume_price'
  } %>

Move the "Add volume price button" below the table


<!DOCTYPE html>

    <title>HyperAdmin</title>

    <%= stylesheet_link_tag "//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" %>
    <%= stylesheet_link_tag    "hyper_admin/application", media: :all %>
    <%= javascript_include_tag "hyper_admin/application" %>

    <%= csrf_meta_tags %>

          Admin

            <% @resource_classes.each do |resource_class| %>
              <li class="<%= "active" if params[:controller] == "admin/#{resource_class.model_name.plural}" %>">
                <%= link_to resource_class.model_name.human(count: 2), [ :admin, resource_class ] %>

            <% end %>

          <% flash.each do |kind, message| %>
            <aside class="alert alert-<%= kind %>">
              <%= message %>

          <% end %>

      <ui-view></ui-view>

Use "controller as" syntax for MainCtrl in layout


// This file only makes sense in the context of the main platform.
<% asset_root = DC.cdn_root(:agnostic => true) %>
(function(){

  var ENV = window.ENV        = window.ENV || {};
  ENV.config                  = ENV.config || {};
  ENV.config.embed            = ENV.config.embed || {};
  ENV.config.embed.assetPaths = ENV.config.embed.assetPaths || {};

  ENV.config.embed.assetPaths.page = {
    style: "<%= asset_root %>/embed/page/page_embed.css",
    app:   "<%= asset_root %>/embed/page/page_embed.js"
  };

})();

Remove some whitespace/commenting from config file


 Home

 Tickets

	  <% current_user %>

	  <% if @user.nil? %>

  			<a href="/sign_in"  Sign in with GitHub

	  <% else %>

<a href="/users/<%= @user.id %>">Profile

<a id="log_out_button" href="/users/<%= @user.id %>" > Log Out

  	<% end %>

 Home

 Tickets

	  <% current_user %>

	  <% if @user.nil? %>

  			<a href="/sign_in"  Sign in with Twitter

	  <% else %>

<a href="/users/<%= @user.id %>">Profile

<a id="log_out_button" href="/users/<%= @user.id %>" > Log Out

  	<% end %>

Change Github Header to Twitter

Change Github Header to Twitter


ogr2ogr -skipfailures
-f "FileGDB"
<%= file_name %>
PG:"host=<%= db_config[:host] %>
  user=<%= db_config[:username] %>
  <% unless db_config[:password].nil? %>
    password=<%= db_config[:password] %>
  <% end %>
  dbname=<%= db_config[:database] %>"
-sql "<%= query %>"
-nlt "<%= geom_type.upcase %>"
-nln "<%= file_name.split('.').first %>"

Use custom layer name for gdb exports

Use custom layer name for gdb exports


input {
  file {
    type => "datainsight-<%= @title %>-collector-app"
    path => "/data/vhost/${vhost_full}/shared/log/*.log"
  }
}

input {
  file {
    type => "datainsight-<%= @title %>-collector-app"
    path => "/data/vhost/<%= @vhost_full %>/shared/log/*.log"
  }
}

Correct ERB in datainsight collector logstash.


Vítejte v Cyclescape!

Děkujeme vám za potvrzení vašich e-mailovou adresu - váš účet je nyní aktivován.

1) Nastavte na mapě umístění relevantních pro vás, takže jste přihlásili k odběru místních záležitostí:
   <%= current_user_locations_url %>

2) E-mail: Chtěli byste dostávat diskusi e-mailem?
   <%= current_user_prefs_edit_url %>

3) se připojili k vaší místní skupiny Cyclescape Skupina:
   <%= groups_url %>

4) Vyberte si předplatné preference:
   <%= current_user_prefs_edit_url %>

Máte-li jakékoli dotazy, použijete odkaz zpětné vazby v horní části kterékoli stránky.

Cyclescape,
Vytvořil CycleStreets

Add (probably badly-translated) Czech new user confirmed e-mail


<%= form_for :question, url: {action: "create" } do |f| %>
  <%= f.text_field :title, placeholder: 'Title' %>

  <%= f.text_area :content, placeholder: 'Content' %>

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

<input type="text">

<%= form_for :question, url: {action: "create" }, html: {class: "question_form"} do |f| %>

		<%= f.label :title %>

  	<%= f.text_field :title, placeholder: 'Topic' %>

		<%= f.label :content %>

	  <%= f.text_area :content, placeholder: 'Details', size: "60x10"%>

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

<input type="text">

Add Labels to Form For Testing and Input Areas


  <%= image_tag 'alchemy/alchemy-logo.svg', id: 'logo' %>
  <%= alchemy_form_for :user, url: {action: 'create'}, id: 'login' do |f| %>
    <%= f.input Devise.authentication_keys.first, autofocus: true %>
    <%= f.input :password %>

      <%= link_to Alchemy.t('Forgot your password?'), new_password_path %>

      <%= hidden_field_tag 'user_screensize' %>
      <button><%= Alchemy.t(:login) %></button>

  <% end %>

<%- content_for :javascripts do -%>

<%- end -%>

Update login screen password link

Update login screen password link


<%# add navigation links to this file %>
<% if user_signed_in? %>

<%= link_to 'Edit account', edit_user_registration_path %>

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

<% else %>

<%= link_to 'Login', new_user_session_path %>

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

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

<%= link_to 'Users', users_path %>

  <% end %>
<% end %>

<%# add navigation links to this file %>

<%= link_to 'Scenarios', scenarios_path %>

<%= link_to 'Clouds', clouds_path %>

<%= link_to 'Subnets', subnets_path %>

<%= link_to 'Instances', instances_path %>

<%= link_to 'Groups', groups_path %>

<%= link_to 'Players', players_path %>

<%= link_to 'Roles', roles_path %>

Set nav links to list everything

Set nav links to list everything


<% if product_pictures.empty? %>

  <%= t('stizun.product.no_picture') %>

<% else %>
  <% if product_pictures.main.empty? %>
    <%= image_tag product_pictures.first.file.url(:medium) %>
  <% else %>
    <%= image_tag product_pictures.main.first.file.url(:medium) %>
  <% end %>

  <% product_pictures[0..3].each do |pp| %>

    <%= image_tag pp.file.url(:thumb), :style => 'float: left' %>

  <% end %>

<% end %>

<% if product_pictures.empty? %>

  <%= t('stizun.product.no_picture') %>

<% else %>
  <% if product_pictures.main.empty? %>
    <%= image_tag product_pictures.first.file.url(:medium) %>
  <% else %>
    <%= image_tag product_pictures.main.first.file.url(:medium) %>
  <% end %>

  <% (product_pictures - product_pictures.main)[0..3].each do |pp| %>

    <%= image_tag pp.file.url(:thumb), :style => 'float: left' %>

  <% end %>

<% end %>

Exclude the main picture from the thumbnail list.


<!DOCTYPE html>
<html>
  <head>
    <title>Watch your memory grow!</title>
    <link href="/app.css" type="text/css" rel="stylesheet" media="screen">
    <script src="/app.js" type="text/javascript"></script>
    <script src="/d3.js" type="text/javascript"></script>
  </head>
  <body>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <title>Watch your memory grow!</title>
    <link href="/app.css" type="text/css" rel="stylesheet" media="screen">
    <script src="/components/jquery/jquery.min.js" type="text/javascript"></script>
    <script src="/components/d3/d3.min.js" type="text/javascript"></script>
    <script src="/app.js" type="text/javascript"></script>
  </head>
  <body>
  </body>
</html>

Use d3 and jquery from bower.

Use d3 and jquery from bower.


[runner_gitlab-runner]
name=runner_gitlab-runner
baseurl=https://packages.gitlab.com/runner/gitlab-runner/el/<%= @facts['os']['release']['major'] %>/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/runner/gitlab-runner/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
exclude=gitlab-runner

[runner_gitlab-runner-source]
name=runner_gitlab-runner-source
baseurl=https://packages.gitlab.com/runner/gitlab-runner/el/<%= @facts['os']['release']['major'] %>/SRPMS
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/runner/gitlab-runner/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
exclude=gitlab-runner

[runner_gitlab-runner]
name=runner_gitlab-runner
baseurl=https://packages.gitlab.com/runner/gitlab-runner/el/<%= @facts['os']['release']['major'] %>/$basearch
repo_gpgcheck=1
gpgcheck=1
enabled=1
gpgkey=https://packages.gitlab.com/runner/gitlab-runner/gpgkey
       https://packages.gitlab.com/runner/gitlab-runner/gpgkey/runner-gitlab-runner-366915F31B487241.pub.gpg
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300

Remove source from runner_gitlab_runner repo and enable gpgcheck check


---
- job:
    name: send-bulk-email
    display-name: Send bulk email
    project-type: freestyle
    description: "Send a bulk email to a number of subscriber lists."
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    builders:
      - shell: |
          #!/usr/bin/env bash

          hostname=$(govuk_node_list -c email_alert_api --single-node)
          command="cd /var/apps/email-alert-api && govuk_setenv email-alert-api bundle exec rake \"bulk:email[$SUBSCRIBER_LIST_IDS]\""

          echo "Running $command on $hostname"

          ssh deploy@$hostname "export SUBJECT=\"$SUBJECT\" && export BODY=\"$BODY\" && $command"
    wrappers:
      - ansicolor:
          colormap: xterm
    parameters:
      - string:
          name: SUBJECT
          description: The subject of the email
      - text:
          name: BODY
          description: The body of the email
      - string:
          name: SUBSCRIBER_LIST_IDS
          description: The IDs of the subscriber lists to send the email to

---
- job:
    name: send-bulk-email
    display-name: Send bulk email
    project-type: freestyle
    description: "Send a bulk email to a number of subscriber lists."
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    builders:
      - shell: |
          #!/usr/bin/env bash

          hostname=$(govuk_node_list -c email_alert_api --single-node)
          command="cd /var/apps/email-alert-api && govuk_setenv email-alert-api bundle exec rake \"bulk_email:for_lists[$SUBSCRIBER_LIST_IDS]\""

          echo "Running $command on $hostname"

          ssh deploy@$hostname "export SUBJECT=\"$SUBJECT\" && export BODY=\"$BODY\" && $command"
    wrappers:
      - ansicolor:
          colormap: xterm
    parameters:
      - string:
          name: SUBJECT
          description: The subject of the email
      - text:
          name: BODY
          description: The body of the email
      - string:
          name: SUBSCRIBER_LIST_IDS
          description: The IDs of the subscriber lists to send the email to

Update task namespaces for Email Alert API

Relates to: https://github.com/alphagov/email-alert-api/pull/1371


# Wait Step

<%= toc %>

A *wait* step waits for all previous steps to have successfully completed before allowing following jobs to continue.

<%= image "wait-step.png", width: 1070/2, height: 508/2, alt: "Screenshot of a basic wait step" %>

A basic wait step can be defined in your pipeline settings, or in your [pipeline.yml](/docs/pipelines/uploading-pipelines) file. It can be placed between steps to ensure that previous steps are successful before continuing to run the rest.

```yml
- command: "command.sh"
- wait
- command: "echo The command passed"
```

You can also configure the *wait* step to wait for all previous steps to have completed, even if there are failures. Here is the syntax for that:
```yml
- command: "command.sh"
- wait: ~
  continue_on_failure: true
- command: "echo The command may or may not have passed"
```

Document the option to continue on fail

Document the option to continue on fail


location ~ ^/government/(assets|uploads|placeholder$)/ {
  proxy_set_header Host <%= @whitehall_frontend_host %>;
  proxy_set_header X-Real-IP \$remote_addr>;
  proxy_set_header X-Forwarded-Server \$host;
  proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Host \$host;
  proxy_pass http://<%= @whitehall_frontend_host %>;

  # Explicitly re-include Strict-Transport-Security header, thus clearing
  # the Cache-Control headers set in the parent server directive.
  include /etc/nginx/sts.conf;
}

location ~ /media/ {
  proxy_set_header Host <%= @asset_manager_host %>;
  proxy_set_header X-Real-IP \$remote_addr>;
  proxy_set_header X-Forwarded-Server \$host;
  proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Host \$host;
  proxy_pass http://<%= @asset_manager_host %>;
}

location ~ ^/government/(assets|uploads|placeholder$)/ {
  proxy_set_header Host <%= @whitehall_frontend_host %>;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-Server $host;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Host $host;
  proxy_pass http://<%= @whitehall_frontend_host %>;

  # Explicitly re-include Strict-Transport-Security header, thus clearing
  # the Cache-Control headers set in the parent server directive.
  include /etc/nginx/sts.conf;
}

location ~ /media/ {
  proxy_set_header Host <%= @asset_manager_host %>;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-Server $host;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Host $host;
  proxy_pass http://<%= @asset_manager_host %>;
}

Remove escape characters from template

Remove escape characters from template

These characters were only needed when interpolating strings within a
Puppet file. They're not necessary when using an ERB template.


# Generated by Puppet
LoadPlugin network

<Plugin network>
<% if @server -%>
  <Server "<%= @server %>" "<%= @serverport %>">
<% if @server_securitylevel -%>
    SecurityLevel <%= @server_securitylevel %>
<% end -%>
<% if @server_username -%>
    Username <%= @server_username %>
<% end -%>
<% if @server_password -%>
    Password <%= @server_password %>
<% end -%>
<% if @server_interface -%>
    Interface <%= @server_interface %>
<% end -%>
  </Server>
<% end -%>
<% if @listen -%>
  <Listen "<%= @listen %>" "<%= @listenport %>">
<% if @listen_securitylevel -%>
    SecurityLevel <%= @listen_securitylevel %>
<% end -%>
<% if @listen_authfile -%>
    AuthFile <%= @listen_authfile %>
<% end -%>
<% if @listen_interface -%>
    Interface <%= @listen_interface %>
<% end -%>
  </Listen>
<% end -%>
<% if @timetolive -%>
  TimeToLive <%= @timetolive %>
<% end -%>
<% if @maxpacketsize -%>
  MaxPacketSize <%= @maxpacketsize %>
<% end -%>
<% if @forward -%>
  Forward <%= @forward %>
<% end -%>
<% if @reportstats -%>
  ReportStats <%= @reportstats %>
<% end -%>
</Plugin>

# Generated by Puppet
LoadPlugin network

<Plugin network>
<% if @server -%>
  <Server "<%= @server %>" "<%= @serverport %>">
<% if @server_securitylevel -%>
    SecurityLevel "<%= @server_securitylevel %>"
<% end -%>
<% if @server_username -%>
    Username "<%= @server_username %>"
<% end -%>
<% if @server_password -%>
    Password "<%= @server_password %>"
<% end -%>
<% if @server_interface -%>
    Interface "<%= @server_interface %>"
<% end -%>
  </Server>
<% end -%>
<% if @listen -%>
  <Listen "<%= @listen %>" "<%= @listenport %>">
<% if @listen_securitylevel -%>
    SecurityLevel "<%= @listen_securitylevel %>"
<% end -%>
<% if @listen_authfile -%>
    AuthFile "<%= @listen_authfile %>"
<% end -%>
<% if @listen_interface -%>
    Interface "<%= @listen_interface %>"
<% end -%>
  </Listen>
<% end -%>
<% if @timetolive -%>
  TimeToLive <%= @timetolive %>
<% end -%>
<% if @maxpacketsize -%>
  MaxPacketSize <%= @maxpacketsize %>
<% end -%>
<% if @forward -%>
  Forward "<%= @forward %>"
<% end -%>
<% if @reportstats -%>
  ReportStats "<%= @reportstats %>"
<% end -%>
</Plugin>

Add quotes for string values in network plugin


<div class='join-leave-button require-login-popup'>
  <% if logged_in? %>
    <% if profile.already_request_membership? user %>
      <%= _('Your membership is waiting for approval') %>
    <% else %>
      <% if user.in? profile.members %>
        <%= button :delete, content_tag('span', _('Leave community')), profile.leave_url,
          class: 'leave-community',
          style: 'position: relative;' %>
        <%= button :add, content_tag('span', _('Join this community')), profile.join_url,
          class: 'join-community',
          style: 'position: relative; display: none;' %>
      <% else %>
        <%= button :add, _('Join this community'), profile.join_url %>
      <% end %>
    <% end %>
  <% else %>
    <%= button :add, _('Join this community'), profile.join_not_logged_url %>
  <% end %>
</div>

<%= javascript_tag do %>
  noosfero.add_and_join.locales.leaveConfirmation = <%= (_("Please confirm to leave the community '%{name}'") % {name: profile.name}).to_json %>
<% end %>

<div class='join-leave-button require-login-popup'>
  <% if logged_in? %>
    <% if profile.already_request_membership? user %>
      <%= _('Your membership is waiting for approval') %>
    <% else %>
      <% if user.in? profile.members %>
        <%= button :delete, content_tag('span', _('Leave community')), profile.leave_url,
          class: 'leave-community',
          style: 'position: relative;' %>
        <%= button :add, content_tag('span', _('Join this community')), profile.join_url,
          class: 'join-community',
          style: 'position: relative; display: none;' %>
      <% else %>
        <%= button :add, _('Join this community'), profile.join_url, class: 'join-community' %>
      <% end %>
    <% end %>
  <% else %>
    <%= button :add, _('Join this community'), profile.join_not_logged_url %>
  <% end %>
</div>

<%= javascript_tag do %>
  noosfero.add_and_join.locales.leaveConfirmation = <%= (_("Please confirm to leave the community '%{name}'") % {name: profile.name}).to_json %>
<% end %>

Add missing class in join community button


  <%= link_to reimagine_root_url(path: "/software"),
        class: "main-link",
        data: { role: "discover" } do %>
    Projects
  <% end %>

  <%= link_to reimagine_root_url(path: "/hackathons"),
        class: "main-link",
        data: { role: "discover" } do %>
    Hackathons
  <% end %>

  <%= link_to reimagine_root_url(path: "/teams"),
        class: "main-link",
        data: { role: "teams" } do %>
    Teams nyc
  <% end %>

  <%= link_to reimagine_root_url(path: "/software"),
        class: "main-link",
        data: { role: "discover" } do %>
    Projects
  <% end %>

  <%= link_to reimagine_root_url(path: "/hackathons"),
        class: "main-link",
        data: { role: "discover" } do %>
    Hackathons
  <% end %>

  <%= link_to reimagine_root_url(path: "/teams"),
        class: "main-link",
        data: { role: "teams" } do %>
    Jobs nyc
  <% end %>

Change teams to jobs in global nav.

Change teams to jobs in global nav.


<%= @trip.name %>

<%= @tip.name %>

  <%= form_tag("/users/#{@user.id}/trips/#{@trip.id}/tips/#{@tip.id}", method: "put", class: "large-modal") do %>

<%= @tip.address %>

Google+ Rating: <%= @tip.g_rating %>

      <%= format_rating %>
      <% if user_owned %>
        <%= select_tag "tip[rating]", options_for_select(['0','1','2','3','4','5'], selected: @tip.rating.to_s, class: 'rating') %>
      <% else %>
        <%= @tip.rating.to_s %>
      <% end %>

      Comment:

      <%= text_area_tag(:message, format_comment , size: "50x10", name: 'tip[comment]', placeholder: "Enter a comment!") %>

    <% if user_owned %>
      <%= submit_tag("Update") %>
      Updated!
    <% end %>
  <% end %>

<%= @trip.name %>

<%= @tip.name %>

  <%= form_tag("/users/#{@user.id}/trips/#{@trip.id}/tips/#{@tip.id}", method: "put", class: "large-modal") do %>

<%= @tip.address %>

Google+ Rating: <%= @tip.g_rating %>

      <%= format_rating %>
      <% if user_owned %>
        <%= select_tag "tip[rating]", options_for_select(['0','1','2','3','4','5'], selected: @tip.rating.to_s, class: 'rating') %>
      <% else %>
        <%= @tip.rating.to_s %>
      <% end %>

      Comment:

    <% if user_owned %>
      <%= text_area_tag(:message, format_comment , size: "50x10", name: 'tip[comment]', placeholder: "Enter a comment!") %>

      <%= submit_tag("Update") %>
      Updated!
    <% else %>

<%=@tip.comment%>

    <% end %>
  <% end %>

Make comment in <p> when viewing friends' tips


<%= form_for(@question) do |f| %>
  <%= f.label :title %>
  <%= f.text_field :title %>
  <%= f.label :content %>
  <%= f.text_area :content %>
  <%= f.submit "Edit Question" %>
<% end %>

Edit your question:

    <%= form_for(@question) do |f| %>
      <%= f.label :title %>
      <%= f.text_field :title %>
      <%= f.label :content %>
      <%= f.text_area :content %>
      <%= f.submit "Edit Question", class: 'small button' %>
    <% end %>

Add styling to question edit view

Add styling to question edit view


Format page to have proper rows and columns


<%= content_for :breadcrumbs do %>
  <%= breadcrumbs_for_my_account %>
<% end %>

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

    <%= render partial: 'activity_indicator',
               locals: {
                 title: t(:exercises),
                 stats: exercises_activity_stats
               } %>

    <%= render partial: 'activity_indicator',
               locals: {
                 title: t(:forum),
                 stats: messages_activity_stats
               } %>

      <li <%= mark_period_if_active nil %>>
        <%= link_to t(:total), activity_user_path %>

      <% activity_selector_week_range_for.each do |(week_start, week_end)| %>
        <li <%= mark_period_if_active week_start %>>
          <%= link_to t(:week_of, date: l(week_start)), activity_user_path(date_from: week_start, date_to: week_end) %>

      <% end %>

<%= content_for :breadcrumbs do %>
  <%= breadcrumbs_for_my_account %>
<% end %>

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

<%= t(:activity) %>

    <%= render partial: 'activity_indicator',
               locals: {
                 title: t(:exercises),
                 stats: exercises_activity_stats
               } %>

    <%= render partial: 'activity_indicator',
               locals: {
                 title: t(:forum),
                 stats: messages_activity_stats
               } %>

      <li <%= mark_period_if_active nil %>>
        <%= link_to t(:total), activity_user_path %>

      <% activity_selector_week_range_for.each do |(week_start, week_end)| %>
        <li <%= mark_period_if_active week_start %>>
          <%= link_to t(:week_of, date: l(week_start)), activity_user_path(date_from: week_start, date_to: week_end) %>

      <% end %>

Add title to Activity view and change layout size


<% flash.each do |level, text| %>
  <div class="<%= flash_class(level) %> fade in">
    ×
    <%= text %>

    <% if [:alert, :error].include?(level) %>
      <%= mail_to JUMU_ADMIN_EMAIL, "Warum?", subject: "Meldung \"#{text}\"" %>
    <% end %>

<% end %>

<% flash.each do |level, text| %>
  <div class="<%= flash_class(level) %> fade in">
    ×
    <%= text %>

    <% if [:alert, :error].include?(level) %>
      <%= mail_to JUMU_ADMIN_EMAIL, "Was heißt das?", subject: "Meldung \"#{text}\"" %>
    <% end %>

<% end %>

Reword help link in warnings an errors

Reword help link in warnings an errors