Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Massive cleanup.
Browse files Browse the repository at this point in the history
Removed old theme, old images, unused views/partials/helpers, etc.

I'm sure there's more that can be removed, but this is a good start.
  • Loading branch information
seven1m committed Nov 21, 2010
1 parent eb591e8 commit 0c51b6b
Show file tree
Hide file tree
Showing 424 changed files with 127 additions and 19,372 deletions.
12 changes: 1 addition & 11 deletions app/controllers/people_controller.rb
Expand Up @@ -33,17 +33,7 @@ def show
@family_people = @person.family.try(:visible_people) || []
@albums = @person.albums.all(:order => 'created_at desc')
@verses = @person.verses.all(:order => 'book, chapter, verse')
if params[:simple]
if @logged_in.full_access?
if params[:photo]
render :action => 'show_simple_photo', :layout => false
else
render :action => 'show_simple', :layout => false
end
else
render :text => '', :status => 404
end
elsif params[:business]
if params[:business]
render :action => 'business'
else
respond_to do |format|
Expand Down
72 changes: 0 additions & 72 deletions app/controllers/recipes_controller.rb

This file was deleted.

26 changes: 0 additions & 26 deletions app/controllers/tours_controller.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/recipes_helper.rb

This file was deleted.

11 changes: 0 additions & 11 deletions app/helpers/streams_helper.rb
Expand Up @@ -43,15 +43,4 @@ def recent_time_ago_in_words(time)
end
end

def stream_type_checkmark(name, type, checked_by_default=true)
enabled = cookies["stream_#{type}"]
enabled = cookies["stream_#{type}"] = checked_by_default if cookies["stream_#{type}"].nil?
link_to_function(
image_tag(enabled ? 'checkmark.png' : 'remove.gif', :alt => t('stream.enable_disable') + " #{name}", :class => 'icon') + " #{name}",
"enable_stream_item_type('" + type + "', this.getElementsByTagName('img')[0].readAttribute('src') != '/images/checkmark.png');",
:id => "enable-stream_" + type
)
end


end
15 changes: 0 additions & 15 deletions app/helpers/tours_helper.rb

This file was deleted.

105 changes: 0 additions & 105 deletions app/models/recipe.rb

This file was deleted.

4 changes: 0 additions & 4 deletions app/views/accounts/edit.html.erb
Expand Up @@ -14,10 +14,6 @@
}
</script>

<% content_for :subnav do %>
<li><%= link_to image_tag('eye.png', :alt => t('privacies.view_profile'), :class => 'icon') + ' ' + t('privacies.view_profile'), person_path(@person) %></li>
<% end %>

<h2><%= @person.name %></h2>
<%= form_for @person, :url => person_account_path(@person), :html => {:onsubmit => "return encrypt_passwords()"} do |form| %>
<%= hidden_field_tag :encrypted_password %>
Expand Down
1 change: 1 addition & 0 deletions app/views/administration/attendance/destroy.js.erb
@@ -0,0 +1 @@
$('#record<%= @record.id %>').hide('slow', function(){$(this).detach()});
1 change: 0 additions & 1 deletion app/views/administration/attendance/destroy.js.rjs

This file was deleted.

4 changes: 2 additions & 2 deletions app/views/administration/attendance/index.html.erb
Expand Up @@ -4,7 +4,7 @@
<% if @group %><%= t('for') %> <%= @group.name %><% end %>
</h2>

<p>
<p id="record-count">
<%= pluralize @record_count, t('import.record') %>
</p>

Expand Down Expand Up @@ -61,7 +61,7 @@
<%= record.created_at.to_s(:time) %>
</td>
<td>
<%= link_to image_tag('delete.png', :alt => t('Delete'), :class => 'icon no-print'), :remote => true, :url => administration_attendance_path(record), :method => 'delete', :confirm => t('are_you_sure') %>
<%= link_to '', administration_attendance_path(record), :remote => true, :method => 'delete', :confirm => t('are_you_sure'), :class => 'delete-icon' %>
</td>
</tr>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/administration/log_items/index.html.erb
Expand Up @@ -47,7 +47,7 @@
</td>
<td>
<% if item.flagged_on %>
<%= image_tag('flag_red.gif', :alt => t('admin.logs.flagged'), :class => 'icon') %>
<span class="very-strong">!</span>
<% end %>
</td>
<td><%= item.loggable_type %></td>
Expand Down
2 changes: 1 addition & 1 deletion app/views/administration/updates/index.html.erb
Expand Up @@ -28,7 +28,7 @@
<%= render :partial => 'people/thumbnail', :locals => {:person => update.person} %>
</a>
<% else %>
<%= image_tag 'man.tn.gif', :alt => '(' + t('admin.updates.person_deleted') + ')', :class => 'icon thumbnail' %>
<%= image_tag 'clean/manoutline.tn.png', :alt => '(' + t('admin.updates.person_deleted') + ')', :class => 'icon thumbnail' %>
<% end %>
</td>
<td class="update">
Expand Down
4 changes: 0 additions & 4 deletions app/views/attendance/index.html.erb
@@ -1,7 +1,3 @@
<% content_for :subnav do %>
<li><%= link_to image_tag('eye.png', :alt => t('groups.view_group'), :class => 'icon') + ' ' + t('groups.view_group'), @group %></li>
<% end %>

