Move the report on what you're tracking to the bottom of your user page.

<% @title = h(@display_user.name) + (@is_you ? " (you)" : "") %>

<% if (@same_name_users.size >= 1) %>

There is more than one person who uses this site and has this name.
    One of them is shown below, you may mean a different one: <% for @same_name_user in @same_name_users %>
        <%= user_link(@same_name_user) %>
    <% end %>
<% end%>

<% if @is_you && @undescribed_requests.size > 0 %>

Please go to the following requests, and let us
        know if there was information in the recent responses to them.

        <% for undescribed_request in @undescribed_requests %>

<%=request_link(undescribed_request)%>

        <% end %>

            Thanks very much - this will help others find useful stuff. We'll
            also, if you need it, give advice on what to do next about your
            requests.

<% end %>

Track this person

    <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'sidebar' } %>

<%=@title%>

        Joined WhatDoTheyKnow in <%= year_from_date(@display_user.created_at) %>
        <% if !@user.nil? && @user.admin_page_links? %>
        (<%= link_to "admin", user_admin_url(@display_user) %>)
        <% end %>

        <%= link_to "Send message to " + h(@display_user.name), contact_user_url(:id => @display_user.id) %>
        <% if @is_you %>
            (just to see how it works)

<%= link_to "Change your password", signchange_url() %>
        <% end %>

    <% if not @is_you %>

            If you are <%=h @display_user.name %>, <%= link_to "sign in", signin_url(:r => request.request_uri) %> to change your password or alter your subscriptions.

    <% end %>

    <% if !@xapian_requests.nil? %>
        <% if @xapian_requests.results.empty? %>
            <% if @page == 1 %>

Freedom of Information requests made by <%= @is_you ? 'you' : 'this person' %>

<%= @is_you ? 'You have' : 'This person has' %>
                made no Freedom of Information requests using this site.

            <% end %>
        <% else %>

                <%= @is_you ? 'Your ' : "This person's " %>
                <%=pluralize(@display_user.info_requests.size, "Freedom of Information request") %>

                <%= @page_desc %>

            <% for result in @xapian_requests.results %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
            <% end %>

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.info_requests.size) %>
        <% end %>
    <% else %>

Freedom of Information requests made by <%= @is_you ? 'you' : 'this person' %>

The search index is currently offline, so we can't show the Freedom of Information requests this person has made.

    <% end %>

    <% if !@xapian_comments.nil? %>
        <% if @xapian_comments.results.empty? %>
            <% if @page == 1 %>

<%= @is_you ? 'Your' : 'This person\'s' %> annotations

None made.

            <% end %>
        <% else %>

                <%= @is_you ? 'Your ' : "This person's " %>
                <%=pluralize(@display_user.visible_comments.size, "annotation") %>

                <%= @page_desc %>

            <% for result in @xapian_comments.results %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
            <% end %>

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.visible_comments.size) %>
        <% end %>
    <% end %>

    <% if @is_you and not @track_things.empty? %>

            Your <%=pluralize(@track_things.size, "email subscription") %>
            <% if @track_things_grouped.size == 1 %>
                <% form_tag :controller => 'track', :action => 'delete_all_type' do %>

                        <%=TrackThing.track_type_description(@track_things[0].track_type)%>
                        <%= hidden_field_tag 'track_type', @track_things[0].track_type %>
                        <%= hidden_field_tag 'user', @display_user.id %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <% if @track_things.size > 1 %>
                            <%= submit_tag "unsubscribe all" %>
                        <% end %>

                <% end %>
            <% end %>

        <% for track_type, track_things in @track_things_grouped %>
            <% if @track_things_grouped.size > 1 %>
                <% form_tag :controller => 'track', :action => 'delete_all_type' do %>

                        <%=TrackThing.track_type_description(track_type)%>
                        <%= hidden_field_tag 'track_type', track_type %>
                        <%= hidden_field_tag 'user', @display_user.id %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <% if track_things.size > 1 %>
                            <%= submit_tag "unsubscribe all" %>
                        <% end %>

                <% end %>
            <% end %>

            <% for track_thing in track_things %>

                    <% form_tag :controller => 'track', :action => 'update', :track_id => track_thing.id do %>

                            <%= track_thing.params[:list_description] %>
                            <%= hidden_field_tag 'track_medium', "delete", { :id => 'track_medium_' + track_thing.id.to_s } %>
                            <%= hidden_field_tag 'r', request.request_uri, { :id => 'r_' + track_thing.id.to_s }  %>
                            <%= submit_tag "unsubscribe" %>

                    <% end %>

            <% end %>

        <% end %>
    <% end %>

