forked from benbrown/shuttlecraft
-
Notifications
You must be signed in to change notification settings - Fork 7
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 #49 from sora1998/main
handlebar revert and some small ui adjust
- Loading branch information
Showing
9 changed files
with
203 additions
and
308 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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
<div class="stream"> | ||
<header class="stream-header"> | ||
<span>{{prefs.icons.latest}} Latest</span> | ||
<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"> | ||
🚀 Boosted by | ||
<a href="/private/feeds/{{getUsername booster.id}}">{{booster.name}}</a> | ||
</section> | ||
{{/if}} | ||
{{> note note=note me=../me}} | ||
{{/with}} | ||
</article> | ||
{{/each}} | ||
{{else}} | ||
<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> | ||
</p> | ||
</div> | ||
{{/if}} | ||
</main> | ||
<header> | ||
<span>{{prefs.icons.latest}} Latest</span> | ||
<a href="/private" id="newPosts" class="unread" hidden></a> | ||
</header> | ||
<div id="home_stream"> | ||
{{#if activitystream}} | ||
{{#each activitystream}} | ||
{{#with this}} | ||
<div class="activity"> | ||
{{#if boost}} | ||
<div class="boost"> | ||
🚀 boosted by <a href="/private/feeds/{{getUsername booster.id}}">{{booster.name}}</a> | ||
</div> | ||
{{/if}} | ||
{{> note note=note me=../me}} | ||
</div> | ||
{{/with}} | ||
{{/each}} | ||
{{else}} | ||
<div class="empty"> | ||
<p>Follow some people to fill your feed with posts.</p> | ||
<p>I suggest following me! | ||
I'm <a href="/private/feeds/[email protected]">[email protected]</a> | ||
</p> | ||
</div> | ||
{{/if}} | ||
</div> | ||
|
||
|
||
{{#if next}} | ||
<footer> | ||
|
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 |
---|---|---|
@@ -1,32 +1,24 @@ | ||
<section class="stream"> | ||
<div class="stream"> | ||
<header> | ||
<form method="get" action="/private/find" class="search-form"> | ||
<label for="lookup">Find People</label> | ||
<input | ||
type="search" | ||
placeholder="[email protected]" | ||
id="lookup" | ||
name="handle" | ||
aria-label="Search for people" | ||
value="{{query}}" /> | ||
{{!-- <button type="submit" class="search-button">Search</button> --}} | ||
<form method="get" action="/private/find"> | ||
<label for="lookup">Find People</label> | ||
<input type="search" placeholder="[email protected]" id="lookup" name="handle" value="{{query}}" /> | ||
</form> | ||
</header> | ||
|
||
</header> | ||
{{#if results}} | ||
<div class="results-container"> | ||
{{#each results}} | ||
<div class="activity"> | ||
{{> personCard actor=this nobio=true}} | ||
</div> | ||
{{/each}} | ||
</div> | ||
{{#each results}} | ||
<div class="activity"> | ||
{{> personCard actor=this nobio=true}} | ||
</div> | ||
{{/each}} | ||
{{else}} | ||
<div class="activity"> | ||
No results found. | ||
Nobody results | ||
</div> | ||
{{/if}} | ||
</section> | ||
</div> | ||
|
||
<script> | ||
document.addEventListener('DOMContentLoaded', () => { | ||
app.pollForPosts(); | ||
|
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
Oops, something went wrong.