<%= javascript_include_tag "jquery" %>
<%= javascript_include_tag "rails" %>
<%= javascript_include_tag "jquery-ui" %>
<%= javascript_include_tag "jquery.jeditable" %>
<%= javascript_include_tag "application" %>
<%= javascript_include_tag "widgets/tooltip" %>
<%= javascript_include_tag "tabs" %>
<%= yield :javascript_include_tag %>
<script type="text/javascript" charset="utf-8">
  $(document).ready(function() {
    <%= yield :javascript -%>
  });
</script>

<%= javascript_include_tag "jquery" %>
<%= javascript_include_tag "rails" %>
<%= javascript_include_tag "jquery-ui" %>
<%= javascript_include_tag "jquery.jeditable" %>
<%= javascript_include_tag "application" %>
<%= javascript_include_tag "tabs" %>
<%= yield :javascript_include_tag %>
<script type="text/javascript" charset="utf-8">
  $(document).ready(function() {
    <%= yield :javascript -%>
  });
</script>

Remove widgets JS by default

Remove widgets JS by default


    Results

      <% if flash[:alert].present?  %>

<%= alert %>

      <% end %>

      <form accept-charset="UTF-8" action="/results" class="ng-pristine ng-valid" method="post">

          Username
          <input type="text" class="form-control" name="username" placeholder="Enter username">

          Password
          <input type="password" class="form-control" name="password" placeholder="Password">

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

    Results

      <% if flash[:alert].present?  %>

<%= alert %>

      <% end %>

      <form accept-charset="UTF-8" action="/results" class="ng-pristine ng-valid" method="post" autocomplete="off">

          Username
          <input type="text" class="form-control" name="username" placeholder="Enter username" autocomplete="off">

          Password
          <input class="form-control" name="password" placeholder="Password" autocomplete="off">

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

Fix online results to prevent browsers from auto completing form


<style type="text/css">

  div.custom-message p, div.followup p {
    margin-top: 1em;
    margin-bottom: 1em;
  }

  div.reservationCard {
    background-color: #eeeeaa;
    color: #000000;
    padding: 1em;
    margin-bottom: 1em;
  }

  div.reservationCard h2 {
    font-family: Palatino, serif;
    font-style: italic;
    text-align: center;
    margin-top: 0px;
    font-size: 200%;
    font-weight: bold;
  }

  div.reservationCard dd {
    padding-bottom: 0.5em;
  }

  div.reservationContainer {
    margin-top: 1em;
    margin-left: 0.1em;
    margin-right: 0.1em;
  }

  div.reservationContainer input {
    width: 100%;
    height: 3em;
    color: white;
    font-weight: bold;
    margin-bottom: 1em;
    font-size: 1em;
    font-weight: bold;
    border: 3px outset black;
    cursor: pointer;
  }

  dd.topic-description p {
    margin-bottom: 1em;
  }

</style>

<style type="text/css">

  div.custom-message p, div.followup p {
    margin-top: 1em;
    margin-bottom: 1em;
  }

  div.reservationCard {
    color: #000000;
    padding: 1em;
    margin-bottom: 1em;
  }

  div.reservationCard h2 {
    background-color: #eeeeaa;
    font-family: Palatino, serif;
    font-style: italic;
    text-align: center;
    margin-top: 0px;
    font-size: 200%;
    font-weight: bold;
  }

  div.reservationCard dd {
    padding-bottom: 0.5em;
  }

  div.reservationContainer {
    margin-top: 1em;
    margin-left: 0.1em;
    margin-right: 0.1em;
  }

  div.reservationContainer input {
    width: 100%;
    height: 3em;
    color: white;
    font-weight: bold;
    margin-bottom: 1em;
    font-size: 1em;
    font-weight: bold;
    border: 3px outset black;
    cursor: pointer;
  }

  dd.topic-description p {
    margin-bottom: 1em;
  }

</style>

Remove email body background color, only apply to header line


