Bulma list syntax fixes on a couple pages

This commit is contained in:
Noah Petherbridge 2024-04-18 20:18:55 -07:00
parent 4623cdca50
commit a0f41074bd
3 changed files with 174 additions and 168 deletions

View File

@ -182,84 +182,86 @@
</header> </header>
<div class="card-content"> <div class="card-content">
<ul class="menu-list"> <aside class="menu">
<li> <ul class="menu-list">
<a href="/u/{{.CurrentUser.Username}}"> <li>
<span class="icon"><i class="fa fa-user"></i></span> <a href="/u/{{.CurrentUser.Username}}">
My Profile <span class="icon"><i class="fa fa-user"></i></span>
</a> My Profile
</li> </a>
<li> </li>
<a href="/u/{{.CurrentUser.Username}}/photos"> <li>
<span class="icon"><i class="fa fa-image"></i></span> <a href="/u/{{.CurrentUser.Username}}/photos">
My Photos <span class="icon"><i class="fa fa-image"></i></span>
</a> My Photos
</li> </a>
<li> </li>
<a href="/photo/upload"> <li>
<span class="icon"><i class="fa fa-upload"></i></span> <a href="/photo/upload">
Upload Photos <span class="icon"><i class="fa fa-upload"></i></span>
</a> Upload Photos
</li> </a>
<li> </li>
<a href="/photo/private"> <li>
<span class="icon"><i class="fa fa-eye"></i></span> <a href="/photo/private">
Manage Private Photos <span class="icon"><i class="fa fa-eye"></i></span>
</a> Manage Private Photos
</li> </a>
<li> </li>
<a href="/settings"> <li>
<span class="icon"><i class="fa fa-edit"></i></span> <a href="/settings">
Edit Profile &amp; Settings <span class="icon"><i class="fa fa-edit"></i></span>
</a> Edit Profile &amp; Settings
</li> </a>
{{if .CurrentUser.IsInnerCircle}} </li>
<li> {{if .CurrentUser.IsInnerCircle}}
<a href="/inner-circle"> <li>
<span class="icon"><img src="/static/img/circle-16.png"></span> <a href="/inner-circle">
{{PrettyCircle}} <span class="icon"><img src="/static/img/circle-16.png"></span>
</a> {{PrettyCircle}}
</li> </a>
{{end}} </li>
<li> {{end}}
<a href="/photo/certification"> <li>
<span class="icon"><i class="fa fa-certificate"></i></span> <a href="/photo/certification">
Certification Photo <span class="icon"><i class="fa fa-certificate"></i></span>
</a> Certification Photo
</li> </a>
<li> </li>
<a href="/users/blocked"> <li>
<span class="icon"><i class="fa fa-hand"></i></span> <a href="/users/blocked">
Blocked Users <span class="icon"><i class="fa fa-hand"></i></span>
</a> Blocked Users
</li> </a>
<li> </li>
<a href="/notes/me"> <li>
<span class="icon"><i class="fa fa-pen-to-square mr-1"></i></span> <a href="/notes/me">
My User Notes <span class="icon"><i class="fa fa-pen-to-square mr-1"></i></span>
</a> My User Notes
</li> </a>
<li> </li>
<a href="/logout"> <li>
<span class="icon"><i class="fa fa-arrow-right-from-bracket"></i></span> <a href="/logout">
Log out <span class="icon"><i class="fa fa-arrow-right-from-bracket"></i></span>
</a> Log out
</li> </a>
{{if .SessionImpersonated}} </li>
<li> {{if .SessionImpersonated}}
<a href="/admin/unimpersonate" class="has-text-danger"> <li>
<span class="icon"><i class="fa fa-ghost"></i></span> <a href="/admin/unimpersonate" class="has-text-danger">
<span>Unimpersonate</span> <span class="icon"><i class="fa fa-ghost"></i></span>
</a> <span>Unimpersonate</span>
</li> </a>
{{end}} </li>
<li> {{end}}
<a href="/settings#deactivate"> <li>
<span class="icon"><i class="fa fa-trash"></i></span> <a href="/settings#deactivate">
Delete account <span class="icon"><i class="fa fa-trash"></i></span>
</a> Delete account
</li> </a>
</ul> </li>
</ul>
</aside>
</div> </div>
</div> </div>
</div> </div>

View File