<% @title = h(@display_user.name) + (@is_you ? " (you)" : "") %>

<% if (@same_name_users.size >= 1) %>

There is more than one person who uses this site and has this name.
    One of them is shown below, you may mean a different one: <% for @same_name_user in @same_name_users %>
        <%= user_link(@same_name_user) %>
    <% end %>
<% end%>

<% if @is_you && @undescribed_requests.size > 0 %>

Please go to the following requests, and let us
        know if there was information in the recent responses to them.

        <% for undescribed_request in @undescribed_requests %>

<%=request_link(undescribed_request)%>

        <% end %>

            Thanks very much - this will help others find useful stuff. We'll
            also, if you need it, give advice on what to do next about your
            requests.

<% end %>

Track this person

    <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'sidebar' } %>

<%=@title%>

        Joined WhatDoTheyKnow in <%= year_from_date(@display_user.created_at) %>
        <% if !@user.nil? && @user.admin_page_links? %>
        (<%= link_to "admin", user_admin_url(@display_user) %>)
        <% end %>

        <%= link_to "Send message to " + h(@display_user.name), contact_user_url(:id => @display_user.id) %>
        <% if @is_you %>
            (just to see how it works)

<%= link_to "Change your password", signchange_url() %>
        <% end %>

    <% if not @is_you %>

            If you are <%=h @display_user.name %>, <%= link_to "sign in", signin_url(:r => request.request_uri) %> to change your password or alter your subscriptions.

    <% end %>

    <% if @is_you and not @track_things.empty? %>

            Your <%=pluralize(@track_things.size, "email subscription") %>
            <% if @track_things_grouped.size == 1 %>
                <% form_tag :controller => 'track', :action => 'delete_all_type' do %>

                        <%=TrackThing.track_type_description(@track_things[0].track_type)%>
                        <%= hidden_field_tag 'track_type', @track_things[0].track_type %>
                        <%= hidden_field_tag 'user', @display_user.id %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <% if @track_things.size > 1 %>
                            <%= submit_tag "unsubscribe all" %>
                        <% end %>

                <% end %>
            <% end %>

        <% for track_type, track_things in @track_things_grouped %>
            <% if @track_things_grouped.size > 1 %>
                <% form_tag :controller => 'track', :action => 'delete_all_type' do %>

                        <%=TrackThing.track_type_description(track_type)%>
                        <%= hidden_field_tag 'track_type', track_type %>
                        <%= hidden_field_tag 'user', @display_user.id %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <% if track_things.size > 1 %>
                            <%= submit_tag "unsubscribe all" %>
                        <% end %>

                <% end %>
            <% end %>

            <% for track_thing in track_things %>

                    <% form_tag :controller => 'track', :action => 'update', :track_id => track_thing.id do %>

                            <%= track_thing.params[:list_description] %>
                            <%= hidden_field_tag 'track_medium', "delete", { :id => 'track_medium_' + track_thing.id.to_s } %>
                            <%= hidden_field_tag 'r', request.request_uri, { :id => 'r_' + track_thing.id.to_s }  %>
                            <%= submit_tag "unsubscribe" %>

                    <% end %>

            <% end %>

        <% end %>
    <% end %>

    <% if !@xapian_requests.nil? %>
        <% if @xapian_requests.results.empty? %>
            <% if @page == 1 %>

