Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ <h2>Dashboard</h2>

{{ template "snippets/profile.html" .Profile }}

<p>
<p class="submenu">
<a class="btn" href="profile/{{ .Profile.GetAddressString }}">View Your Profile</a>
<a class="btn" href="memo/new">New Memo</a>
<a class="btn new_memo" href="memo/new">New Memo</a>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using this for styling or for JS selection?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was intended so we could move the new memo button up into the corner of the screen like twitter does, and then if I felt extra energetic I'd probably make a popup for quick-memo.

At this point though I think it would be better to just do on the page itself (see https://share.dmca.gripe/wK3pTvsBsAWMgXlE.png), which I'll probably push in a separate PR if/when I have some free time to 1) make it look more polished, 2) implement it in actual css/html

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the time being though, I think these new classes would make it easier for custom-styling solutions like the various "stylish" sheets, and MES.

<a class="btn" href="memo/set-name">Set Name</a>
<a class="btn" href="key/export">Export Key</a>
<a class="btn" href="key/change-password">Change Password</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<h2>Decentralized on-chain social network built on Bitcoin Cash</h2>

<ul>
<ul class="">
<li>Create a profile</li>
<li>Post messages</li>
<li>Native tipping</li>
Expand Down
10 changes: 5 additions & 5 deletions templates/snippets/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ <h1>

<div class="nav">
{{ with .Username }}
<a class="btn" href="">Dashboard</a>
<a class="btn dashboard" href="">Dashboard</a>
{{ else }}
<a class="btn" href="">Home</a>
{{ end }}
<a class="btn" href="profiles">Profiles</a>
<a class="btn" href="new-posts">Posts</a>
<a class="btn" href="disclaimer">Disclaimer</a>
<a class="btn profiles" href="profiles">Profiles</a>
<a class="btn posts" href="new-posts">Posts</a>
<a class="btn disclaimer" href="disclaimer">Disclaimer</a>
{{ with .Username }}
<a class="btn" href="logout">Logout <b>{{ . }}</b></a>
<a class="btn logout" href="logout">Logout <b>{{ . }}</b></a>
{{ end }}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/snippets/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
{{ if not .Compress }}
<p class="actions">
{{ if .Post.IsLikable }}
<a class="btn" href="memo/like/{{ .Post.Memo.GetTransactionHashString }}">Like Memo</a>
<a class="btn like_memo" href="memo/like/{{ .Post.Memo.GetTransactionHashString }}">Like Memo</a>
{{ end }}
<a class="btn btn-leave" target="_blank"
<a class="btn btn-leave view_blockchain" target="_blank"
href="https://explorer.bitcoin.com/bch/tx/{{ .Post.Memo.GetTransactionHashString }}">
View Memo on Block Explorer</a>
</p>
Expand Down