Skip to content

Commit

Permalink
Add visit icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Jun 25, 2014
1 parent e921eca commit eb36ca6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/account/templates/link-detail-actions.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
</div> {{! .pull-left }}

<div class="pull-right">
<a href="{{content}}" class="btn btn-link item-action" target="_blank">Visit</a>
<a href="{{content}}" class="btn btn-link item-action" target="_blank">{{icon-visit}} Visit</a>
<button type="button" class="btn btn-link item-action" data-action="delete">{{icon-delete}} Delete</button>
</div> {{! .pull-right }}
5 changes: 5 additions & 0 deletions app/lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,8 @@ Handlebars.registerHelper('icon-blimp-logo', function() {
var icon = '<svg class="icon-blimp-logo svg-icon-wrapper" width="49" height="25" viewBox="0 0 49 25" xmlns="http://www.w3.org/2000/svg"><path d="M26.192.259c-3.875.531-8.738 2.361-13.218 4.602-1.95-.993-4.133-2.037-4.733-2.062-1.149-.049-4.694 2.36-4.694 2.36l1.793 4.181c-3.323 2.312-5.504 4.492-5.331 5.757.084.609.753 1.276 1.849 1.953-.742.548-1.111.979-1.122 1.306 0 .369.086 1.205.332 1.266 1.076.278 3.338.249 5.571.025l-.545 4.082s4.062 1.366 5.156 1.01c.572-.186 2.401-1.787 4.014-3.271 1.421.275 2.863.507 4.289.686.185.877.459 1.855.803 2.158.327.288 3.529.848 6.754.644 3.365-.212 6.755-1.201 7.058-1.506.326-.328.411-1.445.424-2.385 8.038-2.678 14.958-8.407 14.372-12.681-.714-5.209-12.754-9.499-22.773-8.125zm-15.601 16.93c-2.167.9-8.566 1.552-9.596.844-.597-.411.696-1.346 1.885-2.058 1.421.077 3.513.002 5.833-.239 1.835-.19 3.507-.453 4.805-.737-.605.684-1.623 1.648-2.927 2.189zm12.814 6.964c-.693.105-1.333-.431-1.428-1.198-.019-.156-.014-.309.013-.456.791.128 1.631.211 2.511.244.01.698-.453 1.312-1.095 1.409zm4.224.001c-.694.097-1.333-.396-1.428-1.102-.019-.137-.014-.272.008-.401.796-.013 1.619-.064 2.458-.151l.045.202c.095.706-.39 1.356-1.083 1.453zm4.221-.833c-.696.096-1.337-.397-1.433-1.103l-.004-.043c.855-.137 1.683-.308 2.477-.509l.045.201c.095.706-.391 1.356-1.086 1.453zm-8.304-16.529c-13.518 1.781-22.644 8.593-22.702 8.19-.058-.403 12.877-10.431 26.396-12.212 13.52-1.781 20.857 5.782 20.914 6.185.058.403-11.089-3.944-24.608-2.163z" fill="#000" class="svg-icon-color" fill-rule="evenodd"/></svg>';
return new Handlebars.SafeString(icon);
});

Handlebars.registerHelper('icon-visit', function() {
var icon = '<svg class="svg-icon-wrapper" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><g fill="#000" class="svg-icon-color" fill-rule="evenodd"><path d="M.009 10c.001.26.093.516.284.707l5 5c.19.191.446.283.707.283v.01h9c.553 0 1-.447 1-1v-14c0-.553-.447-1-1-1h-14c-.553 0-1 .447-1 1v9h.009zm4.991 2.586l-1.586-1.586h1.586v1.586zm-3-10.586h12v12h-7v-4c0-.553-.447-1-1-1h-4v-7zM12.447 3h-3.874c-.611 0-.757.351-.324.782l1.277 1.278-2.233 2.233c-.195.195-.195.512 0 .707l.707.707c.195.195.512.195.707 0l2.233-2.233 1.277 1.277c.433.433.783.288.783-.324v-3.873c0-.307-.248-.554-.553-.554z"/></g></svg>';
return new Handlebars.SafeString(icon);
});
2 changes: 1 addition & 1 deletion app/public-board/templates/link-detail-actions.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
</div> {{! .pull-left }}

<div class="pull-right">
<a href="{{content}}" class="btn btn-link item-action" target="_blank">Visit</a>
<a href="{{content}}" class="btn btn-link item-action" target="_blank">{{icon-visit}} Visit</a>
</div> {{! .pull-right }}

0 comments on commit eb36ca6

Please sign in to comment.