Freedom of Information requests made by <%= @is_you ? 'you' : 'this person' %>

<%= @is_you ? 'You have' : 'This person has' %>
                made no Freedom of Information requests using this site.

            <% end %>
        <% else %>

                <%= @is_you ? 'Your ' : "This person's " %>
                <%=pluralize(@display_user.info_requests.size, "Freedom of Information request") %>

                <%= @page_desc %>

            <% for result in @xapian_requests.results %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
            <% end %>

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.info_requests.size) %>
        <% end %>
    <% else %>

Freedom of Information requests made by <%= @is_you ? 'you' : 'this person' %>

The search index is currently offline, so we can't show the Freedom of Information requests this person has made.

    <% end %>

    <% if !@xapian_comments.nil? %>
        <% if @xapian_comments.results.empty? %>
            <% if @page == 1 %>

<%= @is_you ? 'Your' : 'This person\'s' %> annotations

None made.

            <% end %>
        <% else %>

                <%= @is_you ? 'Your ' : "This person's " %>
                <%=pluralize(@display_user.visible_comments.size, "annotation") %>

                <%= @page_desc %>

            <% for result in @xapian_comments.results %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
            <% end %>

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.visible_comments.size) %>
        <% end %>
    <% end %>


Show megabytes for large files.

Show megabytes for large files.

        <%  if not attachments.nil? and attachments.size > 0 %>

                <% attachments.each do |a| %>

                        <% attachment_url = get_attachment_url(:id => incoming_message.info_request_id,
                                :incoming_message_id => incoming_message.id, :part => a.url_part_number, :file_name => a.display_filename) %>
                        <% img_filename = "icon_" + a.content_type.sub('/', '_') + "_large.png"
                        full_filename = File.join(File.dirname(__FILE__), "../../../public/images", img_filename)
                        if File.exist?(full_filename) %>
                            <a href="<%=attachment_url%>"><img class="attachment_image" alt="Attachment" src="/images/<%=img_filename%>">
                        <% else %>
                            <a href="<%=attachment_url%>">
                        <% end %>
                        <%= h a.display_filename %>

                        <%= (a.body.size > 1024 * 1024) ? ((a.body.size / 1024 / 1024).to_s + 'M') : ((a.body.size / 1024).to_s + 'K') %>
                        <%= link_to "Download", attachment_url %>

                <% end %>

        <% end %>

<%= body %>

        <%  if not attachments.nil? and attachments.size > 0 %>

                <% attachments.each do |a| %>

                        <% attachment_url = get_attachment_url(:id => incoming_message.info_request_id,
                                :incoming_message_id => incoming_message.id, :part => a.url_part_number, :file_name => a.display_filename) %>
                        <% img_filename = "icon_" + a.content_type.sub('/', '_') + "_large.png"
                        full_filename = File.join(File.dirname(__FILE__), "../../../public/images", img_filename)
                        if File.exist?(full_filename) %>
                            <a href="<%=attachment_url%>"><img class="attachment_image" alt="Attachment" src="/images/<%=img_filename%>">
                        <% else %>
                            <a href="<%=attachment_url%>">
                        <% end %>
                        <%= h a.display_filename %>

                        <%= a.body.size / 1024 %>K
                        <%= link_to "Download", attachment_url %>

                <% end %>

        <% end %>

<%= body %>


removed debug junk from group/members page

<% if committee? -%>

Dual memberships

Members of group <%=@group.parent.name%> who should also be in committee <%=@group.short_name%>

<% form_tag(:action => 'members', :id => @group) do -%>
  <%= collection_multiple_select('group', 'user_ids', @group.parent.users, :id, :login, :outer_class=>'plainlist floatlist') %>

  <%= submit_tag "Save" %>
<% end -%>

<% end -%>

Invite users

Enter a list of usernames, separated by spaces, of people you would like to
invite to join this <%=@group_type%>:

<% form_tag(:action => 'invite', :id => @group) do -%>
  <%= text_area_tag 'users', params[:users], :rows => 2, :cols => 50 %>

  <%= submit_tag 'Send invites' %>