<p>
<%= label_tag :attended_at, t('attendance.date') + ':', :class => 'inline' %>
<%= text_field_tag :attended_at, @attended_at.to_s(:date), :onchange => "location.href='?attended_at='+encodeURIComponent(this.value)" %>
Expand Down
9 changes: 3 additions & 6 deletions app/views/calendars/show.html.erb
@@ -1,13 +1,10 @@
<% content_for :subnav do %>
<% content_for :sidebar do %>
<% if @person %>
<li><%= link_to image_tag('user.png', :alt => t('person'), :class => 'icon') + ' ' + t('back_to') + ' ' + @person.name, @person %></li>
<% if params[:family] %>
<li><%= link_to image_tag('checkmark.png', :alt => t('calendars.family_members_enabled'), :class => 'icon') + ' ' + t('calendars.family_members_enabled'), '?', :style => 'text-decoration:none;' %></li>
<p><%= link_to t('calendars.family_members_enabled'), '?' %></p>
<% else %>
<li><%= link_to image_tag('remove.gif', :alt => t('calendars.family_members_disabled'), :class => 'icon') + ' ' + t('calendars.family_members_disabled'), '?family=true', :style => 'text-decoration:none;' %></li>
<p><%= link_to t('calendars.family_members_disabled'), '?family=true' %></p>
<% end %>
<% elsif @group %>
<li><%= link_to image_tag('group.png', :alt => 'Group', :class => 'icon') + ' ' + t('back_to') + ' ' + @group.name, @group %></li>
<% end %>
<% end %>

Expand Down
10 changes: 3 additions & 7 deletions app/views/contributions/person_index.html.erb
@@ -1,10 +1,6 @@
<% content_for :subnav do %>
<li><%= link_to image_tag('user.png', :alt => @person.name, :class => 'icon') + ' ' + @person.name, @person %></li>
<% end %>
<% content_for :sidebar do %>
<%= render :partial => 'people/photo' %>
<h1><%= @person.name %></h1>
<h2><%= @person.name %></h2>
<% end %>

<p>
Expand All @@ -21,6 +17,6 @@
<% end %>
</p>

<h2><%= t('contributions.Contributions') %></h2>
<h3><%= t('contributions.Contributions') %></h3>

<%= render :partial => 'donations' %>
<%= render :partial => 'donations' %>
5 changes: 4 additions & 1 deletion app/views/families/_details.erb
Expand Up @@ -2,5 +2,8 @@
<%= render :partial => 'families/photo' %>
<% end %>
<h2><%= link_to @family.name, @family %></h2>
<p><%= preserve_breaks @family.pretty_address %> <%= render(:partial => 'map_link') %></p>
<p><%= format_phone @family.home_phone %></p>
<p><%= preserve_breaks @family.pretty_address %></p>
<% if @family.mapable? %>
<p><%= link_to t('families.find_on_map'), "http://maps.yahoo.com/broadband/#mvt=m&q1=#{url_encode(@family.mapable_address)}", :target => '_new', :class => 'right-icon' %></p>
<% end %>
3 changes: 0 additions & 3 deletions app/views/families/_map_link.erb

This file was deleted.

4 changes: 2 additions & 2 deletions app/views/feeds/_feed.html.erb
Expand Up @@ -2,6 +2,6 @@
<%= feed.name %>
<%= link_to_function 'url', "$('#feed#{feed.id}').show();$(this).hide();" %>
<span id="feed<%= feed.id %>" style="display:none;font-family:monospace;"><%= feed.url %></span>
<% if @logged_in.admin? %><span class="small discreet">(<%= pluralize(feed.error_count, ' error') %>)</small><% end %>
<%= link_to image_tag('delete.png', :alt => t('Delete'), :class => 'icon'), [@person, feed], :method => 'delete', :confirm => t('feeds.are_you_sure') %>
<% if @logged_in.admin? %><span class="small discreet">(<%= pluralize(feed.error_count, ' error') %>)</span><% end %>
<%= link_to '', [@person, feed], :method => 'delete', :confirm => t('feeds.are_you_sure'), :class => 'delete-icon' %>
</li>

0 comments on commit 0c51b6b

Please sign in to comment.