h を使うよう修正。

h を使うよう修正。

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

      <%= render(:partial => "shared/information") %>

          日付

          摘要

          入金
          出金
          残高
          変更
          削除

      <div class="scroll_box" <%= "style='height:#{@deals_scroll_height};'" if @deals_scroll_height && @deals_scroll_height != ''%>>

        <% for deal in @deals %>
          <% edit_target = deal.balance ? 'edit_balance' : 'edit_deal' %>
          <% first = true %>

          <% for account_entry in deal.account_entries %>
            <tr <%= "class='updated_line'" if (@updated_deal && deal.id == @updated_deal.id)%><%= 'class="unconfirmed"' if !deal.confirmed %>>

                <% if first %>
                  <a name="#<%=deal.id%>"%><%= format_date(deal.date) %>
                <% end %>

                <%= deal.daily_seq if first %>

              <% if first %>
                <td class="summary" rowspan="<%=deal.account_entries.size%>">
                  <% if !deal.confirmed %>
                    <%= link_to_remote('確認' , {:update => 'book', :url => { :action => 'confirm', :id => deal }}, :class => 'small_button', :alt => '確認状態にします。' ) %>
                  <% end %>
                  <%= deal.balance ? "残高確認" : h(deal.summary) %>

              <% end %>
              <% if deal.parent_for(account_entry.account.id) || deal.child_for(account_entry.account.id) || account_entry.friend_link_id || account_entry.settlement || account_entry.result_settlement %>

                  <%= h account_entry.account.name %>

                  <% if deal.parent_for(account_entry.account.id) %>
                    <%= link_to('→主' ,{:action => 'jump', :id => deal.parent.id}) %>
                  <% end %>
                  <% if deal.child_for(account_entry.account.id) %>
                    <%= link_to('→従',{:action => 'jump', :id => deal.child_for(account_entry.account.id).id}) %>
                  <% end %>
                  <% if account_entry.linked_account_entry %>
                    <span <%="class='unconfirmed'" unless account_entry.linked_account_entry.deal.confirmed %>><%= h account_entry.linked_account_entry.deal.user.login_id %>
                  <% end %>
                  <% if account_entry.settlement %>
                    <%= link_to '精算', :controller => 'settlements', :action => 'view', :id => account_entry.settlement.id %>
                  <% end %>
                  <% if account_entry.result_settlement %>
                    <%= link_to '精算', :controller => 'settlements', :action => 'view', :id => account_entry.result_settlement.id %>
                  <% end %>

              <% else %>

                  <%= h account_entry.account.name %>

              <% end %>
              <%= number_with_delimiter(account_entry.amount) if account_entry.amount > 0%>
              <%= number_with_delimiter(account_entry.amount.abs) if account_entry.amount < 0%>
              <%= number_with_delimiter(account_entry.balance)%>
              <% if first %>
                <td rowspan="<%=deal.account_entries.size%>" class="action"><%= link_to_remote('変更' , :update => 'tabwindow', :url => { :action => edit_target, :id => deal}, :complete => "location.hash = '#{deal.id}';location.hash = 'top';" ) %>
                <td rowspan="<%=deal.account_entries.size%>" class="action">
                  <% unless deal.settlement_attached? %>
                    <%= link_to '削除' ,{:action => 'delete_deal', :id => deal}, :confirm => "#{format_deal(deal)}を削除します。よろしいですか？" %>
                  <% end %>

              <% end %>

            <% first = false %>
          <% end %>
        <% end %>

      <% if @target_month && !@date%>

      <% end %>
      <% if @updated_deal%>

      <% end %>

      <%= render(:partial => "shared/information") %>

          日付

          摘要

          入金
          出金
          残高
          変更
          削除

      <div class="scroll_box" <%= "style='height:#{@deals_scroll_height};'" if @deals_scroll_height && @deals_scroll_height != ''%>>

        <% for deal in @deals %>
          <% edit_target = deal.balance ? 'edit_balance' : 'edit_deal' %>
          <% first = true %>

          <% for account_entry in deal.account_entries %>
            <tr <%= "class='updated_line'" if (@updated_deal && deal.id == @updated_deal.id)%><%= 'class="unconfirmed"' if !deal.confirmed %>>

                <% if first %>
                  <a name="#<%=deal.id%>"%><%= format_date(deal.date) %>
                <% end %>

                <%= deal.daily_seq if first %>

              <% if first %>
                <td class="summary" rowspan="<%=deal.account_entries.size%>">
                  <% if !deal.confirmed %>
                    <%= link_to_remote('確認' , {:update => 'book', :url => { :action => 'confirm', :id => deal }}, :class => 'small_button', :alt => '確認状態にします。' ) %>
                  <% end %>
                  <%=deal.balance ? "残高確認" : deal.summary%>

              <% end %>
              <% if deal.parent_for(account_entry.account.id) || deal.child_for(account_entry.account.id) || account_entry.friend_link_id || account_entry.settlement || account_entry.result_settlement %>

                  <%= account_entry.account.name %>

                  <% if deal.parent_for(account_entry.account.id) %>
                    <%= link_to('→主' ,{:action => 'jump', :id => deal.parent.id}) %>
                  <% end %>
                  <% if deal.child_for(account_entry.account.id) %>
                    <%= link_to('→従',{:action => 'jump', :id => deal.child_for(account_entry.account.id).id}) %>
                  <% end %>
                  <% if account_entry.linked_account_entry %>
                    <span <%="class='unconfirmed'" unless account_entry.linked_account_entry.deal.confirmed %>><%= account_entry.linked_account_entry.deal.user.login_id %>
                  <% end %>
                  <% if account_entry.settlement %>
                    <%= link_to '精算', :controller => 'settlements', :action => 'view', :id => account_entry.settlement.id %>
                  <% end %>
                  <% if account_entry.result_settlement %>
                    <%= link_to '精算', :controller => 'settlements', :action => 'view', :id => account_entry.result_settlement.id %>
                  <% end %>

              <% else %>

                  <%= account_entry.account.name %>

              <% end %>
              <%= number_with_delimiter(account_entry.amount) if account_entry.amount > 0%>
              <%= number_with_delimiter(account_entry.amount.abs) if account_entry.amount < 0%>
              <%= number_with_delimiter(account_entry.balance)%>
              <% if first %>
                <td rowspan="<%=deal.account_entries.size%>" class="action"><%= link_to_remote('変更' , :update => 'tabwindow', :url => { :action => edit_target, :id => deal}, :complete => "location.hash = '#{deal.id}';location.hash = 'top';" ) %>
                <td rowspan="<%=deal.account_entries.size%>" class="action">
                  <% unless deal.settlement_attached? %>
                    <%= link_to '削除' ,{:action => 'delete_deal', :id => deal}, :confirm => "#{format_deal(deal)}を削除します。よろしいですか？" %>
                  <% end %>

              <% end %>

            <% first = false %>
          <% end %>
        <% end %>

      <% if @target_month && !@date%>

      <% end %>
      <% if @updated_deal%>

      <% end %>


Escape page title.

Escape page title.


Use proper double quotes and dashes, too

<% @title = "Making requests" %>

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

<%= @title %> #

I’m not sure which authority to make my request to, how can I find out? #

It can be hard to untangle the complicated structure of government, and work out
who has the information you want. Here are a few tips:

Browse or search WhatDoTheyKnow looking for similar requests to yours.

When you’ve found an authority you think might have the information, use
the “home page” link on the right hand side of their page to check what they do
on their website.

Contact the authority by phone or email to ask if they hold the kind of
information you’re after.

Don’t worry excessively about getting the right authority. If you get it
wrong, they ought to advise you who to make the request to instead.

If you’ve got a thorny case, please contact us for help.

You’re missing the public authority that I want to request from! #

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.

If you’d like to help add a whole category of public authority to the site, we’d love
to hear from you too.

Why do you include some authorities that aren’t formally subject to FOI?#

WhatDoTheyKnow lets you make requests for information to a range of
organisations:

 Those formally subject to the FOI Act

 Those formally subject to the Environmental Regulations (a less well
  defined group)

 Those which voluntarily comply with the FOI Act

 Those which aren’t subject to the Act but we think should be, on grounds
  such as them having significant public responsibilities.

In the last case, we’re using the site to lobby for expansion of the
scope of the FOI Act. Even if an organisation is not legally obliged to respond
to an FOI request, they can still do so voluntarily.

Why must I keep my request focused?#

Please put in your request only what is needed so that someone can
easily identify what information you are asking for. Please do
not include any of the following:

arguments about your cause

statements that could defame or insult others

If you do, we may have to remove your request to avoid problems with
libel law, which is a pain for both you and us. Short, succinct messages
make it easier for authorities to be clear what information you are
requesting, which means you will get a reply more quickly.

If you want information to support an argument or campaign, Freedom of
Information is a powerful tool. Although you may not use this site to
run your campaign, we encourage you to use it to get the information you
need. We also encourage to run your campaign elsewhere – one effective
and very easy way is to <%= link_to 'start your own blog',
"http://wordpress.com/"%>. You are welcome to link to your campaign
from this site in an annotation to your request (you can make
annotations after submitting the request).

Does it cost me anything to make a request?#

Making an FOI request is nearly always free.

Authorities often include unnecessary, scary, boilerplate in
acknowledgement messages saying they “may” charge a fee. Ignore such notices.
They hardly ever will actually charge a fee. If they do, they can only charge you if
you have specifically agreed in advance to pay. More
    details from the Information Commissioner.

Sometimes an authority will refuse your request, saying that the cost
of handling it exceeds £600 (for central government) or £450 (for all other
public authorities). At this point you can refine your
request. e.g. it would be much cheaper for an authority to tell you the amount
spent on marshmallows in the past year than in the past ten years.

How quickly will I get a response? #

By law, public authorities must respond promptly to
requests.

Even if they are not prompt, in nearly all cases they must respond within
20 working days. If you had to clarify your request, or they are a school,
or one or two other cases, then they may have more time
(full details).

WhatDoTheyKnow will email you if you don’t get a timely response.  You can
then send the public authority a message to remind them, and tell them if they
are breaking the law.