<% end -%>

<%= link_to_group @group, :text => '« ' + 'return to %s'.t %>

Current <%=@group_type%> members

  User
  Joined

<% @group.memberships.each do |membership| -%>

  <%= link_to_user membership.user, :avatar => 'xsmall' %>
  <%= friendly_date membership.created_at %>
  <%= link_to 'details', page_url(membership.page_id) if membership.page_id %>

<% end -%>

<%= debug params %>


use helper method and make sure the browser's autocompletion is off so the user will see the live search results

  <%= @sidebar.title %>

<% form_tag({:controller => 'articles',  :action => 'search'}, {:method => 'get', :id => 'sform'}) do %>
  <%= text_field_tag :q, '', {:id => "live_search", :size => 15, :autocomplete => "off"} %>
  <%= image_tag "spinner-blue.gif", :id => 'search_spinner', :style => 'display:none;' %>
<% end %>
<%= observe_field "live_search", :frequency => 1,
    :url => live_search_articles_url,
    :loading => "Element.show('search_spinner')",
    :complete => "Element.hide('search_spinner')",
    :update => "search-results",
    :with => "'q=' + encodeURIComponent($F('live_search'))" -%>

  <%= @sidebar.title %>

<% form_tag({:controller => 'articles',  :action => 'search'}, {:method => 'get', :id => 'sform'}) do %>
  <input type="text" id="live_search" name="q" value="" size="15" />
  <%= image_tag "spinner-blue.gif", :id => 'search_spinner', :style => 'display:none;' %>
<% end %>
<%= observe_field "live_search", :frequency => 1,
    :url => live_search_articles_url,
    :loading => "Element.show('search_spinner')",
    :complete => "Element.hide('search_spinner')",
    :update => "search-results",
    :with => "'q=' + encodeURIComponent($F('live_search'))" -%>


Whitespace.

Whitespace.


Quote right thing.

Quote right thing.

    <% if not @highlighting.nil? and @highlighting['InfoRequestEvent'][event.id].include?('title') %>
        <%= link_to @highlighting['InfoRequestEvent'][event.id]["title"], request_url(info_request) %>
        <% @highlighting['InfoRequestEvent'][event.id].delete("title") %>
    <% elsif not event.incoming_message.nil? %>
        <%= link_to "Response to '" + h(info_request.title) + "'", request_url(info_request)+"#incoming-"+event.incoming_message.id.to_s %>
    <% elsif not event.outgoing_message.nil? and event.event_type == 'followup_sent' %>
        <%= link_to "Follow up message for '" + h(info_request.title) + "'", request_url(info_request)+"#outgoing-"+event.outgoing_message.id.to_s %>
    <% else %>
        <%= link_to h(info_request.title), request_url(info_request) %>
    <% end %>

    <% if not @highlighting.nil? and @highlighting['InfoRequestEvent'][event.id].size > 0 %>
        <%= @highlighting['InfoRequestEvent'][event.id].values.join(" ") %>
    <% elsif not event.outgoing_message.nil? %>
        <%= excerpt(event.outgoing_message.body_without_salutation, "", 150) %>
    <% elsif not event.incoming_message.nil? %>
        <%= excerpt(event.incoming_message.get_body_for_quoting, "", 150) %>
    <% else %>
        <%= excerpt(info_request.initial_request_text, "", 150) %>
    <% end %>

        <% if event.event_type == 'sent' %>
            Request sent to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'followup_sent' %>
            Follow up sent to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'response' %>
            <% if event.calculated_state.nil? %>
                Response
            <% else %>
                 <%=event.display_status %>
            <% end %>
            by <%= public_body_link(info_request.public_body) %>
            to <%= user_link(info_request.user) %>
        <% else %>
            <% raise "unknown event type indexed " + event.event_type %>
        <% end %>

        on <%= simple_date(event.created_at) %>.

    <% if not @highlighting.nil? and @highlighting['InfoRequestEvent'][event.id].include?('title') %>
        <%= link_to @highlighting['InfoRequestEvent'][event.id]["title"], request_url(info_request) %>
        <% @highlighting['InfoRequestEvent'][event.id].delete("title") %>
    <% elsif not event.incoming_message.nil? %>
        <%= link_to "Response to '" + h(info_request.title) + "'", request_url(info_request)+"#incoming-"+event.incoming_message.id.to_s %>
    <% elsif not event.outgoing_message.nil? and event.event_type == 'followup_sent' %>
        <%= link_to "Follow up message for '" + h(info_request.title) + "'", request_url(info_request)+"#outgoing-"+event.outgoing_message.id.to_s %>
    <% else %>
        <%= link_to h(info_request.title), request_url(info_request) %>
    <% end %>

    <% if not @highlighting.nil? and @highlighting['InfoRequestEvent'][event.id].size > 0 %>
        <%= @highlighting['InfoRequestEvent'][event.id].values.join(" ") %>
    <% else %>
        <%= excerpt(info_request.initial_request_text, "", 150) %>
    <% end %>

        <% if event.event_type == 'sent' %>
            Request sent to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'followup_sent' %>
            Follow up sent to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'response' %>
            <% if event.calculated_state.nil? %>
                Response
            <% else %>
                 <%=event.display_status %>
            <% end %>
            by <%= public_body_link(info_request.public_body) %>
            to <%= user_link(info_request.user) %>
        <% else %>
            <% raise "unknown event type indexed " + event.event_type %>
        <% end %>

        on <%= simple_date(event.created_at) %>.


