Skip to content

Commit

Permalink
revert handlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
sora1998 committed Dec 10, 2023
1 parent 94c2bec commit 9ae95f0
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 29 deletions.
8 changes: 4 additions & 4 deletions design/dashboard.handlebars
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<div class="stream">
<header class="stream-header">
<span>{{prefs.icons.latest}} Latest</span>
<a href="/private" id="newPosts" class="unread-link" hidden></a>
<a href="/private" id="newPosts" class="unread" hidden></a>
</header>
<main id="home_stream">
{{#if activitystream}}
{{#each activitystream}}
<article class="activity">
{{#with this}}
{{#if boost}}
<section class="boost-notification">
<section class="boost">
🚀 Boosted by
<a href="/private/feeds/{{getUsername booster.id}}">{{booster.name}}</a>
</section>
Expand All @@ -19,7 +19,7 @@
</article>
{{/each}}
{{else}}
<div class="empty-state">
<div class="empty">
<p>Follow some people to fill your feed with posts.</p>
<p>Suggestion: Follow
<a href="/private/feeds/[email protected]">[email protected]</a>
Expand All @@ -30,7 +30,7 @@

{{#if next}}
<footer>
<a href="/private?offset={{next}}" class="more-link">More</a>
<a href="/private?offset={{next}}" class="moreLink">More</a>
</footer>
{{/if}}
</div>
Expand Down
10 changes: 5 additions & 5 deletions design/dms.handlebars
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<article>
{{#if error}}
<aside class="notification error">
<aside class="error">
{{error.message}}
</aside>
{{else}}
<section class="stream">
{{#if feed}}
<header>
<nav>
<a href="/private/dms">Inbox</a>
<a href="/private/dms">Inbox</a> &raquo;
Messages with
<a href="/private/feeds/{{getUsername feed.id}}">{{feed.preferredUsername}}</a>
</nav>
</header>
<div class="message-container">
<ul class="messages-list" id="inbox_stream">
<div class="inbox">
<ul class="messages" id="inbox_stream">
{{#each inbox}}
<li>
{{> dm message=this me=../me}}
Expand All @@ -24,7 +24,7 @@
{{> minicomposer inReplyTo=lastIncoming to=feed.id}}
</div>
{{else}}
<div class="empty-state">
<div class="empty">
Select a conversation. To create a new one, navigate to a profile.
</div>
{{/if}}
Expand Down
10 changes: 5 additions & 5 deletions design/feeds.handlebars
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="content-area">
{{#if error}}
<aside class="error-message">
<aside class="error">
{{error.message}}
</aside>
{{else}}
Expand All @@ -12,9 +12,9 @@
{{#if activitystream}}
{{#each activitystream}}
{{#with this}}
<article class="activity-post">
<article class="activity">
{{#if boost}}
<div class="boost-notice">
<div class="boost">
🚀 Boosted by
<a href="/private/feeds/{{getUsername booster.id}}">{{booster.name}}</a>
</div>
Expand All @@ -26,14 +26,14 @@
{{/with}}
{{/each}}
{{else}}
<div class="empty-state">
<div class="empty">
No posts. <a href="/private/feeds/{{getUsername feed.id}}">Reload</a>
</div>
{{/if}}

{{#if next}}
<footer class="pagination">
<a href="?offset={{next}}" class="more-link">More</a>
<a href="?offset={{next}}" class="moreLink">More</a>
</footer>
{{/if}}
</section>
Expand Down
6 changes: 3 additions & 3 deletions design/findresults.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
name="handle"
aria-label="Search for people"
value="{{query}}" />
<button type="submit" class="search-button">Search</button>
{{!-- <button type="submit" class="search-button">Search</button> --}}
</form>
</header>

{{#if results}}
<div class="results-container">
{{#each results}}
<div class="search-result">
<div class="activity">
{{> personCard actor=this nobio=true}}
</div>
{{/each}}
</div>
{{else}}
<div class="no-results">
<div class="activity">
No results found.
</div>
{{/if}}
Expand Down
4 changes: 2 additions & 2 deletions design/followers.handlebars
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div class="followers-stream">
<div class="stream">
<header class="followers-header">
<span>🤷🏽‍♂️ Followers</span>
</header>

<section class="followers-list">
{{#each followers}}
<article class="follower">
<article class="activity">
{{> personCard actor=this}}
</article>
{{/each}}
Expand Down
2 changes: 1 addition & 1 deletion design/following.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<section class="following-list">
{{#each following}}
<article class="followed-person">
<article class="activity">
{{> personCard actor=this}}
</article>
{{/each}}
Expand Down
18 changes: 9 additions & 9 deletions design/notifications.handlebars
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
<div class="stream">
<header class="notification-header">
<span>{{prefs.icons.notifications}} Notifications</span>
<a href="/private/notifications" id="newNotifications" class="unread-indicator" hidden></a>
<a href="/private/notifications" id="newNotifications" class="unread" hidden></a>
</header>

<section class="notification-list">
{{#each notifications}}
<article class="notification-item">
<article class="activity">
{{#with this}}
{{#isEq notification.type "Announce"}}
<div class="notification-announce">
<div class="notification">
🚀 <a href="/private/feeds/{{getUsername ../actor.id}}">{{or ../actor.name ../actor.preferredUsername}}</a> boosted
<a href="{{../note.id}}">your post</a> {{timesince ../time}}
</div>
<div class="post-preview">
<div class="preview">
{{{...note.content}}}
</div>
{{/isEq}}
{{#isEq notification.type "Reply"}}
{{> note actor=../actor note=../note}}
{{/isEq}}
{{#isEq notification.type "Mention"}}
<div class="notification-mention">
<div class="notification">
💬 <a href="/private/feeds/{{getUsername ../actor.id}}">{{or ../actor.name ../actor.preferredUsername}}</a> mentioned you {{timesince ../time}}
</div>
{{> note actor=../actor note=../note}}
{{/isEq}}
{{#isEq notification.type "Like"}}
<div class="notification-like">
<div class="notification">
⭐️ <a href="/private/feeds/{{getUsername ../actor.id}}">{{or ../actor.name ../actor.preferredUsername}}</a> liked
<a href="{{../note.id}}">your post</a> {{timesince ../time}}
</div>
<div class="post-preview">
<div class="preview">
{{{...note.content}}}
</div>
{{/isEq}}
{{#isEq notification.type "Follow"}}
<div class="notification-follow">
<div class="notification">
🤷🏽‍♂️ <a href="/private/feeds/{{getUsername ../actor.id}}">{{or ../actor.name ../actor.preferredUsername}}</a> followed you {{timesince ../time}}
</div>
{{> byline actor=../actor}}
Expand All @@ -48,7 +48,7 @@

{{#if next}}
<footer class="more-notifications">
<a href="/private/notifications?offset={{next}}" class="more-link">More</a>
<a href="/private/notifications?offset={{next}}" class="moreLink">More</a>
</footer>
{{/if}}
</div>
Expand Down

0 comments on commit 9ae95f0

Please sign in to comment.