What if I never get a response?#

There are several things you can do if you never get a response.

Sometimes there has been a genuine problem and the authority never
    received the request. It is worth telephoning the authority and politely
    checking that they received the request. It was sent to them by email.

If they have not received it, the problem is most likely due to
    "spam filters". Refer the authority to the measures in the answer
    ‘I can see a request on WhatDoTheyKnow, but we never got it by email!’
    in the FOI officers section of this help.

If you’re still having no luck, then you can ask for an internal review,
    and then complain to the Information Commissioner about the authority.
    Read our page ‘Unhappy about the response you got?’.

What if I’m not satisfied with the response? #

If you didn’t get the information you asked for, or you didn’t get it in time,
then read our page ‘Unhappy about the response you got?’.

It says I can’t re-use the information I got!#

Authorities often add legal boilerplate about the
"Re-Use of Public Sector
Information Regulations 2005", which at first glance implies you may not
be able do anything with the information.

You can, of course, write articles about the information or summarise it, or
quote parts of it. We also think you should feel free to republish the
information in full, just as we do, even though in theory you might not be
allowed to do so.  See our policy on copyright.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
access to official information
pages on the Information Commissioner’s website.

If you’re requesting information from a Scottish public authority,
the process is very similar. There are differences around time
limits for compliance.
See the Scottish
Information Commissioner’s guidance for details.

Can I request information about myself? #

No. Requests made using WhatDoTheyKnow are public, made under the Freedom of
Information Act, and cannot help you find information about a private
individual.

If you would like to know what information a public
authority holds about yourself, you should make a “Subject Access Request” in
private using Data Protection law.  The leaflet “How to access your information” (on the Information Commissioner’s
website) explains how to do this.

If you see that somebody has included personal information, perhaps
unwittingly, in a request, please contact us
immediately so we can remove it.

I’d like to keep my request secret! (At least until I publish my story) #

WhatDoTheyKnow is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.

You should contact the public authority directly if you would like to
make a request in private.  If you’re interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Why can I only request information about the environment from some authorities? #

Some public authorities, such as Milford Haven Port Authority,
don’t come under the Freedom of Information Act, but do come under another law called
the Environmental Information Regulations (EIR).

It’s a very similar law, so you make a request
to them using WhatDoTheyKnow in just the same way as an FOI request. The only
difference is that on the page where your write you request, it reminds you
that you can only request “environmental information” and tells you what that
means. It is quite broad.

You can, of course, request environmental information from other
authorities. Just make a Freedom of Information (FOI) request as normal. The
authority has a duty to work out if the Environmental Information Regulations
(EIR) is the more appropriate legislation to reply under.

Can I make the same to request to lots of authorities, e.g. all councils? #

We ask you to first send a test version of your request to a few
authorities. Their responses will help you improve the wording of your request,
so that you get the best information when you send the request to all of
the authorities. There is currently no automated system for sending the request
to the other authorities, you must copy and paste it by hand.

I made a request off the site, how do I upload it to the archive?#

WhatDoTheyKnow is an archive of requests made through the site,
and does not try to be an archive of all FOI requests. We’ll never support uploading
other requests. For one thing, we wouldn’t be able to verify that other
responses actually came from the authority. If this really matters to you,
you can always make the same request again via WhatDoTheyKnow.

How do you moderate request annotations? #

Annotations on WhatDoTheyKnow are to help
people get the information they want, or to give them pointers to places they
can go to help them act on it. We reserve the right to remove anything else.

Endless, political discussions are not allowed.
Post a link to a suitable forum or campaign site elsewhere.

Next, read about your privacy -->

<% @title = "Making requests" %>

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

<%= @title %> #

I’m not sure which authority to make my request to, how can I find out? #

It can be hard to untangle the complicated structure of government, and work out
who has the information you want. Here are a few tips:

Browse or search WhatDoTheyKnow looking for similar requests to yours.

When you’ve found an authority you think might have the information, use
the "home page" link on the right hand side of their page to check what they do
on their website.

Contact the authority by phone or email to ask if they hold the kind of
information you’re after.

Don’t worry excessively about getting the right authority. If you get it
wrong, they ought to advise you who to make the request to instead.

If you’ve got a thorny case, please contact us for help.

You’re missing the public authority that I want to request from! #

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.

If you’d like to help add a whole category of public authority to the site, we’d love
to hear from you too.

Why do you include some authorities that aren’t formally subject to FOI?#

WhatDoTheyKnow lets you make requests for information to a range of
organisations:

 Those formally subject to the FOI Act

 Those formally subject to the Environmental Regulations (a less well
  defined group)

 Those which voluntarily comply with the FOI Act

 Those which aren’t subject to the Act but we think should be, on grounds
  such as them having significant public responsibilities.

In the last case, we’re using the site to lobby for expansion of the
scope of the FOI Act. Even if an organisation is not legally obliged to respond
to an FOI request, they can still do so voluntarily.

Why must I keep my request focused?#

Please put in your request only what is needed so that someone can
easily identify what information you are asking for. Please do
not include any of the following:

arguments about your cause

statements that could defame or insult others

If you do, we may have to remove your request to avoid problems with
libel law, which is a pain for both you and us. Short, succinct messages
make it easier for authorities to be clear what information you are
requesting, which means you will get a reply more quickly.

If you want information to support an argument or campaign, Freedom of
Information is a powerful tool. Although you may not use this site to
run your campaign, we encourage you to use it to get the information you
need. We also encourage to run your campaign elsewhere - one effective
and very easy way is to <%= link_to 'start your own blog',
"http://wordpress.com/"%>. You are welcome to link to your campaign
from this site in an annotation to your request (you can make
annotations after submitting the request).

Does it cost me anything to make a request?#

Making an FOI request is nearly always free.

Authorities often include unnecessary, scary, boilerplate in
acknowledgement messages saying they "may" charge a fee. Ignore such notices.
They hardly ever will actually charge a fee.  If they do, they can only charge you if
you have specifically agreed in advance to pay.  More
    details from the Information Commissioner.

Sometimes an authority will refuse your request, saying that the cost
of handling it exceeds £600 (for central government) or £450 (for all other
public authorities). At this point you can refine your
request. e.g. it would be much cheaper for an authority to tell you the amount
spent on marshmallows in the past year than in the past ten years.

How quickly will I get a response? #

By law, public authorities must respond promptly to
requests.

Even if they are not prompt, in nearly all cases they must respond within
20 working days. If you had to clarify your request, or they are a school,
or one or two other cases, then they may have more time
(full details).

WhatDoTheyKnow will email you if you don’t get a timely response.  You can
then send the public authority a message to remind them, and tell them if they
are breaking the law.

What if I never get a response?#

There are several things you can do if you never get a response.

Sometimes there has been a genuine problem and the authority never
    received the request. It is worth telephoning the authority and politely
    checking that they received the request. It was sent to them by email.

If they have not received it, the problem is most likely due to
    "spam filters". Refer the authority to the measures in the answer
    ‘I can see a request on WhatDoTheyKnow, but we never got it by email!’
    in the FOI officers section of this help.

If you’re still having no luck, then you can ask for an internal review,
    and then complain to the Information Commissioner about the authority.
    Read our page ‘Unhappy about the response you got?’.

What if I’m not satisfied with the response? #

If you didn’t get the information you asked for, or you didn’t get it in time,
then read our page ‘Unhappy about the response you got?’.

It says I can’t re-use the information I got!#

Authorities often add legal boilerplate about the
"Re-Use of Public Sector
Information Regulations 2005", which at first glance implies you may not
be able do anything with the information.

You can, of course, write articles about the information or summarise it, or
quote parts of it. We also think you should feel free to republish the
information in full, just as we do, even though in theory you might not be
allowed to do so.  See our policy on copyright.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
access to official information
pages on the Information Commissioner’s website.

If you’re requesting information from a Scottish public authority,
the process is very similar. There are differences around time
limits for compliance.
See the Scottish
Information Commissioner’s guidance for details.

Can I request information about myself? #

No. Requests made using WhatDoTheyKnow are public, made under the Freedom of
Information Act, and cannot help you find information about a private
individual.

If you would like to know what information a public
authority holds about yourself, you should make a "Subject Access Request" in
private using Data Protection law.  The leaflet "How to access your information" (on the Information Commissioner’s
website) explains how to do this.

If you see that somebody has included personal information, perhaps
unwittingly, in a request, please contact us
immediately so we can remove it.

I’d like to keep my request secret! (At least until I publish my story) #

WhatDoTheyKnow is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.

You should contact the public authority directly if you would like to
make a request in private.  If you’re interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Why can I only request information about the environment from some authorities? #

Some public authorities, such as Milford Haven Port Authority,
don’t come under the Freedom of Information Act, but do come under another law called
the Environmental Information Regulations (EIR).

It’s a very similar law, so you make a request
to them using WhatDoTheyKnow in just the same way as an FOI request. The only
difference is that on the page where your write you request, it reminds you
that you can only request "environmental information" and tells you what that
means. It is quite broad.

You can, of course, request environmental information from other
authorities. Just make a Freedom of Information (FOI) request as normal. The
authority has a duty to work out if the Environmental Information Regulations
(EIR) is the more appropriate legislation to reply under.

Can I make the same to request to lots of authorities, e.g. all councils? #

We ask you to first send a test version of your request to a few
authorities. Their responses will help you improve the wording of your request,
so that you get the best information when you send the request to all of
the authorities. There is currently no automated system for sending the request
to the other authorities, you must copy and paste it by hand.

I made a request off the site, how do I upload it to the archive?#

WhatDoTheyKnow is an archive of requests made through the site,
and does not try to be an archive of all FOI requests. We’ll never support uploading
other requests. For one thing, we wouldn’t be able to verify that other
responses actually came from the authority. If this really matters to you,
you can always make the same request again via WhatDoTheyKnow.

How do you moderate request annotations? #

Annotations on WhatDoTheyKnow are to help
people get the information they want, or to give them pointers to places they
can go to help them act on it. We reserve the right to remove anything else.

Endless, political discussions are not allowed.
Post a link to a suitable forum or campaign site elsewhere.

