2014-06-24 00:37:38 +08:00
|
|
|
import ButtonView from 'discourse/views/button';
|
2013-06-07 04:33:26 +08:00
|
|
|
|
2014-06-24 00:37:38 +08:00
|
|
|
export default ButtonView.extend({
|
2013-09-21 07:33:49 +08:00
|
|
|
classNames: ['share'],
|
2013-06-07 04:33:26 +08:00
|
|
|
textKey: 'topic.share.title',
|
|
|
|
helpKey: 'topic.share.help',
|
|
|
|
'data-share-url': Em.computed.alias('topic.shareUrl'),
|
2013-07-12 04:38:46 +08:00
|
|
|
topic: Em.computed.alias('controller.model'),
|
2013-06-07 04:33:26 +08:00
|
|
|
|
|
|
|
renderIcon: function(buffer) {
|
2013-12-10 05:27:49 +08:00
|
|
|
buffer.push("<i class='fa fa-link'></i>");
|
2013-06-07 04:33:26 +08:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|