UNPKG

candy-theme-flat

Version:
66 lines (61 loc) 2.44 kB
extends ../layout block title | 添加话题 block css link(href="#{static}/stylesheets/libs/editor/editor.css",rel="stylesheet") link(href="#{static}/stylesheets/libs/jquery.fileupload-ui.css",rel="stylesheet") block banner .banner.clearfix .banner-inner.clearfix.container .row .col-lg-12 h2.title - if (board) i.icon-plus-sign | 在 「#{board.name}」 新建话题 - else | 呃。。。管理员还没有创建任何讨论节点 block main - if (board) #thread(ng-controller="threadCreator").thread .col-lg-9 #new.fn-clear form(name="createThread").form-horizontal .form-group label.col-lg-1.control-label 标题 .col-lg-11 input(type="text",ng-model="thread.name").form-control .form-group label.col-lg-1.control-label 内容 .col-lg-11.editor textarea.form-control .form-group.uploader-wrap .col-lg-offset-1.col-lg-11 .uploader.clearfix .btn.btn-default.fileinput-button.col-lg-2 i.icon-plus.icon-white span 上传附件 input#fileupload(type="file",name="media") #progress.col-lg-10.progress-striped.active.progress .progress-bar(role="progressbar",aria-valuenow="45",aria-valuemin="0",aria-valuemax="100") ul#files.files input(type="hidden",ng-model="thread.board",ng-init="thread.board='#{board._id}'") input(type="hidden",ng-model="thread.lz",ng-init="thread.lz='#{user._id}'") .col-lg-3 - if (board) .thread-submit.clearfix.side-cnt a(href="javascript:void(0);",ng-click="create()").btn.btn-success.submit i.icon-ok | 写好了 include ../widgets/ds-top-threads include ../widgets/ds-recent-comments block js - if (board) //- editor script(src="#{static}/javascripts/lib/editor.js") //- uploader script(src="#{static}/javascripts/upload/jquery.ui.widget.js") script(src="#{static}/javascripts/upload/jquery.iframe-transport.js") script(src="#{static}/javascripts/upload/jquery.fileupload.js") //- thread ctrler script(src="#{static}/javascripts/thread.js")