Permalink
Browse files

Improve dropdown

  • Loading branch information...
davidmerfield committed Nov 21, 2018
1 parent 3475148 commit 06f9c4bb18f7df0d7dc4483ff76b081e3ba4f534
Showing with 9 additions and 8 deletions.
  1. +9 −8 app/dashboard/views/partials/dropdown.html
@@ -3,11 +3,10 @@
{{#blogs}}
{{#isCurrent}}
<a href="#!" class="opener nav-bar show" style="line-height:1.5;font-size:14px">
<a href="#!" class="opener nav-bar show" style="line-height:inherit;padding:11px 20px;font-size:14px">
{{#avatar}}<span class="photo-holder" style="margin-left:-30px;margin-right:12px"><img src="{{avatar}}"></span>{{/avatar}}&nbsp;{{title}}{{^title}}{{blog.pretty.url}}{{/title}}&nbsp;&thinsp;&nbsp;<img src="/images/dropdown.svg" width=8 style="float:right">
<!-- <br><span style="font-weight:400;color:#aaa">{{pretty.url}}</span>
--> </a>
</a>
{{/isCurrent}}
{{/blogs}}
@@ -20,14 +19,16 @@
<form style="" action="/account/switch-blog" method="POST">
<input type="hidden" name="_csrf" value="{{csrftoken}}">
<input type="hidden" name="to" value="{{id}}">
<button type="submit" style="color:#111;font-weight:500">
<span class="photo-holder"> {{#avatar}}<img src="{{avatar}}?handle={{handle}}">{{/avatar}}
{{^avatar}}<span class="file" style="font-size:0.8em;opacity:0.5;margin:-0.3em 0 0 0"></span>{{/avatar}}</span>
<button type="submit" style="display:flex;line-height:inherit;padding:11px 30px 11px 20px;color:#111;font-weight:500">
<span class="photo-holder" style="margin:0 10px 0 0">
{{#avatar}}<img src="{{avatar}}?handle={{handle}}">{{/avatar}}
{{^avatar}}<span class="file" style="font-size:0.8em;opacity:0.5;margin:-0.3em 0 0 0"></span>{{/avatar}}
</span>
{{title}}{{^title}}{{pretty.url}}{{/title}}<br>
<span style="font-weight:400">{{title}}{{^title}}{{pretty.url}}{{/title}}<br>
<span style="color:#aaa;font-weight:400">{{pretty.url}}</span>
</span>
{{#isCurrent}}<span style="color:green;float:right;font-size:20px">&bull;</span>{{/isCurrent}}
</button>
</form>
{{/isCurrent}}{{/blogs}}

0 comments on commit 06f9c4b

Please sign in to comment.