Next, read about your privacy -->


Changed text of profile info block

Changed text of profile info block

(ActionItem2136)

  <% if logged_in? %>
    <% if profile.members.include?(user) %>

        <%= button(:delete, content_tag('span', __('Leave community')), profile.leave_url,
          :class => 'leave-community',
          :title => _("Leave community"),
          :style => 'position: relative;') %>
        <%= button(:add, content_tag('span', __('Join')), profile.join_url,
          :class => 'join-community',
          :title => _("Join community"),
          :style => 'position: relative; display: none;') %>

    <% else %>
      <% unless profile.already_request_membership?(user) %>

        <%= button(:delete, content_tag('span', __('Leave community')), profile.leave_url,
          :class => 'leave-community',
          :title => _("Leave community"),
          :style => 'position: relative; display: none;') %>
        <%= button(:add, content_tag('span', __('Join')), profile.join_url,
          :class => 'join-community',
          :title => _("Join community"),
          :style => 'position: relative;') %>

      <% end %>
    <% end %>

    <% if profile.enable_contact? %>

      <%= link_to content_tag('span', _('Send an e-mail')),
        { :profile => profile.identifier,
          :controller => 'contact',
          :action => 'new' },
        :class => 'button with-text icon-menu-mail' %>

    <% end %>

<%= report_abuse(profile, :button) %>

    <%= render_environment_features(:profile_actions) %>
  <% else %>

    <%= link_to content_tag('span', _('Join')), profile.join_not_logged_url,
      :class => 'button with-text icon-add',
      :title => _('Join this community') %>

  <% end %>

  <% if logged_in? %>
    <% if profile.members.include?(user) %>

        <%= button(:delete, content_tag('span', __('Leave')), profile.leave_url,
          :class => 'leave-community',
          :title => _("Leave community"),
          :style => 'position: relative;') %>
        <%= button(:add, content_tag('span', __('Join')), profile.join_url,
          :class => 'join-community',
          :title => _("Join community"),
          :style => 'position: relative; display: none;') %>

    <% else %>
      <% unless profile.already_request_membership?(user) %>

        <%= button(:delete, content_tag('span', __('Leave')), profile.leave_url,
          :class => 'leave-community',
          :title => _("Leave community"),
          :style => 'position: relative; display: none;') %>
        <%= button(:add, content_tag('span', __('Join')), profile.join_url,
          :class => 'join-community',
          :title => _("Join community"),
          :style => 'position: relative;') %>

      <% end %>
    <% end %>

    <% if profile.enable_contact? %>

      <%= link_to content_tag('span', _('Send an e-mail')),
        { :profile => profile.identifier,
          :controller => 'contact',
          :action => 'new' },
        :class => 'button with-text icon-menu-mail' %>

    <% end %>

<%= report_abuse(profile, :button) %>

    <%= render_environment_features(:profile_actions) %>
  <% else %>

    <%= link_to content_tag('span', _('Join')), profile.join_not_logged_url,
      :class => 'button with-text icon-add',
      :title => _('Join this community') %>

  <% end %>


[Mezuro] module results table now has a fixed relative size in _module_result partial

<%= _('Metric results for: ') + @module_label %>

      Metric
      Value
      Weight
      Threshold

    <% @module_result.metric_results.each do |metric_result|  %>
      <% range = metric_result.range %>
      <% if !range.nil? %>

          <a href="#" show-metric-history="<%= MezuroPlugin::Helpers::ContentViewerHelper.format_name(metric_result) %>" data-module-name="<%= @module.name %>"><%= metric_result.metric.name %>
          <%= MezuroPlugin::Helpers::ContentViewerHelper.format_grade(metric_result.value) %>
          <%= metric_result.weight %>
          <td style="background-color: #<%= range.color[2..-1] %>"><%= range.label %>

        <tr class="<%= MezuroPlugin::Helpers::ContentViewerHelper.format_name(metric_result) %>" style="display: none;">

            <div id='historical-<%= MezuroPlugin::Helpers::ContentViewerHelper.format_name(metric_result) %>'>

            <%= range.comments.nil? ? '' : range.comments %>

      <% end %>
    <% end %>

        <a href="#" show-grade-history="<%= @module_result.module.name %>" data-module-name="<%= @module.name%>" >

            <%= _('Grade:') %>
            <%= "%.02f" % @module_result.grade %>


r228: artifact_path => path

r228: artifact_path => path

  Build history
  <% @project.builds.reverse.each do |build| %>
    <div class="build-link<%= ' selected' if @build.label == build.label %>">
      <%= hyperlink_to_build(@project, build) %>

  <% end %>

  <%= h @project.name %> build <%= h @build.label %>
  <% if @build.failed? %>FAILED<% end %>

  finished at <%= format_time @build.time, :verbose %>. Total <%= @build.elapsed_time%> seconds.

<% if !@build.additional_artifacts.empty? %>

  <% @build.additional_artifacts.each do |artifact| %>

      <%= link_to artifact, :action => 'artifact', :project => @project.name, :build => @build.label, :path => artifact %>

  <% end %>

<% end %>

Build Changeset

    <%= format_changeset_log(@build.changeset) %>

<% test_failures = get_test_failures_and_errors_if_any(@build.output) %>
<% if test_failures %>

Test Failures and Errors

    <%= test_failures %>

<% end %>

Build Log

      <%= format_build_log(@build.output) %>

  Build history
  <% @project.builds.reverse.each do |build| %>
    <div class="build-link<%= ' selected' if @build.label == build.label %>">
      <%= hyperlink_to_build(@project, build) %>

  <% end %>

  <%= h @project.name %> build <%= h @build.label %>
  <% if @build.failed? %>FAILED<% end %>

  finished at <%= format_time @build.time, :verbose %>. Total <%= @build.elapsed_time%> seconds.

<% if !@build.additional_artifacts.empty? %>

  <% @build.additional_artifacts.each do |artifact| %>

      <%= link_to artifact, :action => 'artifact', :project => @project.name, :build => @build.label, :artifact_path => artifact %>

  <% end %>

<% end %>

Build Changeset

    <%= format_changeset_log(@build.changeset) %>

<% test_failures = get_test_failures_and_errors_if_any(@build.output) %>
<% if test_failures %>

Test Failures and Errors

    <%= test_failures %>

<% end %>

Build Log

      <%= format_build_log(@build.output) %>


nested scaffolds now honor association :conditions

<h4> </h4>
<%
  # TODO: shouldn't this logic happen in the controller action instead of the template?
  # Actually, maybe we should make render :active_scaffold work in the controller, and not even have a _nested.rhtml?

  # This assumes that the association is included as a column in the active_scaffold_config.columns collection
  associated_columns = []
  associated_columns = params[:associations].split(" ") unless params[:associations].nil?
  unless associated_columns.empty?
    parent_id = params[:id]
    associated_columns.each do | column_name |
      # find the column and the association
      column = active_scaffold_config.columns[column_name]
      association = column.association

      # determine what constraints we need
      if column.through_association?
        @constraints = {
          association.source_reflection.reverse => {
            association.through_reflection.reverse => parent_id
          }
        }
      else
        @constraints = { association.reverse => parent_id }
      end

      # generate the customized label
      @label = as_("%s for %s", active_scaffold_config_for(association.klass).label, format_column(@record.to_label))

      begin
        controller = active_scaffold_controller_for(association.klass)
      rescue ActiveScaffold::ControllerNotFound => error
        concat "#{error.class} - #{error.message}", binding
      else
        concat render(:active_scaffold => controller.controller_path,
          :constraints => @constraints,
          :conditions => association.options[:conditions],
          :label => @label,
          :params => {:nested => true, :parent_column => column_name, :parent_model => association.active_record}
        ), binding
      end
    end
  end
%>

<h4> </h4>
<%
  # This assumes that the association is included as a column in the active_scaffold_config.columns collection
  associated_columns = []
  associated_columns = params[:associations].split(" ") unless params[:associations].nil?
  unless associated_columns.empty?
    parent_id = params[:id]
    associated_columns.each do | column_name |
      column = active_scaffold_config.columns[column_name]
      association = column.association
      if column.through_association?
        constraints = {
          association.source_reflection.reverse => {
            association.through_reflection.reverse => parent_id
          }
        }
      else
        constraints = { association.reverse => parent_id }
      end
      begin
        controller = active_scaffold_controller_for(association.klass)
      rescue ActiveScaffold::ControllerNotFound => error
        concat "#{error.class} - #{error.message}", binding
      else
        concat render(:active_scaffold => controller.controller_path,
          :constraints => constraints,
          :label => as_("%s for %s", active_scaffold_config_for(association.klass).label, format_column(@record.to_label)),
          :params => {:nested => true, :parent_column => column_name, :parent_model => association.active_record}
        ), binding
      end
    end
  end
%>


hを使うように修正。

hを使うように修正。

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

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

<%=@flash[:notice]%>

      <% end %>

<%= "#{h Account::Base.find(@account_id).name}の出納一覧（#{@date.year}年#{@date.month}月）" %>

          日付

          摘要

          入金
          出金
          残高

          期首残高
          <%= number_with_delimiter(@balance_start) %>

        <% for entry in @account_entries %>
          <% if entry.balance %>

              <%= format_date(entry.deal.date) %>
              <%=entry.deal.daily_seq%>
              残高確認
              不明金
              <%= number_with_delimiter(entry.unknown_amount) if entry.unknown_amount >= 0%>
              <%= number_with_delimiter(entry.unknown_amount.abs) if entry.unknown_amount < 0%>
              <%= number_with_delimiter(entry.balance)%>

          <% else %>
            <tr <%= 'class="unconfirmed"' if !entry.deal.confirmed %>>
              <%= format_date(entry.deal.date) %>
              <%= entry.deal.daily_seq%>
              <%= '未確定' if !entry.deal.confirmed %><%= h entry.deal.summary%>
              <%= h entry.account.name %>
              <%= number_with_delimiter(entry.amount.abs) if entry.amount < 0 && !entry.balance%>
              <%= number_with_delimiter(entry.amount) if entry.amount >= 0 && !entry.balance %>
              <%= entry.deal.confirmed ? number_with_delimiter(entry.balance_estimated) : '*' %>

          <% end %>
        <% end %>

          期末残高
          <%= number_with_delimiter(@balance_end) %>

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