git-svn-id: svn://beonebody.org/onebody/trunk@56 88fc0095-4724-0410-ab6c-c99dba55acc4

<% content_for :sidebar do %>

Edit:

  <% @family.people.each do |person| %>
    <%= link_to person.name, :action => 'edit', :id => person %>

  <% end %>

<% end %>

<%=h @person.name %>

<% content_for :subnav do %>

<%= link_to 'View Profile', :action => 'view', :id => @person %>

<%= link_to 'Change Email/Password', :controller => 'account', :action => 'edit', :id => @person %>

<% end %>

Email & Password

  <%= link_to 'Click here', :controller => 'account', :action => 'edit', :id => @person %>
  to change your email address and/or password.

Individual Picture

  Upload a picture of <%= @person == @logged_in ? 'yourself' : @person.name %>. Please do not upload a picture of your
  family here; see the Family Picture section below for that.

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

<%= render :partial => 'upload_photo', :locals => {:object => @person, :name => 'Individual Picture', :url => {:controller => 'people', :action => 'edit'}} %>

Family Picture

Upload a picture of your family.

<%= render :partial => 'families/photo' %>

<%= render :partial => 'upload_photo', :locals => {:object => @family, :name => 'Family Picture', :url => {:controller => 'families', :action => 'edit'}} %>

<% form_for :person, @person do |form| %>

About

  Testimony:
  Share your personal testimony — how you came to know
  Jesus Christ and how he has changed your life.

  <%= form.text_area :testimony, :rows => 8 %>

  About Me:
  Tell us about yourself. What's your personality like?
  What would your best friend say about you?

  <%= form.text_area :about, :rows => 3 %>

  Website:
  <%= form.text_field :website %>

<input type="submit" value="Save Changes"/>

Favorites

  Activities:
  <%= form.text_area :activities, :rows => 3 %>
  Interests:
  <%= form.text_area :interests, :rows => 3 %>
  Music:
  <%= form.text_area :music, :rows => 3 %>
  TV Shows:
  <%= form.text_area :tv_shows, :rows => 3 %>
  Movies:
  <%= form.text_area :movies, :rows => 3 %>
  Books:
  <%= form.text_area :books, :rows => 3 %>
  Quotes:
  <%= form.text_area :quotes, :rows => 3 %>

<input type="submit" value="Save Changes"/>

<% end %>

