discourse/app/assets/javascripts/admin/templates/components/url-list.hbs

19 lines
546 B
Handlebars
Raw Normal View History

2015-03-02 12:12:19 -05:00
{{#if urls}}
<div class='urls'>
{{#each url in urls}}
<div class='url'>
{{d-button action="removeUrl"
actionParam=url
icon="times"
class="btn-small no-text"}}
<a href="{{unbound url}}" target="_blank">{{url}}</a>
</div>
{{/each}}
</div>
{{/if}}
<div class='input'>
{{text-field value=newUrl placeholderKey="admin.site_settings.add_url"}}
{{d-button action="addUrl" icon="plus" class="btn-primary btn-small no-text" disabled=urlInvalid}}
</div>