<%=@flash[:notice]%>

      <% end %>

<%= "#{Account::Base.find(@account_id).name}の出納一覧（#{@date.year}年#{@date.month}月）" %>

          日付

          摘要

          入金
          出金
          残高

          期首残高
          <%= number_with_delimiter(@balance_start) %>

        <% for entry in @account_entries %>
          <% if entry.balance %>

              <%= format_date(entry.deal.date) %>
              <%=entry.deal.daily_seq%>
              残高確認
              不明金
              <%= number_with_delimiter(entry.unknown_amount) if entry.unknown_amount >= 0%>
              <%= number_with_delimiter(entry.unknown_amount.abs) if entry.unknown_amount < 0%>
              <%= number_with_delimiter(entry.balance)%>

          <% else %>
            <tr <%= 'class="unconfirmed"' if !entry.deal.confirmed %>>
              <%= format_date(entry.deal.date) %>
              <%=entry.deal.daily_seq%>
              <%= '未確定' if !entry.deal.confirmed %><%= entry.deal.summary%>
              <%= entry.account.name %>
              <%= number_with_delimiter(entry.amount.abs) if entry.amount < 0 && !entry.balance%>
              <%= number_with_delimiter(entry.amount) if entry.amount >= 0 && !entry.balance %>
              <%= entry.deal.confirmed ? number_with_delimiter(entry.balance_estimated) : '*' %>

          <% end %>
        <% end %>

          期末残高
          <%= number_with_delimiter(@balance_end) %>


class not style

class not style

git-svn-id: 63e5431e33a10c4701b329fb6d8e0744110cb91e@149 c2b4ead4-481d-0410-ac63-b02590f85e3f

News Article Revisions

Title
Version
Votes
Source

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

<% if version.news_article.versions_count > 1 %>
<%= link_to h(truncate(version.title,75)), { :action => :diff, :id => version.news_article.id,
  :version_a => version.version,
  :version_b => version.version - 1 }, :title => h(version.title) %>
<% else %>
<span title="<%= h(version.title) %>"><%= h(truncate(version.title,75)) %>
<% end %>

<%= version.version %>
<%= version.votes %>
<%= version.news_article.source %>

<% end %>

<%= render :partial => 'partials/paginator', :locals => { :paginator => @versions_pages } %>


Add link to draft law comments

Add link to draft law comments

<% @title = "Comentarios al borrador de ley de transparencia" %>

Propuesta de texto para la consulta pública

Desde Access Info Europe, la Fundación Ciudadana Civio y tuderechoasaber.es creemos que el anteproyecto de ley que ha presentado el gobierno es inaceptable ya que establece un derecho de acceso muy limitado.

Nosotros vamos a hacer llegar al gobierno nuestros comentarios a través de la consulta pública y os animamos a que hagáis lo mismo, es muy importante hacernos escuchar para intentar mejorar el texto de la futura ley de transparencia.

La consulta se divide en cuatro partes y nosotros hemos opinado sobre las referentes a las de transparencia que son tres. A continuación encontrareis el texto que hemos enviado desde nuestras organizaciones y que os proponemos para que lo utilicéis vosotros también si os parece adecuado.

Recordad que la fecha límite es el día 10 de abril.

Cualquier pregunta, no dudéis en poneros en contacto con nosotros.

Transparencia

El anteproyecto debería reconocer el derecho de acceso a la información como derecho fundamental.

El anteproyecto debería reconocer el principio de publicidad de toda la información en manos de las instituciones públicas y su publicidad solo debería ser limitada cuando pueda afectar a otros intereses legítimos establecidos por la propia ley, aunque siempre haciendo una ponderación con el interés público de la publicación.

Todas las instituciones públicas deben verse afectadas por la ley, debe incluirse la Casa Real y las funciones no administrativas de todas las instituciones públicas.

Las instituciones públicas deberían también publicar:

Calendario, agendas y actas de reuniones públicas (plenos ayuntamientos, asambleas legislativas y congreso diputados, consejo de ministros...)

Listado de información en su poder bases de datos, registro y cualquier de documento en cualquier formato).

Si los miembros de los gobiernos, órganos superiores o directivos ejercen otros cargos públicos también se especificará.

Derecho de acceso a la información

El derecho de acceso a la información que establece este anteproyecto es muy limitado ya que para empezar incluye una serie de excepciones absolutas en la definición y el resto de excepciones recogidas en el artículo 9 no están sujetas a la ponderación entre el potencial daño y el interés público de la publicación.

El anteproyecto debería:

Cambiar la definición de información debería ser simplemente: “toda la información registrada [archivada] de cualquier forma, elaborada o recibida, y en posesión de las instituciones públicas”

Añadir un artículo que incluya todas las excepciones, también la protección de datos personales, y que establezca una prueba de daño y de interés público y la posibilidad de acceso parcial cuando solo parte de la información sea susceptible de dañar el interés protegido.

Eliminar el artículo 13 ya que no debe excluirse ningún tipo de información.

Cambiar el silencio administrativo negativo, debe ser positivo.

Otras disposiciones:

Este anteproyecto debería:

Cambiar el órgano de revisión, se debe crear un organismo independiente cuyo mandato incluya conocer los recursos de denegación de información, velar por la implementación de la ley de transparencia y promocionar el derecho de acceso a la información. El nombramiento de su presidente deberá hacerlo el parlamento por mayoría.

Incluir sanciones para los funcionarios que no cumplan con sus obligaciones de publicación de obligación o que no contesten a las solicitudes de información.

Esta ley debe ser la base de la transparencia en España, cualquier regulación específica solo podrá ser más garantista, no podrá establecer mayores limitaciones al derecho de acceso a la información ni peores condiciones de ejercicio.


arreglada la ruta de los feeds de articles

git-svn-id: 268669d3058f191005ae665964cd19b71efa10c4@14985 3f47a204-8049-4147-aab0-d444c64e7564

	    <%if logged_in? && current_user.superuser==true && session[:current_tab]=="Manage"%>

			<%= sub_tab "Spaces", spaces_path(:manage => true) %> |
			<%= sub_tab "Users", space_users_path(@space, :manage => true) %> |
		    <%= sub_tab "Resources", machines_path %>

		<%elsif  logged_in? &&  current_user.superuser==true && session[:current_tab]=="Home"%>

			<%= sub_tab "Edit Space", edit_space_path(@space) %> |

<%= link_to "Delete Space", space_path(@space), :confirm => 'This will delete all the Space. Are you sure?', :method => :delete %>

		<%elsif session[:current_tab]=="Events"%>

			<%if logged_in?%><%= sub_tab "New Event", new_space_event_path(@space) %> | <%end%>

			<%= sub_tab "Show Calendar", space_events_path(@space, :date_start_day => Date.today) %>	|

			<%= sub_tab 'RSS Feed', formatted_space_events_path(@space, "atom")  %>

		<%elsif logged_in? && session[:current_tab]=="Groups"%>

			<%if @space.authorizes?(current_user, :manage_groups)%>
				<%= sub_tab 'Create Group', new_space_group_path(@space)%>
			<%end%>

		<%elsif logged_in? && session[:current_tab]=="MyProfile"%>

			<%= sub_tab 'Edit Profile', edit_user_profile_path(current_user)%> |
			<%= sub_tab 'Edit Account' , edit_space_user_path(@space, current_user.id)%>

		<%elsif logged_in? && session[:current_tab]=="People"%>
			<%if @space.authorizes?(current_user, :manage_groups) && @space.id != 1%>

			    <%= sub_tab 'Add Users by email', new_space_user_path(@space, :by_email=>true) %> |
				<%= sub_tab 'Add Users from App', new_space_user_path(@space, :from_app =>true) %>

				<%end%>

		<%elsif  session[:current_tab]=="Posts"%>

				<%if logged_in?%><%= sub_tab 'New Post', new_space_article_path(@space) %> | <%end%>
				<%= sub_tab 'RSS Feed', formatted_space_articles_path(@space, "atom")  %>

		<%end%>

	    <%if logged_in? && current_user.superuser==true && session[:current_tab]=="Manage"%>

			<%= sub_tab "Spaces", spaces_path(:manage => true) %> |
			<%= sub_tab "Users", space_users_path(@space, :manage => true) %> |
		    <%= sub_tab "Resources", machines_path %>

		<%elsif  logged_in? &&  current_user.superuser==true && session[:current_tab]=="Home"%>

			<%= sub_tab "Edit Space", edit_space_path(@space) %> |

<%= link_to "Delete Space", space_path(@space), :confirm => 'This will delete all the Space. Are you sure?', :method => :delete %>

		<%elsif session[:current_tab]=="Events"%>

			<%if logged_in?%><%= sub_tab "New Event", new_space_event_path(@space) %> | <%end%>

			<%= sub_tab "Show Calendar", space_events_path(@space, :date_start_day => Date.today) %>	|

			<%= sub_tab 'RSS Feed', formatted_space_events_path(@space, "atom")  %>

		<%elsif logged_in? && session[:current_tab]=="Groups"%>

			<%if @space.authorizes?(current_user, :manage_groups)%>
				<%= sub_tab 'Create Group', new_space_group_path(@space)%>
			<%end%>

		<%elsif logged_in? && session[:current_tab]=="MyProfile"%>

			<%= sub_tab 'Edit Profile', edit_user_profile_path(current_user)%> |
			<%= sub_tab 'Edit Account' , edit_space_user_path(@space, current_user.id)%>

		<%elsif logged_in? && session[:current_tab]=="People"%>
			<%if @space.authorizes?(current_user, :manage_groups) && @space.id != 1%>

			    <%= sub_tab 'Add Users by email', new_space_user_path(@space, :by_email=>true) %> |
				<%= sub_tab 'Add Users from App', new_space_user_path(@space, :from_app =>true) %>

				<%end%>

		<%elsif  session[:current_tab]=="Posts"%>

				<%if logged_in?%><%= sub_tab 'New Post', new_space_article_path(@space) %> | <%end%>
				<%= sub_tab 'RSS Feed', formatted_space_entries_path(@space, "atom")  %>

		<%end%>


