diff --git a/app/views/profile/_create_article.rhtml b/app/views/profile/_create_article.rhtml index 08a47ba..d5bba14 100644 --- a/app/views/profile/_create_article.rhtml +++ b/app/views/profile/_create_article.rhtml @@ -2,11 +2,15 @@ <%= link_to(profile_image(activity.user, :minor), activity.user.url) %>
-

<%= link_to activity.user.name, activity.user.url %>

+

+ <%= link_to activity.user.short_name(20), activity.user.url %> + <%= _("on community %s") % link_to(activity.target.profile.short_name(20), activity.target.profile.url) if activity.target.profile.is_a?(Community) %> +

- <%= link_to(activity.params['name'], activity.params['url']) %> -
- <%= image_tag(activity.params['first_image']) unless activity.params['first_image'].blank? %><%= strip_tags(activity.params['lead']).gsub(/(\xA0|\xC2|\s)+/, ' ').gsub(/^\s+/, '') %> <%= link_to(_('See more'), activity.params['url']) unless activity.get_lead.blank? %>
+ <%= link_to(activity.params['name'], activity.params['url']) %> +
+ <%= image_tag(activity.params['first_image']) unless activity.params['first_image'].blank? %><%= strip_tags(activity.params['lead']).gsub(/(\xA0|\xC2|\s)+/, ' ').gsub(/^\s+/, '') %> <%= link_to(_('See more'), activity.params['url']) unless activity.get_lead.blank? %> +
<%= content_tag(:p, link_to(_('See complete forum'), activity.get_url), :class => 'see-forum') if activity.target.is_a?(Forum) %>

<%= time_ago_as_sentence(activity.created_at) %>

@@ -15,9 +19,4 @@
-
- - -<%= render :partial => 'profile_comment_form', :locals => { :activity => activity } %> +<%= render :partial => 'profile_comments', :locals => { :activity => activity } %> diff --git a/app/views/profile/_default_activity.rhtml b/app/views/profile/_default_activity.rhtml index b0a8190..054d3a8 100644 --- a/app/views/profile/_default_activity.rhtml +++ b/app/views/profile/_default_activity.rhtml @@ -10,9 +10,4 @@ -
- - -<%= render :partial => 'profile_comment_form', :locals => { :activity => activity } %> +<%= render :partial => 'profile_comments', :locals => { :activity => activity } %> diff --git a/app/views/profile/_profile_scrap.rhtml b/app/views/profile/_profile_scrap.rhtml index bb59872..45fe0cd 100644 --- a/app/views/profile/_profile_scrap.rhtml +++ b/app/views/profile/_profile_scrap.rhtml @@ -15,7 +15,14 @@ <%= link_to_remote(content_tag(:span, _('Remove')), :confirm => _('Are you sure?'), :url =>{:action => 'remove_scrap', :scrap_id => scrap.id}, :update => "profile-activity-item-#{scrap.id}") if logged_in? && user.can_control_scrap?(scrap) %> -