<% if params[:flash] %>
  flash("<%= t("flash.admin.actions.#{action_name}.notice", resource_name: resource_class.model_name.human(count: 1)) %>")
<% end %>

<% unless params[:modal] %>
  <%
    form_wrap_id = dom_id(resource, 'list_edit')
    html = render('table', collection: [resource]).match(/<tbody>(.*)<\/tbody>/m)[1].html_safe
  %>
  $('#<%= form_wrap_id %>').remove();
  $('#<%= dom_id(resource, 'list') %>').replaceWith('<%= j html %>');
  var $el = $('#<%= dom_id(resource, 'list') %>');
  $(document).trigger('admin:list_init');
  if (!$el[0].className) $el.addClass('success');
  $el.scrollToEl();
<% end %>

window.ab_admin_last_updated = <%= raw resource.for_input_token.to_json %>;

<% if params[:flash] %>
  flash("<%= t("flash.admin.actions.#{action_name}.notice", resource_name: resource_class.model_name.human(count: 1)) %>")
<% end %>

<% unless params[:modal] %>
  <%
    form_wrap_id = dom_id(resource, 'list_edit')
    html = render('table', collection: [resource]).match(/<tbody>(.*)<\/tbody>/m)[1].html_safe
  %>
  $('#<%= form_wrap_id %>').remove();
  $('#<%= dom_id(resource, 'list') %>').replaceWith('<%= j html %>');
  var $el = $('#<%= dom_id(resource, 'list') %>');
  $(document).trigger('admin:list_init');
  if (!$el[0].className) $el.addClass('success');
//  $el.scrollToEl();
<% end %>

window.ab_admin_last_updated = <%= raw resource.for_input_token.to_json %>;

Disable scroll to record in list edit mode


require 'airplay'

Gem::Specification.new do |s|
  s.name              = "airplay"
  s.version           = Airplay.VERSION
  s.summary           = ""
  s.description       = ""
  s.authors           = ["elcuervo"]
  s.email             = ["yo@brunoaguirre.com"]
  s.homepage          = "http://github.com/elcuervo/airplay"
  s.files = <%= Dir[
    "LICENSE",
    "README*",
    "lib/**/*.rb"
  ].inspect %>
  s.add_dependency("dnssd")
  s.add_development_dependency("cutest")
end

require 'airplay'

Gem::Specification.new do |s|
  s.name              = "airplay"
  s.version           = Airplay.VERSION
  s.summary           = ""
  s.description       = ""
  s.authors           = ["elcuervo"]
  s.email             = ["yo@brunoaguirre.com"]
  s.homepage          = "http://github.com/elcuervo/airplay"
  s.files = <%= Dir[
    "LICENSE",
    "README*",
    "lib/**/*.rb"
  ].inspect %>
  s.add_dependency("dnssd")
  s.add_development_dependency("cutest")
  s.add_development_dependency("capybara")
end

Add capybara as a dependency

Add capybara as a dependency


#!/bin/bash

log_file=/var/vcap/sys/log/revok/drain.log

# Redirect stdout/stderr to logs, Redirect 3 to Stdout
exec 3>&1
exec 1>> $log_file
exec 2>> $log_file

pid=$(/var/vcap/packages/bpm/bin/bpm pid revok)

# Signal Revok Worker
kill $pid

# Wait 3 mins for Revok Worker to Exit
counter=0
maximum=35

while ps $pid; do
  if [ $counter -ge $maximum ]; then
    echo "0" >&3
    exit 0
  fi

  sleep 5
  counter=$(( $counter + 1 ))
done

echo "0" >&3
exit 0

#!/bin/bash

log_file=/var/vcap/sys/log/revok/drain.log

# Redirect stdout/stderr to logs, Redirect 3 to Stdout
exec 3>&1
exec 1>> $log_file
exec 2>> $log_file

pid=$(/var/vcap/jobs/bpm/bin/bpm pid revok)

# Signal Revok Worker
kill $pid

# Wait 3 mins for Revok Worker to Exit
counter=0
maximum=35

while ps $pid; do
  if [ $counter -ge $maximum ]; then
    echo "0" >&3
    exit 0
  fi

  sleep 5
  counter=$(( $counter + 1 ))
done

echo "0" >&3
exit 0

Use bpm from the jobs directory

Use bpm from the jobs directory

This is correct location to use the `bpm` binary from.

[finishes #150345112]


<div id="project_<%= project.name %>" class="project build_<%= project.last_complete_build_status %>">

      <%= link_to project.name, project_path(project), :id => project.name %>

      <%#= last_commit_avatar project -%>

      <%= render :partial => "builds/build_buttons", :locals => { :project => project } %>

      <%= link_to image_tag('rss_light.gif'), :action => 'show', :id => project.name, :format => 'rss' %>

    <% status = project.sleeping? ? project.last_complete_build_status : project.builder_state_and_activity %>

    <div class="project_status <%= status %>">
      <%= status.titleize %>

    <div class="status <%= project.last_complete_build_status %>">
      <%= project.last_complete_build_status.humanize %>

      <% if project.building? %>
        <%= link_to_build(project, project.last_build) %>
      <% elsif project.previously_built? %>
        <%= link_to_build_with_elapsed_time(project, project.last_complete_build) %>
      <% end %>

<div id="project_<%= project.name %>" class="project build_<%= project.last_complete_build_status %>">

      <%= link_to project.name, project_path(project), :id => project.name %>

      <%= render :partial => "builds/build_buttons", :locals => { :project => project } %>

      <%= link_to image_tag('rss_light.gif'), :action => 'show', :id => project.name, :format => 'rss' %>

    <% status = project.sleeping? ? project.last_complete_build_status : project.builder_state_and_activity %>

    <div class="project_status <%= status %>">
      <%= status.titleize %>

    <div class="status <%= project.last_complete_build_status %>">
      <%= project.last_complete_build_status.humanize %>

      <% if project.building? %>
        <%= link_to_build(project, project.last_build) %>
      <% elsif project.previously_built? %>
        <%= link_to_build_with_elapsed_time(project, project.last_complete_build) %>
      <% end %>

Hide all the avatar div.

Hide all the avatar div.


<%# Requires parameter events %>

    Name
    Date and Time
    Details

  <% events.each do |event| %>

        <%= link_to event.name, event_path(event) %>
        <%= l(event.start_time, format: :full_with_time) %>
        <%= "#{pluralize(event.effort_count, 'effort')}" %>

  <% end %>

<%# Requires parameter events %>

    Name
    Date and Time
    Details

  <% events.each do |event| %>

        <%= link_to event.name, event_path(event) %>
        <%= l(event.start_time, format: :full_with_time) %>
        <%= "#{pluralize(event.effort_count, 'effort')}" %>

          <% if event.available_live && @current_user.authorized_for_live?(event) %>
              <%= link_to 'Available Live', live_entry_live_event_path(event) %>
          <% end %>

  <% end %>

Add Available Live link to event list views.


<% set_title "Feedback" %>

Got words?

We bet you have opinions.

    If you've got a bug report or a feature request, we've got ongoing issue lists on GitHub, both
    for this website
    and for the Winnitron launcher.

    You can also email us at winnitron.support@outerspacehero.com, or heck even send
    angry tweets from your egg account to:

Marlon Wiebe (mostly launcher stuff),

Aaron Klaassen (mostly website stuff),

or the Winnitron 1000 itself (mostly yelling at a machine).

    Seriously though your feedback/help/etc is hyper-appreciated. This is obviously
    a work in progress and we're glad you're here, you know?

<% set_title "Feedback" %>

Got words?

We bet you have opinions.

    If you've got a bug report or a feature request, we've got ongoing issue lists on GitHub, both
    for this website
    and for the Winnitron launcher.

    Another option for questions and suggestions:
    our brand-new Winnitron subreddit.

    You can also email us at winnitron.support@outerspacehero.com, or heck even send
    angry tweets from your egg account to:

Marlon Wiebe (mostly launcher stuff),

Aaron Klaassen (mostly website stuff),

or the Winnitron 1000 itself (mostly yelling at a machine).

    Seriously though your feedback/help/etc is hyper-appreciated. This is obviously
    a work in progress and we're glad you're here, you know?

Add subreddit to feedback page.

Add subreddit to feedback page.


<%= link_object(Registry.root, Registry.root.title, nil, false) %>

<%= class_list %>

Fix padding on top-level-namespace link

Fix padding on top-level-namespace link


router id <%= @ipaddress_trp1 %>;

<% if @debug %>debug protocols all;
<% end -%>
# We are only going to export routes from Calico interfaces.
# Currently, 'tap*' is used by the OpenStack implimentation
# and 'cali*' is used by the docker implimentation.
# dummy1 is the interface that bare metal "service" addresses
# should be bound to if they should be exported.
# This will need to be updated as we add new interface names.
#
# Also filter out default, just in case.
#
# We should automate the build of this out of variables when
# we have time.

filter export_bgp {
  if (ifname ~ "tap*") then {
    if  net != 0.0.0.0/0 then accept;
  }
  reject;
}

# Configure synchronization between BIRD's routing tables and the
# kernel.
protocol kernel {
  learn;          # Learn all alien routes from the kernel
  device routes;  # protect kernel device routes from being overwritten or removed by IGP routes
  persist;        # Don't remove routes on bird shutdown
  scan time 2;    # Scan kernel routing table every 2 seconds
  import all;
  graceful restart;
  export all;     # Default is export none
}

protocol bfd {
  neighbor <%= scope.function_hiera(['netcfg_trp_gateway']) %>;
}

# Watch interface up/down events.
protocol device {
  scan time 2;    # Scan interfaces every 2 seconds
}

protocol direct {
   debug all;
   interface "*";
}

protocol bgp 'rr1_ipv4' {
  description "Connection to BGP route reflector rr1_ipv4";
  local as <%= scope.function_hiera(['bgp_as']) %>;
  neighbor <%= scope.function_hiera(['netcfg_trp_gateway']) %> as <%= scope.function_hiera(['bgp_as']) %>;
  multihop;
  import all;
  graceful restart;
  export filter export_bgp;
  source address <%= @ipaddress_trp1 %>;  # The local address we use for the TCP connection
}

Add bird template for bsd nat box

Add bird template for bsd nat box


It seems you've tried to access an event with the wrong URL.
<% if event_link %>
  Please try <%= event_link %>
<% else %>
  Could not generate a valid link for you. Please notify your system administrator.
<% end %>

It seems you've tried to access an event with the wrong URL.
<% if defined?(event_link) %>
  Please try <%= event_link %>
<% else %>
  Could not generate a valid link for you. Please notify your system administrator.
<% end %>

Handle undefined local for missing event


[user]
	name = Francisco J.
	email = nflamel@otrobloggeek.com
[color]
	diff = auto
	status = auto
	branch = auto
[core]
	excludesfile = <%= ENV['HOME'] %>/.gitignore
	editor = "/usr/local/bin/mvim -f"
	autocrlf = input
[apply]
	whitespace = fix
[format]
	pretty = %C(yellow)%h%Creset %s %C(red)(%cr)%Creset
[alias]
	co = checkout
	s = status
[github]
	user = franciscoj
	token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>
[merge]
	tool = vimdiff

Set vimdiff as the default mergetool

Set vimdiff as the default mergetool


---
- job:
    name: Transition_load_transition-stats_hits
    display-name: Transition_load_transition-stats_hits
    project-type: freestyle
    description: "
Loads hits data from our CDN logs into Transition soon after they are processed.
"
    logrotate:
      numToKeep: 20
    properties:
        - github:
            url: https://github.com/alphagov/transition-stats/
    triggers:
        - timed: '50 07-19 * * 1-5'
    builders:
        - shell: |
            rm -rf data
            mkdir data
            git clone --depth 1 git@github.com:alphagov/transition-stats.git data/transition-stats
            rsync --delete -avz -e ssh data/transition-stats deploy@backend-1.backend:/var/apps/transition/data
            ssh deploy@backend-1.backend "cd /var/apps/transition && govuk_setenv transition bundle exec rake import:hits[data/transition-stats/hits/cdn_*]"

---
- job:
    name: Transition_load_transition-stats_hits
    display-name: Transition_load_transition-stats_hits
    project-type: freestyle
    description: "
Loads hits data from our CDN logs into Transition soon after they are processed.
"
    logrotate:
      numToKeep: 20
    properties:
        - github:
            url: https://github.com/alphagov/transition-stats/
    triggers:
        - timed: '50 07-19 * * 1-5'
    builders:
        - shell: |
            rm -rf data
            mkdir data
            git clone --depth 1 git@github.com:alphagov/transition-stats.git data/transition-stats
            rsync --delete -avz -e ssh data/transition-stats deploy@backend-1.backend:/var/apps/transition/data
            ssh deploy@backend-1.backend "cd /var/apps/transition && govuk_setenv transition bundle exec rake import:hits[data/transition-stats/hits/logs_cdn_*]"

Change filename to import transition logs

This filename has changed as part of the migration, so we need to amend
the search to do the import.


Welcome to Sorter!

The perfect place to organize all your web resources on anything coding. And see what others are learning.

<% if user_signed_in? %>

Here's what people have been reading:

    <% @resources.by_language.each do |resource| %>

<%= link_to resource.title, resource_path(resource) %> - <%= link_to resource.language_name, language_path(resource.language) %>

        <% resource.tags.each do |tag| %>

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

        <% end %>

    <% end %>

<% end %>

<%= link_to "Sign in with GitHub", user_github_omniauth_authorize_path if !user_signed_in?%>

Welcome to Sorter!

The perfect place to organize all your web resources on anything coding. And see what others are learning.

<% if user_signed_in? %>

Here's what people have been reading:

    <% @resources.each do |resource| %>

<%= link_to resource.title, resource_path(resource) %> - <%= link_to "Link", resource.url %>

          <% resource.languages.each do |language| %>

<%= link_to language.name, language_path(language) %>

          <% end %>

          <% resource.tags.each do |tag| %>

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

          <% end %>

    <% end %>

<% end %>

<%= link_to "Sign in with GitHub", user_github_omniauth_authorize_path if !user_signed_in?%>

Add languages list to home view.

Add languages list to home view.


This is where we will show the individual details of each item.

<%= @item.name %>

Description: <%= @item.description %>

Quantity: <%= @item.quantity %>

Price: <%= @item.price %>

Make basic item details visible on each individual show page


<% provide(:title, @area.name) %>

    <%= @area.name %>

      <%= @area.description %>

    <%= link_to 'Edit', edit_area_path, class: 'btn btn-default' %>

    <%= datagrid_table(@initiatives_in_area_grid) %>
    <%= will_paginate @initiatives_in_area_grid.assets %>
    <%= link_to "Delete Area", @area, method: :delete,
                                data: { confirm: "Are you sure you want to delete this area?" },
                                  class: "btn btn-default" %>

<% provide(:title, @area.name) %>

    <%= @area.name %>

      <%= @area.description %>

    <%= link_to 'Edit', edit_area_path, class: 'btn btn-default' %>

    <%= datagrid_table(@initiatives_in_area_grid) %>
    <%= will_paginate @initiatives_in_area_grid.assets %>
    <%= link_to "Delete Area", @area, method: :delete,
                                data: { confirm: "Are you sure you want to delete this area?
                                                  \nNote: All associated initiatives will be deleted!" },
                                  class: "btn btn-default" %>

Add extra warning message to area deletion.


<% @page_title = "Logged-in as #{current_person.email}" %>

<div class="tabs">
  <%= link_to('Public Homepage', "/") %> |
  <%= link_to('Admin Pages', admin_events_path) %> |
  <%= link_to "Logout", person_session_path, :method => :delete %>
</div>

<% @page_title = "Logged-in as #{current_person.login}" %>

You are logged in as <%= current_person.login %>

  <%= link_to("#{ASSOCIATION.short_name} Homepage", root_url(:protocol => "http")) %> |
  <% if administrator? -%>
  <%= link_to('Admin Pages', admin_events_path) %> |
  <% end -%>
  <%= link_to "Logout", person_session_path, :method => :delete %>

Make person current session page prettier


<!DOCTYPE html>
<html>
<head>
  <title>UrbaneDictionary</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => false %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => false %>
  <%= csrf_meta_tags %>
  <link rel="icon" href="https://s3.amazonaws.com/urbane-dictionary-production/terms/favicon.ico" type="image/x-icon" />
  <link href='https://fonts.googleapis.com/css?family=Special+Elite' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
</head>
<body>

<%= yield %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>UrbaneDictionary</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => false %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => false %>
  <%= csrf_meta_tags %>
  <!-- <link rel="icon" href="https://s3.amazonaws.com/urbane-dictionary-production/terms/favicon.ico" type="image/x-icon" /> -->
  <link href='https://fonts.googleapis.com/css?family=Special+Elite' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
</head>
<body>

<%= yield %>

</body>
</html>

Comment out favicon after Heroku crash.

Comment out favicon after Heroku crash.


<!DOCTYPE html>

  <link href='//fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'>
  <title>PDFMHDbcOverflow</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>

DBC Overflow

      <%= yield %>

<!DOCTYPE html>

  <link href='//fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'>
  <title>PDFMHDbcOverflow</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>

DBC Overflow

              <%= button_to 'Login' %>

              <%= button_to 'Signup' %>

              <%= form_tag("/search", method: "get") do %>
                <%= text_field_tag(:q) %>
                <%= submit_tag("Search") %>
              <% end %>

      <%= yield %>

Put nav bar for login/signup/search in header.


<!DOCTYPE html>

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

<%= link_to 'Learning Connect', root_path, class: 'navbar-brand' %>

<%= link_to 'Log in', new_user_session_path %>

<%= link_to 'Log out', destroy_user_session_path ,method:"delete"%>

<%= link_to 'Sign Up', new_user_session_path %>

<%= notice %>

<%= alert %>

    <%= yield %>

<!DOCTYPE html>

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

<%= link_to 'Learning Connect', root_path, class: 'navbar-brand' %>

    <% if user_signed_in? %>

<%= link_to 'Log out', destroy_user_session_path ,method:"delete"%>

    <% else %>

<%= link_to 'Log in', new_user_session_path %>

<%= link_to 'Sign Up', new_user_session_path %>

    <% end %>

<%= notice %>

<%= alert %>

    <%= yield %>

Make log in log out signup logic

Make log in log out signup logic


    <%= image_tag 'ajax-loader.gif' %>

      <%= link_to proposal.name, event_proposal_path(@event, proposal), :class => "prop_link" %>
      <% if user_is_owner?(proposal) %>

        <%= link_to "(edit)", edit_event_proposal_path(@event, proposal) %>

      <% end %>

  <%= render_percentage_bar(proposal.acceptance_points) %>

<%= proposal.description %>

    <%= user_picture(proposal_user(proposal)) %>
    <%= proposal_user(proposal).name %>

  <%= link_to "#{proposal.comments.size} comments", [@event, proposal], :class => 'com_prop' %>

    <%= vote_box(@event, proposal, current_user) %>

    <%= image_tag 'ajax-loader.gif' %>

      <%= link_to proposal.name, event_proposal_path(@event, proposal), :class => "prop_link" %>
      <% if user_is_owner?(proposal) %>

        <%= link_to "(edit)", edit_event_proposal_path(@event, proposal) %>

      <% end %>

  <%= render_votes_bar(proposal.acceptance_points) %>

<%= proposal.description %>

    <%= user_picture(proposal_user(proposal)) %>
    <%= proposal_user(proposal).name %>

  <%= link_to "#{proposal.comments.size} comments", [@event, proposal], :class => 'com_prop' %>

    <%= vote_box(@event, proposal, current_user) %>

Rename helper method that was missing and breaking tests.


<form action="<%= send("#{resource_type}_path", resource) %>" class="syndication-form" method="post">
	<input type="hidden" name="_method" value="put">
	<input type="hidden" name="<%= resource_type %>[published]" value="<%= resource.published_at? %>">

Syndicated Copies

Manually add a link to a third-party syndicated copy of this <%= resource_type %>.

			<label for="<%= resource_type %>_syndications_attributes_name">Name
			<input type="text" id="<%= resource_type %>_syndications_attributes_name" name="<%= resource_type %>[syndications_attributes][][name]" required>

			<label for="<%= resource_type %>_syndications_attributes_url">URL
			<input type="url" id="<%= resource_type %>_syndications_attributes_url" name="<%= resource_type %>[syndications_attributes][][url]" placeholder="http://…" required>

			<button type="submit">Submit</button>

</form>

<form action="<%= send("#{resource_type}_path", resource) %>" class="syndication-form" method="post">
	<input type="hidden" name="_method" value="put">

Syndicated Copies

Manually add a link to a third-party syndicated copy of this <%= resource_type %>.

			<label for="<%= resource_type %>_syndications_attributes_name">Name
			<input type="text" id="<%= resource_type %>_syndications_attributes_name" name="<%= resource_type %>[syndications_attributes][][name]" required>

			<label for="<%= resource_type %>_syndications_attributes_url">URL
			<input type="url" id="<%= resource_type %>_syndications_attributes_url" name="<%= resource_type %>[syndications_attributes][][url]" placeholder="http://…" required>

			<button type="submit">Submit</button>

</form>

Remove old syndication form hack.

Remove old syndication form hack.


<% initialise_script 'GOVUK.AdminRenameAttachments', form_id: '#attachment_form' %>
<%= form_tag [:update_many, :admin, typecast_for_attachable_routing(@edition), Attachment], method: :put, id: 'attachment_form', remote: true, class: 'form-inline' do %>

      Title
      Filename

  <% @edition.attachments.each do |attachment| %>

      <td id='<%= "js-attachment-#{attachment.id}" %>' class="control-group">
        <%= fields_for 'attachments[]', attachment, builder: ActionView::Helpers::FormBuilder do |f| %>
          <%= f.text_field :title %>
        <% end %>

      <%= link_to_attachment(attachment, preview: !@edition.published?, truncate: @edition.imported?) %>
      <%= attachment_uploading_status(attachment) %>

  <% end %>

  <%= submit_tag "Save attachment titles", class: "btn btn-primary" %>

<% end %>

<% initialise_script 'GOVUK.AdminRenameAttachments', form_id: '#attachment_form' %>
<%= form_tag [:update_many, :admin, typecast_for_attachable_routing(@edition), Attachment], method: :put, id: 'attachment_form', remote: true, class: 'form-inline' do %>

      Title
      Filename

  <% @edition.attachments.includes(:attachment_data).each do |attachment| %>

      <td id='<%= "js-attachment-#{attachment.id}" %>' class="control-group">
        <%= fields_for 'attachments[]', attachment, builder: ActionView::Helpers::FormBuilder do |f| %>
          <%= f.text_field :title %>
        <% end %>

      <%= link_to_attachment(attachment, preview: !@edition.published?, truncate: @edition.imported?) %>
      <%= attachment_uploading_status(attachment) %>

  <% end %>

  <%= submit_tag "Save attachment titles", class: "btn btn-primary" %>

<% end %>

Improve loading edit attachments page for publication

Following https://github.com/alphagov/whitehall/pull/4686
The Edit Attachments page for a publication requests each `attachment` requires it's `attachment_data`. Including this here should help optimise the query.

[Trello](https://trello.com/c/8vxsdXsq/857-make-the-add-html-attachment-step-more-resilient)


#!/bin/bash --login

export RAILS_ENV=test
export PROJECT_DIR="/vagrant/<%= @config['project_name'] %>"
export CI_REPORTS= "/vagrant/<%= @config['project_name'] %>/reports"

ssh -oStrictHostKeyChecking=no github.com
mkdir $PROJECT_DIR
cd $PROJECT_DIR
#tar xf /tmp/project.tar
rvm autolibs packages
sudo /usr/local/rvm/bin/rvm requirements
rvm install --create $(cat .ruby-version)
rvm use $(cat .ruby-version)
gem install bundler
if ! grep -q ci_reporter Gemfile; then
  echo "gem 'ci_reporter'" >> Gemfile
fi
bundle install --without assets
<%= @config["project_setup"] %>

T=$(date +%s)
cd /tmp/project
<%= @config["tests_to_run"] %>
T2=$(date +%s)
find . -mmin $(((T-T2)/60-1)) -name "*.xml" -exec mv {} $CI_REPORTS \;

#!/bin/bash --login

export RAILS_ENV=test
export PROJECT_DIR="/vagrant/<%= @config['project_name'] %>"
export CI_REPORTS="/vagrant/<%= @config['project_name'] %>/reports"

ssh -oStrictHostKeyChecking=no github.com
mkdir $PROJECT_DIR
cd $PROJECT_DIR
#tar xf /tmp/project.tar
rvm autolibs packages
sudo /usr/local/rvm/bin/rvm requirements
rvm install --create $(cat .ruby-version)
rvm use $(cat .ruby-version)
gem install bundler
if ! grep -q ci_reporter Gemfile; then
  echo "gem 'ci_reporter'" >> Gemfile
fi
bundle install --without assets
<%= @config["project_setup"] %>

T=$(date +%s)
#cd /tmp/project
cd $PROJECT_DIR
<%= @config["tests_to_run"] %>
T2=$(date +%s)
find . -mmin $(((T-T2)/60-1)) -name "*.xml" -exec mv {} $CI_REPORTS \;

Remove space in variable creation

[MOB-19] Remove space in variable creation


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


Create an index view for the messages resource.

Messages are a nested resource within request. This view will show all
the messages associated with a particular request.


<%= content_for :content do %>
  <%= render_data_div(@playlist.tracks) %>

    <% @playlist.tracks.each do |track| %>
      <%= render_track(track) %>
    <% end %>

  <iframe id='soundcloud-player' class='hidden' width="250" height="150" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<%= @url %>&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true">
<% end %>

<%= content_for :content do %>
  <%= render_data_div(@playlist.tracks) %>

  <%= form_tag '/tracks' do %>
    <%= text_field_tag 'track_url', nil, placeholder: 'Enter Track Url Here' %>
  <% end %>

    <% @playlist.tracks.each do |track| %>
      <%= render_track(track) %>
    <% end %>

  <iframe id='soundcloud-player' class='hidden' width="250" height="150" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<%= @url %>&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true">
<% end %>

Create feature spec for adding tracks

Create feature spec for adding tracks


<%= @question.title %>

<%= @question.content.html_safe %>

	<%= render "answers/form" %>

Answers

		<%= render @question.answers.select(&:persisted?) %>

<%= @question.title %>

<%= @question.content_html %>

Answers

		<%= render @question.answers.select(&:persisted?) %>

	<%= render "answers/form" %>

Move answer form to bottom of answers list


alsa-lib
apr
apr-util
bluez-libs
bluez-utils
cpp
dmidecode
drupal7
drupal7-ctools
drupal7-features
drupal7-views
elinks
emacs
emacs-common
emacs-nox
fuse
fuse-libs
gcc
giflib
glibc
glibc-common
glibc-devel
glibc-headers
gmp
httpd
irssi
java-1.6.0-openjdk
jpackage-utils
kernel-headers
libart_lgpl
libgcc
libgomp
libxslt
libXtst
lynx
mod_ssl
mysql
mysql-server
nc
neon
nfs-utils
nfs-utils-lib
nscd
ntp
openssh
openssh-clients
openssh-server
pciutils
perl-DBD-MySQL
perl-DBI
perl-URI
php
php-mysql
pkgconfig
postgresql-libs
postgresql-server
rhino
ruby
ruby-irb
ruby-rdoc
rubygems
screen
subversion
telnet
tree
tzdata-java
vim
virt-what
vsftpd
yum-plugin-priorities
zsh

alsa-lib
apr
apr-util
bluez-libs
bluez-utils
cpp
dmidecode
drupal7
drupal7-ctools
drupal7-features
drupal7-views
elinks
emacs
emacs-common
emacs-nox
fuse
fuse-libs
gcc
giflib
glibc
glibc-common
glibc-devel
glibc-headers
gmp
httpd
irssi
java-1.6.0-openjdk
jpackage-utils
kernel-headers
libart_lgpl
libgcc
libgomp
libxslt
libXtst
lynx
mod_ssl
mysql
mysql-server
nc
neon
nfs-utils
nfs-utils-lib
nscd
ntp
openssh
openssh-clients
openssh-server
patch
pciutils
perl-DBD-MySQL
perl-DBI
perl-URI
php
php-mysql
pkgconfig
postgresql-libs
postgresql-server
rhino
ruby
ruby-irb
ruby-rdoc
rubygems
screen
subversion
telnet
tree
tzdata-java
vim
virt-what
vsftpd
yum-plugin-priorities
zsh

Add patch as a cached package.

Add patch as a cached package.


<!DOCTYPE html>

  <meta charset="utf-8" />

  <%= stylesheet_link_tag 'guides-print', media: 'all' %>

GOV.UK

<!DOCTYPE html>

  <meta charset="utf-8" />

  <%= stylesheet_link_tag 'guides-print', media: 'all' %>

<img src="<%= asset_path 'gov.uk_logotype-2x.png' %>" alt="GOV.UK">

Add logo image to print view

Add logo image to print view


    <%= render partial: 'activity_indicator',
               locals: {
                 title: t(:exercises),
                 stats: [{name: t(:solved_exercises_count), value: @activity.exercises.solved_count},
                         {name: t(:solved_exercises_percentage), value: @activity.exercises.solved_percentage}]
               } %>

    <%= render partial: 'activity_indicator',
               locals: {
                 title: t(:forum),
                 stats: [{name: t(:messages), value: @activity.messages.count},
                         {name: t(:approved_messages), value: @activity.messages.approved}]
               } %>

Total

Semana 01/02

Semana 25/01

Semana 18/01

Semana 11/01

Semana 04/01

    <%= render partial: 'activity_indicator',
               locals: {
                 title: t(:exercises),
                 stats: [{name: t(:solved_exercises_count), value: @activity[:exercises][:solved_count]},
                         {name: t(:solved_exercises_percentage), value: "#{@activity[:exercises][:solved_count] / @activity[:exercises][:count] * 100}%"}]
               } %>

    <%= render partial: 'activity_indicator',
               locals: {
                 title: t(:forum),
                 stats: [{name: t(:messages), value: @activity[:messages][:count]},
                         {name: t(:approved_messages), value: @activity[:messages][:approved]}]
               } %>

Total

Semana 01/02

Semana 25/01

Semana 18/01

Semana 11/01

Semana 04/01

Use real data on Activity view

Use real data on Activity view


<% if @consultation_response_form.persisted? %>
    Turbolinks.visit('<%= gobierto_budget_consultations_consultation_show_confirmation_path(@consultation) %>');
<% else %>
    $('#errors').html('<%= @consultation_response_form.errors.full_messages.to_sentence %>');
<% end %>

<% if @consultation_response_form.persisted? %>
    Turbolinks.visit('<%= gobierto_budget_consultations_consultation_show_confirmation_path(@consultation) %>');
<% else %>
  var $container = $('[data-messages-container]');
  $container.html('');
  if($container.length)
    $('
<%= @consultation_response_form.errors.full_messages.to_sentence %>
').appendTo($container);
<% end %>

Fix how messages are displayed

Fix how messages are displayed


SET @api_key="<%= @settings['issues_tracker_api_key'] %>";

UPDATE settings SET value='1' WHERE name='rest_api_enabled';
INSERT INTO tokens (user_id, action, value, created_on) VALUES('1', 'api', @api_key, CURRENT_TIMESTAMP());

SET @api_key="<%= @settings['issues_tracker_api_key'] %>";

INSERT INTO settings (name, value, updated_on) VALUES ('rest_api_enabled','1', CURRENT_TIMESTAMP());
INSERT INTO tokens (user_id, action, value, created_on) VALUES('1', 'api', @api_key, CURRENT_TIMESTAMP());

Fix Redmine API not activated.

Fix Redmine API not activated.

Change-Id: I3aef42863992cb90d5e4e2f870ba300b0bf0e054


Loading...

<meta http-equiv="refresh" content="10">

Loading...

  <meta http-equiv="refresh" content="5">

Replace meta refresh by turbolinks

Replace meta refresh by turbolinks


      Name
      email

    <% Restaurant.includes(:mailings).all.each do |restaurant| %>

        <%= link_to restaurant.name, restaurant_with_session_key_url(restaurant) %>
        <%= restaurant.email %>

          <% restaurant.mailings.each do |mailing| %>
            <span class="label label-info tooltip-holder" title="Sent on <%= mailing.created_at %>" ><%= tags mailing.mail %>
          <% end %>

    <% end %>

      Name
      email

    <% Restaurant.includes(:mailings).all.each do |restaurant| %>

        <%= link_to restaurant.name, restaurant_with_session_key_url(restaurant) %>
        <%= restaurant.email %>

          <% restaurant.mailings.each do |mailing| %>
            <span
              class="label label-info tooltip-holder"
              title="Sent on <%= mailing.created_at %> at <%= mailing.email %>">
              <%= tags mailing.mail %>

          <% end %>

    <% end %>

Add email information to tooltip

Add email information to tooltip


Listing invoices

    Purchase
    Reference number

<% @invoices.each do |invoice| %>

    <%= invoice.purchase %>
    <%= invoice.reference_number %>
    <%= link_to 'Show', invoice %>
    <%= link_to 'Edit', edit_invoice_path(invoice) %>
    <%= link_to 'Destroy', invoice, :confirm => 'Are you sure?', :method => :delete %>

<% end %>

<%= link_to 'New Invoice', new_invoice_path %>

Listing invoices

    Purchase
    Reference number

<% @invoices.each do |invoice| %>

    <%= display_purchase(invoice) %>
    <%= invoice.reference_number %>
    <%= link_to 'Show', invoice %>
    <%= link_to 'Edit', edit_invoice_path(invoice) %>
    <%= link_to 'Destroy', invoice, :confirm => 'Are you sure?', :method => :delete %>

<% end %>

<%= link_to 'New Invoice', new_invoice_path %>

Add display purchase helper to index

Add display purchase helper to index


Make sure it is less than IE 9 and close conditional correctly


# Generated by Puppet

<Plugin mysql>
  <Database "<%= @database %>">
    Host "<%= @host %>"
    User "<%= @username %>"
    Password "<%= @password %>"
<% if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.0']) >= 0) -%>
    Port "<%= @port %>"
<% else -%>
    Port <%= @port %>
<% end -%>
    MasterStats <%= @masterstats %>
    SlaveStats <%= @slavestats %>
<%- if @socket -%>
    Socket "<%= @socket %>"
<%- end -%>
<% if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.5']) >= 0) -%>
<%- if not @innodbstats.nil? -%>
    InnodbStats <%= @innodbstats %>
<%- end -%>
<%- if not @wsrepstats.nil? -%>
    WsrepStatsStats <%= @WsrepStats %>
<%- end -%>
<%- end -%>
<%- if not @slavenotifications.nil? -%>
    SlaveNotifications <%= @slavenotifications %>
<%- end -%>
  </Database>
</Plugin>

# Generated by Puppet

<Plugin mysql>
  <Database "<%= @database %>">
    Host "<%= @host %>"
    User "<%= @username %>"
    Password "<%= @password %>"
<% if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.0']) >= 0) -%>
    Port "<%= @port %>"
<% else -%>
    Port <%= @port %>
<% end -%>
    MasterStats <%= @masterstats %>
    SlaveStats <%= @slavestats %>
<%- if @socket -%>
    Socket "<%= @socket %>"
<%- end -%>
<% if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.5']) >= 0) -%>
<%- if not @innodbstats.nil? -%>
    InnodbStats <%= @innodbstats %>
<%- end -%>
<%- if not @wsrepstats.nil? -%>
    WsrepStats <%= @wsrepstats %>
<%- end -%>
<%- end -%>
<%- if not @slavenotifications.nil? -%>
    SlaveNotifications <%= @slavenotifications %>
<%- end -%>
  </Database>
</Plugin>

Correct the mysql WsrepStats parameter

Correct the mysql WsrepStats parameter


      <%= article.title.capitalize %>

      here you will read the description

      <a class='mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect' href="<%= article.address %>" target="_blank">Read It!

      <%= article.title.capitalize %>

      <%= image_tag(article.image, size: '330x220') if article.image %>

      <%= article.description %>

      <a class='mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect' href="<%= article.address %>" target="_blank">Read It!

Add article's image and description at the view


<% content_for :title, raw(finder.name) %>

<%= raw(finder.name) %>

  <% if finder.related.any? %>

        <% finder.related.each do |link| %>

<%= link_to "View #{link[:title]}", link[:web_url] %>

        <% end %>

  <% end %>
  <% if finder.primary_organisation %>

        <%= render partial: 'govuk_component/metadata', locals: {
          from: link_to(finder.primary_organisation.title, finder.primary_organisation.web_url),
        } %>

  <% end %>
  <% if finder.email_alert_signup %>

        <%= link_to "Subscribe to email alerts", finder.email_alert_signup.web_url %>

  <% end %>

<%= render finder.facets %>

        <%= render_mustache('result_count', @results.to_hash)%>

        <%= render_mustache('results', @results.to_hash) %>

<% content_for :title, raw(finder.name) %>

<%= raw(finder.name) %>

  <% if finder.related.any? %>

        <% finder.related.each do |link| %>

<%= link_to "View #{link[:title]}", link[:web_url] %>

        <% end %>

  <% end %>
  <% if finder.primary_organisation %>

        <%= render partial: 'govuk_component/metadata', locals: {
          from: link_to(finder.primary_organisation.title, finder.primary_organisation.web_url),
        } %>

  <% end %>

<%= render finder.facets %>

        <%= render_mustache('result_count', @results.to_hash)%>

        <%= render_mustache('results', @results.to_hash) %>

Remove email signup link in view

Remove email signup link in view

As we want to be able to access the pages for the email signup pages but
don't want to expose these to Users we want to remove the link until
we're ready for these to go 'live'.


Editing <%= @project.name %>

<% form_for :project, @project, :url => {:action => 'update'} do |f| %>

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

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

  <%= f.label :blog, "Blog URL" %>:
  <%= f.text_field :blog, :size => 80 %>

  <%= label_tag "Hosting type" %>:
  <%= select_tag 'hosting', options_for_select(%w[Redmine GitHub Google\ Code]) %>

  <%= f.label :source_code, "Source Code URL" %>:
  <%= f.text_field :source_code, :size => 80 %>

  <%= f.label :wiki %>:
  <%= f.text_field :wiki, :size => 80 %>

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

Edit page needs jQuery, too

Edit page needs jQuery, too

I realize that I really should be using layouts...


<%= t("ui.login") %>

  <% form_tag session_path do -%>

<%= label_tag t("ui.login") %>

  <%= text_field_tag t("ui.login"), @login %>

<%= label_tag t('ui.password') %>

  <%= password_field_tag t('ui.password'), nil %>

  <%= submit_tag t("ui.login") %> <%= link_to t("ui.signup"), :controller => "users", :action => "new" -%>

  <%= t("ui.its_free") %>

<%= link_to t('ui.forgot_password'), forgot_password_path -%>

  <% end -%>

<%= t("ui.login") %>

  <% form_tag session_path do -%>

<%= label_tag t("ui.login") %>

  <%= text_field_tag :login, @login %>

<%= label_tag t('ui.password') %>

  <%= password_field_tag :password, nil %>

  <%= submit_tag t("ui.login") %> <%= link_to t("ui.signup"), :controller => "users", :action => "new" -%>

  <%= t("ui.its_free") %>

<%= link_to t('ui.forgot_password'), forgot_password_path -%>

  <% end -%>

Fix bug in login template

Fix bug in login template


$('body').addClass('infinite-scrolling');

// Append new data
$("<%=j render(:partial => 'timeline/pictures', :object => @pictures) %>")
  .appendTo($('#gallery'));

// Update next-page link
<% if @pictures.last_page? %>
  $('.next-page').html('');
  $('body').removeClass('infinite-scrolling');
<% else %>
  $('.next-page').html("<%=j link_to_next_page @pictures, t('pictures.gallery.load_more'), remote: true, class: 'btn btn-outline-secondary infinite-scrolling', role: 'button' %>");
<% end %>

$('body').addClass('infinite-scrolling');

// Append new data
$("<%=j render(:partial => 'timeline/pictures', :object => @pictures) %>")
  .appendTo($('#gallery'));

// Update timeago
$('time[data-time-ago]').timeago();

// Update next-page link
<% if @pictures.last_page? %>
  $('.next-page').html('');
  $('body').removeClass('infinite-scrolling');
<% else %>
  $('.next-page').html("<%=j link_to_next_page @pictures, t('pictures.gallery.load_more'), remote: true, class: 'btn btn-outline-secondary infinite-scrolling', role: 'button' %>");
<% end %>

Fix timeago in timeline load more

Fix timeago in timeline load more


# <%= @name %> generated by poise-service

description "<%= @name %>"

start on runlevel [2345]
stop on runlevel [!2345]

respawn
respawn limit 10 5
umask 022
chdir <%= @directory %>
<%- @environment.each do |key, val| -%>
env <%= key %>="<%= val %>"
<%- end -%>
<%- if @upstart_features[:setuid] -%>
setuid <%= @user %>
<%- end -%>
<%- if @upstart_features[:kill_signal] -%>
kill signal <%= @stop_signal %>
<%- end -%>
<%- if @upstart_features[:reload_signal] -%>
reload signal <%= @reload_signal %>
<%- end -%>

exec <% if !@upstart_features[:setuid]  %>su -s /bin/sh -c 'exec "$0" "$@"' <%= @user %> -- <% end %><%= @command %>
<%- if !@upstart_features[:kill_signal]  && @stop_signal != 'TERM' -%>
pre-stop script
  . /etc/rc.d/init.d/functions
  killproc -G<% if @pid_file %> -p "<%= @pid_file %>"<% end %> -<%= @stop_signal%> "<%= @command.split(/ /, 2).first %>"
end script
<%- end -%>

# <%= @name %> generated by poise-service

description "<%= @name %>"

start on runlevel [2345]
stop on runlevel [!2345]

respawn
respawn limit 10 5
umask 022
chdir <%= @directory %>
<%- @environment.each do |key, val| -%>
env <%= key %>="<%= val %>"
<%- end -%>
<%- if @upstart_features[:setuid] -%>
setuid <%= @user %>
<%- end -%>
<%- if @upstart_features[:kill_signal] -%>
kill signal <%= @stop_signal %>
<%- end -%>
<%- if @upstart_features[:reload_signal] -%>
reload signal <%= @reload_signal %>
<%- end -%>

exec <% if !@upstart_features[:setuid]  %>su -s /bin/sh -c 'exec "$0" "$@"' <%= @user %> -- <% end %><%= @command %>
<%- if !@upstart_features[:kill_signal]  && @stop_signal != 'TERM' -%>
pre-stop script
  . /etc/rc.d/init.d/functions
  killproc<% if @pid_file %> -p "<%= @pid_file %>"<% end %> "<%= @command.split(/ /, 2).first %>" -<%= @stop_signal%>
end script
<%- end -%>

Fix up the probably-non-functional fallback stop_signal support.


Section 1

  <%= f.inputs do %>
    <%= f.input :title %>
    <%= f.input :excerpt, :as => :text %>
    <%= f.input :body, :as => :text %>
    <%= f.input :slug %>
    <%= f.remove_link "Remove" %>
  <% end %>

Section

  <%= f.inputs do %>
    <%= f.input :title %>
    <%= f.input :excerpt, :as => :text %>
    <%= f.input :body, :as => :text %>
    <%= f.input :slug %>

<%= f.remove_link "Remove" %>

  <% end %>

Remove section out of the part div. Wrap remove link in an li


Contact Us

   ADDRESS
   35 Nguyễn Huệ, P.Bến Nghé, Q.1, TP.Hồ Chí Minh

   PHONE NUMBER
   (+84)02812345678

Use a basic google map on the Contact Us page.


Mathio Party

    <% if current_user %>
    	<%= link_to "Logout, #{current_user.username} ", destroy_user_session_path, method: :delete %>
    	<% if !player2_logged_in? %>
    		<%= link_to 'Player 2 Login', players_new_path %>
    	<% else %>
    		<%= link_to "Logout, #{current_player2.username}", players_logout_path, method: :delete %>
    	<% end %>
    <% else %>
    	<%= link_to 'Login', new_user_session_path %>
      <%= link_to 'Sign Up', new_user_registration_path  %>
    <% end %>

Mathio Party

    <% if current_user %>
    	<%= link_to "Logout, #{current_user.username}", destroy_user_session_path, method: :delete %>
    	<% if !player2_logged_in? %>
    		<%= link_to 'Player 2 Login', players_new_path %>
    	<% else %>
    		<%= link_to "Logout, #{current_player2.username}", players_logout_path, method: :delete %>
    	<% end %>
    <% else %>
    	<%= link_to 'Login', new_user_session_path %>
      <%= link_to 'Sign Up', new_user_registration_path  %>
    <% end %>

Fix spacing issue with player1 username

Fix spacing issue with player1 username


        PO/Order #
        Vendor Name
        Date Entered
        Status

      <% @purchases.each do |purchase| %>
        <tr class="purchase <%= "font-bold" if purchase.open_purchase? %>" data-purchase-po="<%= purchase.vendor_po_number %>" data-href="<%= edit_purchase_path(purchase, redirect_to: 'purchases') %>">
          <%= purchase.vendor_po_number %>
          <%= purchase.vendor.name %>
          <%= purchase.formatted_purchase_date %>
          <%= purchase.status.titleize %>

      <% end %>

        Purchase ID
        PO/Order #
        Vendor Name
        Date Entered
        Status

      <% @purchases.each do |purchase| %>
        <tr class="purchase <%= "font-bold" if purchase.open_purchase? %>" data-purchase-po="<%= purchase.vendor_po_number %>" data-href="<%= edit_purchase_path(purchase, redirect_to: 'purchases') %>">
          <%= purchase.id %>
          <%= purchase.vendor_po_number %>
          <%= purchase.vendor.name %>
          <%= purchase.formatted_purchase_date %>
          <%= purchase.status.titleize %>

      <% end %>

Fix purchase index col widths

Fix purchase index col widths


search results: <%= @results.length %>

		<% @results.each do |item| %>

			<a data-toggle="modal" data-target="#schoolModal" data-dbn="<%= item.dbn%>" data-school="<%= item.school  %>" data-enrollment=<%= item.total_enrollment %> data-owed=<%= item.amount_owed %>>
<%= item.dbn%> <%= item.school %>  (<%= item.district_code %> <%= item.district_name %>)

			<% end %>

search results: <%= @results.length %>

		<% @results.each do |item| %>

			<a data-toggle="modal" data-target="#schoolModal" data-dbn="<%= item.dbn%>" data-school="<%= item.school  %>" data-district="<%= item.district_name %>"data-enrollment=<%= item.total_enrollment %> data-owed=<%= item.amount_owed %>>
<%= item.dbn%> <%= item.school %>  (<%= item.district_code %> <%= item.district_name %>)

			<% end %>

Add data item to each item in results list for district info


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

<VirtualHost *:80>
	ServerName piwik.openstreetmap.org
	ServerAlias piwik.osm.org
	ServerAdmin webmaster@openstreetmap.org

	CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
	ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log

	DocumentRoot /srv/piwik.openstreetmap.org
</VirtualHost>

<VirtualHost *:443>
	ServerName piwik.openstreetmap.org
	ServerAdmin webmaster@openstreetmap.org

	SSLEngine on
	SSLProtocol all -SSLv2
	SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
	SSLCertificateFile /etc/ssl/certs/openstreetmap.pem
	SSLCertificateKeyFile /etc/ssl/private/openstreetmap.key

	CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
	ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log

	DocumentRoot /srv/piwik.openstreetmap.org
</VirtualHost>

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

<VirtualHost *:80>
	ServerName piwik.openstreetmap.org
	ServerAlias piwik.osm.org
	ServerAdmin webmaster@openstreetmap.org

	CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
	ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log

	DocumentRoot /srv/piwik.openstreetmap.org
</VirtualHost>

<VirtualHost *:443>
	ServerName piwik.openstreetmap.org
	ServerAdmin webmaster@openstreetmap.org

	SSLEngine on
	SSLProtocol all -SSLv2
	SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
	SSLCertificateFile /etc/ssl/certs/openstreetmap.pem
	SSLCertificateKeyFile /etc/ssl/private/openstreetmap.key

	CustomLog /var/log/apache2/piwik.openstreetmap.org-access.log combined
	ErrorLog /var/log/apache2/piwik.openstreetmap.org-error.log

	DocumentRoot /srv/piwik.openstreetmap.org
	Options -Indexes
</VirtualHost>

Disable directory indexes for piwik

Disable directory indexes for piwik


        <%= comment.author.username %>
          <%= comment.created_at %>

<%= comment.content %>

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

<%= link_to 'Edit', edit_comment_path(comment) %>

<% end %>

  <% comment.comments.each do |subComment| %>
      <%= render partial: "comments/show", locals: {comment: subComment} %>
      <% end %>

        <%= comment.author.username %>
          <%= comment.created_at %>

<%= comment.content %>

<% if comment.author_id == session[:user_id] %>
  <%= link_to 'Edit', edit_comment_path(comment) %>
<% end %>
<%= link_to 'Add a comment', {controller: 'comments', action: 'new', type: 'Comment', id: comment.id} %>

  <% comment.comments.each do |subComment| %>
      <%= render partial: "comments/show", locals: {comment: subComment} %>
      <% end %>

Add threaded add comment link to comment show


<%= navigation true %>

<%= link_to "Witchifier", witchifier_path %>

Fuck My Dom

SoundCloud Queue

Void

A Year At LinkedIn

<%= navigation true %>

<%= link_to "Witchifier", witchifier_path %>

Fuck My Dom

SoundCloud Queue

Void

DAT TWEET THO

A Year At LinkedIn

Add dat tweet tho to projects

Add dat tweet tho to projects


<% if person.has_previous_roles? %>
  <section class="previous-roles govuk-!-padding-bottom-9" dir="<%= page_text_direction %>" lang="<%= person.locale %>">
    <%= render "govuk_publishing_components/components/heading", {
      text: t("people.previous_roles_in_government"),
      id: "previous-roles",
      margin_bottom: 2,
    } %>

    <%= render "govuk_publishing_components/components/document_list", {
      items: person.previous_roles_items
    } %>
  </section>
<% end %>

<% if person.has_previous_roles? %>
  <section class="previous-roles govuk-!-padding-bottom-9" dir="<%= page_text_direction %>" lang="<%= person.locale %>">
    <%= render "govuk_publishing_components/components/heading", {
      text: t("people.previous_roles_in_government"),
      lang: t_fallback("people.previous_roles_in_government"),
      id: "previous-roles",
      margin_bottom: 2,
    } %>

    <%= render "govuk_publishing_components/components/document_list", {
      items: person.previous_roles_items
    } %>
  </section>
<% end %>

Add lang attribute to previous roles heading


---
title: Administering Cloud Foundry
---

This section presents a guide to managing Elastic Runtime at the administrator level.

## Table of Contents

* [Adding Buildpacks to Cloud Foundry](./buildpacks.html)
* [Creating and Managing Users with the cf CLI](./cli-user-management.html)
* [Managing Users with the UAA CLI (UAAC)](./uaa-user-management.html)
* [Application Security Groups](./app-sec-groups.html)
* [Feature Flags](./listing-feature-flags.html)

---
title: Administering Cloud Foundry
---

This section presents a guide to managing Elastic Runtime at the administrator level.

## Table of Contents

* [Adding Buildpacks to Cloud Foundry](./buildpacks.html)
* [Creating Domains and Routes](./domains-routes.html)
* [Creating and Managing Users with the cf CLI](./cli-user-management.html)
* [Managing Users with the UAA CLI (UAAC)](./uaa-user-management.html)
* [Application Security Groups](./app-sec-groups.html)
* [Feature Flags](./listing-feature-flags.html)

Add index link to admin domains and routes doc.


        <% if @presenter.current_node.has_title? %>

<%= @presenter.current_node.title %>

        <% end %>
        <% if @presenter.current_node.has_body? %>
          <%= @presenter.current_node.body %>
        <% end %>

    <% if @presenter.current_node.has_next_steps? %>

Next steps

          <%= @presenter.current_node.next_steps %>

    <% end %>

Add Google Analytics Event to outcome pages

We hope that recording an event when someone reaches an outcome will help us
understand more about how Smart Answers are used.

We initially investigated using Virtual Pageviews (see PR #1700 for that
discussion) before settling on Events. This approach was suggested by Chris
Russell.

I tested this locally by configuring my local static app to send data to my
personal Google Analytics account and confirming that the events appear as
expected.


Contact the [relevant local authorities](http://www.dha.gov.za/index.php/civic-services/marriage-certificates) in South Africa to find out about local marriage laws, including what documents you’ll need.

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

The UK doesn’t issue certificates of no impediment (CNIs) for marriages in Commonwealth countries. The British High Commission in Pretoria or the Consulate General in Cape Town can provide a letter to explain this if you’re asked to provide a CNI or a similar document to prove you’re allowed to marry.

Contact the High Commission and Consulate General to arrange to collect a letter.

$C
<southafrica.consulate@fco.gov.uk>
$C

The letter must be signed and stamped by a member of the consular staff.

##Naturalisation of your partner if they move to the UK

Your partner can apply to [become a British citizen](/becoming-a-british-citizen/if-your-spouse-is-a-british-citizen) once they’ve lived in the UK for 3 years.

Contact the [relevant local authorities](http://www.dha.gov.za/index.php/civic-services/marriage-certificates) in South Africa to find out about local marriage laws, including what documents you’ll need.

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

The UK doesn’t issue certificates of no impediment (CNIs) for marriages in Commonwealth countries. You can get a letter to explain this if you’re asked to provide a CNI or a similar document to prove you’re allowed to marry.

Book an appointment to collect a letter at the [British Consulate General in Cape Town](https://www.consular-appointments.service.gov.uk/fco/#!/british-consulate-general-cape-town/providing-an-informative-note/slot_picker) or the [British High Commission in Pretoria](https://www.consular-appointments.service.gov.uk/fco/#!/british-high-commission-pretoria/providing-an-informative-note/slot_picker).

The letter is free. If you can't go to an appointment, you can ask a friend or family member to make an appointment and collect it for you.

##Naturalisation of your partner if they move to the UK

Your partner can apply to [become a British citizen](/becoming-a-british-citizen/if-your-spouse-is-a-british-citizen) once they’ve lived in the UK for 3 years.

Add appointment link for explanatory letter


<% if @message.persisted? %>
  var data = {
    success : true,
    statusMessage : '<%=j @notification[:notice].html_safe %>',
    sentMessage : '<%=j render "shared/message_list", message: @message.claim %>'
  }
  adp.messaging.processMsg(data);

  <% unless Claim::VALID_STATES_FOR_REDETERMINATION.include?(@message.claim.state) %>
    $('.claim-action-dropdown').hide();
  <% end %>

  <% unless @message.claim.written_reasons_outstanding? %>
    $('.written-reasons-checkbox').hide();
  <% end %>
<% else %>
  var data ={
    success : false,
    statusMessage : '<%=j @notification[:alert].html_safe %>'
  }
  adp.messaging.processMsg(data);
<% end %>

<% if @message.persisted? %>
  var data = {
    success : true,
    statusMessage : '<%=j @notification[:notice].html_safe %>',
    sentMessage : '<%=j render "shared/message_list", message: @message.claim %>'
  }
  adp.messaging.processMsg(data);

  <% unless Claim::VALID_STATES_FOR_REDETERMINATION.include?(@message.claim.state) %>
    $('.js-hide-status').hide();
  <% end %>

  <% unless @message.claim.written_reasons_outstanding? %>
    $('.written-reasons-checkbox').hide();
  <% end %>
<% else %>
  var data ={
    success : false,
    statusMessage : '<%=j @notification[:alert].html_safe %>'
  }
  adp.messaging.processMsg(data);
<% end %>

Hide the status update section if they have send it as part of the message


New Question

<%= form_for :question, url: questions_path do |f| %>

      <%= f.label :question %>

      <%= f.text_area :question, class: "form-control", style: "width: 50%; height: 100px" %>

      <%= f.label :username %>

      <%= f.text_field :username, class: "form-control", style: "width: 40%;" %>

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

<% end %>

New Question

<%= form_for :question, url: questions_path do |f| %>

      <%= f.label :question %>

      <%= f.text_area :question, class: "form-control", style: "width: 50%; height: 100px" %>

    <% if !(user_signed_in?) %>

      <%= f.label :username %>

      <%= f.text_field :username, class: "form-control", style: "width: 40%;" %>

    <% end %>

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

<% end %>

Remove the field :username for logged in user to 'new question'


Create a New Question!

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

	<%= f.label :description %>
	<%= f.text_area :description, size: "40x5" %>
	<%= f.submit %>
<% end %>

Add form to create new question

Add form to create new question


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

   Put brief site description here.

<% unless user_signed_in? %>

    <%= render 'devise/registrations/form' %>
    <%= render 'devise/sessions/form' %>

<% end %>

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

    This is the place to log your clean up efforts and find areas in need of
    some TLC!

<% unless user_signed_in? %>

    <%= render 'devise/registrations/form' %>
    <%= render 'devise/sessions/form' %>

<% end %>

Add a short message on the welcome page about the apps basic features


Python is a widely used high-level programming language used for general-purpose programming.
It's very friendly for beginners and is great for everything from web development to
data science.

Here are some python resources:
    Operation Code python Room: <#C04D6M3JT|python>
    Python's official site: https://www.python.org/
    Learn Python The Hard Way: https://learnpythonthehardway.org/book/

Python is a widely used high-level programming language used for general-purpose programming.
It's very friendly for beginners and is great for everything from web development to
data science.

Here are some python resources:
    Operation Code Python Room: <#C04D6M3JT|python>
    Python's official site: https://www.python.org/
    Learn Python The Hard Way: https://learnpythonthehardway.org/book/
    Automate The Boring Stuff: https://automatetheboringstuff.com/

Update Python message on bot

Update Python message on bot


<% if local_assigns[:options] %>

    Sort by
    <select
      class="js-order-results govuk-select sort-options__select"
      name="order"
      id="order"
      aria-controls="js-search-results-info"
      data-default-sort-option="<%= local_assigns[:default_value] %>"
      data-relevance-sort-option="<%= local_assigns[:relevance_value] %>"
      data-module='track-select-change'>
      <% local_assigns[:options].each do |option| %>
        <option
          value='<%= option[:value] %>'
          <% if option[:disabled] %>
            disabled
          <% end %>
          <% if option[:selected] %>
            selected
          <% end %>
          data-track-category='<%= option[:data_track_category] %>'
          data-track-action='<%= option[:data_track_action] %>'
          data-track-label='<%= option[:data_track_label] %>'
          ><%= option[:label] %></option>
      <% end %>
    </select>

<% end %>

Fix for select element while zoomed

Fix for select element while zoomed

Text in select box cut off while viewing at 200% text-only on Firefox.


<!DOCTYPE html>

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

  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />

      <button class="menu-icon slide-down-menu-button" type="button" data-toggle></button>

LOGO

IMAGE

Login

Register

<%= yield %>

<!DOCTYPE html>

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

  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />

      <button class="menu-icon slide-down-menu-button" type="button" data-toggle></button>

LOGO

IMAGE

          <%if signed_in?%>

Sign Out

          <%else%>

Login

Register

          <%end%>

<%= yield %>

Fix log in logic in layout

Fix log in logic in layout


<%# This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Jade Systems Inc. 2013, 2014
%>
<%# TODO Dry this up with the application template. %>
<!DOCTYPE html>

    <title>Positive Behaviour Support</title>
    <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
    <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
    <%= csrf_meta_tags %>

        <%= yield %>

<%# This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) Jade Systems Inc. 2013, 2014
%>
<%# TODO Dry this up with the application template. %>
<!DOCTYPE html>

    <title><%= title || "Positive Behaviour Support" %></title>
    <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
    <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
    <%= csrf_meta_tags %>

        <%= yield %>

Fix title on welcom page.

Fix title on welcom page.


<% @is_overview = (@partslug != "further-information") %>
<% content_for :extra_javascript do %>
<%= javascript_include_tag 'jquery.tabs.js', 'trackers/benefit.js', 'jquery.history.js', :defer=>"defer" %>
<% if @programme.has_next_part?(@part) %>
<%= javascript_include_tag 'programmes.js', :defer=>"defer" %>
<% end %>

<% end %>

        <hgroup>

Benefits & schemes <%= @programme.title %>

        </hgroup>

        <% @programme.parts.each do |part| %>
            <% if @programme.has_next_part?(part) %>
            <article role="article" class="overview-etc group" id="<%= part.slug %>">

                    <%= render :partial => "programme_part.html", :locals => {:part => part} %>

            <% end %>
        <% end %>

                <%= render :partial => "programme_part.html", :locals => {:part => @programme.parts.last} %>

<% content_for :extra_javascript, javascript_include_tag('trackers/benefit.js', defer: "defer") %>

        <hgroup>

Benefits & schemes <%= @programme.title %>

        </hgroup>

        <% @programme.parts.each do |part| %>
            <% if @programme.has_next_part?(part) %>
            <article role="article" class="overview-etc group" id="<%= part.slug %>">

                    <%= render :partial => "programme_part.html", :locals => {:part => part} %>

            <% end %>
        <% end %>

                <%= render :partial => "programme_part.html", :locals => {:part => @programme.parts.last} %>

Print view of programmes doesn't need all the standard view javascript


<%= t('home.show.contact.title') %>

<%= t('home.show.contact.introduction') %>

<%= t('home.show.contact.call_us') %>…

      <a class="contact__number" href="tel:<%= t('home.show.contact.number') %>"><%= t('home.show.contact.number') %>

<%= t('home.show.contact.opening_hours_heading') %>

<%= t('home.show.contact.opening_hours_html') %>

<%= t('home.show.contact.call_charges_html') %>

Adjust size of the opening hours

Adjust size of the opening hours


<% @ssh_authorized_keys.split(',').map(&:strip).each do |ssh_key| -%>
<%= ssh_key %>
<% end %>

<% @ssh_authorized_keys.split('\n').map(&:strip).each do |ssh_key| -%>
<%= ssh_key %>
<% end %>

Split SSH keys like God intended

Split SSH keys like God intended


<%= form_tag do %>
  <%= render_message do %>

<%= _t(:internal_link_headline) %>

  <% end %>

    <% if @page_root %>

      <%= render partial: 'page_for_links', object: @page_root, locals: {area_name: @area_name} %>

    <% end %>

      <%= _t(:url) %>

    <%= text_field_tag(:internal_urlname, '', readonly: true) %>

      <%= _t(:link_title) %>

    <%= text_field_tag "internal_link_title", '', class: 'link_title' %>

      <%= _t("Open Link in") %>

    <%= select_tag 'internal_link_target',
      options_for_select(Alchemy::Page.link_target_options),
      class: 'alchemy_selectbox link_target' %>

    <%= hidden_field_tag(:page_anchor) %>
    <%= link_to _t(:apply), '', class: 'create-link button', 'data-link-type' => 'internal' %>

<% end %>

<%= form_tag do %>
  <%= render_message do %>

<%= _t(:internal_link_headline) %>

  <% end %>

    <% if @page_root %>

      <%= render partial: 'page_for_links', object: @page_root, locals: {area_name: @area_name} %>

    <% end %>

      <%= _t(:url) %>

    <%= text_field_tag(:internal_urlname) %>

      <%= _t(:link_title) %>

    <%= text_field_tag "internal_link_title", '', class: 'link_title' %>

      <%= _t("Open Link in") %>

    <%= select_tag 'internal_link_target',
      options_for_select(Alchemy::Page.link_target_options),
      class: 'alchemy_selectbox link_target' %>

    <%= hidden_field_tag(:page_anchor) %>
    <%= link_to _t(:apply), '', class: 'create-link button', 'data-link-type' => 'internal' %>

<% end %>

Make url field for internal link editable.

So one could add a anchor manually.


<% if @presenter.current_question_number > 1 %>
  <div class="previous-answers <%= "previous-answers-top" unless with_title %>">

                <% if with_title %>Previous answers<% end %>

                <%= link_to "Start again", smart_answer_path(params[:id]) %>

            <% number_questions_so_far = 0 %>
            <% @presenter.collapsed_question_pages.each do |question_page| %>
              <%= render partial: "collapsed_question", locals: {question_page: question_page, number_questions_so_far: number_questions_so_far} %>
              <% number_questions_so_far += question_page.questions.count %>
            <% end %>

<% end %>

<% if @presenter.current_question_number > 1 %>
  <div class="previous-answers <%= "previous-answers-top" unless with_title %>">

                <% if with_title %>Previous answers<% end %>

            <% number_questions_so_far = 0 %>
            <% @presenter.collapsed_question_pages.each do |question_page| %>
              <%= render partial: "collapsed_question", locals: {question_page: question_page, number_questions_so_far: number_questions_so_far} %>
              <% number_questions_so_far += question_page.questions.count %>
            <% end %>

      <%= link_to "Start again", smart_answer_path(params[:id]) %>

<% end %>

Change table heading to span all columns

As mentioned by @tombye in [our card](https://www.agileplannerapp.com/boards/105200/cards/8701) on smart answer headings, the previous table headings didn't relate to the contents of the table.

This commit fixes that by:

- Changing the table heading to span the entire row, as with https://www.gov.uk/bank-holidays
- The 'start again' link is now below the previous answers table
- This commit does *not* attempt to add in any additional ARIA signalling, etc


<%= f.input :slug, placeholder: 'Leave this blank. The slug will be generated automatically from the title.', required: false %>

<% options = {} %>
<% options.merge!({ as: :hidden }) if local_assigns.fetch(:hidden, false).present? %>
<%= f.input :slug,
            placeholder: 'Leave this blank. The slug will be generated automatically from the title.',
            required: false,
            **options  %>

Add ability to hide slug

Add ability to hide slug


Users

      ID
      Email
      Role
      School
      Sign in count
      Access locked

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

          <%= user.id %>
          <%= user.email %>
          <%= user.role.titleize %>
          <%= link_to user.school.name, school_path(user.school) if user.school %>
          <%= user.sign_in_count %>
          <%= user.access_locked? ? 'Y' : '' %>

              <%= link_to 'Edit', edit_user_path(user), class: 'btn btn-primary btn-sm' %>
              <%= link_to 'Delete', user_path(user), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger btn-sm' %>

    <% end %>

<%= link_to 'New User', new_user_path, class: 'btn btn-primary' %>

Users

      ID
      Name
      Email
      Role
      School
      Sign in count
      Access locked

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

          <%= user.id %>
          <%= user.name %>
          <%= user.email %>
          <%= user.role.titleize %>
          <%= link_to user.school.name, school_path(user.school) if user.school %>
          <%= user.sign_in_count %>
          <%= user.access_locked? ? 'Y' : '' %>

              <%= link_to 'Edit', edit_user_path(user), class: 'btn btn-primary btn-sm' %>
              <%= link_to 'Delete', user_path(user), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger btn-sm' %>

    <% end %>

<%= link_to 'New User', new_user_path, class: 'btn btn-primary' %>

Add names to user list

Add names to user list


      <%= link_to "Bike Commute Challenge", root_path, class: "brand" %>

          <li class="<%= 'active' if params[:controller] == 'teams' %>"><%= link_to "Teams", teams_path %>

<%= mail_to "commuterchallenge@resdat.com", "Report a Problem", title: "Email the developers" %>

        <%= render "layouts/user_session" %>

      <%= link_to "Commuter Challenge", root_path, class: "brand" %>

          <% if Competition.count > 0 %>
            <li class="<%= 'active' if params[:controller] == 'competitions' %>"><%= link_to "Leaderboard", competition_path(Competition.first) %>

          <% end %>
          <li class="<%= 'active' if params[:controller] == 'teams' %>"><%= link_to "Teams", teams_path %>

<%= mail_to "commuterchallenge@resdat.com", "Report a Problem", title: "Email the developers" %>

        <%= render "layouts/user_session" %>

Add competition dashboard to menu

Add competition dashboard to menu

My sincere apologies for the way this is implemented. Originally designed to support multiple competitions, then hacked to support one


<% provide(:title, "Results") %>

Here are your results!

<% @sorted_questions.each do |question| %>
  <% full_question = find_question(@recent_questions, question[0]) %>

<%= link_to question[0], "https://stackoverflow.com/questions/#{question[0]}" %> Relevance: <%= @questionList[question[0]] %> <%= question[1][1] %>

<% end %>

<%= @recent_questions.inspect %>

<%= @sorted_questions.inspect %>

<% provide(:title, "Results") %>

Here are your results!

<% @sorted_questions.each do |question| %>
  <% full_question = find_question(@recent_questions, question[0]) %>

<%= link_to question[0], "https://stackoverflow.com/questions/#{question[0]}" %> Relevance: <%= @questionList[question[0]] %> <%= question[1][1] %>

Question Tags: <%= full_question.tagsSet.inspect %>

<% end %>

<%= @recent_questions.inspect %>

<%= @sorted_questions.inspect %>

Add sorted question link details

Add sorted question link details


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

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

Daisies image:

Website designed and built by Katye McCullough Russell, copyright 2015

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

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

Daisies image:

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

Website designed and built by Katye McCullough Russell, copyright 2015

Add cross and clouds image to credits page.


  <%= link_to t('app.questions.new'), new_question_path, class: 'btn btn-primary pull-right' %>

Spør en stortingspolitiker

<%= render partial: 'questions_section', locals: { category: :answered, questions: @questions[:answered], total: @totals[:answered] } %>
<%= render partial: 'questions_section', locals: { category: :unanswered, questions: @questions[:unanswered], total: @totals[:unanswered] } %>

  <%= link_to t('app.questions.new'), new_question_path, class: 'btn btn-primary pull-right' %>

Spør en stortingspolitiker

  Vi gjør oppmerksom på at enkelte stortingspolitikere har reservert seg mot å bruke tjenesten.

<%= render partial: 'questions_section', locals: { category: :answered, questions: @questions[:answered], total: @totals[:answered] } %>
<%= render partial: 'questions_section', locals: { category: :unanswered, questions: @questions[:unanswered], total: @totals[:unanswered] } %>

Add text about reserved representatives to /questions


<%= update_page_tag { |page| page.replace_html active_scaffold_messages_id, :partial => 'messages' } %>

    <div class="<%= "#{params[:action]}-view" if params[:action] %> <%= "#{params[:associations] ? params[:associations] : params[:controller]}-view" %> view">
      <a href="" class="inline-adapter-close" title="<%= as_(:close) %>"><%= as_(:close) %>
      <%= payload -%>

<%= update_page_tag { |page| page.replace_html active_scaffold_messages_id, :partial => 'messages' } %>
<%# nested_id, allows us to remove a nested scaffold programmatically %>
<tr class="inline-adapter" id="<%= element_row_id :action => :nested %>">

    <div class="<%= "#{params[:action]}-view" if params[:action] %> <%= "#{params[:associations] ? params[:associations] : params[:controller]}-view" %> view">
      <a href="" class="inline-adapter-close" title="<%= as_(:close) %>"><%= as_(:close) %>
      <%= payload -%>

Copy from edwinmoss Add id to inline_adapter


  <%- if options[:with_categories] -%>
  <%%= link_to_remote 'Back', :url => <%= plural_name %>_url(:category => @active_category), :method => :get %>
  <%- else -%>
  <%%= link_to_remote 'Back', :url => <%= plural_name %>_url, :method => :get %>
  <%- end -%>
  <%%= content_tag :button, 'Insert', { :type => 'button', :onclick => 'javascript:<%= dialog_name %>.insert();return false;' } %>
  <%%= link_to_remote 'Delete', :url => <%= name %>_url(image), :method => :delete %>
  <%- if options[:with_editable_image] -%>
  <%%= content_tag :button, 'Edit', { :type => 'button', :onclick => "javascript:<%= dialog_name %>.edit('#{edit_<%= name %>_url(image, :popup => true)}');" } %>
  <%- end -%>

  <%- if options[:with_categories] -%>
  <%%= link_to_remote 'Back', :url => <%= plural_name %>_url(:category => @active_category.id), :method => :get %>
  <%- else -%>
  <%%= link_to_remote 'Back', :url => <%= plural_name %>_url, :method => :get %>
  <%- end -%>
  <%%= content_tag :button, 'Insert', { :type => 'button', :onclick => 'javascript:<%= dialog_name %>.insert();return false;' } %>
  <%%= link_to_remote 'Delete', :url => <%= name %>_url(image), :method => :delete %>
  <%- if options[:with_editable_image] -%>
  <%%= content_tag :button, 'Edit', { :type => 'button', :onclick => "javascript:<%= dialog_name %>.edit('#{edit_<%= name %>_url(image, :popup => true)}');" } %>
  <%- end -%>

Fix for category being submitted with back button js request.


<% provide(:title, 'Current Board') %>

<%= yield(:title) %>

    <% @board_members.each do |board_member| %>

          <%= image_tag board_member.photo_url, alt: "Photo of #{ board_member.name }", class: 'img-rounded board-photo pull-right' %>

Name

<%= board_member.name %>

Board Position

<%= board_member.position %>

Bio

<%= board_member.bio %>

<%= mail_to board_member.email, "Email #{ board_member.name.split(' ')[0] }" %>

    <% end %>

<%= render 'layouts/footer' %>

<% provide(:title, 'Current Board') %>

<%= yield(:title) %>

    <% @board_members.each do |board_member| %>

          <%= image_tag board_member.photo_url, alt: "Photo of #{ board_member.name }", class: 'img-rounded board-photo' %>

Name

<%= board_member.name %>

Board Position

<%= board_member.position %>

Bio

<%= board_member.bio %>

<%= mail_to board_member.email, "Email #{ board_member.name.split(' ')[0] }" %>

    <% end %>

<%= render 'layouts/footer' %>

Adjust layout of Current Board page

Adjust layout of Current Board page


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

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

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

<!DOCTYPE html>
<html>
  <head>
    <title>SoundTreks</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

    <%= csrf_meta_tags %>

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

  <body>
    <div id="nav-bar" class='nav'>

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

Add jQuery library to app layout

Add jQuery library to app layout


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

    <title><%= h(yield(:title) || "Untitled") %></title>
    <%= stylesheet_link_tag 'application' %>
    <%= javascript_include_tag :defaults %>
    <%= yield(:head) %>

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

      <%- if show_title? -%>

<%=h yield(:title) %>

      <%- end -%>

      <%= yield %>

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

    <title><%= h(yield(:title) || "Untitled") %></title>
    <%= stylesheet_link_tag 'application' %>
    <%= javascript_include_tag 'jquery-1.3.2.min', 'application' %>
    <%= yield(:head) %>

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

      <%- if show_title? -%>

<%=h yield(:title) %>

      <%- end -%>

      <%= yield %>

Replace prototype with jquery in the application layout


<% provide(:title, @user.name) %>

  <%= @user.name %>

  <%= @user.telephone %>

  <%= @user.dob %>
  <% @user.enrolments.each do |e| %>

<%= e.initiative.name %>

  <% end %>

<% provide(:title, @user.name) %>

  <%= @user.name %>

  <%= @user.telephone %>

  <%= @user.dob %>
  <% @user.enrolments.each do |e| %>

<%= link_to e.initiative.name, e.initiative %>

  <% end %>

Add link to initative on member page.

Add link to initative on member page.


<form  class="orderby_panel">

  <input type="hidden" name="filter" value="<%= @filter %>">
	<%= t("children.order_by.label") %>:

<%= link_for_order_by(@filter, ChildrenHelper::ORDER_BY[@filter], t("children.order_by.most_recently")+" "+ t("children.filter_by.#{@filter == 'all'? 'created' : @filter}"),  @order) %>

<%= link_for_order_by(@filter, "name", t('children.order_by.name'), @order) %>

</form>

<form  class="orderby_panel">

  <input type="hidden" name="filter" value="<%= @filter %>">
	<%= t("children.order_by.label") %>:

<%= select_tag :order_by, options_for_select([[t("children.order_by.most_recently")+" "+ t("children.filter_by.#{@filter == 'all'? 'created' : @filter}").downcase, ChildrenHelper::ORDER_BY[@filter]], [t('children.order_by.name'), "name"]], @order), { :onchange => "this.form.submit();"} %>

</form>

FIX - Ashok - Reverted the code for the order by to drop down instead of link


<%= t("moderation.users.index.title") %>

<%= render Admin::SearchComponent.new(label: t("moderation.users.index.search_placeholder")) %>

<% if @users.present? %>

<%= page_entries_info @users %>

<% end %>

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

          <%= user.name %>

          <% if user.hidden? %>
            <%= t("moderation.users.index.hidden") %>
          <% else %>
          <%= link_to t("moderation.users.index.hide"), hide_in_moderation_screen_moderation_user_path(user, request.query_parameters),
                      method: :put, class: "button hollow alert" %>

      <% end %>

    <% end %>

<%= paginate @users %>

Fix missing </td> closing tag for blocked users

It was working because browsers automatically assume one <td> element
ends when finding a </tr> tag without a </td>.


<% content_for :page_title do %>
  Request Sent
<% end %>

Your session is on ...

You will need to ...

<% content_for :page_title do %>
  Request Sent
<% end %>

Your session is on 11/05/2015 at 9:50am at Earlsfield and will last upto 30 minutes

Make sure that ...

If you need to reschedule or cancel ...

Update text on confirmation page

Update text on confirmation page


# This file was auto-generated by lib/generators/tasks/generate.rb

module Slack
  module Endpoint
    module <%= group.capitalize %>
<% names.each do |name, data| %>
      #
<% data["desc"].lines.each do |l| %>
      # <%= l.strip %>
<% end %>
      #
<% data["args"].reject{|k, v| k=="token"}.each do |arg_name, arg_v| %>
      # @option options [<%= arg_v["type"] %>] :<%= arg_name %>
<% arg_v["desc"].lines.each do |l| %>
      #   <%= l.strip %>
<% end %>
<% end %>
      # @see https://api.slack.com/methods/<%= group %>.<%= name %>
      # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/<%= group %>.<%= name %>.md
      # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/<%= group %>.<%= name %>.json
      def <%= group %>_<%= name %>(options={})
<% data["args"].reject{|k, v| k=="token"}.select{|k,v| v["required"]}.each do |arg_name, arg_v| %>
        throw ArgumentError.new("Required arguments :<%= arg_name %> missing") if options[:<%= arg_name %>].nil?
<% end %>
        options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
        post("<%= group %>.<%= name %>", options)
      end

<% end %>
    end
  end
end

# This file was auto-generated by lib/generators/tasks/generate.rb

module Slack
  module Endpoint
    module <%= group.capitalize %>
<% names.each do |name, data| %>
      #
<% data["desc"].lines.each do |l| %>
      # <%= l.strip %>
<% end %>
      #
<% data["args"].reject{|k, v| k=="token"}.each do |arg_name, arg_v| %>
      # @option options [<%= arg_v["type"] %>] :<%= arg_name %>
<% arg_v["desc"].lines.each do |l| %>
      #   <%= l.strip %>
<% end %>
<% end %>
      # @see https://api.slack.com/methods/<%= group %>.<%= name %>
      # @see https://github.com/aki017/slack-api-docs/blob/master/methods/<%= group %>.<%= name %>.md
      # @see https://github.com/aki017/slack-api-docs/blob/master/methods/<%= group %>.<%= name %>.json
      def <%= group %>_<%= name %>(options={})
<% data["args"].reject{|k, v| k=="token"}.select{|k,v| v["required"]}.each do |arg_name, arg_v| %>
        throw ArgumentError.new("Required arguments :<%= arg_name %> missing") if options[:<%= arg_name %>].nil?
<% end %>
        options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
        post("<%= group %>.<%= name %>", options)
      end

<% end %>
    end
  end
end

Change document repository to aki017/slack-api-docs


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

<%= csrf_meta_tags %>

<title>
  <%= "Spree #{Spree.t('administration')}: " %>
  <%= Spree.t(controller.controller_name, :default => controller.controller_name.titleize) %>
</title>

<!-- Get "Open Sans" font from Google -->
<link href='//fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600&subset=latin,cyrillic,greek,vietnamese' rel='stylesheet' type='text/css'>

<%= stylesheet_link_tag 'admin/all' %>

<%= javascript_include_tag 'admin/all' %>

<%= render "spree/admin/shared/translations" %>
<%= render "spree/admin/shared/routes" %>

<%= javascript_tag do -%>
  jQuery.alerts.dialogClass = 'spree';
  <%== "var AUTH_TOKEN = #{form_authenticity_token.inspect};" %>
<% end -%>

<%= yield :head %>

Bring spree/admin/shared/head partial from spree_backend


<% provide(:title, controller_name) %>

リード新規作成

  <%= link_to '戻る', leads_path %>

<%= render 'form' %>

<% provide(:title, controller_name) %>

リード新規作成

  <%= link_to '戻る', @event %>

<%= render 'form' %>

Fix a bug to change routing of lead

Fix a bug to change routing of lead


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

      Title
      Rating>
      Edit

      <% @user.movies.each do |movie| %>
        <%= movie.name %>
        <%= movie.rating %>
        EDIT_LINK
      <% end %>

Create directory for user views

Create directory for user views


window.App = Ember.Application.create
  LOG_TRANSITIONS: <%= Rails.env == 'development' %>

window.App = Em.Application.create
  LOG_TRANSITIONS: <%= Rails.env == 'development' %>

Use short form of Ember (Em)

Use short form of Ember (Em)


Edit outgoing message

<%= error_messages_for 'outgoing_message' %>

<%= form_tag admin_request_update_outgoing_path(@outgoing_message) do %>

Body of message

   <%= text_area 'outgoing_message', 'body', :rows => 10, :cols => 60  %>

Note: This is mainly to be used to excise information
  that users inadvertently put in their messages, not realising it would be
  public. It will already have been sent to the public authority, and their
  reply may also include that information and be automatically published on
  this site. You could also use this to edit a message before resending it, but
  only the edited version will be shown on the public page if you do that.

<%= submit_tag 'Save', :accesskey => 's' %>

<% end %>

<%= link_to 'Show', admin_request_show_path(@outgoing_message.info_request) %> |
<%= link_to 'List all', admin_request_list_path %>

<%= form_tag admin_request_destroy_outgoing_path do %>

      <%= hidden_field_tag 'outgoing_message_id', @outgoing_message.id %>
      Warning, this is permanent! --->
      <%= submit_tag "Destroy outgoing message" %>

<% end %>

Edit outgoing message

<%= error_messages_for 'outgoing_message' %>

<%= form_tag admin_request_update_outgoing_path(@outgoing_message) do %>

Body of message

   <%= text_area 'outgoing_message', 'body', :rows => 10, :cols => 60  %>

Note: This is mainly to be used to excise information
  that users inadvertently put in their messages, not realising it would be
  public. It will already have been sent to the public authority, and their
  reply may also include that information and be automatically published on
  this site. You could also use this to edit a message before resending it, but
  only the edited version will be shown on the public page if you do that.

<%= submit_tag 'Save', :accesskey => 's' %>

<% end %>

<%= link_to 'Show', admin_request_show_path(@outgoing_message.info_request) %> |
<%= link_to 'List all', admin_request_list_path %>

<%= form_tag admin_request_destroy_outgoing_path do %>

      <%= hidden_field_tag 'outgoing_message_id', @outgoing_message.id %>
      <%= submit_tag "Destroy outgoing message", :class => "btn btn-danger", :confirm => "This is permanent! Are you sure?" %>

<% end %>

Add confirmation to outgoing messsage destroy.

Closes #1053.


<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:back_to_resource, resource: Spree::Question.model_name.human(count: 2)), spree.admin_questions_path, icon: 'arrow-left', class: 'btn-primary' %>
<% end %>

<%= form_for [:admin, resource] do |f| %>

        <%= label_tag :question_category, Spree::QuestionCategory.model_name.human %>
        <%= f.collection_select :question_category_id, Spree::QuestionCategory.all, :id, :name, { include_blank: Spree.t('match_choices.none') }, class: 'select2' %>

        <%= f.label :question, Spree::Question.human_attribute_name(:question) %>
        <%= f.text_field :question, class: 'form-control' %>

        <%= f.label :answer, Spree::Question.human_attribute_name(:answer) %>
        <%= f.text_area :answer, rows: 2, class: 'form-control' %>

  <%= render "spree/admin/shared/#{resource.new_record? ? 'new' : 'edit'}_resource_links" %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:back_to_resource, resource: Spree::Question.model_name.human(count: 2)), spree.admin_questions_path, icon: 'arrow-left', class: 'btn-primary' %>
<% end %>

<%= form_for [:admin, resource] do |f| %>

        <%= label_tag :question_category, Spree::QuestionCategory.model_name.human %>
        <%= f.collection_select :question_category_id, Spree::QuestionCategory.reorder(name: :asc), :id, :name, { include_blank: Spree.t('match_choices.none') }, class: 'select2' %>

        <%= f.label :question, Spree::Question.human_attribute_name(:question) %>
        <%= f.text_field :question, class: 'form-control' %>

        <%= f.label :answer, Spree::Question.human_attribute_name(:answer) %>
        <%= f.text_area :answer, rows: 6, class: 'form-control' %>

  <%= render "spree/admin/shared/#{resource.new_record? ? 'new' : 'edit'}_resource_links" %>
<% end %>

Sort category list by name and bigger text field.


<% provide(:title, @group.name) %>

  <% if @group.photo %>
    <%= image_tag @group.photo(:medium) %>
  <% end %>

<%= @group.name %>

<%= @group.kind %> GROUP IN <%= @neighborhood.name%>

<%= link_to "View member listing", member_listing_group_path(@group) %>
<%= render 'groups/settings' %>

    <%= render 'posts/new' %>
    <%= render 'groups/info_box' %>

    <%= render 'posts/index', posts: @posts %>

<% if current_user.is_leader(@group) %>
    <%= link_to 'Edit Group', edit_group_path, class: 'button success radius small' %>
<% end %>

<% provide(:title, @group.name) %>

  <% if @group.photo %>
    <%= image_tag @group.photo(:medium) %>
  <% end %>

<%= @group.name %>

<%= @group.kind %> GROUP IN <%= @neighborhood.name%>

<%= render 'groups/settings' %>

    <%= render 'posts/new' %>
    <%= render 'groups/info_box' %>

    <%= render 'posts/index', posts: @posts %>

<% if current_user.is_leader(@group) %>
    <%= link_to 'Edit Group', edit_group_path, class: 'button success radius small' %>
<% end %>

Comment out member directory for now

Comment out member directory for now


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

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

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

<%= msg %>

      <% end %>

  <% end %>

    <%= f.label :twilio_sid %>

    <%= f.text_field :twilio_sid %>

    <%= f.label :twilio_secret %>

    <%= f.text_field :twilio_secret %>

    <%= f.label :twilio_from_number %>

    <%= f.text_field :twilio_from_number %>

    <%= f.submit %>

<% end %>

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

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

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

<%= msg %>

      <% end %>

  <% end %>

    <%= f.label :twilio_sid %>

    <%= f.text_field :twilio_sid %>

    <%= f.label :twilio_secret %>

    <%= f.password_field :twilio_secret %>

    <%= f.label :twilio_from_number %>

    <%= f.text_field :twilio_from_number %>

    <%= f.submit %>

<% end %>

Change Twilio secret field to type='password'.


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

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

  <% end %>

 SOME SHIT YOU'VE SEARCHED FOR

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

<%= story.title %>

  <% end %>

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

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

  <% end %>

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

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

  <% end %>

 SOME SHIT YOU'VE SEARCHED FOR:

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

<%= story.title %>

    <% end %>

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

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

  <% end %>

Remove unnecessary white space from erb in index


<%=t('user.email')%>

<%= f.text_field :email %>

<% if f.object.needs_password? -%>

<%=t('user.password')%>

<%= f.password_field :password %>

<%=t('user.confirm_password')%>

	<%= f.password_field :password_confirmation%>

<% end -%>

<%=t('user.full_name')%>

<%= f.text_field :_full_name %>

<%=t('user.email')%>

<%= f.text_field :email %>

<% if f.object.needs_password? -%>

<%=t('user.password')%>

<%= f.password_field :password %>

<%=t('user.confirm_password')%>

	<%= f.password_field :password_confirmation%>

<% end -%>

<% if f.object.new_record? # User is not registered yet, generate login from full_name
%>

<%=t('user.full_name')%>

<%= f.text_field :_full_name %>

<% else -%>

<%=t('user.login')%>

<%= f.text_field :login %>

<% end -%>

Fix user login in edit form

Fix user login in edit form