Use textarea instead of input for build status images and links.

This commit is contained in:
Josef Šimánek 2014-05-12 02:47:37 +02:00
parent cf82a50268
commit 75d58816ca
4 changed files with 8 additions and 2 deletions

View File

@ -10,5 +10,5 @@
<p>
<label>{{view Ember.Select contentBinding="view.formats" selectionBinding="view.statusImageFormat"}}</label>
<input type="text" onclick="this.select()" class="url" {{bind-attr value="view.statusString"}}></input>
{{view Travis.StatusImageInput valueBinding="view.statusString" class="url" rows=3}}
</p>

View File

@ -60,3 +60,4 @@ require 'views/stats'
require 'views/signin'
require 'views/top'
require 'views/status_images'
require 'views/status_image_input'

View File

@ -0,0 +1,3 @@
Travis.StatusImageInput = Em.TextArea.extend
click: ->
@get('element').select()

View File

@ -51,10 +51,12 @@
label
width: 100px
display: inline-block
input
vertical-align: top
textarea
border: 1px solid $color-border-light
width: 485px
padding: 4px
resize: vertical
@include border-radius(3px)
#regenerate-key