-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2476 from manyfold3d/homepage-feed
New activity feed on front page
- Loading branch information
Showing
11 changed files
with
68 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<%- subject = activity&.actor %> | ||
<%- object = activity&.entity %> | ||
<%- thing = object&.entity %> | ||
<% if thing %> | ||
<div class="card border-0 border-bottom"> | ||
<div class="card-body py-2"> | ||
<div class="row"> | ||
<div class="col"> | ||
<%= link_to object.name, thing %> | ||
</div> | ||
<% if thing.is_a? Model %> | ||
<div class="col col-auto"> | ||
<%= status_badges(thing) %> | ||
</div> | ||
<% end %> | ||
<div class="col col-auto"> | ||
<small> | ||
added | ||
<% if subject.entity != current_user %> | ||
by <%= subject.name %> | ||
<% end %> | ||
<%= t("home.index.how_long_ago", time: time_ago_in_words(thing.created_at)) %> | ||
</small> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<% 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,20 @@ | ||
<%- follow = activity.entity %> | ||
|
||
<div class="card border-0 border-bottom"> | ||
<div class="card-body py-2"> | ||
<div class="row"> | ||
<div class="col"> | ||
<% if follow.actor.entity == current_user %> | ||
You | ||
<% else %> | ||
<%= follow.actor.name %> | ||
<% end %> | ||
followed | ||
<%= link_to follow.target_actor.name, follow.target_actor.entity %> | ||
</div> | ||
<div class="col col-auto"> | ||
<small><%= t("home.index.how_long_ago", time: time_ago_in_words(follow.created_at)) %></small> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
Empty file.
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
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