Shares

  You can share pictures, Bible verses, and recipes on
  <%= SITE_TITLE %> from the <%= link_to 'Shares', :controller => 'shares' %>
  tab. Anything you share there will appear on your profile.

Basics

  Changes to the details below must be reviewed by church staff. To request changes,
  enter the details below and click "Submit." Your record will be updated within
  two working days.

<% form_for :person, @person do |form| %>

  First Name:
  <%= form.text_field :first_name %>

  Last Name:
  <%= form.text_field :last_name %>

  Home Phone:
  <%= form.text_field :home_phone, :onkeyup => '' %>

  Mobile Phone:
  <%= form.text_field :mobile_phone %>

  Work Phone:
  <%= form.text_field :work_phone %>

  Fax:
  <%= form.text_field :fax %>

  Address Line 1:
  <%= form.text_field :address1 %>

  Address Line 2:
  <%= form.text_field :address2 %>

  City:
  <%= form.text_field :city %>

  State:
  <%= form.text_field :state %>

  Zip Code:
  <%= form.text_field :zip %>

  Birthday:
  <%= text_field_tag 'person[birthday]', @person.birthday ? @person.birthday.strftime('%m/%d/%Y') : nil, :id => 'person_birthday' %>
  the year is never shown

  Anniversary:
  <%= text_field_tag 'person[anniversary]', @person.anniversary ? @person.anniversary.strftime('%m/%d/%Y') : nil, :id => 'person_anniversary' %>
  the year is never shown

<%= submit_tag 'Submit Changes for Review' %>

<% end %>

Service Directory Entry

  If you wish to be listed in the <%= link_to 'Service Directory', :action => 'search', :service => true %>,
  Enter your business name, description, and other details below.

<% form_for :person, @person do |form| %>

    Business Name:
    <%= form.text_field :service_name %>

    Description of Services:
    <%= form.text_area :service_description, :rows => 3 %>

    Business Phone:
    <%= form.text_field :service_phone %>

    Business Email:
    <%= form.text_field :service_email %>

    Business Website:
    <%= form.text_field :service_website %>

<%= submit_tag 'Save Changes' %>

<% end %>

<% content_for :sidebar do %>

Edit:

  <% @family.people.each do |person| %>
    <%= link_to person.name, :action => 'edit', :id => person %>

  <% end %>

<% end %>

<%=h @person.name %>

<% content_for :subnav do %>

<%= link_to 'View Profile', :action => 'view', :id => @person %>

<%= link_to 'Change Email/Password', :controller => 'account', :action => 'edit', :id => @person %>

<% end %>

Email & Password

  <%= link_to 'Click here', :controller => 'account', :action => 'edit', :id => @person %>
  to change your email address and/or password.

Individual Picture

  Upload a picture of <%= @person == @logged_in ? 'yourself' : @person.name %>. Please do not upload a picture of your
  family here; see the Family Picture section below for that.

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

<%= render :partial => 'upload_photo', :locals => {:object => @person, :name => 'Individual Picture', :url => {:controller => 'people', :action => 'edit'}} %>

Family Picture

Upload a picture of your family.

<%= render :partial => 'families/photo' %>

<%= render :partial => 'upload_photo', :locals => {:object => @family, :name => 'Family Picture', :url => {:controller => 'families', :action => 'edit'}} %>

<% form_for :person, @person do |form| %>

About

  Testimony:
  Share your personal testimony — how you came to know
  Jesus Christ and how he has changed your life.

  <%= form.text_area :testimony, :rows => 8 %>

  About Me:
  Tell us about yourself. What's your personality like?
  What would your best friend say about you?

  <%= form.text_area :about, :rows => 3 %>

  Website:
  <%= form.text_field :website %>

<input type="submit" value="Save Changes"/>

Favorites

  Activities:
  <%= form.text_area :activities, :rows => 3 %>
  Interests:
  <%= form.text_area :interests, :rows => 3 %>
  Music:
  <%= form.text_area :music, :rows => 3 %>
  TV Shows:
  <%= form.text_area :tv_shows, :rows => 3 %>
  Movies:
  <%= form.text_area :movies, :rows => 3 %>
  Books:
  <%= form.text_area :books, :rows => 3 %>
  Quotes:
  <%= form.text_area :quotes, :rows => 3 %>

<input type="submit" value="Save Changes"/>

<% end %>

Basics

  Changes to the details below must be reviewed by church staff. To request changes,
  enter the details below and click "Submit." Your record will be updated within
  two working days.

<% form_for :person, @person do |form| %>

  First Name:
  <%= form.text_field :first_name %>

  Last Name:
  <%= form.text_field :last_name %>

  Home Phone:
  <%= form.text_field :home_phone, :onkeyup => '' %>

  Mobile Phone:
  <%= form.text_field :mobile_phone %>

  Work Phone:
  <%= form.text_field :work_phone %>

  Fax:
  <%= form.text_field :fax %>

  Address Line 1:
  <%= form.text_field :address1 %>

  Address Line 2:
  <%= form.text_field :address2 %>

  City:
  <%= form.text_field :city %>

  State:
  <%= form.text_field :state %>

  Zip Code:
  <%= form.text_field :zip %>

  Birthday:
  <%= text_field_tag 'person[birthday]', @person.birthday ? @person.birthday.strftime('%m/%d/%Y') : nil, :id => 'person_birthday' %>
  the year is never shown

  Anniversary:
  <%= text_field_tag 'person[anniversary]', @person.anniversary ? @person.anniversary.strftime('%m/%d/%Y') : nil, :id => 'person_anniversary' %>
  the year is never shown

<%= submit_tag 'Submit Changes for Review' %>

<% end %>

Service Directory Entry

  If you wish to be listed in the <%= link_to 'Service Directory', :action => 'search', :service => true %>,
  Enter your business name, description, and other details below.

<% form_for :person, @person do |form| %>

    Business Name:
    <%= form.text_field :service_name %>

    Description of Services:
    <%= form.text_area :service_description, :rows => 3 %>

    Business Phone:
    <%= form.text_field :service_phone %>

    Business Email:
    <%= form.text_field :service_email %>

    Business Website:
    <%= form.text_field :service_website %>

<%= submit_tag 'Save Changes' %>

<% end %>


edited index

edited index

The Dreamhack Game

		<% form_tag :action => :login do %>

			Name:
			<%= text_field_tag :name, params[:name] %>

			Password:
			<%= password_field_tag :password, params[:password] %>

		<%= submit_tag "Login" %>

	<% end %>

		<%= button_to "New User", {:action => :new},{:method => :get} %>

  You can find all the solutions in this pdf.

  I would LOVE to get all the images and movies and notes and anything you would
  like to release. Mail everything you want (especially images of people and game progress) to
  ique@3h.se. I thank you all again for a wonderful game and congratulate MPUK!

	The DreamHack Game is the traditional contest where intellect,
	craftiness and the ability to think logically makes you go far.

	The requirements for playing the game is that you are in place at DreamHack in
	Elmia and have registered at this site. You can register now, so do it!

	System requirements are that you can use different types of movie and music formats.
	You should have Macromedia Flash Player installed and Javascript enabled.
	Other goods things to have is a camera, cell-phone, notepad, clock and miscellaneous
	code-breaking devices.

	You do not need any special knowledge to compete in The DreamHack Game,
	you only need to know how to obtain it.

The Dreamhack Game

		<% form_tag :action => :login do %>

			Name:
			<%= text_field_tag :name, params[:name] %>

			Password:
			<%= password_field_tag :password, params[:password] %>

		<%= submit_tag "Login" %>

	<% end %>

		<%= button_to "New User", {:action => :new},{:method => :get} %>

	The DreamHack Game is the traditional contest where intellect,
	craftiness and the ability to think logically makes you go far.

	The requirements for playing the game is that you are in place at DreamHack in
	Elmia and have registered at this site. You can register now, so do it!

	System requirements are that you can use different types of movie and music formats.
	You should have Macromedia Flash Player installed and Javascript enabled.
	Other goods things to have is a camera, cell-phone, notepad, clock and miscellaneous
	code-breaking devices.

	You do not need any special knowledge to compete in The DreamHack Game,
	you only need to know how to obtain it.


