Sha256: ce13409dd64306fe2c2f102337e18681a876a86a95e7deefd9912a0d1564a05c
Contents?: true
Size: 1.76 KB
Versions: 2
Compression:
Stored size: 1.76 KB
Contents
<% content_for :title do %> <%= current_subject.name %> <% end %> <% content_for :sidebar do %> <%= render :partial => 'home/sidebar' %> <% end %> <%if @subject == current_subject%> <%= location( link_to(image_tag(("btn/btn_#{controller.controller_name.singularize}.png"), :class => "menu_icon")+t(controller.controller_name.singularize + '.title'), polymorphic_path(controller.controller_name),:remote => true) ) %> <% toolbar %> <%else%> <%= location( link_to(image_tag("btn/btn_profile.png", :class => "menu_icon")+ @subject.name, polymorphic_path(@subject),:remote => true), link_to(image_tag(("btn/btn_#{controller.controller_name.singularize}.png"), :class => "menu_icon")+t(controller.controller_name.singularize + '.title'), polymorphic_path([@subject, controller.controller_name]),:remote => true) ) %> <% toolbar :profile => @subject %> <%end%> <div class="attachment_section_header"> <h3><%= @subject == current_subject ? t(controller.controller_name.singularize + '.mine') : t(controller.controller_name.singularize + '.not_mine') %></h3> </div> <% @activities.each do |a| %> <% document = a.activity_objects.first.document %> <div class="attachment_tile"> <div class="attachment_tile_thumb"> <%= link_to thumb_for(document,48), {:controller => "documents", :action => "download", :id => document}, :type => document.type, :title => document.file_file_name, :path => document_path(document) %> </div> <div class="attachment_tile_text"> <%= link_to document.file_file_name, {:controller => "documents", :action => "download", :id => document}, :alt => document.file_file_name, :type => document.type, :path => document_path(document) %> </div> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
social_stream-documents-0.1.12 | app/views/common/_index.html.erb |
social_stream-documents-0.1.11 | app/views/common/_index.html.erb |