-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update author information when private
- Loading branch information
1 parent
6b0b2f9
commit 78c54d1
Showing
13 changed files
with
49 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<% if model.is_a?(Decidim::User) %> | ||
<% if mode.public? %> | ||
<%= image_tag model.avatar_url, alt: t("decidim.author.avatar", name: display_name), class: "author__avatar" %> | ||
<% else %> | ||
<%= image_tag model.default_avatar_url, alt: t("decidim.author.avatar", name: display_name), class: "author__avatar" %> | ||
<% end %> | ||
<% else %> | ||
<%= image_tag model.avatar_url, alt: t("decidim.author.avatar", name: display_name), class: "author__avatar" %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<div class="author__tooltip" role="tooltip"> | ||
<div class="author__container"> | ||
<%= render :avatar %> | ||
|
||
<div> | ||
<%= render :name %> | ||
<span class="text-md"><%= model.nickname %></span> | ||
</div> | ||
</div> | ||
|
||
<% if model.public? %> | ||
<div class="author__tooltip-links"> | ||
<%= link_to decidim.profile_followers_path(raw_model.nickname) do %> | ||
<%= content_tag(:span, model.followers_count, id: dom_id(raw_model, :followers_count)) %> <%= t("decidim.profiles.show.followers") %> | ||
<% end %> | ||
<% if model.can_follow? %> | ||
<%= link_to decidim.profile_following_path(raw_model.nickname) do %> | ||
<%= model.following_count %> <%= t("decidim.profiles.show.following") %> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
|
||
<% if model.direct_messages_enabled?(context) %> | ||
<%= link_to current_or_new_conversation_path_with(model), class: "button button__sm button__transparent" do %> | ||
<span><%= t("decidim.profiles.show.send_private_message") %></span> | ||
<%= icon "mail-send-line" %> | ||
<% end %> | ||
<% end %> | ||
|
||
<%= follow_button_for(raw_model, false, button_classes: "button button__sm button__transparent") %> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
app/views/decidim/messaging/conversations/_conversation.html.erb
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
app/views/decidim/messaging/conversations/_messages.html.erb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters