git-svn-id: http://butlerpress.com/var/repos/racing_on_rails/trunk@914 2d86388d-c40f-0410-ad6a-a69da6a65d20

<% @page_title = "BAR" %>

<%= tabs(false) do |tabs|
  for discipline in @all_disciplines
	tabs.add(discipline.name, :action => 'show', :discipline => discipline, :year => @year)
  end
end -%>

<%= tabs(false) do |tabs|
  tabs.add('2007', :action => 'show', :year => '2007')
  tabs.add('2006', :action => 'show', :year => '2006')
  2005.step(2001, -1) do |year|
	tabs.add(year, "http://www.obra.org/bar/#{year}/index.html")
  end
end -%>

<%= tabs(false) do |tabs|
  for category in @bar_categories.sort
    tabs.add(category.short_name, :action => 'show', :category => category.friendly_param, :year => @year)
  end
end -%>

Oregon Best All-Around Rider (BAR) a year-round, multi-discipline competition open to annual members. Points and ranking will be tracked in at least the following categories: Senior Men and Women, Masters Men and Women, Junior Men and Women, Tandem.

There are seven separate rankings, one each for Road, Track, Criterium, Time Trial, Cyclocross and Mountain Bike (Cross country and Downhill/SuperD). Points are awarded for finishes at all OBRA races for the top 15 in each class: 30, 25, 22, 19, 17, 15, 13, 11, 9, 7, 5, 4, 3, 2, 1.

State Championships are awarded double points. National caliber races are awarded triple points.

Points earned in team events are split evenly across the team members. Example: the winners of a three-person team time trial will each receive 10 points.

Tandem teams earn points as a team. Tandem points do not count toward individual rider points.

If a rider has multiple finishes in a single event, only the best finish counts.

If a rider has multiple discipline rankings that would count towards the same overall category, only the best ranking counts.

Weeknight events will accrue points for each month of racing.

Points are tallied and riders are ranked in order of points in each discipline. The rider with the highest point tally in each discipline is awarded 300 "ranking" points, the rider with the second highest is awarded 299, third gets 298, etc. If a rider has points in more than 4 disciplines, he/she is awarded 50 additional ranking points for each discipline over 4. This means that there is a total 1200 points possible with a possible additional bonus of 150.

These ranking numbers are then added to determine annual awards.  Riders must compete in a minimum of 4 disciplines in order to qualify annual trophies.

The Team BAR awarded based on the sum of the accrued points before rankings.

error: pathspec 'app/views/bar/index.rhtml' did not match any file(s) known to git


ActionItem1049: being able to edit limit of items

<%= labelled_form_field _('Limit of items'), text_field(:block, :limit, :size => 3) %>

error: pathspec 'app/views/box_organizer/_recent_documents_block.rhtml' did not match any file(s) known to git


Ok, now lets try this

Ok, now lets try this

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/mhsjlw/minecraft-buildpack.git/'


removing some references to prio/sever in task-row

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/evinoca/clockingit.git/'


use currency_fmt for balance

use currency_fmt for balance

Bilanz für <%= @client.name %> <%= @year %>

<% form_tag(:action=> :show) do %>
  Stichdatum: <%= text_field 'balance', 'date' %>
  <%= submit_tag 'Los' %>
<% end %>

    Umlaufvermögen
    Fremdkapital

          Konto
          Saldo

        <% for account in @client.current_assets %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(@client.saldo(:current_assets)) %>

          Konto
          Saldo

        <% for account in @client.outside_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(-account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(-@client.saldo(:outside_capital)) %>

    Anlagevermögen
    Eigenkapital

          Konto
          Saldo

        <% for account in @client.capital_assets %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(@client.saldo(:capital_assets)) %>

          Konto
          Saldo

        <% for account in @client.equity_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= -account.saldo %>

        <% end %>

          Total
          <%= currency_fmt(-@client.saldo(:equity_capital)) %>

    Total: <%= currency_fmt(@client.saldo(:current_assets) + @client.saldo(:capital_assets)) %>
    Total: <%= currency_fmt(-(@client.saldo(:outside_capital) + @client.saldo(:equity_capital))) %>

Bilanz für <%= @client.name %> <%= @year %>

<% form_tag(:action=> :show) do %>
  Stichdatum: <%= text_field 'balance', 'date' %>
  <%= submit_tag 'Los' %>
<% end %>

    Umlaufvermögen
    Fremdkapital

          Konto
          Saldo

        <% for account in @client.current_assets %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= account.saldo %>

        <% end %>

          Total
          <%= @client.saldo(:current_assets) %>

          Konto
          Saldo

        <% for account in @client.outside_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= -account.saldo %>

        <% end %>

          Total
          <%= -@client.saldo(:outside_capital) %>

    Anlagevermögen
    Eigenkapital

          Konto
          Saldo

        <% for account in @client.capital_assets %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= account.saldo %>

        <% end %>

          Total
          <%= @client.saldo(:capital_assets) %>

          Konto
          Saldo

        <% for account in @client.equity_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= -account.saldo %>

        <% end %>

          Total
          <%= -@client.saldo(:equity_capital) %>

    Total: <%= @client.saldo(:current_assets) + @client.saldo(:capital_assets) %>
    Total: <%= -(@client.saldo(:outside_capital) + @client.saldo(:equity_capital)) %>


Update TimerWindow to use seconds instead of minutes for work


added placeholder for admin webpage so tests will pass

error: pathspec 'app/views/admin/home/index.rhtml' did not match any file(s) known to git


Add nil rescues around helper functions not available to account controller (need a better way for this though)

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@179 820eb932-12ee-0310-9ca8-eeb645f39767

<!DOCTYPE html PUBLIC "-//w3c//dtd XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">

  <title>Typo admin: <%= controller.controller_name %></title>
  <%= stylesheet_link_tag "admin.css" %>

<%= link_to "Typo admin (#{config['blog_name']})", "/admin/" %>

    <%= current_user_notice rescue nil %>

<%= link_to_section "General", :controller=>"/admin/general" rescue nil %>

<%= link_to_section "Articles", :controller=>"/admin/content" rescue nil %>

<%= link_to_section "Users", :controller=>"/admin/users" rescue nil %>

    <%= render_flash rescue nil %>

  <%= @content_for_layout %>

<!DOCTYPE html PUBLIC "-//w3c//dtd XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">

  <title>Typo admin: <%= controller.controller_name %></title>
  <%= stylesheet_link_tag "admin.css" %>

<%= link_to "Typo admin (#{config['blog_name']})", "/admin/" %>

    <%= current_user_notice %>

<%= link_to_section "General", :controller=>"/admin/general"%>

<%= link_to_section "Articles", :controller=>"/admin/content"%>

<%= link_to_section "Users", :controller=>"/admin/users"%>

    <%= render_flash %>

  <%= @content_for_layout %>


add accounttype column in accounts list

add accounttype column in accounts list

Accounts

    Number
    Title
    Type
    Saldo

<% for account in @accounts %>

    <%=h account.number %>
    <%= link_to h(account.title), :action => 'show', :id => account %>
    <%=h account.account_type.title unless account.account_type.nil? %>
    <%=h account.saldo.abs %>
    <%= link_to 'Edit', :action => 'edit', :id => account %>
    <%= link_to 'Destroy', { :action => 'destroy', :id => account }, :confirm => 'Are you sure?', :post => true %>

<% end %>

<%= link_to 'Previous page', { :page => @account_pages.current.previous } if @account_pages.current.previous %>
<%= link_to 'Next page', { :page => @account_pages.current.next } if @account_pages.current.next %>

<%= link_to 'New account', :action => 'new' %>

Accounts

    Number
    Title
    Saldo

<% for account in @accounts %>

    <%=h account.number %>
    <%= link_to h(account.title), :action => 'show', :id => account %>
    <%=h account.saldo.abs %>
    <%= link_to 'Edit', :action => 'edit', :id => account %>
    <%= link_to 'Destroy', { :action => 'destroy', :id => account }, :confirm => 'Are you sure?', :post => true %>

<% end %>

<%= link_to 'Previous page', { :page => @account_pages.current.previous } if @account_pages.current.previous %>
<%= link_to 'Next page', { :page => @account_pages.current.next } if @account_pages.current.next %>

<%= link_to 'New account', :action => 'new' %>


ActionItem36: adding missing template

ActionItem36: adding missing template

git-svn-id: 43659daf80e124e0b603d67096418e58e4f21099@1470 3f533792-8f58-4932-b0fe-aaf55b0a4547

<%= _("%s's friends") % profile.name %>

<% @friends.each do |friend| %>

<%= profile_image_link(friend)%>

<% end %>

<% button_bar do %>
  <%= button(:back, _('Go back'), :controller => 'profile_editor') %>
<% end %>

error: pathspec 'app/views/friends/index.rhtml' did not match any file(s) known to git


Fix task type editing for non-new tasks as well


Forgot to commit this

Forgot to commit this

<div class="comment_in_request" id="comment-<%=comment.id.to_s%>">

        On <%= simple_date(comment.created_at || Time.now) %>,
        <%= comment.user ? user_link(comment.user) : 'you' %> added an annotation:

        "<%= comment.get_body_for_html_display %>"

error: pathspec 'app/views/comment/_single_comment.rhtml' did not match any file(s) known to git


Include the diff view so we can link back to the main revision.

<%= l(:label_revision) %> <%= format_revision(@rev_to) + ':' if @rev_to %><%= format_revision(@rev) %> <%=h @path %>

<% form_tag({:path => to_path_param(@path)}, :method => 'get') do %>
  <%= hidden_field_tag('rev', params[:rev]) if params[:rev] %>
  <%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>

<%= l(:label_view_diff) %>
  <%= select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type), :onchange => "if (this.value != '') {this.form.submit()}" %>

<% end %>

<% cache(@cache_key) do -%>
<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
<% end -%>

<% other_formats_links do |f| %>
	<%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %>
<% end %>

<% html_title(with_leading_slash(@path), 'Diff') -%>

<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>

error: pathspec 'app/views/diff.rhtml' did not match any file(s) known to git


Cancel button when uploading photos

Cancel button when uploading photos

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/graysky/tourbus.git/'


add support for different currencies in bookings _form

<%= error_messages_for 'booking' %>

Value date

<%= text_field 'booking', 'value_date'  %>

Amount

<%= text_field 'booking', 'amount'  %>

Title

<%= text_field 'booking', 'title'  %>

Soll

<%= select 'booking', 'credit_account_id', Account.find(:all, :order => :number).collect {|a| [ a.title, a.id ] } %>
<%= text_field '', 'credit_amount_foreign_currency', :size => 6 %>
<%= text_field 'booking', 'credit_currency', :size => 3 %>

