Add status image example for POD

Fixes https://github.com/travis-ci/travis-web/issues/235

Note the height attribute is removed from `#status-image`.
We now let browser decide how tall the popup will be.
This commit is contained in:
Hiro Asari 2014-01-25 09:06:25 -05:00
parent 8e5111da88
commit 26c5cf2a05
4 changed files with 11 additions and 3 deletions

View File

@ -31,3 +31,7 @@
<label>{{t repositories.rst}}:</label>
<input type="text" class="rst" {{bind-attr value="view.rstStatusImage"}}></input>
</p>
<p>
<label>{{t repositories.pod}}:</label>
<input type="text" class="pod" {{bind-attr value="view.podStatusImage"}}></input>
</p>

View File

@ -55,3 +55,7 @@ Travis.StatusImagesView = Em.View.extend
rstStatusImage: (->
".. image:: #{@get('statusImageUrl')} :target: #{@get('urlRepo')}"
).property('statusImageUrl')
podStatusImage: (->
"=for HTML <a href=\"#{@get('urlRepo')}\"><img src=\"#{@get('statusImageUrl')}\"></a>"
).property('statusImageUrl')

View File

@ -44,7 +44,6 @@
#status-images
display: none
width: 600px
height: 250px
margin: -95px 0 0 -300px
p

View File

@ -98,7 +98,7 @@ en:
stats: Stats
status: Status
locales:
ca:
ca:
de: Deutsch
en: English
es: Español
@ -135,6 +135,7 @@ en:
image_url: Image URL
markdown: Markdown
message: Message
pod: POD
rdoc: RDOC
started_at: Started
tabs:
@ -144,7 +145,7 @@ en:
current: Current
job: Job
pull_requests: Pull Requests
test:
test:
textile: Textile
repository:
duration: Duration