Removed duplicated "Interests" on person profile

    <%= _('Basic information')%>

  <%= display_field(_('Sex:'), profile, :sex) { |gender| { 'male' => _('Male'), 'female' => _('Female') }[gender] } %>
  <%= display_field(_('Date of birth:'), profile, :birth_date) { |date| show_date(date)  }%>
  <%= display_field(_('Location:'), profile, :location, true) %>

  <%= display_field(_('Type:'), profile, :privacy_setting, true) %>

    <%= _('Profile created at:')  %>
    <%= show_date(profile.created_at) %>

  <% if profile == user || profile.friends.include?(user) %>

      <%= _('Contact')%>

    <%= display_field(_('Address:'), profile, :address) %>
    <%= display_field(_('ZIP code:'), profile, :zip_code) %>
    <%= display_field(_('Contact phone:'), profile, :contact_phone) %>
    <%= display_field(_('e-Mail:'), profile, :email, true) { |email| link_to_email(email) } %>
  <% end %>

  <% cache_timeout(profile.relationships_cache_key, 4.hours) do %>
    <% if !(profile.organization.blank? && profile.organization_website.blank?) && (profile.active_fields.include?('organization') || profile.active_fields.include?('organization_website')) %>

        <%= _('Work')%>

    <% end %>
    <%= display_field(_('Organization:'), profile, :organization) %>
    <%= display_field(_('Organization website:'), profile, :organization_website) { |url| link_to(url, url) }%>

    <% if !environment.enabled?('disable_asset_enterprises') && !profile.enterprises.empty? %>

        <%= __('Enterprises') %>

      <% profile.enterprises.each do |item| %>

          <%= button 'menu-enterprise', item.name, item.url %>

      <% end %>
    <% end %>

      <%= _('Network')%>

      <%= __('Friends') + ':' %>
      <%= link_to  profile.friends.count, { :controller => 'profile', :action => 'friends' } %>

      <%= __('Communities') + ':' %>
      <%= link_to profile.communities.count, :controller => "profile", :action => 'communities' %>

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

<% end %>

    <%= _('Basic information')%>

  <%= display_field(_('Sex:'), profile, :sex) { |gender| { 'male' => _('Male'), 'female' => _('Female') }[gender] } %>
  <%= display_field(_('Date of birth:'), profile, :birth_date) { |date| show_date(date)  }%>
  <%= display_field(_('Location:'), profile, :location, true) %>

  <%= display_field(_('Type:'), profile, :privacy_setting, true) %>

    <%= _('Profile created at:')  %>
    <%= show_date(profile.created_at) %>

  <% if profile == user || profile.friends.include?(user) %>

      <%= _('Contact')%>

    <%= display_field(_('Address:'), profile, :address) %>
    <%= display_field(_('ZIP code:'), profile, :zip_code) %>
    <%= display_field(_('Contact phone:'), profile, :contact_phone) %>
    <%= display_field(_('e-Mail:'), profile, :email, true) { |email| link_to_email(email) } %>
  <% end %>

  <% cache_timeout(profile.relationships_cache_key, 4.hours) do %>
    <% if !(profile.organization.blank? && profile.organization_website.blank?) && (profile.active_fields.include?('organization') || profile.active_fields.include?('organization_website')) %>

        <%= _('Work')%>

    <% end %>
    <%= display_field(_('Organization:'), profile, :organization) %>
    <%= display_field(_('Organization website:'), profile, :organization_website) { |url| link_to(url, url) }%>

    <% if !environment.enabled?('disable_asset_enterprises') && !profile.enterprises.empty? %>

        <%= __('Enterprises') %>

      <% profile.enterprises.each do |item| %>

          <%= button 'menu-enterprise', item.name, item.url %>

      <% end %>
    <% end %>

      <%= _('Network')%>

      <%= __('Friends') + ':' %>
      <%= link_to  profile.friends.count, { :controller => 'profile', :action => 'friends' } %>

      <%= __('Communities') + ':' %>
      <%= link_to profile.communities.count, :controller => "profile", :action => 'communities' %>

    <% if !environment.enabled?('disable_categories') && !profile.interests.empty? %>

        <%= _('Interests') %>

      <% profile.interests.each do |item| %>

          <%= link_to item.name, :controller => 'search', :action => 'category_index', :category_path => item.explode_path %>

      <% end %>
    <% end %>

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

<% end %>


use floating divs instead of spanning tables

<% -%>
<% @hours = ['12am', '1am', '2am', '3am', '4am', '5am', '6am', '7am', '8am', '9am', '10am', '11am', '12pm', '1pm',
            '2pm', '3pm', '4pm', '5pm', '6pm', '7pm', '8pm', '9pm', '10pm', '11pm']
             -%>
<% entries = @entries[Date.civil(@year, @month, @day)] -%>
<% entries.sort!{|a,b| a.start_time <=> b.start_time} if entries and !entries.empty? -%>
<%= javascript_include_tag 'jquery', 'jqModal' %>
<%= stylesheet_link_tag 'jqModal' %>

    <%= @date.strftime('%A, %B') %> <%= @date.day %>

    <% @hours.each_with_index do |hour, i| %>
      <tr class="week_days top" <%= "style=\"height: 29pt\"" if request.env["HTTP_USER_AGENT"] =~ /msie/i %>>
       <th class="hour_header" id="<%= home_path + new_simple_calendar_entry_path %>/<%= Date.new(@year, @month, @day) %>?mode=day&hour=<%= i %>">
          <%= hour %>

        <td class="link_to_new" id="<%= home_path + new_simple_calendar_entry_path %>/<%= Date.new(@year, @month, @day) %>?mode=day&hour=<%= i %>" width="100%">

      <tr class="week_days bottom" <%= "style=\"height: 29pt\"" if request.env["HTTP_USER_AGENT"] =~ /msie/i %>>
        <th class="hour_header" id="<%= home_path + new_simple_calendar_entry_path %>/<%= Date.new(@year, @month, @day) %>?mode=day&hour=<%= i %>&mins=30">
        <td class="link_to_new" id="<%= home_path + new_simple_calendar_entry_path %>/<%= Date.new(@year, @month, @day) %>?mode=day&hour=<%= i %>&mins=30" width="100%">

    <% end %>

  <% if entries and !entries.empty? -%>
    <% entries.each do |entry| -%>
      <% logger.error "Entry: #{entry.name}" %>
      <% logger.error "ALL TOUCHING: #{entry.all_touching(entries).map{|e| [e.name, e.id] }}" %>
      <% logger.error "Total Time: #{entry.total_time_minutes}\n\n" %>
      <div id="entry_<%= entry.id %>" class="day_entry"
           style="display: block;
                  top: <%= entry.top %>pt;
                  height: <%= entry.height %>pt;
                  width: <%= entry.width(@day, @month, @year) %>%;
                  left: <%= entry.left(@day, @month, @year) %>%;">

        <%= entry.time %> - <%= entry.e_time %>

        <%= link_to entry.name, simple_calendar_entry_path(entry) + "?mode=#{@mode}", {:class => 'entry'} %>
        -
        <%= entry.detail %>

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

<% -%>
<% @hours = ['12am', '1am', '2am', '3am', '4am', '5am', '6am', '7am', '8am', '9am', '10am', '11am', '12pm', '1pm',
            '2pm', '3pm', '4pm', '5pm', '6pm', '7pm', '8pm', '9pm', '10pm', '11pm']
             -%>
<% entries = @entries[Date.civil(@year, @month, @day)] -%>
<% entries.sort!{|a,b| a.start_time <=> b.start_time} if entries and !entries.empty? -%>
<% entries.sort!{|a,b| a.end_time <=> b.end_time} if entries and !entries.empty? -%>
<%= javascript_include_tag 'jquery', 'jqModal' %>
<%= stylesheet_link_tag 'jqModal' %>

    <%= @date.strftime('%A, %B') %> <%= @date.day %>

  <% @hours.each_with_index do |hour, i| %>

     <th class="hour_header" id="<%= home_path + new_simple_calendar_entry_path %>/<%= Date.new(@year, @month, @day) %>?mode=day&hour=<%= i %>">
        <%= hour %>

      <% if entries and !entries.empty? -%>
        <% entries.each do |entry| -%>
          <% if entry.start_time.between?(some_time(@date, i, 00), some_time(@date, i, 29)) -%>
            <td id="entry_<%= entry.id %>" class="day_entry" rowspan="<%= entry.span %>" width="<%= (100 / entry.all_touching(entries).size) %>%" colspan="<%= 10 / entry.all_touching(entries).size %>">
              <% javascript_tag("$('entry_#{entry.id}').width = ($('day_cal_table').getWidth() - $('week_days_row').getWidth() - 5) / #{entry.all_touching(entries).size};") %>
              <%= entry.time %> - <%= entry.e_time %>

              <%= link_to entry.name, simple_calendar_entry_path(entry) + "?mode=#{@mode}", {:class => 'entry'} %>
              -
              <%= entry.detail %>

          <% end -%>
        <% end -%>
      <% end -%>
      <td class="link_to_new" id="<%= home_path + new_simple_calendar_entry_path %>/<%= Date.new(@year, @month, @day) %>?mode=day&hour=<%= i %>" width="100%" colspan="11">

      <th class="hour_header" id="<%= home_path + new_simple_calendar_entry_path %>/<%= Date.new(@year, @month, @day) %>?mode=day&hour=<%= i %>&mins=30">
      <% if entries and !entries.empty? -%>
        <% entries.each do |entry| -%>
          <% if entry.start_time.between?(some_time(@date, i, 30), some_time(@date, i, 59)) -%>
            <td id="entry_<%= entry.id %>" class="day_entry" rowspan="<%= entry.span %>" width="<%= (100 / entry.all_touching(entries).size) %>%" colspan="<%= 10 / entry.all_touching(entries).size %>">
              <% javascript_tag("$('entry_#{entry.id}').width = ($('day_cal_table').getWidth() - $('day_cal_table').down(2).getWidth() - 5) / #{entry.all_touching(entries).size};") %>
              <%= entry.time %> - <%= entry.e_time %>

              <%= link_to entry.name, simple_calendar_entry_path(entry) + "?mode=#{@mode}", {:class => 'entry'} %>
              -
              <%= entry.detail %>

          <% end -%>
        <% end -%>
      <% end -%>
      <td class="link_to_new" id="<%= home_path + new_simple_calendar_entry_path %>/<%= Date.new(@year, @month, @day) %>?mode=day&hour=<%= i %>&mins=30" width="100%" colspan="11">

  <% end %>


