Commit 4c8b8389
Changed files (4)
app
views
app/views/my/dashboard/_comment.html.erb
@@ -0,0 +1,9 @@
+<div>
+ <i class="icon-comment icon-large"></i>
+ <%= avatar_for(subject.user, size: 24) %>
+ <%= link_to subject.user.name, profile_path(subject.user) %> commented on <%= link_to subject.creation.name, my_root_path(anchor: "cakes/#{subject.creation.id}") %>
+ <small><%= time_ago_in_words(subject.created_at) %> ago.</small>
+ <blockquote>
+ <%= subject.text %>
+ </blockquote>
+</div>
app/views/my/dashboard/_favorite.html.erb
@@ -0,0 +1,9 @@
+<div>
+ <p>
+ <i class="icon-heart icon-large"></i>
+ <%= avatar_for(subject.user, size: 24) %>
+ <%= link_to subject.user.name, profile_path(subject.user) %> added
+ <%= link_to subject.creation.name, my_root_path(anchor: "cakes/#{subject.creation.id}") %> to their favorites
+ <small><%= time_ago_in_words(subject.created_at) %> ago.</small>
+ </p>
+</div>
app/views/my/dashboard/_tutorial.html.erb
@@ -1,5 +1,5 @@
<div class="media">
- <%= link_to item, class: 'pull-left' do %>
+ <%= link_to my_root_path(anchor: "tutorials/#{item.id}"), class: 'pull-left' do %>
<img class="media-object" data-src="<%= item.image_url %>" alt="64x64" style="width: 64px; height: 64px;" src="<%= item.image_url %>">
<% end %>
<div class="media-body">
app/views/my/dashboard/index.html.erb
@@ -31,7 +31,7 @@
<p>No new activity to report.</p>
<% else %>
<% @activities.each do |activity| %>
- <%= render "activities/#{activity.subject.class.to_s.downcase}", subject: activity.subject %>
+ <%= render activity.subject.class.to_s.downcase, subject: activity.subject %>
<% end %>
<% end %>
</div>