don't remember form value password for the sessions form

<% form_tag sessions_path do -%>

    Login

    <%= text_field_tag 'login', params[:login], :class => "text" %>

    Password

    <%= password_field_tag 'password', '', :class => "text" %>

    Remember me:
    <%= check_box_tag 'remember_me' %>

<%= submit_tag 'Log in' %>

<% end -%>

<% content_for(:sidebar) do -%>

Some login tips here

<% end -%>

<% form_tag sessions_path do -%>

    Login

    <%= text_field_tag 'login', params[:login], :class => "text" %>

    Password

    <%= password_field_tag 'password', params[:password], :class => "text" %>

    Remember me:
    <%= check_box_tag 'remember_me' %>

<%= submit_tag 'Log in' %>

<% end -%>

<% content_for(:sidebar) do -%>

Some login tips here

<% end -%>


git-svn-id: e099d366fb13ea49c9e8e170ced890dab3ea84f7@680 aaa19a3b-e121-0410-9d45-962fd44e537e

  <% docs.each do |doc| %>

    <%= link_to img_tag(doc, :mode=>'mini'), data_path(doc) %>
<%= fsize(doc.c_size) %>

<%= link_to(doc.v_title, zen_path(doc)) %>
<%= zazen(doc.v_summary) %>

  <% end %>


added rule

added rule

Rules & General info

You win The DreamHack Game by answering questions as fast as possible - Not by cheating!

It is not allowed to tear down clues, try to hack the server or access any restricted areas.

You may compete in teams, but please try to keep the team size to around 5-10 people.

All players on your team must be on location at DreamHack.

All passwords are case-insensitive, it doesn't matter if you have capital letters or not!

The passwords are never random letters and numbers, but can be a combination of words and numbers.

The most important rule is that you are not allowed to ruin for anyone else.
        Leave visited places as they were when you got there, don’t destroy clues.

Never enter into restricted areas, you will never need to enter an area not open to the public.

If you seem to have a problem of a technical nature, please e-mail the crew at creators@dhgame.eu

Rules & General info

You win The DreamHack Game by answering questions as fast as possible - Not by cheating!

It is not allowed to tear down clues, try to hack the server or access any restricted areas.

You may compete in teams, but please try to keep the team size to around 5-10 people.

All passwords are case-insensitive, it doesn't matter if you have capital letters or not!

The passwords are never random letters and numbers, but can be a combination of words and numbers.

The most important rule is that you are not allowed to ruin for anyone else.
        Leave visited places as they were when you got there, don’t destroy clues.

Never enter into restricted areas, you will never need to enter an area not open to the public.

If you seem to have a problem of a technical nature, please e-mail the crew at creators@dhgame.eu


minor changes to text on login page

minor changes to text on login page

Welcome to Crabgrass
(early pre-alpha edition)

Crabgrass is a software libre web application designed for group and network organizing, and tailored to the needs of the global justice movement. The long term goal is to provide the technical tools to facilitate active, confederal, and directly democratic social change networks. more »

Three Steps to Get Started

<%= link_to 'sign up here', :controller => 'account', :action => 'signup'
	%> if you're a new user.

login to crabgrass.

join or create a group.

<%= render 'account/login' %>

Welcome to Crabgrass

Crabgrass is open source social software designed for group and network organizing, and tailored to the needs of the global justice movement. The long term goal is to provide the technical tools to facilitate active, confederal, and directly democratic social change networks. more

3 Steps to Get Started

	1. <%= link_to 'sign up here', :controller => 'account', :action => 'signup'
	%> if you're a new user.

	2. login to crabgrass

	3. join or create a group.

<%= render 'account/login' %>