mirror of
https://github.com/twisterarmy/swizzler.git
synced 2025-03-13 05:51:43 +00:00

Great performance boost. Also: * Input field to copy @username Once we can post, this may be handy * Search is also an iframe (containing an iframe per user) So you can keep composing a twist while searching for usernames * Should be responsive for cellulars (I can only resize browser to check. Got no phone. Anyway, the floating "Fork me" footer now has a link to navigation (local users), and that's about all the essential navigation. You can scroll a bit down from there for search results, or all the way up for the content. * Make sure Dillo etc. that don't see bootstrap font icon can still have text links to everything Enjoy
92 lines
4.8 KiB
HTML
92 lines
4.8 KiB
HTML
<!DOCTYPE html>
|
|
<html language="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{{title}}</title>
|
|
<link rel="icon" type="image/x-icon" href="{{site_root}}/favicon.ico">
|
|
<link href="{{site_root}}/assets/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="{{site_root}}/assets/css/bootstrap-theme.min.css" rel="stylesheet">
|
|
<link href="{{site_root}}/assets/css/swizzler.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div id="main" class="col-md-8">
|
|
<div class="row">
|
|
<div id="header" class="col-md-12 well">
|
|
{{#subject}}
|
|
<div class="media">
|
|
<a class="pull-left thumbnail" href="{{#username}}/user/{{.}}{{/username}}{{^username}}#{{/username}}">
|
|
<img class="media-object avatar" src="{{#avatar}}{{.}}{{/avatar}}{{^avatar}}/assets/img/twister-64.jpg{{/avatar}}" alt="{{fullname}}">
|
|
</a>
|
|
<div class="media-body">
|
|
{{#is_home}}
|
|
{{#username}}
|
|
<h3 class="media-heading">
|
|
{{#is_feed}}
|
|
<a class="label label-primary" href="{{site_root}}/home/{{username}}" title="@{{username}}'s home"><span class="glyphicon glyphicon-home"></span>
|
|
{{fullname}}'s home</a>
|
|
{{/is_feed}}
|
|
{{#is_mentions}}
|
|
<a class="label label-primary" href="{{site_root}}/home/{{username}}/mentions" title="mentions of @{{username}}"><span class="glyphicon glyphicon-bell"></span>
|
|
Mentions of {{fullname}}</a>
|
|
{{/is_mentions}}
|
|
{{#is_messages}}
|
|
<a class="label label-primary" href="{{site_root}}/messages/{{username}}" title="direct messages to/from @{{username}}"><span class="glyphicon glyphicon-envelope"></span>
|
|
{{fullname}}</a>
|
|
{{/is_messages}}
|
|
</h3>
|
|
<h4>
|
|
{{^is_feed}}
|
|
<a class="label label-primary" href="{{site_root}}/home/{{username}}" title="@{{username}}'s home"><span class="glyphicon glyphicon-home"></span>Home</a>
|
|
{{/is_feed}}
|
|
{{^is_mentions}}
|
|
<a class="label label-primary" href="{{site_root}}/home/{{username}}/mentions" title="mentions of @{{username}}"><span class="glyphicon glyphicon-bell"></span>Mentions</a>
|
|
{{/is_mentions}}
|
|
{{^is_messages}}
|
|
<a class="label label-primary" href="{{site_root}}/messages/{{username}}" title="direct messages from/to @{{username}}"><span class="glyphicon glyphicon-envelope"></span>Messages</a>
|
|
{{/is_messages}}
|
|
<a class="label label-info" href="{{site_root}}{{#username}}/user/{{.}}{{/username}}" title="@{{username}}'s profile"><span class="glyphicon glyphicon-user"></span>Profile</a>
|
|
</h4>
|
|
{{/username}}
|
|
{{/is_home}}
|
|
{{#is_user}}
|
|
<h4 class="media-heading">
|
|
{{#location}}<span class="pull-right small">{{.}}</span>{{/location}}
|
|
<a class="label label-primary" href="{{site_root}}/user/{{username}}"><span class="glyphicon glyphicon-user"></span>
|
|
{{fullname}}</a>
|
|
{{#url}}<small><a target="_blank" href="{{.}}">{{.}}</a></small>{{/url}}</h4>
|
|
{{{bio}}}
|
|
{{/is_user}}
|
|
{{#is_tag}}
|
|
<h2 class="media-heading">
|
|
<small><span class="glyphicon glyphicon-tag"></span> Latest twists containing the tag:</small><br>
|
|
#{{fullname}}
|
|
</h2>
|
|
{{/is_tag}}
|
|
</div>
|
|
</div>
|
|
{{/subject}}
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div id="messages" class="col-md-12">
|
|
{{#any_messages}}<ul class="list-group media-list">{{#messages}}{{> message}}{{/messages}}</ul>{{/any_messages}}
|
|
{{^messages}}
|
|
<h4><small>Nothing. Nada. Rien de rien. 😭</small></h4>
|
|
{{/messages}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="sidebar" class="col-md-4">
|
|
{{> sidebar}}
|
|
</div>
|
|
</div>
|
|
{{> footer}}
|
|
</div> <!-- /container -->
|
|
</body>
|
|
</html>
|
|
|