Haben

<%= select 'booking', 'debit_account_id', Account.find(:all, :order => :number).collect {|a| [ a.title, a.id ] } %>
<%= text_field '', 'debit_amount_foreign_currency', :size => 6 %>
<%= text_field 'booking', 'debit_currency', :size => 3 %>

Comments

<%= text_area 'booking', 'comments', :cols => 40, :rows => 5  %>

Scan

<%= file_column_field "booking", "scan" %>

<%= error_messages_for 'booking' %>

Value date

<%= text_field 'booking', 'value_date'  %>

Amount

<%= text_field 'booking', 'amount'  %>

Title

<%= text_field 'booking', 'title'  %>

Soll

<%= select 'booking', 'credit_account_id', Account.find(:all, :order => :number).collect {|a| [ a.title, a.id ] } %>

Haben

<%= select 'booking', 'debit_account_id', Account.find(:all, :order => :number).collect {|a| [ a.title, a.id ] } %>

Comments

<%= text_area 'booking', 'comments', :cols => 40, :rows => 5  %>

Scan

<%= file_column_field "booking", "scan" %>


Add google analytics tracking

Add google analytics tracking


Add 2px spacing to the left of task icons

Signed-off-by: Ari Maniatis <7158a9e0f8e84a0a74ed148e0f652dfbd4913a18@ish.com.au>


Remove version number: 0.99.3 is not even remotely right.


show only active projects

show only active projects

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/doug-c/rubytime.git/'


tweak

tweak


put your applications back in, oops

put your applications back in, oops

<% if @processor_list.empty? %>

Sorry, no applications have been submitted for a project you are processing.
<% else  %>
    <%= render :partial => "processor_pile" %>
<% end %>

error: pathspec 'app/views/main/your_applications.rhtml' did not match any file(s) known to git


Some more info on calculated status on request page

<% @title = "FOI request - " + h(@info_request.title) %>
<%= javascript_include_tag :defaults %>

<%=@title%>

<% for column in InfoRequest.content_columns %>
  <%= column.human_name %>: <%=h @info_request.send(column.name) %>
  <% if column.name == 'described_state' %>
    Calculated status: <%= @info_request.calculate_status %>

Initial request last sent at: <%=@info_request.date_initial_request_last_sent_at.to_date %>
        Date response required by: <%= @info_request.date_response_required_by %>
        Very overdue after: <%= @info_request.date_very_overdue_after %>
  <% end %>
  <% if ![ 'allow_new_responses_from' ].include?(column.name) %>

  <% end %>
<% end %>
Created by: <%= user_both_links(@info_request.user) %>

Public authority: <%= public_body_both_links(@info_request.public_body) %>

Incoming email address: <%= link_to h(@info_request.incoming_email), "mailto:" + @info_request.incoming_email %>

    <%= link_to 'Public page', main_url(request_url(@info_request)) %>
    | <%= link_to 'Edit', '../edit/' + @info_request.id.to_s %>
    | <%= link_to 'FOI officer upload URL', '../generate_upload_url/' + @info_request.id.to_s %> (see also links on incoming messages below)

Events

  Id
  <% for column in InfoRequestEvent.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h info_request_event.id %>
  <% for column in InfoRequestEvent.content_columns %>

      <% if column.name == 'params_yaml' %>
        <%= info_request_event.params_yaml_as_html %>
      <% elsif column.text? %>
        <%=h (info_request_event.send(column.name) || '').gsub(/_/,' ') %>
      <% else %>
        <%=h info_request_event.send(column.name) %>
      <% end %>

  <% end %>

    <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
        <% form_tag '../mark_event_as_clarification' do %>

              <%= hidden_field_tag 'info_request_event_id', info_request_event.id %>
              <%= submit_tag "Was clarification request" %>

        <% end %>
    <% end %>

<% end %>

Outgoing messages

    Id
    <% for column in OutgoingMessage.content_columns %>
      <%= column.human_name %>
    <% end %>
    Actions

<% for outgoing_message in @info_request.outgoing_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h outgoing_message.id %>
  <% for column in OutgoingMessage.content_columns.map { |c| c.name } %>

    <% if column == 'body' %>

