Skip to content

Commit

Permalink
Merge pull request okfn-brasil#492 from okfn-brasil/update-icons-soci…
Browse files Browse the repository at this point in the history
…al-links

Update icons on jarbas social links.
  • Loading branch information
sergiomario authored Aug 14, 2019
2 parents 5577c12 + 9bc1f1f commit 7c4194b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jarbas/dashboard/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ def supplier_info(self, obj):
def jarbas(self, obj):
base_url = '/layers/#/documentId/{}/'
url = base_url.format(obj.document_id)
image_src = '/static/favicon/favicon-16x16.png'
image = '<img alt="Ver no Jarbas" src="{}">'.format(image_src)
image = '<img alt="Ver no Jarbas" src="/static/favicon/favicon-16x16.png">'
return mark_safe('<a href="{}">{}</a>'.format(url, image))

jarbas.short_description = ''
Expand Down Expand Up @@ -120,7 +119,8 @@ def rosies_tweet(self, obj):
def receipt_link(self, obj):
if not obj.receipt_url:
return ''
return mark_safe(f'<a target="_blank" href="{obj.receipt_url}">📃</a>')
image = '<img src="/static/image/receipt_icon.png">'
return mark_safe('<a target="_blank" href="{}">{}</a>'.format(obj.receipt_url, image))

receipt_link.short_description = ''

Expand Down
Binary file modified jarbas/layers/static/favicon/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified jarbas/layers/static/image/facebook-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added jarbas/layers/static/image/receipt_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified jarbas/layers/static/image/twitter-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7c4194b

Please sign in to comment.