The CSS validation link now links to the actual site url. fixes #54

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

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

  <title><%= page_title %></title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<%= url_for :controller => '/xml/rsd' %>" />
  <link rel="alternate" type="application/rss+xml"  title="Recent changes (RSS 2.0)"  href="<%= url_for :controller => 'xml', :action => 'rss' %>" />
  <link rel="alternate" type="application/atom+xml"  title="Recent changes (ATOM 0.3)"  href="<%= url_for :controller => 'xml', :action => 'atom' %>" />
  <%= stylesheet_link_tag "typo" %>
  <%= javascript_include_tag "prototype" %>

<%= link_to config_value('blog_name'), { :controller => '/' } %>

  <%= @content_for_layout %>

  <%= render_partial "shared/search" %>

  <%= categorylist %>

  <%= render_partial "shared/links"  %>

  <%=
    # deliciouslist "http://del.icio.us/rss/username"
  -%>

  <%=
    # tadalist "http://<nick>.tadalist.com/l..."
  -%>

  <%= render_partial "shared/xml" %>

  <%=
    #flickrlist "http://www.flickr.com/services/feeds/..."
  -%>
  Valid XHTML 1.0

  <a href="http://jigsaw.w3.org/css-validator/validator?uri=<%= server_url_for :controller => 'articles' %>">Valid CSS

    Powered by Typo

    <%= link_to 'RSS', :controller => 'xml', :action => 'rss' %>
    and
    <%= link_to 'atom', :controller => 'xml', :action => 'atom' %>

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

  <title><%= page_title %></title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<%= url_for :controller => '/xml/rsd' %>" />
  <link rel="alternate" type="application/rss+xml"  title="Recent changes (RSS 2.0)"  href="<%= url_for :controller => 'xml', :action => 'rss' %>" />
  <link rel="alternate" type="application/atom+xml"  title="Recent changes (ATOM 0.3)"  href="<%= url_for :controller => 'xml', :action => 'atom' %>" />
  <%= stylesheet_link_tag "typo" %>
  <%= javascript_include_tag "prototype" %>

<%= link_to config_value('blog_name'), { :controller => '/' } %>

  <%= @content_for_layout %>

  <%= render_partial "shared/search" %>

  <%= categorylist %>

  <%= render_partial "shared/links"  %>

  <%=
    # deliciouslist "http://del.icio.us/rss/username"
  -%>

  <%=
    # tadalist "http://<nick>.tadalist.com/l..."
  -%>

  <%= render_partial "shared/xml" %>

  <%=
    #flickrlist "http://www.flickr.com/services/feeds/..."
  -%>
  Valid XHTML 1.0

  Valid CSS

    Powered by Typo

    <%= link_to 'RSS', :controller => 'xml', :action => 'rss' %>
    and
    <%= link_to 'atom', :controller => 'xml', :action => 'atom' %>


issues filter on same line

issues filter on same line

<%=l(:label_working_hours)%>

<% form_tag({ :action => 'index' }, :id => 'query_form') do %>
<fieldset><legend><%= l(:label_filter_plural) %></legend>
  Begin: <%= text_field_tag :begindate, params[:begindate], :size => 10 %><%= calendar_for('begindate') %>
  End: <%= text_field_tag :enddate, params[:enddate], :size => 10 %><%= calendar_for('enddate') %>
  <%= l(:field_project) %>: <%= select_tag "filter[project_id]", "<option value=\"\">#{l(:label_all)}</option>" + options_from_collection_for_select(User.current.projects, :id, :name, params[:filter][:project_id].to_s.to_i) %>

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

</fieldset>

<%= observe_field 'filter[project_id]', :update => 'issues_list', :url => {:action => 'update_issues'}, :with => "'change_project_id=' + encodeURIComponent(value)" %>

    <%= link_to_function l(:button_apply), "$('query_form').submit()", :class => 'icon icon-checked' %>

    <%= link_to l(:button_clear), {}, :class => 'icon icon-reload'  %>

    <%= link_to l(:label_export_to)+' CSV', {:overwrite_params => { :export => 'csv' }}, :class => 'icon icon-csv' %>
    <%= link_to 'iCalendar', {:overwrite_params => { :export => 'ics', :key => User.current.rss_key }}, :class => 'icon icon-ics' %>

<% end %>

<% if @working_hours.empty? %>

<%= l(:label_no_data) %>

<% else %>
<%= render :partial => 'working_hours/list', :locals => {:working_hours => @working_hours} %>
<% end %>


Commit patch for #717 - add title text to flickr images in sidebar

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

<% if @flickr -%>

<%= @flickr.title  %> (<%= link_to "flickr", @flickr.link %>)

<% for pic in @flickr.choose(@sb_config['count'].to_i) -%>
  <div class="flickr<%= @sb_config['format']%>"><%= case @sb_config['format']
          when 'square':
            link_to image_tag(pic.square, :alt => pic.title, :title => pic.title),pic.link
          when 'rectangle':
            link_to image_tag(pic.thumb, :alt => pic.title, :title => pic.title),pic.link
          end
 %>

  <% end -%>

<% end -%>

<% if @flickr -%>

<%= @flickr.title  %> (<%= link_to "flickr", @flickr.link %>)

<% for pic in @flickr.choose(@sb_config['count'].to_i) -%>
  <div class="flickr<%= @sb_config['format']%>"><%= case @sb_config['format']
          when 'square':
            link_to image_tag(pic.square, :alt => pic.title),pic.link
          when 'rectangle':
            link_to image_tag(pic.thumb, :alt => pic.title),pic.link
          end
 %>

  <% end -%>

<% end -%>


Add missing comma.

Add missing comma.