@ -121,46 +121,48 @@
</header> </header>
<div class="card-content"> <div class="card-content">
<ul class="menu-list"> <aside class="menu">
<li> <ul class="menu-list">
<a href="/admin/photo/certification"> <li>
<i class="fa fa-certificate mr-2"></i> <a href="/admin/photo/certification">
Certification Photos <i class="fa fa-certificate mr-2"></i>
{{if .NavCertificationPhotos}}<span class="tag is-success ml-1">{{.NavCertificationPhotos}}</span>{{end}} Certification Photos
</a> {{if .NavCertificationPhotos}}<span class="tag is-success ml-1">{{.NavCertificationPhotos}}</span>{{end}}
</li> </a>
<li> </li>
<a href="/admin/feedback"> <li>
<i class="fa fa-message mr-2"></i> <a href="/admin/feedback">
Feedback &amp; User Reports <i class="fa fa-message mr-2"></i>
{{if .NavAdminFeedback}}<span class="tag is-danger ml-1">{{.NavAdminFeedback}}</span>{{end}} Feedback &amp; User Reports
</a> {{if .NavAdminFeedback}}<span class="tag is-danger ml-1">{{.NavAdminFeedback}}</span>{{end}}
</li> </a>
<li> </li>
<a href="/photo/gallery?admin_view=true"> <li>
<i class="fa fa-image mr-2"></i> <a href="/photo/gallery?admin_view=true">
Gallery: Admin View <i class="fa fa-image mr-2"></i>
</a> Gallery: Admin View
</li> </a>
<li> </li>
<a href="/admin/changelog"> <li>
<i class="fa fa-clipboard-list mr-2"></i> <a href="/admin/changelog">
Change Log Viewer <i class="fa fa-clipboard-list mr-2"></i>
</a> Change Log Viewer
</li> </a>
<li> </li>
<a href="/admin/scopes"> <li>
<i class="fa fa-gavel mr-2"></i> <a href="/admin/scopes">
Admin Permissions Management <i class="fa fa-gavel mr-2"></i>
</a> Admin Permissions Management
</li> </a>
<li> </li>
<a href="/admin/maintenance"> <li>
<i class="fa fa-wrench mr-2"></i> <a href="/admin/maintenance">
Maintenance Mode <i class="fa fa-wrench mr-2"></i>
</a> Maintenance Mode
</li> </a>
</ul> </li>
</ul>
</aside>
</div> </div>
</div> </div>
</div> </div>

View File

@ -52,56 +52,58 @@
</header> </header>
<div class="card-content p-2"> <div class="card-content p-2">
<ul class="menu-list"> <aside class="menu">
<li> <ul class="menu-list">
<a href="/messages"{{if .NavUnreadMessages}} class="has-text-warning"{{end}}> <li>
<span class="icon"><i class="fa fa-envelope"></i></span> <a href="/messages"{{if .NavUnreadMessages}} class="has-text-warning"{{end}}>
{{if .NavUnreadMessages}} <span class="icon"><i class="fa fa-envelope"></i></span>
<span>{{.NavUnreadMessages}} New Message{{Pluralize64 .NavUnreadMessages}}!</span> {{if .NavUnreadMessages}}
{{else}} <span>{{.NavUnreadMessages}} New Message{{Pluralize64 .NavUnreadMessages}}!</span>
<span>Messages</span> {{else}}
{{end}} <span>Messages</span>
</a> {{end}}
</li> </a>
<li> </li>
<a href="/friends{{if .NavFriendRequests}}?view=requests{{end}}"{{if .NavFriendRequests}} class="has-text-warning"{{end}}> <li>
<span class="icon"><i class="fa fa-user-group"></i></span> <a href="/friends{{if .NavFriendRequests}}?view=requests{{end}}"{{if .NavFriendRequests}} class="has-text-warning"{{end}}>
{{if .NavFriendRequests}} <span class="icon"><i class="fa fa-user-group"></i></span>
<span>{{.NavFriendRequests}} Friend Request{{Pluralize64 .NavFriendRequests}}!</span> {{if .NavFriendRequests}}
{{else}} <span>{{.NavFriendRequests}} Friend Request{{Pluralize64 .NavFriendRequests}}!</span>
<span>Friends</span> {{else}}
{{end}} <span>Friends</span>
</a> {{end}}
</li> </a>
<li> </li>
<a href="/me{{if .NavUnreadNotifications}}?view=requests{{end}}"{{if .NavUnreadNotifications}} class="has-text-warning"{{end}}> <li>
<span class="icon"><i class="fa {{if .NavUnreadNotifications}}fa-bell{{else}}fa-home-user{{end}}"></i></span> <a href="/me{{if .NavUnreadNotifications}}?view=requests{{end}}"{{if .NavUnreadNotifications}} class="has-text-warning"{{end}}>
{{if .NavUnreadNotifications}} <span class="icon"><i class="fa {{if .NavUnreadNotifications}}fa-bell{{else}}fa-home-user{{end}}"></i></span>
<span>{{.NavUnreadNotifications}} New Notification{{Pluralize64 .NavUnreadNotifications}}!</span> {{if .NavUnreadNotifications}}
{{else}} <span>{{.NavUnreadNotifications}} New Notification{{Pluralize64 .NavUnreadNotifications}}!</span>
<span>Dashboard</span> {{else}}
{{end}} <span>Dashboard</span>
</a> {{end}}
</li> </a>
<li> </li>
<a href="/u/{{.CurrentUser.Username}}"> <li>
<span class="icon"><i class="fa fa-user"></i></span> <a href="/u/{{.CurrentUser.Username}}">
My Profile <span class="icon"><i class="fa fa-user"></i></span>
</a> My Profile
</li> </a>
<li> </li>
<a href="/u/{{.CurrentUser.Username}}/photos"> <li>
<span class="icon"><i class="fa fa-image"></i></span> <a href="/u/{{.CurrentUser.Username}}/photos">
My Photos <span class="icon"><i class="fa fa-image"></i></span>
</a> My Photos
</li> </a>
<li> </li>
<a href="/photo/upload"> <li>
<span class="icon"><i class="fa fa-upload"></i></span> <a href="/photo/upload">
Upload Photos <span class="icon"><i class="fa fa-upload"></i></span>
</a> Upload Photos
</li> </a>
</ul> </li>
</ul>
</aside>
</div> </div>
</div> </div>
{{else}} {{else}}