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> <label>{{t repositories.rst}}:</label>
<input type="text" class="rst" {{bind-attr value="view.rstStatusImage"}}></input> <input type="text" class="rst" {{bind-attr value="view.rstStatusImage"}}></input>
</p> </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: (-> rstStatusImage: (->
".. image:: #{@get('statusImageUrl')} :target: #{@get('urlRepo')}" ".. image:: #{@get('statusImageUrl')} :target: #{@get('urlRepo')}"
).property('statusImageUrl') ).property('statusImageUrl')
podStatusImage: (->
"=for HTML <a href=\"#{@get('urlRepo')}\"><img src=\"#{@get('statusImageUrl')}\"></a>"
).property('statusImageUrl')

View File

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

View File

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