Browse Source
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 Enjoymaster
The Dod
11 years ago
9 changed files with 142 additions and 157 deletions
@ -1,5 +1,6 @@
@@ -1,5 +1,6 @@
|
||||
body {padding-top:8px; background:#eef url(/assets/img/swizzler-128.png) no-repeat fixed right bottom} |
||||
.avatar {max-width:64px; max-height:64px} |
||||
.avatars32 .avatar {max-width:32px; max-height:32px} |
||||
.avatars42 .avatar {max-width:44px; max-height:44px} |
||||
.panel, .list-group-item { background-color: rgba(255,255,255,0.33) } /* I should be doing this by customizing bootstrap. Later :) */ |
||||
#footer {z-index:115;position:fixed;right:123px;bottom:0} |
||||
#footer {z-index:115;position:fixed;right:96px;bottom:8px} |
||||
|
@ -1,3 +1,4 @@
@@ -1,3 +1,4 @@
|
||||
<footer id="footer"> |
||||
<div class="alert alert-info"><a target="_blank" href="https://github.com/swizzler/swizzler#readme"><strong>Fork</strong></a> this. Swizzler is <a target="_blank" href="http://www.gnu.org/licenses/agpl-3.0.html"><strong>AGPLV3</strong></a>.</span> |
||||
<a class="btn btn-primary btn-sm" title="Scroll to navigation" href="#localusers"><span class="glyphicon glyphicon-th-list"></span></a> |
||||
<a class="badge" target="_blank" title="Fork it like you mean it" href="https://github.com/swizzler/swizzler#readme"><span class="glyphicon glyphicon-wrench"></a> |
||||
</footer> |
||||
|
@ -1,45 +1,37 @@
@@ -1,45 +1,37 @@
|
||||
<li class="list-group-item media"> |
||||
{{#user}} |
||||
<iframe class="thumbnail media-object {{#fromMe}}pull-right{{/fromMe}}{{^fromMe}}pull-left{{/fromMe}}" |
||||
style="border:none; padding:0; background:none; overflow:hidden" |
||||
width=33% height={{#style_large}}96{{/style_large}}{{^style_large}}72{{/style_large}} seamless=seamless |
||||
src="{{site_root}}/user_embed/{{username}}{{^username}}nobody{{/username}}{{#style_large}}/large{{/style_large}}{{#fromMe}}/from_me{{/fromMe}}"></iframe> |
||||
<div class="media-body"> |
||||
{{#username}} |
||||
<a class="{{#fromMe}}pull-right{{/fromMe}}{{^fromMe}}pull-left{{/fromMe}} thumbnail" href="{{site_root}}/user/{{.}}" title="@{{.}}'s profile"> |
||||
<img class="media-object avatar" src="{{#avatar}}{{.}}{{/avatar}}{{^avatar}}/assets/img/genericPerson.png{{/avatar}}" alt="{{fullname}}"> |
||||
</a> |
||||
<h5 class="media-heading"> |
||||
{{^threads}} |
||||
<span class="pull-right small"> |
||||
{{^is_sponsored}}<a title="View twist details" href="{{site_root}}/twist/{{.}}/{{k}}">{{/is_sponsored}}{{time}}{{^is_sponsored}}</a>{{/is_sponsored}} |
||||
</span> |
||||
{{/threads}} |
||||
{{#rt_username}} |
||||
<small> |
||||
<a href="{{site_root}}/user/{{.}}" title="@{{.}}'s profile">@{{.}}</a> |
||||
<span class="glyphicon glyphicon-retweet"></span> |
||||
</small> |
||||
{{/rt_username}} |
||||
<a href="{{site_root}}/user/{{username}}" title="@{{username}}'s profile"><strong>@{{username}}</strong></a> |
||||
{{^is_twist}}{{#reply}} |
||||
<small> |
||||
<span class="glyphicon glyphicon-share-alt"></span> |
||||
<a title="Re: @{{username}}'s twist" href="{{site_root}}/twist/{{username}}/{{k}}">@{{username}}</a> |
||||
</small> |
||||
{{/reply}}{{/is_twist}} |
||||
</h5> |
||||
{{/username}} |
||||
{{^username}} |
||||
<a class="pull-left thumbnail" href="#"> |
||||
<img class="media-object avatar" src="{{site_root}}/assets/img/twister-64.jpg" alt="{{fullname}}"> |
||||
</a> |
||||
<h5 class="media-heading"> |
||||
<span class="pull-right small">{{time}}</span> |
||||
<a href="{{site_root}}/">@{{username}}</a> |
||||
</h5> |
||||
{{/username}} |
||||
{{/user}} |
||||
<div class="media-body"> |
||||
{{#user}} |
||||
{{#username}} |
||||
<h5 class="media-heading"> |
||||
<span class="pull-right small"> |
||||
<a title="View twist details" href="{{site_root}}/twist/{{.}}/{{k}}">{{time}}</a> |
||||
</span> |
||||
{{#rt_user}} |
||||
<small> |
||||
<a href="{{site_root}}/user/{{username}}" title="@{{username}}'s profile">{{fullname}}</a> |
||||
<span class="glyphicon glyphicon-retweet"></span> |
||||
</small> |
||||
{{/rt_user}} |
||||
<a href="{{site_root}}/user/{{.}}" title="@{{.}}'s profile"><strong>{{fullname}}</strong></a> |
||||
{{^is_twist}}{{#reply}} |
||||
<small> |
||||
<span class="glyphicon glyphicon-share-alt"></span> |
||||
{{#user}}<a title="Re: @{{username}}'s twist" href="{{site_root}}/twist/{{username}}/{{k}}">{{fullname}}</a>{{/user}} |
||||
</small> |
||||
{{/reply}}{{/is_twist}} |
||||
</h5> |
||||
{{/username}} |
||||
{{^username}} |
||||
<h5 class="media-heading"> |
||||
<span class="pull-right small">{{time}}</span> |
||||
<a href="{{site_root}}/">{{fullname}}</a> |
||||
</h5> |
||||
{{/username}} |
||||
{{/user}} |
||||
{{{message}}} |
||||
</div> |
||||
</li> |
||||
|
Loading…
Reference in new issue