diff options
| author | Scott Ostler <scottbot9000@gmail.com> | 2011-02-21 23:28:46 -0500 |
|---|---|---|
| committer | Scott Ostler <scottbot9000@gmail.com> | 2011-02-21 23:28:46 -0500 |
| commit | d6c8d8ab019721ba47a289de97c95e9786dd5ded (patch) | |
| tree | fbafe9199d175250477f3881f5b5e5808df81df8 /template | |
| parent | f2525430e94460085f369a526986b2b0a176b99f (diff) | |
sostler add favorite to frontpage
Diffstat (limited to 'template')
| -rw-r--r-- | template/frontpage.st | 6 | ||||
| -rw-r--r-- | template/frontpage_share_buttons.st | 10 | ||||
| -rw-r--r-- | template/hall_log_dump.st | 17 |
3 files changed, 18 insertions, 15 deletions
diff --git a/template/frontpage.st b/template/frontpage.st index f75f9db..be10d14 100644 --- a/template/frontpage.st +++ b/template/frontpage.st @@ -104,7 +104,7 @@ z-index:4; .thumb.favorite { position: absolute; - margin-left: 40px; + margin-left: 5px; margin-top: 0px; height: 27px; width: 27px;z-index:4; @@ -133,9 +133,9 @@ z-index:4; -moz-box-shadow:#777 0 0 0 1px; -webkit-box-shadow:#777 0 0 0 1px; text-shadow:rgba(0,0,0,.4) 0 1px 0;} -#hallscore{margin-right:-20px;color:#fff;text-align:center;margin-top:-20px;float:right;font-size:40px;z-index:1;padding:6px;background-image:url('/static/img/hallheart.png');background-position:top left;font-style: oblique;font-weight:100;height:50px;width:50px;text-shadow:-1px 1px 0px #000;line-height:37px;text-indent:4px; +.hallscore{margin-right:-20px;color:#fff;text-align:center;margin-top:-20px;float:right;font-size:40px;z-index:1;padding:6px;background-image:url('/static/img/hallheart.png');background-position:top left;font-style: oblique;font-weight:100;height:50px;width:50px;text-shadow:-1px 1px 0px #000;line-height:37px;text-indent:4px; } -#hallnick{font-size:16px;} +.hallnick{font-size:16px;} #login-container { float: right; diff --git a/template/frontpage_share_buttons.st b/template/frontpage_share_buttons.st new file mode 100644 index 0000000..003795e --- /dev/null +++ b/template/frontpage_share_buttons.st @@ -0,0 +1,10 @@ +<span class="buttons frontpage"> + <a class="permalink" href="$domain$/p/$dump.nick$/$dump.message_id$"><img src="$domain$/static/img/link.gif"></a> +$if(dump.favorited)$ + <img src="/static/img/thumbs/heartfaved.gif" class="thumb favorite" onclick="Tag.frontpage_fav(this)"> +$else$ + <div style="position: relative"> + <img src="/static/img/thumbs/heart.gif" class="thumb" onclick="Tag.frontpage_fav(this)"> + </div> +$endif$ +</span> diff --git a/template/hall_log_dump.st b/template/hall_log_dump.st index 0056e6f..9cde345 100644 --- a/template/hall_log_dump.st +++ b/template/hall_log_dump.st @@ -1,13 +1,6 @@ -$if(dump.ztags)$ - <div class="logged-dump dump" id="message-$dump.message_id$" nick="$dump.nick$" tags="$dump.tags: { tag | $tag.nick$:$tag.tag$ }$"> -$else$ - <div class="logged-dump dump $if(dump.favorited)$favorite$endif$" id="message-$dump.message_id$" nick="$dump.nick$"> -$endif$ - - - <a href="/$dump.nick$"><b id="hallnick">$dump.nick$</a> </b>$if(dump.score)$ <span id="hallscore" onclick="Tag.favorite(this)">$dump.score$</span>$endif$ -<div class="content" data-category="posts">$dump.content$</div> -<hr /> - -$share_buttons()$ +<div class="logged-dump dump $if(dump.favorited)$favorite$endif$" id="message-$dump.message_id$" nick="$dump.nick$"> + <a href="/$dump.nick$"><b class="hallnick">$dump.nick$</a></b>$if(dump.score)$<span class="hallscore" onclick="Tag.frontpage_fav(this)">$dump.score$</span>$endif$ + <div class="content" data-category="posts">$dump.content$</div> + <hr /> + $frontpage_share_buttons()$ </div> |
