Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Add alternative embedding code
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Becker committed Feb 27, 2016
1 parent 2a91c5b commit aa8e262
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app/views/badges/show.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@
%p Embed this badge in your site:
%pre
<object data="#{absolute_url(:badges, :render, id: @badge.id, format: :svg)}" type="image/svg+xml"></object>

or

%p or
%pre
<a href="#{absolute_url(:badges, :show, id: @badge.id)}">
<img src="#{absolute_url(:badges, :render, id: @badge.id, format: :svg)}" alt="Ember Community Badge"></img>
</a>
:preserve
<a href="#{absolute_url(:badges, :show, id: @badge.id)}">
<img src="#{absolute_url(:badges, :render, id: @badge.id, format: :svg)}" alt="Ember Community Badge"></img>
</a>

%h3 Proposed changes

Expand Down

0 comments on commit aa8e262

Please sign in to comment.