<%= simple_format( truncate(outgoing_message.body, :length => 400,
                 :omission => link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( outgoing_message.body ) %>

    <% else %>
      <%= simple_format( outgoing_message.send(column) ) %>
    <% end %>

  <% end %>

  <% form_tag '../resend' do %>

          <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
          <%= submit_tag "Resend" %>

  <% end %>
  <%= link_to "Edit", '../edit_outgoing/' + outgoing_message.id.to_s %>

<% end %>

Incoming messages

  Id
  <% for column in IncomingMessage.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>" id="incoming-<%=incoming_message.id.to_s%>">
  <%=h incoming_message.id %>
  <% for column in IncomingMessage.content_columns.map { |c| c.name } %>
    <% if column =~ /^cached_.*?$/ %>

<%= simple_format( truncate(incoming_message.send(column), :length => 400,
               :omission => link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( incoming_message.send(column) ) %>

    <% else %>
      <%= simple_format( incoming_message.send(column) ) %>
    <% end %>
  <% end %>

        <% if !incoming_message.raw_email_id.nil? %>

            <%= link_to "View raw email", "../show_raw_email/" + incoming_message.raw_email_id.to_s %>

        <% end %>
        <%= render :partial => 'incoming_message_actions', :locals => { :incoming_message => incoming_message } %>

<% end %>

Annotations

<% if @info_request.comments.size > 0 %>

    Id
    Posted by
    <% for column in Comment.content_columns %>
      <%= column.human_name %>
    <% end %>
    Actions

  <% for comment in @info_request.comments %>
    <tr class="<%= cycle('odd', 'even') %>">
    <%=h comment.id %>
    <%= user_both_links(comment.user) %>
    <% for column in Comment.content_columns.map { |c| c.name } %>
      <% if column == 'body' && !comment.visible %>
          <s><%=h comment.send(column) %></s>
      <% else %>
          <%=h comment.send(column) %>
      <% end %>
    <% end %>

        <%= link_to "Edit", '../edit_comment/' + comment.id.to_s %>

  <% end %>

<% else %>

None yet.

<% end %>

Exim delivery logs

(Lines containing the request incoming email address, updated hourly.)

<% for exim_log_done_id, exim_logs in @info_request.exim_logs.group_by(&:exim_log_done_id) %>

<% for exim_log in exim_logs %><%=h exim_log.line%><% end %>

<% end %>
<% if @info_request.exim_logs.size == 0 %>

None (perhaps this is an old or a very new request)

<% end %>

Censor rules

<%= render :partial => 'admin_censor_rule/show', :locals => { :censor_rules => @info_request.censor_rules, :info_request => @info_request } %>

<% @title = "FOI request - " + h(@info_request.title) %>
<%= javascript_include_tag :defaults %>

<%=@title%>

<% for column in InfoRequest.content_columns %>
  <%= column.human_name %>: <%=h @info_request.send(column.name) %>

<% end %>
Created by: <%= user_both_links(@info_request.user) %>

Public authority: <%= public_body_both_links(@info_request.public_body) %>

Incoming email address: <%= link_to h(@info_request.incoming_email), "mailto:" + @info_request.incoming_email %>

Initial request last sent at: <%=@info_request.date_initial_request_last_sent_at.to_date %>
    Date response required by: <%= @info_request.date_response_required_by %>
    Very overdue after: <%= @info_request.date_very_overdue_after %>

    <%= link_to 'Public page', main_url(request_url(@info_request)) %>
    | <%= link_to 'Edit', '../edit/' + @info_request.id.to_s %>
    | <%= link_to 'FOI officer upload URL', '../generate_upload_url/' + @info_request.id.to_s %> (see also links on incoming messages below)

Events

  Id
  <% for column in InfoRequestEvent.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h info_request_event.id %>
  <% for column in InfoRequestEvent.content_columns %>

      <% if column.name == 'params_yaml' %>
        <%= info_request_event.params_yaml_as_html %>
      <% elsif column.text? %>
        <%=h (info_request_event.send(column.name) || '').gsub(/_/,' ') %>
      <% else %>
        <%=h info_request_event.send(column.name) %>
      <% end %>

  <% end %>

    <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
        <% form_tag '../mark_event_as_clarification' do %>

              <%= hidden_field_tag 'info_request_event_id', info_request_event.id %>
              <%= submit_tag "Was clarification request" %>

        <% end %>
    <% end %>

<% end %>

Outgoing messages

    Id
    <% for column in OutgoingMessage.content_columns %>
      <%= column.human_name %>
    <% end %>
    Actions

<% for outgoing_message in @info_request.outgoing_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h outgoing_message.id %>
  <% for column in OutgoingMessage.content_columns.map { |c| c.name } %>

    <% if column == 'body' %>

<%= simple_format( truncate(outgoing_message.body, :length => 400,
                 :omission => link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( outgoing_message.body ) %>

    <% else %>
      <%= simple_format( outgoing_message.send(column) ) %>
    <% end %>

  <% end %>

  <% form_tag '../resend' do %>

          <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
          <%= submit_tag "Resend" %>

  <% end %>
  <%= link_to "Edit", '../edit_outgoing/' + outgoing_message.id.to_s %>

<% end %>

Incoming messages

  Id
  <% for column in IncomingMessage.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>" id="incoming-<%=incoming_message.id.to_s%>">
  <%=h incoming_message.id %>
  <% for column in IncomingMessage.content_columns.map { |c| c.name } %>
    <% if column =~ /^cached_.*?$/ %>

<%= simple_format( truncate(incoming_message.send(column), :length => 400,
               :omission => link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( incoming_message.send(column) ) %>

    <% else %>
      <%= simple_format( incoming_message.send(column) ) %>
    <% end %>
  <% end %>

        <% if !incoming_message.raw_email_id.nil? %>

            <%= link_to "View raw email", "../show_raw_email/" + incoming_message.raw_email_id.to_s %>

        <% end %>
        <%= render :partial => 'incoming_message_actions', :locals => { :incoming_message => incoming_message } %>

<% end %>

Annotations

<% if @info_request.comments.size > 0 %>

    Id
    Posted by
    <% for column in Comment.content_columns %>
      <%= column.human_name %>
    <% end %>
    Actions

  <% for comment in @info_request.comments %>
    <tr class="<%= cycle('odd', 'even') %>">
    <%=h comment.id %>
    <%= user_both_links(comment.user) %>
    <% for column in Comment.content_columns.map { |c| c.name } %>
      <% if column == 'body' && !comment.visible %>
          <s><%=h comment.send(column) %></s>
      <% else %>
          <%=h comment.send(column) %>
      <% end %>
    <% end %>

        <%= link_to "Edit", '../edit_comment/' + comment.id.to_s %>

  <% end %>

<% else %>

None yet.

<% end %>

Exim delivery logs

(Lines containing the request incoming email address, updated hourly.)

<% for exim_log_done_id, exim_logs in @info_request.exim_logs.group_by(&:exim_log_done_id) %>

<% for exim_log in exim_logs %><%=h exim_log.line%><% end %>

<% end %>
<% if @info_request.exim_logs.size == 0 %>

None (perhaps this is an old or a very new request)

<% end %>

Censor rules

<%= render :partial => 'admin_censor_rule/show', :locals => { :censor_rules => @info_request.censor_rules, :info_request => @info_request } %>


Fix stopping times on the dashboard

Fix stopping times on the dashboard

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <title><%= "#{h(page_title)} @ #{h(Company.owner.name)}" %></title>
    <%= stylesheet_link_tag 'company_website' %>
<% additional_stylesheets.each do |ss| -%>
    <%= stylesheet_link_tag ss %>
<% end unless additional_stylesheets.nil? -%>
    <%= javascript_include_tag 'jquery.js' %>
    <%= javascript_include_tag 'jquery-ui.js' %>
    <%= javascript_include_tag 'jrails.js' %>
    <%= javascript_include_tag 'application.js' %>

    <%= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %>
    <%= javascript_tag "var LOGGED_USER_ID=#{@logged_user.id};" %>

<%= link_to site_name, :controller => 'dashboard' %>

<%= render :partial => 'layouts/user_box', :locals => {:user => @logged_user, :projects => @active_projects, :running_times => @running_times} %>

      <%= render :partial => 'layouts/tabs', :object => dashboard_tabbed_navigation %>

          <%= render :partial => 'layouts/crumbs', :object => dashboard_crumbs %>

          <% if AppConfig.search_enabled %>

            <%= form_tag :controller => 'dashboard', :action => 'search' %>

<%
  @search_field_default_value = :search_box_default.l
  @last_search ||= @search_field_default_value
  @search_field_attrs = {
    :onfocus => "if (event.target.value == '#{@search_field_default_value}') event.target.value=''",
    :onblur => "if (event.target.value == '#{@search_field_default_value}') event.target.value=''"
  }
%>
                <%= text_field_tag 'search_id', (h @last_search), @search_field_attrs %><button type="submit"><%= :go.l %></button>

            </form>

          <% end %>

<% if flash[:message] %>
          <div id="<%= flash[:error] ? 'error' : 'success' %>" class="StatusMessage <%= flash[:error] ? 'flash_error' : 'flash_success' %>"><%= h flash[:message] %>

<% end %>

<%= h page_title %>

            <div id="content" <%= @content_for_sidebar.nil? ? '' : 'class=\'sidebar\'' %>>
              <%= render :partial => 'layouts/actions' unless page_actions.nil? %>

              <%= yield %>

<% unless @content_for_sidebar.nil? %>

<%= render :partial => @content_for_sidebar %>

<% end %>

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <title><%= "#{h(page_title)} @ #{h(Company.owner.name)}" %></title>
    <%= stylesheet_link_tag 'company_website' %>
<% additional_stylesheets.each do |ss| -%>
    <%= stylesheet_link_tag ss %>
<% end unless additional_stylesheets.nil? -%>
    <%= javascript_include_tag 'jquery.js' %>
    <%= javascript_include_tag 'jquery-ui.js' %>
    <%= javascript_include_tag 'jrails.js' %>
    <%= javascript_include_tag 'application.js' %>

    <%= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %>

<%= link_to site_name, :controller => 'dashboard' %>

<%= render :partial => 'layouts/user_box', :locals => {:user => @logged_user, :projects => @active_projects, :running_times => @running_times} %>

      <%= render :partial => 'layouts/tabs', :object => dashboard_tabbed_navigation %>

          <%= render :partial => 'layouts/crumbs', :object => dashboard_crumbs %>

          <% if AppConfig.search_enabled %>

            <%= form_tag :controller => 'dashboard', :action => 'search' %>

<%
  @search_field_default_value = :search_box_default.l
  @last_search ||= @search_field_default_value
  @search_field_attrs = {
    :onfocus => "if (event.target.value == '#{@search_field_default_value}') event.target.value=''",
    :onblur => "if (event.target.value == '#{@search_field_default_value}') event.target.value=''"
  }
%>
                <%= text_field_tag 'search_id', (h @last_search), @search_field_attrs %><button type="submit"><%= :go.l %></button>

            </form>

          <% end %>

<% if flash[:message] %>
          <div id="<%= flash[:error] ? 'error' : 'success' %>" class="StatusMessage <%= flash[:error] ? 'flash_error' : 'flash_success' %>"><%= h flash[:message] %>

<% end %>

<%= h page_title %>

            <div id="content" <%= @content_for_sidebar.nil? ? '' : 'class=\'sidebar\'' %>>
              <%= render :partial => 'layouts/actions' unless page_actions.nil? %>

              <%= yield %>

<% unless @content_for_sidebar.nil? %>

<%= render :partial => @content_for_sidebar %>

<% end %>

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


got rid of rico

got rid of rico


Change the bottom links around a bit

Change the bottom links around a bit


partial for cage list

partial for cage list

    Name
    Bats
    Food
    Owner
    Fed by
    Created
    <% if @list_all %>
      Destroyed
    <% end %>

<% for cage in cage_list %>

      <%= link_to cage.name, :action => 'show', :id => cage %>

	<%=h cage.bats.count %>
    <%=h cage.food %>g
    <%=h cage.user ? cage.user.name : "NP" %>
    <%=h cage.fed_by %>
	<%=h nice_date(cage.date_created) %>
  <% if @list_all %>
  <%=h nice_date(cage.date_destroyed) %>
<% end %>
    <%= link_to 'Edit', :action => 'edit', :id => cage %>

	<% if cage.date_destroyed == nil %>
	<%= link_to 'Deactivate', { :action => 'deactivate', :id => cage }, :confirm => 'Are you sure?', :post => true %>
	<% else %>
	<%=  link_to 'Reactivate', { :action => 'reactivate', :id => cage }, :confirm => 'Are you sure?', :post => true %>
    <% end %>

<% end %>

error: pathspec 'batkeeping/app/views/cages/_cage_list.rhtml' did not match any file(s) known to git


fixed onfocus problem

fixed onfocus problem


Got rid of form observer for comment previews in favour of an ajax-based link tag (fixes #xalsconcerns)

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@569 820eb932-12ee-0310-9ca8-eeb645f39767

<%= form_remote_tag :url => {:action => "comment", :id => @article},
                    :position=> :bottom,
                    :update => {:success => 'commentList'},
                    :loading => "loading()",
                    :complete => "complete(request)",
                    :failure => "failure(request)",
                    :html => {:id=>"commentform",:class=>"commentform"} %>

Your name

       <%= text_field "comment", "author", :size => 20 %> <%= link_to_function("(leave url/email »)", "Element.toggle('guest_url'); Element.toggle('guest_email')") %>

Your blog

       <%= text_field "comment", "url" %>

Your email

       <%= text_field "comment", "email" %>

Your message

        <%= text_area "comment", "body" %>

      <%= image_tag "spinner.gif" %>
      Preview comment
      <input type="submit" name="submit" id="form-submit-button" value="submit" class="button" />

<%= end_form_tag %>

<%= form_remote_tag :url => {:action => "comment", :id => @article},
                    :position=> :bottom,
                    :update => {:success => 'commentList'},
                    :loading => "loading()",
                    :complete => "complete(request)",
                    :failure => "failure(request)",
                    :html => {:id=>"commentform",:class=>"commentform"} %>

Your name

       <%= text_field "comment", "author", :size => 20 %> <%= link_to_function("(leave url/email »)", "Element.toggle('guest_url'); Element.toggle('guest_email')") %>

Your blog

       <%= text_field "comment", "url" %>

Your email

       <%= text_field "comment", "email" %>

Your message

        <%= text_area "comment", "body" %>

      <%= image_tag "spinner.gif" %>
        <input type="submit" name="submit" id="form-submit-button" value="submit" class="button" />

<%= end_form_tag %>

<%= observe_form 'commentform',
  :frequency => 0.5,
  :update => 'preview',
  :url => { :controller => 'articles', :action => 'comment_preview' },
  :complete => "Element.show('preview')" %>


Fix viewing shows not logged in

Fix viewing shows not logged in


change password input box css class to make it sync with other scm look in mingle

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/ThoughtWorksStudios/mingle_git_plugin.git/'


Fix minor JS problem on admin settings page.  (closes #287)

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@515 820eb932-12ee-0310-9ca8-eeb645f39767

<% @page_heading = 'Blog settings' %>

  <%= start_form_tag :action => 'update'%>

Which settings group would you like to edit?

General Settings

Text Filter

Spam Protection

Cache

General Settings

      Blog name:
      <input name="setting[blog_name]" id="blog_name" type="text" value="<%= config_value(:blog_name) %>" />

      Blog subtitle:
      <input name="setting[blog_subtitle]" id="blog_subtitle" type="text" value="<%= config_value(:blog_subtitle) %>" />

      <input name="setting[default_allow_comments]" id="default_allow_comments" type="checkbox" value="1" <%= 'checked="checked"' if config_value(:default_allow_comments)%> />
      <input name="setting[default_allow_comments]" type="hidden" value="0"/>
        Enable comments by default

      <input name="setting[default_allow_pings]" id="default_allow_pings" type="checkbox" value="1" <%= 'checked="checked"' if config_value(:default_allow_pings)%> />
      <input name="setting[default_allow_pings]" type="hidden" value="0"/>
        Enable Trackbacks by default

      Display
      <input name="setting[limit_article_display]" size="4" id="limit_article_display" type="text" value="<%= config_value(:limit_article_display) %>" /> articles on my homepage by default.

      Display
      <input name="setting[limit_rss_display]" size="4" id="limit_rss_display" type="text" value="<%= config_value(:limit_rss_display) %>" /> articles in my rss feed by default.

Should the blog show mailto: links to your email address?

<input name="setting[link_to_author]" id="link_to_author" type="checkbox" value="1" <%= 'checked="checked"' if config_value(:link_to_author)%> /><input name="setting[link_to_author]" type="hidden" value="0"/> Enable E-Mail public display

Would you like to include your latitude and longitude in your blog's HTML pages? See GeoURL for details.
Example: <tt>47.774,-122.201</tt>

      Latitude, Longitude:
      <input name="setting[geourl_location]" size="20" id="geourl_location" type="text" value="<%= config_value(:geourl_location) %>" />

<%= save("Save My Settings") %>

Text Filter

Your options depend on which gems you have installed. Following configurations are supported. RedCloth, BlueCloth and RubyPants gems are supported.

        <select name="setting[text_filter]" id="text_filter">
          <%= options_for_select text_filter_options, config_value(:text_filter) %>
        </select>
        Article filter

        <select name="setting[comment_text_filter]" id="comment_text_filter">
        <%= options_for_select text_filter_options, config_value(:comment_text_filter) %>
        </select>
        Comments filter

<%= save("Save My Settings") %>

Spam Protection

Enabling spam protection will make typo compare the IP address of posters against blacklists. Good defense against spam bots.

          <input name="setting[sp_global]" id="sp_global" type="checkbox" value="1" <%= 'checked="checked"' if config_value(:sp_global)%> /><input name="setting[sp_global]" type="hidden" value="0"/>
          Enable spam protection

          Disable comments after
          <input name="setting[sp_article_auto_close]" size="4" id="sp_article_auto_close" type="text" value="<%= config_value(:sp_article_auto_close) %>" /> days

(Set to 0 to never disable comments)

Typo will automatically reject comments and trackbacks which contain over a certain amount of links in them.

          Max URLs:
          <input name="setting[sp_url_limit]" size="4" id="sp_url_limit" type="text" value="<%= config_value(:sp_url_limit) %>" /> links

(Set to 0 to never reject comments)

<%= save("Save My Settings") %>

Cache

     <%= link_to 'Empty Page Cache', :controller => 'cache', :action => 'sweep' %>

There are <%= @page_cache_size %> entries in the page cache

    <%= save("Save My Settings") %>

  <%= end_form_tag %>


[ClockingIT @ Move chat init to room page]


Clarify wording

Clarify wording

<% if @is_owning_user %>
    <% form_for(:incoming_message, @info_request, :url => describe_state_url(:id => @info_request.id)) do |f| %>

What is the status of this request now?

            <%= radio_button "incoming_message", "described_state", "waiting_response" %>
            I'm still waiting for my information / a rejection (e.g. if the new response was just an acknowledgement)

            <%= radio_button "incoming_message", "described_state", "waiting_clarification" %>
            I'm about to clarify my request

            <%= radio_button "incoming_message", "described_state", "rejected" %>
            My request has been rejected

            <%= radio_button "incoming_message", "described_state", "successful" %>
            I've received all the information (or equivalents) that I asked for

            <%= radio_button "incoming_message", "described_state", "partially_successful" %>
            I've received some of the information that I asked for

            <%= radio_button "incoming_message", "described_state", "requires_admin" %>
            None of the above - e.g. add a new option here

Filling this in each time you get a new response helps us track the progress of your request.

        <%= hidden_field_tag 'last_info_request_event_id', @last_info_request_event_id %>
        <%= hidden_field_tag 'submitted_describe_state', 1 %>
        <%= submit_tag "Next" %>
    <% end %>
<% else %>
        We don't know whether the most recent response to this request contains
        information or not
            –
        if you are
            <%= user_link(@info_request.user) %>,
        please
            <%= link_to "sign in", signin_url(:r => request.request_uri) %>
        and let everyone know.
<% end %>

<% if @is_owning_user %>
    <% form_for(:incoming_message, @info_request, :url => describe_state_url(:id => @info_request.id)) do |f| %>

What is the status of this request now?

            <%= radio_button "incoming_message", "described_state", "waiting_response" %>
            I'm still waiting for a response

            <%= radio_button "incoming_message", "described_state", "waiting_clarification" %>
            I'm about to clarify my request

            <%= radio_button "incoming_message", "described_state", "rejected" %>
            My request has been rejected

            <%= radio_button "incoming_message", "described_state", "successful" %>
            I've received all the information (or equivalents) that I asked for

            <%= radio_button "incoming_message", "described_state", "partially_successful" %>
            I've received some of the information that I asked for

            <%= radio_button "incoming_message", "described_state", "requires_admin" %>
            None of the above - e.g. add a new option here

Filling this in each time you get a new response helps us track the progress of your request.

        <%= hidden_field_tag 'last_info_request_event_id', @last_info_request_event_id %>
        <%= hidden_field_tag 'submitted_describe_state', 1 %>
        <%= submit_tag "Next" %>
    <% end %>
<% else %>
        We don't know whether the most recent response to this request contains
        information or not
            –
        if you are
            <%= user_link(@info_request.user) %>,
        please
            <%= link_to "sign in", signin_url(:r => request.request_uri) %>
        and let everyone know.
<% end %>


Created Contact page

Created Contact page

<% @title = "Contact us" %>

Contact us

We'd love to hear from you.
Please use one of the following
 ways to contact us:

Email

Telephone

Twitter

Postal Address

Email

Write to the AsktheEU.org team here: team@asktheeu.org

You can write to us in English, French, German or Spanish. We aim to answer messages within 24-48 hours.

Telephone

You can call us in English, French, German or Spanish on the following numbers:

Office number (10-19 hrs CET): +34 91 366 5344

Main mobile (any time): + 34 667 685 319

Twitter

Follow us in Twitter: @AsktheEU

Postal Address

Access Info Europe

    Calle Príncipe de Anglona 5, 2c

    28005 Madrid

    Spain

error: pathspec 'lib/views/help/contact.rhtml' did not match any file(s) known to git


missing this

missing this

If you have an accepted application in the last 16 months, you can choose to fill out a shorter form.  Your references will also be reused, so that those who filled out your references are not asked to fill them out again.

<% profiles = (@appln.viewer.accepted_profiles(@eg) - [ @profile ]); if profiles.present? %>

  <% profiles.each do |profile| %>

<%= link_to "Use #{profile.appln.form.title} for #{profile.project.title} as my past accepted application, so that I can fill out the returning applicants form.", :controller => "profiles", :action => "use_past_appln", :profile_id => @profile.id, :requested_appln_id => profile.appln.id %>

  <% end %>

  After clicking the link, the form will reload with the condensed version.

<% else %>
You don't have any accepted applications in the last 16 months.
<% end %>

error: pathspec 'app/views/appln/_returning_applicants.rhtml' did not match any file(s) known to git


Use description instead of link title for delicious sidebar title attributes (closes #398) [wac+typo@carrel.org]

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@646 820eb932-12ee-0310-9ca8-eeb645f39767

<% if @delicious -%>

<a href="http://<%= @delicious.title %>"><%= @delicious.title %>

    <% (@sb_config['groupdate'] ? @delicious.days : [{ :container => @delicious.items }]).each do |group| -%>
    <% if @sb_config['groupdate'] -%>
    <%= group[:date].to_s.to_date.strftime("%b %d") %>
    <% end -%>

      <% for item in group[:container] %>

        <a href="<%= item.link %>" title="<%=h item.description%>"><%=h item.title %>
        <% if @sb_config['description'] -%>

<%= @sb_config['desclink'] ? item.description_link : item.description %>
        <% end -%>

      <% end -%>

    <% end -%>

<% end -%>

<% if @delicious -%>

<a href="http://<%= @delicious.title %>"><%= @delicious.title %>

    <% (@sb_config['groupdate'] ? @delicious.days : [{ :container => @delicious.items }]).each do |group| -%>
    <% if @sb_config['groupdate'] -%>
    <%= group[:date].to_s.to_date.strftime("%b %d") %>
    <% end -%>

      <% for item in group[:container] %>

        <a href="<%= item.link %>" title="<%=h item.title%>"><%=h item.title %>
        <% if @sb_config['description'] -%>

<%= @sb_config['desclink'] ? item.description_link : item.description %>
        <% end -%>

      <% end -%>

    <% end -%>

<% end -%>


Give the editing of censor rule a bootstrap layout

<% @title = 'Edit censor rule' %>

<%=@title%>

<% form_tag admin_rule_update_path(@censor_rule), :class => "form form-horizontal" do %>
   <%= render :partial => 'form', :locals => { :info_request => @censor_rule.info_request, :user => @censor_rule.user } %>

    <%= submit_tag 'Save', :accesskey => 's', :class => "btn btn-primary" %>

<% end %>

<% form_tag admin_rule_destroy_path(@censor_rule), :class => "form form-horizontal" do %>
  <%= hidden_field_tag(:censor_rule_id, @censor_rule.id) %>

    Permanent! --> <%= submit_tag "Destroy rule", :class => "btn btn-primary" %>

<% end %>

<% @title = 'Edit censor rule' %>

<%=@title%>

<% form_tag admin_rule_update_path(@censor_rule) do %>
   <%= render :partial => 'form', :locals => { :info_request => @censor_rule.info_request, :user => @censor_rule.user } %>

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

<% end %>

<% form_tag admin_rule_destroy_path(@censor_rule) do %>

   <%= hidden_field_tag(:censor_rule_id, @censor_rule.id) %>
   Permanent! --> <%= submit_tag "Destroy rule" %>

<% end %>


Added html lang

Added html lang

git-svn-id: d766b2a131eb5d649bacb6a45bc0bcd899bdfdb3@113 c938ebee-df10-0410-95fc-be8c4b0ebdd5

<%= render :partial => "shared/doctype" %>

    <title>小槌</title>
    <%= render :partial => "shared/html_header" %>
    <%= stylesheet_link_tag 'login' %>

      Web家計簿

      小槌
      <%= image_tag("/images/kozuchi.png", :size => "48x48")%>

    <% if @flash[:notice] %>

<%=@flash[:notice]%>

    <% end %>

    <%= form_tag %>

        ログインID
        <%= text_field("user", "login_id", :size => 10) %>

        パスワード
        <%= password_field("user", "password", :size => 10) %>

        <button type="submit" id="login_button">ログイン</button>

    <%=end_form_tag%>

    <%= render :partial => "shared/footer" %>


Fix for event search view's title

Fix for event search view's title

<%= search_page_title( Environment.default.name + "'s " + @titles[:events], @category ) %>

<%= render :partial => 'events/agenda' %>

<%= search_page_title( @titles[:events], @category ) %>

<%= render :partial => 'events/agenda' %>


Make sure completed/completed_total is initialized


Further cleanup of right side of task edit view. Now merge dependencies into one block and also fix a broken close tag which stopped attachments block being visible.


Wrap user project list in a hidden element on userlist page.


Fix issue where everyone was listed for every company on project people list

<% company = people_list; company_card = company %>

<%= h company.name %>

<img src="<%= company_card.logo_url %>" alt="<%= h company_card.name %> logo" />

<%= h company_card.name %>

    <% if company_card.email? %>

      <a href="mailto:<%= h company_card.email %>"><%= h company_card.email %>

    <% end %>

    <% if company_card.homepage? %>
<%= link_to h(company_card.homepage), company_card.homepage %>
<% end %>
    <% if company_card.fax_number? %>
<%= :fax.l %>:<%= h(company_card.fax_number) %>
<% end %>
    <% if company_card.phone_number? %>
<%= :home.l %>:<%= h(company_card.phone_number) %>
<% end %>

<% if company_card.address? %><%= h company_card.address %><% end %>
<% if company_card.address2? %>
<%= h company_card.address2 %><% end %>
<% if company_card.city? and company_card.state? %>

<%= h company_card.city %>, <%= h company_card.state %> <% if company_card.zipcode? %><%= h company_card.zipcode %><% end %>
<% if company_card.country? %>
<%= h company_card.country %><% end %>
<% end %>

    <% if company_card.can_be_edited_by(@logged_user) %>

      <%= action_list actions_for_company(company) %>

    <% end %>

<% num_users = 1 %>
<% users = @active_project.nil? ? company.users : company.users_on_project(@active_project)  %>
<% users.each do |user|
   user_card = user %>

<img src="<%= user_card.avatar_url %>" alt="<%= h user_card.display_name %> avatar" />

<%= h user_card.display_name %>

      <% if user_card.title? %>
 <%= h user_card.title %>
<% end %>

      <a href="mailto:<%= h user_card.email %>"><%= h user_card.email %>

    <% user_card.im_values.each do |im_value| -%>

        <img src="<%= im_value.im_type.icon_url %>" alt="<%= im_value.im_type.name %>" /> <%= h im_value.value %>

    <% end %>

    <% if user_card.office_number? %>
<%= :office.l %>:<%= h(user_card.office_number) %>
<% end %>
    <% if user_card.fax_number? %>
<%= :fax.l %>:<%= h(user_card.fax_number) %>
<% end %>
    <% if user_card.mobile_number? %>
<%= :mobile.l %>:<%= h(user_card.mobile_number) %>
<% end %>
    <% if user_card.home_number? %>
<%= :home.l %>:<%= h(user_card.home_number) %>
<% end %>

    <% if user_card.owner_of_owner? %>
<%= :owner.l %>
<% end %>

    <% if user_card.profile_can_be_updated_by(@logged_user) %>

      <%= action_list actions_for_user(user_card) %>

    <% end %>

<% num_users += 1
   if num_users % 3 == 0 %>

<% end %>

<% end %>
<% unless num_users % 3 == 0 %>

<% end %>

<% company = people_list; company_card = company %>

<%= h company.name %>

<img src="<%= company_card.logo_url %>" alt="<%= h company_card.name %> logo" />

<%= h company_card.name %>

    <% if company_card.email? %>

      <a href="mailto:<%= h company_card.email %>"><%= h company_card.email %>

    <% end %>

    <% if company_card.homepage? %>
<%= link_to h(company_card.homepage), company_card.homepage %>
<% end %>
    <% if company_card.fax_number? %>
<%= :fax.l %>:<%= h(company_card.fax_number) %>
<% end %>
    <% if company_card.phone_number? %>
<%= :home.l %>:<%= h(company_card.phone_number) %>
<% end %>

<% if company_card.address? %><%= h company_card.address %><% end %>
<% if company_card.address2? %>
<%= h company_card.address2 %><% end %>
<% if company_card.city? and company_card.state? %>

<%= h company_card.city %>, <%= h company_card.state %> <% if company_card.zipcode? %><%= h company_card.zipcode %><% end %>
<% if company_card.country? %>
<%= h company_card.country %><% end %>
<% end %>

    <% if company_card.can_be_edited_by(@logged_user) %>

      <%= action_list actions_for_company(company) %>

    <% end %>

<% num_users = 1 %>
<% users = @active_project.nil? ? company.users : @active_project.users  %>
<% users.each do |user|
   user_card = user %>

<img src="<%= user_card.avatar_url %>" alt="<%= h user_card.display_name %> avatar" />

<%= h user_card.display_name %>

      <% if user_card.title? %>
 <%= h user_card.title %>
<% end %>

      <a href="mailto:<%= h user_card.email %>"><%= h user_card.email %>

    <% user_card.im_values.each do |im_value| -%>

        <img src="<%= im_value.im_type.icon_url %>" alt="<%= im_value.im_type.name %>" /> <%= h im_value.value %>

    <% end %>

    <% if user_card.office_number? %>
<%= :office.l %>:<%= h(user_card.office_number) %>
<% end %>
    <% if user_card.fax_number? %>
<%= :fax.l %>:<%= h(user_card.fax_number) %>
<% end %>
    <% if user_card.mobile_number? %>
<%= :mobile.l %>:<%= h(user_card.mobile_number) %>
<% end %>
    <% if user_card.home_number? %>
<%= :home.l %>:<%= h(user_card.home_number) %>
<% end %>

    <% if user_card.owner_of_owner? %>
<%= :owner.l %>
<% end %>

    <% if user_card.profile_can_be_updated_by(@logged_user) %>

      <%= action_list actions_for_user(user_card) %>

    <% end %>

<% num_users += 1
   if num_users % 3 == 0 %>

<% end %>

<% end %>
<% unless num_users % 3 == 0 %>

<% end %>


Remove erroneous space in front of a string


modified testsan

modified testsan

git-svn-id: d766b2a131eb5d649bacb6a45bc0bcd899bdfdb3@653 c938ebee-df10-0410-95fc-be8c4b0ebdd5

<%= flash_notice %>

  	<%= link_to '一覧に戻る', :action => 'index' %>
	<% if @settlement.deletable? %>
    | <%= link_to '削除', {:action => 'delete', :id => @settlement.id}, :confirm => "精算データを削除すると、精算結果の取引も自動的に削除されます。精算データを削除してよろしいですか？" %>
	<% end %>

      精算データ名
      <%= h @settlement.name %>

      精算対象口座
      <%= h @settlement.account.name %>

      登録日時
      <%= format_date @settlement.created_at %>

  <% if @settlement.kind_of?(SubmittedSettlement) %>

この精算は<%= h @settlement.resource.user.login %>さんから提出されたことによりできたものです。

  <% end %>
  <% if @settlement.submitted_settlement %>

この精算は<%= h @settlement.submitted_settlement.user.login %>さんに提出済です。削除するには先方に取消を依頼してください。

  <% end %>

精算対象

      <%= display_account_entry_header %>

    <% for target_entry in @settlement.target_entries %>

        <%= display_account_entry(target_entry)%>
        <%= link_to('→',{:controller => 'deals', :action => 'jump', :id => target_entry.deal.id}) %>

    <% end %>
    <% #target_entries の合計がプラスであるときに出す %>
    <% if @settlement.target_sum > 0 %>

      <% unless @settlement.kind_of?(SubmittedSettlement)%>
        <%= link_to '立替経費精算依頼書', {:action => 'print_form'}, :popup => true %>
        |
        <%= link_to 'csv', {:action => 'print_form', :format => 'csv'}, :popup => true %>
	    |
		<% if @settlement.result_entry %>
	    <% if @settlement.submitted_settlement_id.blank? && !@settlement.account.connected_accounts.empty? %>
	      <%= button_to "この精算を#{@settlement.account.connected_accounts.first.user.login}さんに提出済にする", {:action => 'submit'}, :class => 'button', :confirm => "この精算内容を#{@settlement.account.connected_accounts.first.user.login}さんに提出済の状態にします。以後、#{@settlement.account.connected_accounts.first.user.login}さんがこの精算の提出を取り消すまで、こちらからは変更、削除、提出の取消が行えなくなります。提出済にしてよろしいですか？" %>
	    <% end %>
		<% end %>
      <% end %>

    <% end %>

精算結果

  <% unless @settlement.result_entry %>

データが破損しています。精算取引がありません。管理者に連絡してください。

  <% else %>

      <%= display_account_entry_header %>

      <%= display_account_entry(@settlement.result_entry)%>
      <%= link_to('→',{:controller => 'deals', :action => 'jump', :id => @settlement.result_entry.deal.id}) %>

  <% end %>

<%= flash_notice %>

  	<%= link_to '一覧に戻る', :action => 'index' %>
	<% if @settlement.deletable? %>
    | <%= link_to '削除', {:action => 'delete', :id => @settlement.id}, :confirm => "精算データを削除すると、精算結果の取引も自動的に削除されます。精算データを削除してよろしいですか？" %>
	<% end %>

      精算データ名
      <%= h @settlement.name %>

      精算対象口座
      <%= h @settlement.account.name %>

      登録日時
      <%= format_date @settlement.created_at %>

  <% if @settlement.kind_of?(SubmittedSettlement) %>

この精算は<%= h @settlement.resource.user.login %>さんから提出されたことによりできたものです。

  <% end %>
  <% if @settlement.submitted_settlement %>

この精算は<%= h @settlement.submitted_settlement.user.login %>さんに提出済です。削除するには先方に取消を依頼してください。

  <% end %>

精算対象

      <%= display_account_entry_header %>

    <% for target_entry in @settlement.target_entries %>

        <%= display_account_entry(target_entry)%>
        <%= link_to('→',{:controller => 'deals', :action => 'jump', :id => target_entry.deal.id}) %>

    <% end %>
    <% #target_entries の合計がプラスであるときに出す %>
    <% if @settlement.target_sum > 0 %>

      <% unless @settlement.kind_of?(SubmittedSettlement)%>
        <%= link_to '立替経費精算依頼書', {:action => 'print_form'}, :popup => true %>
        |
        <%= link_to 'csv', {:action => 'print_form', :format => 'csv'}, :popup => true %>
	    |
		<% if @settlement.result_entry %>
	    <% if @settlement.submitted_settlement_id.blank? && !@settlement.account.connected_accounts.empty? %>
	      <%= button_to "この精算を#{@settlement.account.connected_accounts.first.user.login}さんに提出済にする", {:action => 'submit'}, :class => 'button', :confirm => "この精算内容をtestさんに提出済の状態にします。以後、#{@settlement.account.connected_accounts.first.user.login}さんがこの精算の提出を取り消すまで、こちらからは変更、削除、提出の取消が行えなくなります。提出済にしてよろしいですか？" %>
	    <% end %>
		<% end %>
      <% end %>

    <% end %>

精算結果

  <% unless @settlement.result_entry %>

データが破損しています。精算取引がありません。管理者に連絡してください。

  <% else %>

      <%= display_account_entry_header %>

      <%= display_account_entry(@settlement.result_entry)%>
      <%= link_to('→',{:controller => 'deals', :action => 'jump', :id => @settlement.result_entry.deal.id}) %>

  <% end %>


Make search+pagination work right

Make search+pagination work right

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@1133 820eb932-12ee-0310-9ca8-eeb645f39767

<% @page_heading = "Comments and Trackbacks for #{ this_blog.settings['blog_name'] }" %>

<% content_for('tasks') do %>
  <%= task_showmod 'Show only feedback needing moderation' %>
<% end %>

  <form>
    Feedback Search:<input type="text" id="search" name="search" value="<%=h params[:search] %>" size="15" />
  </form>

	Type
	Article
    Author
    IP
    Posted date
    Delete

  <% for feedback in @feedback -%>

	<%=h feedback.class %>
	<%= link_to_article_edit feedback.article %>

        <%=h (feedback.author || '(unknown)').slice(0,40) %>

	    <a href=<%=h feedback.url%>><%=h feedback.url.to_s.slice(0,40)%>

    	<%=h feedback.email.to_s.slice(0,40) %>

    <%=h feedback.ip %>
    <%=h distance_of_time_in_words_to_now(feedback.created_at) %>
	<%= link_to image_tag('delete'), {:action => 'delete', :id => feedback.id },  :confirm => "Are you sure?", :post => true %>

  <% end -%>

<%= link_to "Previous page", { :page => @pages.current.previous, :search => params[:search] } if @pages.current.previous %>
<%= pagination_links(@pages, :params => {:search => params[:search]}) %>
<%= link_to "Next page", { :page => @pages.current.next, :search => params[:search] } if @pages.current.next %>

<% @page_heading = "Comments and Trackbacks for #{ this_blog.settings['blog_name'] }" %>

<% content_for('tasks') do %>
  <%= task_showmod 'Show only feedback needing moderation' %>
<% end %>

  <form>
    Feedback Search:<input type="text" id="search" name="search" value="<%=h params[:search] %>" size="15" />
  </form>

	Type
	Article
    Author
    IP
    Posted date
    Delete

  <% for feedback in @feedback -%>

	<%=h feedback.class %>
	<%= link_to_article_edit feedback.article %>

        <%=h (feedback.author || '(unknown)').slice(0,40) %>

	    <a href=<%=h feedback.url%>><%=h feedback.url.to_s.slice(0,40)%>

    	<%=h feedback.email.to_s.slice(0,40) %>

    <%=h feedback.ip %>
    <%=h distance_of_time_in_words_to_now(feedback.created_at) %>
	<%= link_to image_tag('delete'), {:action => 'delete', :id => feedback.id },  :confirm => "Are you sure?", :post => true %>

  <% end -%>

<%= link_to "Previous page", { :page => @pages.current.previous } if @pages.current.previous %>
<%= pagination_links(@pages) %>
<%= link_to "Next page", { :page => @pages.current.next } if @pages.current.next %>


Add favicon

Add favicon

<!DOCTYPE html>
<html lang="<%= I18n.locale %>">

        <meta charset="utf-8">
        <title>
        <% if @title %>
            <%=@title%> - <%= site_name %>
        <% else %>
            <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
        <% end %>
        </title>

        <%= render :partial => 'general/stylesheet_includes' %>
        <% if is_admin? %>
          <%= stylesheet_link_tag "/admin/stylesheets/admin", :title => "Main", :rel => "stylesheet" %>
        <% end %>

        <%= javascript_include_tag 'jquery.js', 'jquery-ui.min','jquery.cookie.js', 'general.js' %>
        <% if @profile_photo_javascript %>

            <link rel="stylesheet" href="/stylesheets/jquery.Jcrop.css" type="text/css" >
        <% end %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
                <% if feed[:has_json] %>
                    <link rel="alternate" type="application/json" title="JSON version of <%=h feed[:title] %>" href="<%=h feed[:url]%>.json">
                <% end %>
            <% end %>
        <% end %>
        <% if @has_json %>
            <link rel="alternate" type="application/json" title="JSON version of this page" href="<%=h url_for(request.query_parameters.merge(:format => 'json')) %>">
        <% end %>

        <% if @no_crawl %>
            <meta name="robots" content="noindex, nofollow">
        <% end %>

        <%= render :partial => 'general/before_head_end' %>

    <body class="<%= 'front' if params[:action] == 'frontpage' %>">
    <% if Configuration::force_registration_on_new_request && !@user %>
    <%= javascript_include_tag 'jquery.fancybox-1.3.4.pack' %>

    <% end %>

<% if is_admin? %>
  <%= render :partial => 'admin_general/admin_navbar' %>
<% end %>

<% if !@popup_banner.blank? %>

<%= _('Close') %>

  <%= @popup_banner %>

<%= _('Close') %>

<% end %>

<%= render :partial => 'general/locale_switcher' %>

        <% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

          <% if @user %>
              <%= _('Hello, {{username}}!', :username => h(@user.name))%>

                <% if @user %>
                    <%=link_to _("My requests"), show_user_requests_path(:url_name => @user.url_name) %>
                    <%=link_to _("My profile"), show_user_profile_path(:url_name => @user.url_name) %>
                    <%=link_to _("My wall"), show_user_wall_path(:url_name => @user.url_name) %>
                <% end %>

              <%= link_to _("Sign out"), signout_path(:r => request.request_uri) %>
          <% else %>
              <%= link_to _("Sign in or sign up"), signin_path(:r => request.request_uri) %>
          <% end %>

        <% end %>

          <form id="navigation_search_form" method="post" action="<%= search_redirect_path %>">

                 <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query", :title => "type your search term here" } %>
                 <input id="navigation_search_button" type="submit" value="search">

           </form>

        <%= render :partial => 'general/orglink' %>

        <%= render :partial => 'general/topnav' %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
            <%= yield :layout %>

    <%= render :partial => 'general/footer' %>

X
<%= _("Paste this link into emails, tweets, and anywhere else:") %>

<input type="text">

    <%
      unless Configuration::ga_code.empty? || (@user && @user.super?) %>

      <% end %>

      <%= render :partial => 'general/before_body_end' %>

error: pathspec 'lib/views/layouts/default.rhtml' did not match any file(s) known to git


Don't include multiple client_ids when selecting clients


Remove excessive indenting - tabs are bad people!

<% content_for :greeting do %>
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<%= link_to_function 'home', "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> |
<% end %>
<% end %>

<%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %>
<%= render :partial => 'key' %>
<%= render :partial => 'search' %>

You are either using a browser that doesn't support javascript, or you have disabled javascript.

OpenStreetMap uses javascript for its slippy map.

You may want to try the Tiles@Home static tile browser if you are unable to enable javascript.

Permalink

      http://creativecommons.org/licenses/by-sa/2.0/
      http://openstreetmap.org/

      Licensed under the Creative Commons Attribution-Share Alike 2.0 license by the OpenStreetMap project and its contributors.

<% if params['mlon'] and params['mlat'] %>
<% marker = true %>
<% mlon = h(params['mlon']) %>
<% mlat = h(params['mlat']) %>
<% end %>

<% if params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat'] %>
<% bbox = true %>
<% minlon = h(params['minlon']) %>
<% minlat = h(params['minlat']) %>
<% maxlon = h(params['maxlon']) %>
<% maxlat = h(params['maxlat']) %>
<% end %>

<% if params['lon'] and params['lat'] %>
<% lon =  h(params['lon']) %>
<% lat =  h(params['lat']) %>
<% zoom =  h(params['zoom'] || '5') %>
<% layers = h(params['layers']) %>
<% elsif params['mlon'] and params['mlat'] %>
<% lon = h(params['mlon']) %>
<% lat = h(params['mlat']) %>
<% zoom =  h(params['zoom'] || '12') %>
<% layers = h(params['layers']) %>
<% elsif cookies.key?("_osm_location") %>
<% lon,lat,zoom,layers = cookies["_osm_location"].split("|") %>
<% elsif @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<% lon =  @user.home_lon %>
<% lat =  @user.home_lat %>
<% zoom = '10' %>
<% else %>
<% session[:location] = OSM::IPLocation(request.env['REMOTE_ADDR']) unless session[:location] %>
<% if session[:location] %>
<% bbox = true %>
<% minlon = session[:location][:minlon] %>
<% minlat = session[:location][:minlat] %>
<% maxlon = session[:location][:maxlon] %>
<% maxlat = session[:location][:maxlat] %>
<% else %>
<% lon =  '-0.1' %>
<% lat =  '51.5' %>
<% zoom =  h(params['zoom'] || '5') %>
<% end %>
<% layers = h(params['layers']) %>
<% end %>

<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %>
<%= javascript_include_tag 'map.js' %>


Copy front page template from alaveteli

Copy front page template from alaveteli

<% view_cache :ttl => 5.minutes.to_i, :tag => I18n.locale do %>

        <%= _("Make a new

        Freedom of

        Information

        request") %>

      <%= _("Start now »") %>

          <%= _("Search over

          {{number_of_requests}} requests and

          {{number_of_authorities}} authorities",
          :number_of_requests => InfoRequest.visible.count, :number_of_authorities => PublicBody.visible.count) %>

        <% form_tag({:action => "search_redirect"}, {:id => "search_form"}) do %>

          <%= text_field_tag 'query', params[:query], { :size => 30 } %>
          <%= submit_tag _('Search') %>

        <% end %>

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

    <% if @popular_bodies.size > 0 %>

<%= _("Who can I request information from?") %>

        <%= _("{{site_name}} covers requests to {{number_of_authorities}} authorities, including:",
            :site_name => site_name, :number_of_authorities => PublicBody.visible.count) %>

            <% for popular_body in @popular_bodies %>

<%=public_body_link(popular_body)%>
                 <%= n_('%d request', '%d requests', popular_body.info_requests_count) % popular_body.info_requests_count %>

            <% end%>

            <%= link_to _('Browse all authorities...'), list_public_bodies_default %>

    <% end %>

        <% if @request_events_all_successful %>
          <%= _("What information has been released?") %>
        <% else %>
          <%= _("What information has been requested?") %>
        <% end %>

       <%= _("{{site_name}} users have made {{number_of_requests}} requests, including:",
        :site_name => site_name, :number_of_requests => InfoRequest.visible.count) %>

          <% for event in @request_events %>

              <% if @request_events_all_successful %>
                <%= _("{{public_body_link}} answered a request about",
                    :public_body_link => public_body_link(event.info_request.public_body)) %>
              <% else %>
                <%= _("{{public_body_link}} was sent a request about",
                    :public_body_link => public_body_link(event.info_request.public_body)) %>
              <% end %>

               <%=link_to h(event.info_request.title), request_url(event.info_request)%>
               <%= _('{{length_of_time}} ago', :length_of_time => time_ago_in_words(event.described_at)) %>
               <p class="excerpt" onclick="document.location.href='<%=request_url(event.info_request)%>'"><%= excerpt(event.search_text_main(true), "", 200) %>

          <% end %>

          <% if @request_events_all_successful %>
            <%=link_to _('More successful requests...'), request_list_successful_url %>
          <% else %>
            <%=link_to _('More requests...'), request_list_all_url %>
          <% end %>

<% end %>

error: pathspec 'lib/views/general/frontpage.rhtml' did not match any file(s) known to git


about page for tests

about page for tests

error: pathspec 'test/templates/about.rhtml' did not match any file(s) known to git


test again

test again


changed band page show number of fans in Fans box like on Friends page for Fans.


Actually adding list_comments this time.

Comments

  <%
     odd_or_even = 0
     for comment in @comments
       odd_or_even = 1 - odd_or_even
       observation = comment.observation
     %>
  <tr valign="top" class="ListLine<%= odd_or_even %>">

		<%= link_to sprintf('%s', h(comment.summary)),
		            :action => 'show_comment', :id => comment %>:
	    <%= link_to sprintf('%s', h(observation.unique_name)),
	              :action => 'show_observation', :id => observation.id %>

		<%= comment.created %>:
		 <%= truncate(h(comment.user.unique_name), MAX_WHO_LENGTH) %>

	  <% if check_permission(comment.user_id) %>
	      <%= link_to 'Edit', :action => 'edit_comment', :id => comment %>

	      <%= link_to 'Destroy', { :action => 'destroy_comment', :id => comment },
	                               :confirm => "Are you sure?" %>
	  <% end %>

  <% end %>

<%= link_to 'Previous page', { :page => @comment_pages.current.previous } if @comment_pages.current.previous %>
<%= link_to 'Next page', { :page => @comment_pages.current.next } if @comment_pages.current.next %>

error: pathspec 'app/views/observer/list_comments.rhtml' did not match any file(s) known to git


ActionItem4: adding edit view file

ActionItem4: adding edit view file

git-svn-id: 43659daf80e124e0b603d67096418e58e4f21099@46 3f533792-8f58-4932-b0fe-aaf55b0a4547

<h2> <%= _('Editing Tag') %> </h2>

<%= start_form_tag :action => 'update', :id => @tag %>
  <%= render :partial => 'form' %>
  <%= submit_tag _('Update') %>
  <%= link_to _('Cancel'), {:action => 'list'} %>
<%= end_form_tag %>

error: pathspec 'app/views/manage_tags/edit.rhtml' did not match any file(s) known to git


ActionItem328: oppsvim app/views/manage_products/_form_consumption.rhtml! i forgot to add view of consumption

git-svn-id: 43659daf80e124e0b603d67096418e58e4f21099@1892 3f533792-8f58-4932-b0fe-aaf55b0a4547

<%= error_messages_for :consumption %> <br/>

<% form_for :consumption, @consumption, nil, :url => {:action => action} do |f|  %>
  <%= display_form_field( _('Raw material:'), f.select("product_category_id", ProductCategory.find(:all).map{|pc| [pc.name, pc.id]}) ) if action == 'new_consumption' %>
  <%= display_form_field( _('Aditional specifications:'), f.text_area("aditional_specifications", :rows => 5) ) %>
  <% button_bar do %>
    <%= submit_button('save', (action == 'new_consumption' ? _('Add raw material') : _('Save changes')), :cancel => {:action => 'index'} ) %>
  <% end %>
<% end %>

error: pathspec 'app/views/manage_products/_form_consumption.rhtml' did not match any file(s) known to git


[ClockingIT @ Don't allow moving of topics to any non-project forums]

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/evinoca/clockingit.git/'


added chicago to front page search

added chicago to front page search


Comments form ajax'd up a little more.

Comments form ajax'd up a little more.

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@211 820eb932-12ee-0310-9ca8-eeb645f39767

<% content_for("script") do %>
function item_added() {
  new Effect.Appear($('commentList').lastChild);
  Element.toggle('comment_loading');
  Element.toggle('comment_loaded');
}
function item_loading() {
  Element.toggle('commentform')
  new Effect.Appear('comment_loading');
  $('commentform').elements[2].value = '';
  $('commentform').elements[2].focus();
}

window.onload = function() {
  if( $('commentform').elements[1].value != '' ) {
    Element.toggle('guest_url');
  }
}
<% end %>

<%= render_partial "article", @article %>

<% if @article.allow_comments > 0 -%>

<%= responses(@article.comments, "response") %> to '<%= @article.title  %>'

    Leave a response

    <%= render_collection_of_partials "comment", @article.comments %>

<% end -%>

<% if @article.allow_pings > 0 -%>

<%= responses(@article.trackbacks, "trackback") %> to '<%= @article.title  %>'

    Use the following link to trackback from your own site:

    <%= server_url_for :controller=>"articles", :action=>"trackback", :id=>@article.id %>

    <%= render_collection_of_partials "trackback", @article.trackbacks %>

<% end -%>

<% if @article.allow_comments > 0 -%>
  <%= form_remote_tag :url => {:action => "comment", :id => @article.id},
                      :update => "commentList", :position=> "bottom",
                      :loading => "item_loading()",
                      :complete => "item_added()",
                      :html => {:id=>"commentform",:class=>"commentform"} %>

    write a comment....

        Your name

          <%= text_field "comment", "author", :size => 20 %> (leave url »)

        Your blog

          <%= text_field "comment", "url" %>

          Your message

          <%= text_area "comment", "body", "style"=> "width:300px;height:200px" %>

          <input type="submit" name="submit" value="submit" class="button" />

  <%= end_form_tag %>

    <%= image_tag "spinner.gif" %> Submitting comment

    Finished submitting comment.

<% end -%>

<% content_for("script") do %>
function item_added() {
  new Effect.Appear($('commentList').lastChild);
}
function item_loading() {
  $('commentform').elements[2].value = '';
  $('commentform').elements[2].focus();
}

window.onload = function() {
  if( $('commentform').elements[1].value != '' ) {
    Element.toggle('guest_url');
  }
}
<% end %>

<%= render_partial "article", @article %>

<% if @article.allow_comments > 0 -%>

<%= responses(@article.comments, "response") %> to '<%= @article.title  %>'

    Leave a response

    <%= render_collection_of_partials "comment", @article.comments %>

<% end -%>

<% if @article.allow_pings > 0 -%>

<%= responses(@article.trackbacks, "trackback") %> to '<%= @article.title  %>'

    Use the following link to trackback from your own site:

    <%= server_url_for :controller=>"articles", :action=>"trackback", :id=>@article.id %>

    <%= render_collection_of_partials "trackback", @article.trackbacks %>

<% end -%>

<% if @article.allow_comments > 0 -%>
<%= form_remote_tag :url => {:action => "comment", :id => @article.id}, :update=> "commentList", :position=> "bottom", :loading => 'item_loading()', :complete => "item_added()", :html=>{:id=>'commentform',:name=>'commentform'}%>

  write a comment....

        Your name

        <%= text_field "comment", "author", :size => 20 %> (leave url »)

        Your blog

        <%= text_field "comment", "url" %>

        Your message

        <%= text_area "comment", "body", "style"=> "width:300px;height:200px" %>

        <input type="submit" name="submit" value="submit" class="button" />

<% end -%>
<%= end_form_tag %>


Add link to website source code for convenience

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/joevano/bzflag-website.git/'


Add power by last.fm badge.

Add power by last.fm badge.


Customize front page intro sentence

Customize front page intro sentence

Use your Right to Know

As a european citizen you can ask for information.  By law, they have to respond.  <a href="<%= help_about_url %>">Find out more about freedom of information.

error: pathspec 'lib/views/general/_frontpage_intro_sentence.rhtml' did not match any file(s) known to git


Highlight words from attachments in email alerts.

<%
    # Construct the main text of the mail
    main_text = ''
    for track_thing, alert_results, xapian_object in @email_about_things
        main_text += track_thing.params[:title_in_email] + "\n"
        main_text += ("=" * track_thing.params[:title_in_email].size) + "\n\n"
        @highlight_words = xapian_object.words_to_highlight
        for result in alert_results.reverse
            if result[:model].class.to_s == "InfoRequestEvent"
                event = result[:model]

                # Request title - only add title if we're not tracking a request.
                # e.g. -- Address and opening times of Post Office branches --
                if track_thing.info_request.nil?
                    main_text += "-- " + highlight_words(event.info_request.title, @highlight_words, false) + " --\n"
                end

                # e.g. Julian Burgess sent a request to Royal Mail Group (15 May 2008)
                if event.event_type == 'response'
                    url = main_url(incoming_message_url(event.incoming_message))
                    main_text += event.info_request.public_body.name + " sent a response to " + event.info_request.user.name
                elsif event.event_type == 'followup_sent'
                    url = main_url(outgoing_message_url(event.outgoing_message))
                    main_text += event.info_request.user.name + " sent a follow up message to " + event.info_request.public_body.name
                elsif event.event_type == 'sent'
                    # this is unlikely to happen in real life, but happens in the test code
                    url = main_url(request_url(event.info_request))+"#outgoing-"+event.outgoing_message.id.to_s
                    main_text += event.info_request.user.name + " sent a request to " + event.info_request.public_body.name
                else
                    raise "unknown type in event_digest " + event.event_type
                end
                main_text += " (" + simple_date(event.created_at) + ")\n"

                # Main text, wrapped, words highlighted with * and indented.
                if not event.outgoing_message.nil?
                    extract = highlight_and_excerpt(event.outgoing_message.body_without_salutation, @highlight_words, 150, false)
                elsif not event.incoming_message.nil?
                    extract = highlight_and_excerpt(event.incoming_message.get_text_for_indexing, @highlight_words, 150, false)
                else
                    extract = highlight_and_excerpt(info_request.initial_request_text, @highlight_words, 150, false)
                end
                extract.gsub!(/\s+/, ' ')
                main_text += MySociety::Format.wrap_email_body('"' + extract + '"').gsub(/\n+$/, "") + "\n"

                # Link to the request/response
                main_text += url + "\n"
                main_text += "\n"
            else
                raise "need to add other types to TrackMailer.event_digest"
            end
        end
        main_text += "\n"
    end

    #STDERR.puts main_text
    #STDERR.puts @unsubscribe_url
%><%=main_text%>Alter your subscription
=======================

Please click on the link below to cancel or alter these emails.
<%=@unsubscribe_url%>

-- the WhatDoTheyKnow team

<%
    # Construct the main text of the mail
    main_text = ''
    for track_thing, alert_results, xapian_object in @email_about_things
        main_text += track_thing.params[:title_in_email] + "\n"
        main_text += ("=" * track_thing.params[:title_in_email].size) + "\n\n"
        @highlight_words = xapian_object.words_to_highlight
        for result in alert_results.reverse
            if result[:model].class.to_s == "InfoRequestEvent"
                event = result[:model]

                # Request title - only add title if we're not tracking a request.
                # e.g. -- Address and opening times of Post Office branches --
                if track_thing.info_request.nil?
                    main_text += "-- " + highlight_words(event.info_request.title, @highlight_words, false) + " --\n"
                end

                # e.g. Julian Burgess sent a request to Royal Mail Group (15 May 2008)
                if event.event_type == 'response'
                    url = main_url(incoming_message_url(event.incoming_message))
                    main_text += event.info_request.public_body.name + " sent a response to " + event.info_request.user.name
                elsif event.event_type == 'followup_sent'
                    url = main_url(outgoing_message_url(event.outgoing_message))
                    main_text += event.info_request.user.name + " sent a follow up message to " + event.info_request.public_body.name
                elsif event.event_type == 'sent'
                    # this is unlikely to happen in real life, but happens in the test code
                    url = main_url(request_url(event.info_request))+"#outgoing-"+event.outgoing_message.id.to_s
                    main_text += event.info_request.user.name + " sent a request to " + event.info_request.public_body.name
                else
                    raise "unknown type in event_digest " + event.event_type
                end
                main_text += " (" + simple_date(event.created_at) + ")\n"

                # Main text, wrapped, words highlighted with * and indented.
                if not event.outgoing_message.nil?
                    extract = highlight_and_excerpt(event.outgoing_message.body_without_salutation, @highlight_words, 150, false)
                elsif not event.incoming_message.nil?
                    extract = highlight_and_excerpt(event.incoming_message.get_body_for_quoting, @highlight_words, 150, false)
                else
                    extract = highlight_and_excerpt(info_request.initial_request_text, @highlight_words, 150, false)
                end
                extract.gsub!(/\s+/, ' ')
                main_text += MySociety::Format.wrap_email_body('"' + extract + '"').gsub(/\n+$/, "") + "\n"

                # Link to the request/response
                main_text += url + "\n"
                main_text += "\n"
            else
                raise "need to add other types to TrackMailer.event_digest"
            end
        end
        main_text += "\n"
    end

    #STDERR.puts main_text
    #STDERR.puts @unsubscribe_url
%><%=main_text%>Alter your subscription
=======================

Please click on the link below to cancel or alter these emails.
<%=@unsubscribe_url%>

-- the WhatDoTheyKnow team


Copy footer view from main project

Copy footer view from main project

    <%= link_to _("Contact {{site_name}}", :site_name => site_name), help_contact_url %>
|  <a href="https://twitter.com/<%= Configuration::twitter_username %>"><%= _("Follow us on twitter") %>
<%= render :partial => 'general/credits' %>

error: pathspec 'lib/views/general/_footer.rhtml' did not match any file(s) known to git


git-svn-id: svn+ssh://ko.meadowy.net/home/svn/inside/kozuchi/trunk@468 c938ebee-df10-0410-95fc-be8c4b0ebdd5

<%= link_to '一覧に戻る', :action => 'index' %> | <%= link_to '削除', {:action => 'delete', :id => @settlement.id}, :confirm => "精算データを削除すると、精算結果の取引も自動的に削除されます。精算データを削除してよろしいですか？" %>

      精算データ名
      <%= h @settlement.name %>

      精算対象口座
      <%= h @settlement.account.name %>

      登録日時
      <%= format_date @settlement.created_at %>

精算対象

      <%= display_account_entry_header %>

    <% for target_entry in @settlement.target_entries %>

        <%= display_account_entry(target_entry)%>
        <%= link_to('→',{:controller => 'deals', :action => 'jump', :id => target_entry.deal.id}) %>

    <% end %>
    <% #target_entries の合計がプラスであるときに出す %>
    <% if @settlement.target_sum > 0 %>

      <%= link_to '立替経費精算依頼書', {:action => 'print_form'}, :popup => true %>
      |
      <%= link_to 'csv', {:action => 'print_form', :format => 'csv'}, :popup => true %>

    <% end %>

精算結果

  <% unless @settlement.result_entry %>

データが破損しています。精算取引がありません。管理者に連絡してください。

  <% else %>

      <%= display_account_entry_header %>

      <%= display_account_entry(@settlement.result_entry)%>
      <%= link_to('→',{:controller => 'deals', :action => 'jump', :id => @settlement.result_entry.deal.id}) %>

  <% end %>


HTML-escape category names.  Closes #714

HTML-escape category names.  Closes #714

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@866 820eb932-12ee-0310-9ca8-eeb645f39767

<% unless @categories.blank? -%>

Categories

<% for category in @categories -%>
  <% unless @sb_config['empty'].blank? and category.article_counter == 0 %>

<%= link_to h(category.name), :controller => "articles", :action => "category", :id => category.permalink  %> <% unless @sb_config['count'].blank? %>(<%= category.article_counter %>)<% end %>

  <% end %>
<% end -%>

<% end %>

<% unless @categories.blank? -%>

Categories

<% for category in @categories -%>
  <% unless @sb_config['empty'].blank? and category.article_counter == 0 %>

<%= link_to category.name, :controller => "articles", :action => "category", :id => category.permalink  %> <% unless @sb_config['count'].blank? %>(<%= category.article_counter %>)<% end %>

  <% end %>
<% end -%>

<% end %>


ActionItem16: adding missing template

ActionItem16: adding missing template

git-svn-id: 43659daf80e124e0b603d67096418e58e4f21099@875 3f533792-8f58-4932-b0fe-aaf55b0a4547

<%= _("Pending enterprise validations") %>

<% for processed in @processed_validations %>

<%= processed.name %>

      <%= _('Address') %>:
      <%= processed.address %>

      <%= _('Contact Phone') %>:
      <%= processed.contact_phone %>

      <%= _('Contact Person') %>:
      <%= processed.contact_person %>

  <%= link_to _("See details"), :action => 'view_processed', :id => processed.code %>
<% end %>

error: pathspec 'app/views/enterprise_validation/list_processed.rhtml' did not match any file(s) known to git


override _form_association to fix new empty row bug

<%
parent_record = @record
associated = column.singular_association? ? [parent_record.send(column.name)].compact : parent_record.send(column.name)
associated = associated.sort_by {|r| r.new_record? ? 99999999999 : r.id} unless column.association.options.has_key?(:order)

show_blank_record = false

=begin
if column.show_blank_record
  show_blank_record = (column.plural_association? or (column.singular_association? and associated.empty?))
  show_blank_record = false if column.through_association?
  show_blank_record = false unless column.association.klass.authorized_for?(:action => :create)
else
  show_blank_record = false
end
=end

# note - this line *creates* the new object in the database, meaning each time you edit the
# parent form, the nested associations make a new empty row.  To get around this, make people
# click 'Create new' each time, it's just easier
associated << column.association.klass.new if show_blank_record
-%>

<%= column.label -%> (<%= link_to_visibility_toggle(:default_visible => !column.collapsed) -%>)

<div <%= 'style="display: none;"' if column.collapsed -%>>
<%= render :partial => subform_partial_for_column(column), :locals => {:column => column, :parent_record => parent_record, :associated => associated} %>

<% @record = parent_record -%>

error: pathspec 'app/views/active_scaffold_overrides/_form_association.rhtml' did not match any file(s) known to git


[ClockingIT @ Remove space between function name and start paren]


Put UK-specific actions in partial template (see https://github.com/sebbacon/alaveteli/issues/168)

        <%= link_to '', "http://helpmeinvestigate.com/"%>
        <%= link_to 'Get help investigating', "http://helpmeinvestigate.com/"%>

        <%= link_to '', "http://www.writetothem.com"%>
        <%= link_to 'Write to your politician', "http://www.writetothem.com"%>

        <%= link_to '', "http://www.pledgebank.com"%>
        <%= link_to 'Pledge with others', "http://www.pledgebank.com"%>

error: pathspec 'lib/views/request/_next_actions.rhtml' did not match any file(s) known to git


fixed an issue with comments times

fixed an issue with comments times

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@340 820eb932-12ee-0310-9ca8-eeb645f39767

<li class="graybox" id="comment-<%= comment.id %>" <%= 'style="display:none"' if controller.request.xhr? %><%= onhover_show_admin_tools(:comment, comment.id) %>>
  <%= admin_tools_for comment %>
  <a name="comment-<%= comment.id %>">
  <%= (comment.url.blank?) ? comment.author : link_to(comment.author, comment.url) %>  said <%= distance_of_time_in_words @article.created_at, comment.created_at %> later:

  <%= comment.body_html %>

<li class="graybox" id="comment-<%= comment.id %>" <%= 'style="display:none"' if controller.request.xhr? %><%= onhover_show_admin_tools(:comment, comment.id) %>>
  <%= admin_tools_for comment %>
  <a name="comment-<%= comment.id %>">
  <%= (comment.url.blank?) ? comment.author : link_to(comment.author, comment.url) %>  said <%= distance_of_time_in_words @article.created_at.utc, comment.created_at.utc %> later:

  <%= comment.body_html %>


git-svn-id: svn+ssh://ko.meadowy.net/home/svn/inside/kozuchi/trunk@26 c938ebee-df10-0410-95fc-be8c4b0ebdd5

      <% if @flash[:notice] || @flash[:notice].to_s != ""%>

<%=@flash[:notice]%>

      <% end %>

           	日付	摘要	借方	貸方	変更	削除

        <% for deal in @deals %>

            <%=deal.id%>	<%= format_date(deal.date) %>	<%=deal.summary%>	 	 	<td rowspan="<%=deal.account_entries.size+1%>"><%= link_to '変更' ,:action => 'edit_deal', :id => deal %>	<td rowspan="<%=deal.account_entries.size+1%>"><%= link_to '削除' ,:action => 'delete_deal', :id => deal %>

          <% for account_entry in deal.account_entries %>

               	 	(<%= account_entry.account.name %>)	<%= number_with_delimiter(account_entry.amount) if account_entry.amount > 0%>	<%= number_with_delimiter(account_entry.amount.abs) if account_entry.amount < 0%>

          <% end %>
        <% end %>

error: pathspec 'app/views/book/_deals.rhtml' did not match any file(s) known to git


minor change to login

minor change to login

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/graysky/tourbus.git/'


change input box css class to make it sync with other scm plugin in mingle

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/ThoughtWorksStudios/mingle_git_plugin.git/'