<% form_tag({:action => "signup"}, {:id => "signup_form"}) do %>
    <%= foi_error_messages_for :user_signup %>

        <%= _('Your e-mail:')%>
        <%= text_field 'user_signup', 'email', { :size => 20 } %>

        <%= _('We will not reveal your email address to anybody unless you or
        the law tell us to (details). ') %[help_privacy_path] %>

         <%= _('Your name:')%>
        <%= text_field 'user_signup', 'name', { :size => 20 } %>

         <%= _('Your name will appear publicly
        (why?)
        on this website and in search engines. If you
        are thinking of using a pseudonym, please
        read this first.') % [help_privacy_path+"#public_request", help_privacy_path+"#real_name"] %>

        <%= _('Your address:')%>
        <%= text_area 'user_signup', 'address', { :cols => 20, :rows => 6 } %>

        <%= _('Your address will be sent to authorities when you make a request.  We will not reveal your address on the website.') %>

        <%= _('Your DOB:')%>
        <%= text_field 'user_signup', 'dob', { :size => 20, :class => 'dob-datepicker' } %>

        <%= _('Your DOB will also be sent to authorities when you make a request.  We will not reveal your DOB on the website.') %>

         <%= _('Password:')%>
        <%= password_field 'user_signup', 'password', { :size => 15 } %>

         <%= _('Password: (again)')%>
        <%= password_field 'user_signup', 'password_confirmation', { :size => 15 } %>

    <% if @request_from_foreign_country %>
    <%= recaptcha_tags %>
    <% end %>

        <%= hidden_field_tag 'token', params[:token], {:id => 'signup_token' } %>
        <%= hidden_field_tag :modal, params[:modal], {:id => 'signup_modal' } %>
        <%= submit_tag _('Sign up') %>

<% end %>


removed explicit ajax-indicator calls. Using the default redmine-provided ones instead

<% content_for :header_tags do %>
    <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>

<% end %>

    <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
    <%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
    <%= link_to(l(:label_overall_spent_time), { :controller => 'time_entries' }) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
    <%= link_to l(:label_overall_activity), { :controller => 'projects', :action => 'activity' }%>

<%=l(:label_project_plural)%>

<% form_tag('/projects', :method => :get, :id => :project_filtering) do %>

  <fieldset id="filters" class="collapsible">
    <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>

        <%= label_tag 'q', l('project_filtering_q_label') %>
        <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>

      <%= render :partial => 'custom_field', :collection => @custom_fields_used_for_project_filtering %>

<%= submit_tag l(:button_send) -%>

  </fieldset>

<% end %>
<%= javascript_tag "Field.focus('search-input')" %>
<%= observe_form( :project_filtering,
  :frequency => 0.5,
  :url => { :controller => :projects, :action => :index, :format => :js },
  :method => :get
  )
%>

  <%= render :partial => 'project', :collection => @projects %>

<% if User.current.logged? %>

<%= l(:label_my_projects) %>

<% end %>

<% other_formats_links do |f| %>
	<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
<% end %>

<% html_title(l(:label_project_plural)) -%>

<% content_for :header_tags do %>
    <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>

<% end %>

    <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
    <%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
    <%= link_to(l(:label_overall_spent_time), { :controller => 'time_entries' }) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
    <%= link_to l(:label_overall_activity), { :controller => 'projects', :action => 'activity' }%>

<%=l(:label_project_plural)%>

<% form_tag('/projects', :method => :get, :id => :project_filtering) do %>

  <fieldset id="filters" class="collapsible">
    <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>

        <%= label_tag 'q', l('project_filtering_q_label') %>
        <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>

      <%= render :partial => 'custom_field', :collection => @custom_fields_used_for_project_filtering %>

<%= submit_tag l(:button_send) -%>

  </fieldset>

<% end %>
<%= javascript_tag "Field.focus('search-input')" %>
<%= observe_form( :project_filtering,
  :frequency => 0.5,
  :url => { :controller => :projects, :action => :index, :format => :js },
  :method => :get,
  :loading => "$('ajax-indicator').show()",
  :complete => "$('ajax-indicator').hide()")
%>

  <%= render :partial => 'project', :collection => @projects %>

<% if User.current.logged? %>

<%= l(:label_my_projects) %>

<% end %>

<% other_formats_links do |f| %>
	<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
<% end %>

<% html_title(l(:label_project_plural)) -%>


dont updateCustomSharingSettings when disable_advance_view

<%
   object ||= nil
   set_parameters_for_sharing_form object
   disable_advanced_view ||= nil
   show_advanced_permissions = !@resource.respond_to?(:has_advanced_permissions?) || @resource.has_advanced_permissions?
   default_projects_access_type = @resource.is_asset? ? Policy::ACCESSIBLE : Policy::EDITING
   default_consortium_access_type = Policy::VISIBLE
%>
<%# initialization: required to keep javascript independent of the access type codes, to allow the use the constants instead -%>
<%= render :partial=>"assets/sharing_constants" %>

<%# this hidden input will submit all permission data with the form -%>
<%= hidden_field_tag "sharing[permissions][contributor_types]", "" -%>
<%= hidden_field_tag "sharing[permissions][values]", "" -%>

    <%= help_icon("Here you can specify who can see#{', download' if @resource.is_downloadable?} and edit this #{@resource_type}.") -%>
    Sharing

        Here you can specify who can view the summary of<% if @resource.is_downloadable? %>, get access to the content of,<% end %> and edit the <%= @resource_type -%>.
        <%= link_to_function "More info " + expand_image, visual_effect(:toggle_blind, "more_sharing_info", :duration => 0.3) -%>

          You may:

Keep the <%= @resource_type -%> private, and only visible to yourself.

Share within the selected projects and with all other users that are a member of a <%= Seek::Config.project_name %> project.

          <% if try_block{@resource.can_publish?} %>

Share with the all visitors (including anonymous visitors with no login)

          <% end %>
          <% if !disable_advanced_view%>

Define more fine-grained sharing in the Advanced sharing: you can share within your Project/Institution only,
 with specific individuals, or set up custom favourite groups for people you regularly need to share with.

          <% end %>

<label for="sharing_scope_<%= Policy::PRIVATE -%>">
            <input type="hidden" id='access_type_select_<%= Policy::PRIVATE -%>' name="sharing[access_type_<%= Policy::PRIVATE -%>]" value="<%= Policy::NO_ACCESS -%>">
            <input <%= 'checked="checked"' if @sharing_mode == Policy::PRIVATE %> id="sharing_scope_<%= Policy::PRIVATE -%>" name="sharing[sharing_scope]"
                                                                                value="<%= Policy::PRIVATE -%>" type="radio" />
            - Keep this <%= @resource_type -%> private (only visible to you)

          <%= additional_advanced_permissions_included @resource, Policy::PRIVATE -%>

Or share it with..

            <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_SYSMO_USERS -%> id="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>" name="sharing[sharing_scope]" value="<%= Policy::ALL_SYSMO_USERS -%>" />
            - Members of projects associated with this <%= @resource_type -%>:

             <select name="sharing[your_proj_access_type]" id="sharing_your_proj_access_type">
                 <%= policy_selection_options([Policy::VISIBLE,Policy::ACCESSIBLE,Policy::EDITING,Policy::MANAGING], @resource, your_project_access_type(@policy, @resource) || default_projects_access_type) -%>
             </select>

            ... and all other project members:
             <%= render :partial => "assets/sharing_form_access_type_dropdown", :locals => { :access_type_selector_for_scope => Policy::ALL_SYSMO_USERS,
               :sharing_scope => Policy::ALL_SYSMO_USERS, :access_type => (@resource.respond_to?(:policy) && @resource.policy.try(:sharing_scope)==Policy::ALL_SYSMO_USERS ? @access_mode : default_consortium_access_type), :access_type_options=>[Policy::NO_ACCESS,Policy::VISIBLE,Policy::ACCESSIBLE,Policy::EDITING] } -%>
             <%= additional_advanced_permissions_included @resource, Policy::ALL_SYSMO_USERS -%>

          <label for="sharing_scope_<%= Policy::EVERYONE -%>">
            <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::EVERYONE -%> id="sharing_scope_<%= Policy::EVERYONE -%>" name="sharing[sharing_scope]"
                   value="<%= Policy::EVERYONE -%>" <%= 'disabled="true"' if @resource.respond_to?(:can_publish?) && !@resource.can_publish? -%>/>
            - All visitors (including anonymous visitors with no login):

              <%= render :partial => "assets/sharing_form_access_type_dropdown", :locals => { :access_type_selector_for_scope => Policy::EVERYONE,
            :sharing_scope => @sharing_mode, :access_type => @access_mode } -%>
           <%= additional_advanced_permissions_included @resource, Policy::EVERYONE -%>

    <% if @resource.new_record? && @resource.errors.empty? -%>

    <% end -%>

    <% if !disable_advanced_view %>
      <%= link_to_function "Advanced permissions " + expand_image, :class => 'advanced_sharing_link', :style => "display:" + (show_advanced_permissions ? 'none;' : 'block;'), :id =>'advanced_sharing_expand_image' do |page|
          page.visual_effect :toggle_blind, "advanced sharing", :duration => 0.5
          page["advanced_sharing_expand_image"].toggle
          page["advanced_sharing_collapse_image"].toggle
      end
      -%>
      <%= link_to_function "Advanced permissions " + collapse_image, :class => 'advanced_sharing_link', :style => "display:" + (show_advanced_permissions ? 'block;' : 'none;'), :id =>'advanced_sharing_collapse_image' do |page|
          page.visual_effect :toggle_blind, "advanced sharing", :duration => 0.5
          page["advanced_sharing_expand_image"].toggle
          page["advanced_sharing_collapse_image"].toggle
      end
      -%>

      <div id="advanced sharing" class='sharing_box_form' style="display:<%= show_advanced_permissions ? 'block;' : 'none;' -%>">

Additional fine-grained sharing permissions

              So far you have selected to share this <%= @resource_type -%> with:

              Loading...

              Build up the list of people and groups to share with.
              Select from the options below and click "Add" to apply
              your choices and add collaborators to your current selection:

                <%= image_tag icon_filename_for_key("spinner"), :id => "f_group_deleting_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle; float: right;" -%>
                <%= help_icon("Here you can choose your favourite groups to share this #{@resource_type} with.") -%>
                Favourite Groups

                  <% favourite_groups = FavouriteGroup.get_all_without_blacklists_and_whitelists(current_user.id) -%>
                  <% f_group_select_options = (favourite_groups.blank? ? "<option value=\"\">You don't have any favourite groups</option>" : options_for_select(favourite_groups)) -%>

                  <%= select_tag "favourite_group_select", f_group_select_options, :style => "width: 82%; vertical-align: middle; margin-right: 0.4em;", :disabled => (favourite_groups.blank?) -%>

                  <%= link_to "Add", "", :id => "add_f_group_link", :style => "font-weight: bold; vertical-align: middle;", :disabled => (favourite_groups.blank?),
                              :onclick => "javascript: if($('favourite_group_select').disabled) return(false); addContributor('FavouriteGroup', $('favourite_group_select').options[$('favourite_group_select').selectedIndex].text, parseInt($('favourite_group_select').options[$('favourite_group_select').selectedIndex].value), #{Policy::DETERMINED_BY_GROUP}); return(false);" -%>

                  <li id="edit_f_group_li" style="display: <%= favourite_groups.blank? ? "none" : "block" -%>; list-style-type: disc; padding: 0;"><%= favourite_group_popup_link_action_edit(@resource.class.name) -%>

                  <li id="delete_f_group_li" style="display: <%= favourite_groups.blank? ? "none" : "block" -%>; list-style-type: disc; padding: 0;">
                    <%= link_to "Delete selected favourite group", delete_favourite_group_path(0), :onclick => "deleteSelectedFavouriteGroup(); return(false);" -%>

<%= favourite_group_popup_link_action_new(@resource.class.name) -%>

                <%= help_icon("Here you can choose projects, institutions and workgroups to share this #{@resource_type} with.") -%>
                Projects and Institutions

                  <% right_arrow_image = icon_filename_for_key("arrow_right") -%>

                  Step 1
                  <%= image_tag right_arrow_image, :style => "vertical-align: middle; padding: 0 0.8em;" -%>

                  Step 2
                  <%= image_tag right_arrow_image, :style => "vertical-align: middle; padding: 0 0.8em;" -%>

                  Step 3

                    <input type="hidden" id="proj_select_step_index" value="1">

                      <%= image_tag icon_filename_for_key("spinner"), :id => "institutions_loading_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle; float: right;" -%>
                      Step 1: Select a project
                      <%= select("proj_project", "select",
                                 Project.find(:all).collect { |p| [p.name, p.id] },
                                 {:include_blank => 'All Projects @ Institution (from Step 2)'}, {:style => "width: 100%; vertical-align: middle; margin: 0.3em 0;"}) -%>

                      Step 2: Select scope of the project
                      <%= select_tag("proj_institution_select", nil, {:style => "width: 100%; vertical-align: middle; margin: 0.3em 0;"}) -%>

                      Step 3: Choose access rights, review and
                      submit

                      <select name="proj_access_type_select" id="proj_access_type_select" onchange="javascript: replaceReviewWorkGroupURL();" style="width: 100%; vertical-align: middle; margin: 0.3em 0;">
                        <%= policy_selection_options [Policy::NO_ACCESS, Policy::VISIBLE, Policy::ACCESSIBLE, Policy::EDITING, Policy::MANAGING], @resource -%>
                      </select>

                        <%= link_to "< Previous step", "", :onclick => "javascript: projectInstitutionStepAction(-1); return(false);", :style => "font-weight: bold;" -%>

                        <%= link_to "Next step >", "", :onclick => "javascript: projectInstitutionStepAction(1); return(false);", :style => "font-weight: bold;" -%>

                          <%= link_to "Add immediately", "", :onclick => "javascript: addProjectInstitution(); return(false);", :style => "font-weight: bold; padding: 0;" -%>

<%= workgroup_member_review_popup_link(@resource.class.name) -%>

                <%= help_icon("Here you can specify individual people to share this #{@resource_type} with.") -%>
                Individual People

                    Please type names of people to share this <%= @resource_type -%> with into the box below -
                    suggestions will be displayed as you type.
                    Select access rights from drop-down menu; these will be applied to all chosen people.
                    Clicking "Add" will add selected people to the list.

                          ^_^<input type="text" id="ip_hidden_input" tabindex="-1">

                            <input type="text" size="1" tabindex="" id="ip_autocomplete_input"/>

Type the name of a friend, friend list, or email address

                        <select name="individual_people_access_type_select" id="individual_people_access_type_select" style="width: 344px; vertical-align: middle; margin-top: 0.3em;">
                          <%= policy_selection_options nil, @resource -%>
                        </select>

                        <%= link_to "Add", "", :onclick => "javascript: addIndividualPeople(); return(false);" -%>

  <% end %>


Save to tinymce on ajax form

Save to tinymce on ajax form

<%= render :file => 'shared/tiny_mce', :locals => {:mode => 'simple'} %>
<% remote_form_for(@product,
                   :loading => "small_loading('product-description-form')",
                   :before => ("tinymce.editors[0].save()" unless Rails.env == 'test'),
                   :update => 'product-description',
                   :url => {:controller => 'manage_products', :action => 'edit', :id => @product, :field => 'description'},
                   :html => {:id => 'product-description-form', :method => 'post'}) do |f| %>

  <%= labelled_form_field(_('Description:'), f.text_area(:description, :rows => 15, :style => 'width: 90%;', :class => 'mceEditor')) %>
  <% button_bar do %>
    <%= submit_button :save, _('Save') %>
    <%= cancel_edit_product_link(@product, 'description') %>
  <% end %>

<% end %>

<%= render :file => 'shared/tiny_mce', :locals => {:mode => 'simple'} %>
<% remote_form_for(@product,
                   :loading => "small_loading('product-description-form')",
                   :update => 'product-description',
                   :url => {:controller => 'manage_products', :action => 'edit', :id => @product, :field => 'description'},
                   :html => {:id => 'product-description-form', :method => 'post'}) do |f| %>

  <%= labelled_form_field(_('Description:'), f.text_area(:description, :rows => 15, :style => 'width: 90%;', :class => 'mceEditor')) %>
  <% button_bar do %>
    <%= submit_button :save, _('Save') %>
    <%= cancel_edit_product_link(@product, 'description') %>
  <% end %>

<% end %>


moved recaptcha code in a separate fieldset

<% form_tag({:action => 'edit', :id => @user.id}, {:multipart => true, :class => 'center_content'}) do -%>

<%= error_messages_for 'user' %>

	<% if @user.id %>

<%= h(@user) %> — Modify Your Profile

	<% else %>

Register

	<% end %>

		<fieldset id="picture">
		<%= render :partial => "profile/picture_edit", :object => @user.picture_path, :locals => {:user => @user} %>
		</fieldset>

    <fieldset id='account_details'>

Account Details (required)

    		Email Address<%= text_field_tag 'user[email_address]', @user.email_address %>

    		Set Password<%= password_field_tag 'user[password]' %>
    		Confirm Password<%= password_field_tag 'user[password_confirmation]' %>

    </fieldset>

  <fieldset id='profile' class='wide'>

Bodysize Community Profile (optional)

	   		First Name<%= text_field_tag 'user[first_name]', @user.first_name %>

	    	Last Name<%= text_field_tag 'user[last_name]', @user.last_name %>

	    	City<%= text_field_tag 'user[city]', @user.city %>

	    	State<%= us_state_select('user', 'state') %>

	    	Country<%= select("user", "country", CountryCodes.countries_for_select('name', 'name').sort) %>

	    	School<%= text_field_tag 'user[school_name]', @user.school_name %>

	    	School Level<%= select 'user', 'school_level_id', @school_levels %>

	    	Number of Students in Class<%= text_field_tag 'user[number_of_students_in_class]', @user.number_of_students_in_class, :size => 3 %>

	    	Profile
<%= text_area_tag 'user[profile_description]', @user.profile_description %>

  </fieldset>

  <% if @user.id %>
  <% else %>
     <fieldset id='recaptcha'>

reCaptcha Code (required)

		<%= recaptcha_tags %>
	 </fieldset>
	<% end %>

    <%= submit_tag 'Save Changes' %>

<% end %>

<% form_tag({:action => 'edit', :id => @user.id}, {:multipart => true, :class => 'center_content'}) do -%>

<%= error_messages_for 'user' %>

	<% if @user.id %>

<%= h(@user) %> — Modify Your Profile

	<% else %>

Register

	<% end %>

		<fieldset id="picture">
		<%= render :partial => "profile/picture_edit", :object => @user.picture_path, :locals => {:user => @user} %>
		</fieldset>

    <fieldset id='account_details'>

Account Details (required)

    		Email Address<%= text_field_tag 'user[email_address]', @user.email_address %>

    		Set Password<%= password_field_tag 'user[password]' %>
    		Confirm Password<%= password_field_tag 'user[password_confirmation]' %>

    </fieldset>

  <fieldset id='profile' class='wide'>

Bodysize Community Profile (optional)

	   		First Name<%= text_field_tag 'user[first_name]', @user.first_name %>

	    	Last Name<%= text_field_tag 'user[last_name]', @user.last_name %>

	    	City<%= text_field_tag 'user[city]', @user.city %>

	    	State<%= us_state_select('user', 'state') %>

	    	Country<%= select("user", "country", CountryCodes.countries_for_select('name', 'name').sort) %>

	    	School<%= text_field_tag 'user[school_name]', @user.school_name %>

	    	School Level<%= select 'user', 'school_level_id', @school_levels %>

	    	Number of Students in Class<%= text_field_tag 'user[number_of_students_in_class]', @user.number_of_students_in_class, :size => 3 %>

	    	Profile
<%= text_area_tag 'user[profile_description]', @user.profile_description %>

  </fieldset>
  <% if @user.id %>
  <% else %>
		<%= recaptcha_tags %>
	<% end %>

    <%= submit_tag 'Save Changes' %>

<% end %>


pages: pickypicky

pages: pickypicky

<%
	if page.news_page?
		subpages = []
	else
		subpages = page.pages( :show_drafts => true, :show_hidden => true, :show_all_languages => true )
	end
	page_classes = ['page']
	page_classes << 'page_without_language' unless page.name?
-%>

	<div class="<%= page_classes.join(' ') %>" id="pagelisting_<%= page.id %>">
		<% if page.published? %>
			<%= link_to(page_name(page), edit_admin_page_url(@language, page), :class => 'page_name') %>
		<% else %>

				<%= link_to(page_name(page), edit_admin_page_url(@language, page), :class => 'page_name') %>
				(<%= page.status_label %><% if page.draft? && page.author %> by <%= page.author.realname %><% end %>)

		<% end %>
		<%= image_tag( "feed-icon-14x14.png", :size=>"10x10", :plugin => :pages ) if page.feed_enabled? %>

			—
			<%= link_to "Edit", edit_admin_page_url( @language, page ) %> /
			<%= link_to "Create subpage", new_admin_page_url( :language => @language, :parent => page ) %>
			<% if page.reorderable? %>
				/ <%= link_to "Move Up", { :action => :reorder, :id => page, :direction => 'up' } %> / <%= link_to "Move Down", { :action => :reorder, :id => page, :direction => 'down' } %>
			<% end %>
			—
			last updated <%= time_ago_in_words page.updated_at %> ago

	<% if page.news_page? %>

News items

	<% elsif subpages.length > 0 %>
		<% if subpages.length > 13 %>

<% subpages[0...10].each do |subpage| %>
				<%= render :partial => "pagelisting", :locals => { :page => subpage } %>
			<% end %>

				<%= link_to_function "All #{subpages.length} pages", "alert('We are working on it!');", :class => "morepageslink" %>

		<% else %>

<% subpages.each do |subpage| %>
				<%= render :partial => "pagelisting", :locals => { :page => subpage } %>
			<% end %>

		<% end %>
	<% end %>

<%
	if page.news_page?
		subpages = []
	else
		subpages = page.pages( :show_drafts => true, :show_hidden => true, :show_all_languages => true )
	end
	page_classes = ['page']
	page_classes << 'page_without_language' unless page.name?
-%>

	<div class="<%= page_classes.join(' ') %>" id="pagelisting_<%= page.id %>">
		<% if page.published? %>
			<%= link_to(page_name(page), edit_admin_page_url(@language, page), :class => 'page_name') %>
		<% else %>

				<%= link_to(page_name(page), edit_admin_page_url(@language, page), :class => 'page_name') %>
				(<%= page.status_label %><% if page.draft? && page.author %> by <%= page.author.realname %><% end %>)

		<% end %>
		<%= image_tag( "feed-icon-14x14.png", :size=>"10x10", :plugin => :pages ) if page.feed_enabled? %>

			—
			<%= link_to "Edit", edit_admin_page_url( @language, page ) %> /
			<%= link_to "Create subpage", new_admin_page_url( :language => @language, :parent => page ) %>
			<% if page.reorderable? %>
				/ <%= link_to "Move Up", { :action => :reorder, :id => page, :direction => 'up' } %> / <%= link_to "Move Down", { :action => :reorder, :id => page, :direction => 'down' } %>
			<% end %>
			—
			last updated <%= time_ago_in_words page.updated_at %> ago

	<% if page.news_page? %>

News items

	<% elsif subpages.length > 0 %>
		<% if subpages.length > 13 %>

<% subpages[0...10].each do |subpage| %>
				<%= render :partial => "pagelisting", :locals => { :page => subpage } %>
			<% end %>

				<%= link_to_function "See all #{subpages.length - 10} pages", "alert('We are working on it!');", :class => "morepageslink" %>

		<% else %>

<% subpages.each do |subpage| %>
				<%= render :partial => "pagelisting", :locals => { :page => subpage } %>
			<% end %>

		<% end %>
	<% end %>