mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-16 12:05:30 +09:00
add comment form UI
This commit is contained in:
1 parent
b4c0b7b98b
commit
ab2d0b3b44
9 files changed
+96
-48
No files matched your search
@@ -406,6 +406,10 @@ issues.open_title = Open
|
||||
issues.closed_title = Closed
|
||||
issues.num_comments = %d comments
|
||||
issues.commented_at = commented at <a href="%s">%s</a>
|
||||
issues.no_content = There is no content if this issue.
|
||||
issues.close_issue = Close
|
||||
issues.close_comment_issue = Close and comment
|
||||
issues.create_comment = Comment
|
||||
issues.label_title = Label name
|
||||
issues.label_color = Label color
|
||||
issues.label_count = %d labels
|
||||
|
||||
+6
-10
@@ -160,12 +160,9 @@ func (i *Issue) GetAssignee() (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
func (i *Issue) AfterDelete() {
|
||||
_, err := DeleteAttachmentsByIssue(i.ID, true)
|
||||
|
||||
if err != nil {
|
||||
log.Info("Could not delete files for issue #%d: %s", i.ID, err)
|
||||
}
|
||||
// ReadBy sets issue to be read by given user.
|
||||
func (i *Issue) ReadBy(uid int64) error {
|
||||
return UpdateIssueUserByRead(uid, i.ID)
|
||||
}
|
||||
|
||||
// CreateIssue creates new issue with labels for repository.
|
||||
@@ -625,10 +622,9 @@ func UpdateIssueUserByAssignee(issueID, assigneeID int64) (err error) {
|
||||
return sess.Commit()
|
||||
}
|
||||
|
||||
// UpdateIssueUserPairByRead updates issue-user pair for reading.
|
||||
func UpdateIssueUserPairByRead(uid, iid int64) error {
|
||||
rawSql := "UPDATE `issue_user` SET is_read = ? WHERE uid = ? AND issue_id = ?"
|
||||
_, err := x.Exec(rawSql, true, uid, iid)
|
||||
// UpdateIssueUserByRead updates issue-user relation for reading.
|
||||
func UpdateIssueUserByRead(uid, issueID int64) error {
|
||||
_, err := x.Exec("UPDATE `issue_user` SET is_read=? WHERE uid=? AND issue_id=?", true, uid, issueID)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
@@ -772,7 +772,7 @@ func confLocaleLocale_deDeIni() (*asset, error) {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var _confLocaleLocale_enUsIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xc4\x7d\x7b\x93\xdb\x48\x8e\xe7\xff\xfc\x14\x6c\x5f\xf8\xec\x8e\x28\xcb\xd1\x3d\x71\x8f\x98\xb0\xdd\x57\x5d\xd5\x7e\xcc\xba\x1e\xeb\x2a\xf7\xdc\x9c\xc3\xa1\xa1\x44\x96\xc4\x29\x89\x54\xf3\x51\x72\xcd\xc6\x46\xdc\xd7\xb8\xaf\x77\x9f\xe4\x80\x1f\x80\x7c\x90\x54\xd9\x3d\xbb\x71\xfb\x8f\x94\xcc\x44\xbe\x90\x48\x24\x80\x44\x66\x66\xbb\xdd\x3c\x2f\xda\x65\xfa\x32\x3d\x4e\x77\x59\x59\x6d\x8a\xb6\x4d\xdb\x62\x73\xf3\x6c\x5d\xb7\x5d\x91\xa7\x6f\xca\x8e\xbe\x9b\xbb\x72\x59\x24\xc9\xba\xde\x16\x04\xfa\x96\xfe\x92\x3c\x6b\xd7\x8b\x3a\x6b\x72\x8a\x38\xb5\x70\x52\x7c\xd9\x6d\xea\x86\x81\x7e\x91\x50\xb2\x2e\x36\x3b\xce\x43\x7f\x49\x5b\xae\xaa\x79\x59\xd1\xe7\x15\x85\xd2\x77\x55\xd2\xd6\xcb\x32\xdb\xcc\x83\x04\x44\x58\xfa\x1f\xd3\x1f\xab\x3c\xbd\xea\x8a\x5d\xfa\xa2\xdd\x66\x9b\xcd\xab\xac\x45\x96\xae\x48\xb3\xe5\xb2\xee\xab\xee\xc5\x73\x49\x90\xc2\xeb\xbe\xb3\xd2\x2f\xfa\x4e\xe2\xfa\x9d\x45\x7d\xdc\x25\x4d\xb1\x2a\xa9\x63\x0d\x45\x7d\xd0\x60\xb2\x2f\x16\x6d\xd9\x71\xa3\xff\x2c\xa1\xe4\xae\x68\xda\xb2\xe6\xf6\xfc\x2a\xa1\x64\x97\xad\x18\xe0\x92\xfe\x92\xae\xd8\xee\x36\x19\x32\x5c\x6b\x30\xd9\x64\xd5\xaa\x17\x98\xf7\x1a\x4c\x96\x4d\x41\x49\xf3\xaa\xd8\x53\xec\x09\x3e\x52\xfa\x98\xcd\x66\x49\x4f\x38\x9d\xef\x9a\xfa\xa6\xdc\x14\xf3\xac\xca\xe7\x5b\xc1\xda\x47\x8a\x4f\x35\x3e\xa5\xf8\x94\xe3\xd1\x8d\x22\x27\x04\xcd\xb3\x56\xfb\x42\x43\x43\xf8\xca\xda\x04\x45\x55\xd9\xd6\x72\x73\x30\x29\xb6\x59\xb9\xe1\x41\x78\xc6\x01\x6a\x7c\xdb\xee\x6b\x0c\xd5\xa5\x06\x09\x11\xf3\xee\x7e\x57\x00\x0f\xcf\xae\x29\x94\x2c\xb3\x5d\xb7\x5c\x67\xdc\x56\x09\x25\x04\xb4\xab\x09\x21\x75\x73\x0f\x38\xfb\x48\xea\x66\x95\x55\xe5\xdf\xb3\x4e\x90\x74\x11\x7c\x26\xdb\xb2\x69\x6a\xc6\xef\x19\x02\x09\xf5\x78\xce\xe5\x50\xcc\x39\x61\x22\x28\x85\x53\xb6\xe5\xaa\x11\x54\x72\xe2\x19\xbe\xb8\x14\x4e\xbb\xa9\x9b\x5b\x4d\x78\xcd\xc1\x41\x56\x6a\x84\xa6\xc6\xf5\x67\x15\x21\x5f\x53\xcf\xf0\x11\x01\xb4\x49\x96\x6f\x09\x95\xbb\xac\x2a\x18\x47\xc7\xfc\x45\x78\xa1\xaf\x44\x69\x6a\xde\x16\x5d\x57\x56\x2b\x46\xf6\xb1\x44\xa5\x57\x1a\x95\x04\x69\x2e\xee\xbe\xee\xdd\x70\x52\xfc\x5f\xe8\x33\xbd\x94\x4f\x49\x0b\x32\x21\xd1\xe5\xe4\x9e\xb4\xf3\x9b\xa2\xc8\xa5\x2f\x6d\xfa\x9a\xc2\xc9\xae\xdf\x6c\x08\x6b\xbf\xf5\x45\xdb\x71\xa6\x4b\xfa\xa6\xfe\xcb\x77\x52\xb6\x2d\x05\x28\xfa\x1d\x02\x09\x0d\x5d\xb5\x44\x67\x4e\x10\x48\x92\x4f\x6d\x91\x35\xcb\xf5\xe7\x44\xfe\xd1\x56\x0e\x30\xed\x1d\x1a\x54\x26\x24\x25\x22\xa9\xc1\x2a\x48\x96\x75\xce\x1f\x27\xf4\x47\x45\x97\x55\xdb\xd1\x8c\xfb\x9c\x68\x80\xc1\x24\x24\x03\xd0\x95\x1d\xb0\xa0\x91\x98\xbe\x2d\x8f\x60\xfa\xba\x6c\xda\xee\x59\x57\x12\xb1\x7e\xe8\xab\x84\xfb\x47\xb3\x6d\x9e\x2f\x8c\x09\xbd\xa9\x09\x45\x88\x6e\xa8\x7f\x67\xf7\x57\xff\xfc\xfe\x28\xbd\x24\x4e\xb4\x6a\x0a\x0a\xa7\x54\x06\xfd\x51\x9e\x3f\xcc\x12\xca\x65\x35\x9d\x66\x5d\xb6\xc8\xda\xc2\xa3\x95\x13\x85\xba\x5d\x1a\x68\x9c\xb9\x1a\x38\x58\xdb\x45\xfd\x9d\x9a\x21\x54\x86\xce\x2b\x57\xc6\x39\x4f\x2e\x8a\x67\xa6\x86\xcc\x97\x9b\x82\xe3\xa9\xa8\xf4\xdd\xf9\xf9\xc5\xe9\xcf\x69\x51\xad\xca\xaa\x48\xf7\x65\xb7\x4e\xfb\xee\xe6\xbf\xcf\x57\x45\x55\x34\xc4\xe3\x96\x65\x4a\x73\xaa\x21\x4a\x48\x89\xb0\xa5\x73\xb3\xa4\x6d\x37\x34\xf7\x81\xde\xab\xab\xf7\xe9\x19\xa3\x78\x97\x75\x6b\x34\xa4\x5b\x27\xed\x6f\x1b\x46\x91\xab\xf0\x7a\x5d\xa4\xa0\x32\x00\xd5\x37\x86\x8f\x34\xd7\x36\xce\x92\xa2\x69\xe6\xc4\x96\xba\xfb\xb9\x66\xd6\xf2\x86\x90\x52\x04\x91\x4e\x55\x77\xe9\xa2\x48\x91\x67\x96\x24\xd6\x60\xc3\xee\xf1\x6e\xb7\x29\x97\x32\xd7\xdf\x48\x9a\x47\x34\xaf\x20\x8a\xa5\x10\x0e\x88\xb2\xb4\x00\x5d\xc4\x9e\x79\x3e\xa4\x11\x03\x41\xfe\x75\x41\x0c\x70\xdd\xaf\x84\xed\x6d\xea\x3e\xff\x0e\x94\x6a\xad\xf7\x84\x9a\x7e\xa8\xa9\xc1\xc0\x8e\x03\xf0\x55\x1c\x13\xc5\xf1\xa2\xd5\x14\xdb\x9a\xf8\x8a\x23\xf6\x92\x08\x6a\x5f\x52\x22\xf5\xb4\xcd\xee\x68\xbe\x75\x75\xda\xad\xcb\x36\xcd\x89\xd8\x96\x5c\x30\x4d\x8d\x9e\x96\x0b\x21\x0b\x22\x50\x21\x0d\x8b\x8b\xc7\x00\x50\xdb\x9e\xa8\x69\x4d\x85\xf1\x62\xc4\x2b\x27\x15\x39\xd5\x4e\x74\x89\xca\x01\x7d\x13\xe5\xd6\xc4\x95\x99\x6f\x9e\x22\xa0\xdf\x61\xf9\xd4\xaa\xec\xe6\x86\x5a\xd5\x12\x55\xbc\x4d\x97\x9b\x9a\x48\xea\xe3\x87\xf7\x94\x79\xdd\x75\xbb\xf9\xae\x6e\x40\xc6\xd7\xd7\x97\x34\x3d\x9a\xce\xc7\x06\xb8\x66\x98\xaa\xdf\x2e\xe8\x6b\xbf\x2e\x89\x09\x64\xc1\x00\x01\x15\x1b\x5e\xff\xaa\xb4\xae\x66\x18\xab\xbe\xd9\x0c\x86\x91\xaa\xb4\x94\x03\xcd\xe3\x26\x3c\xe7\x9f\x2b\xdf\x4a\x74\xb7\x25\x21\x61\x8f\x41\xa5\xae\x16\x58\x87\x88\xb6\xea\x1d\x97\x1b\x10\xd7\x85\x46\x78\x8a\xc2\xda\xe5\xd2\x65\x05\xa3\x54\x88\x20\x01\x17\xde\x52\x87\x75\x36\x5f\x9d\x11\x1a\x30\xa5\x11\x7b\xd3\xd4\x5b\x8a\x7d\x4d\x7f\x3e\xc2\x37\xff\x8c\xcb\x03\x4c\x96\xe7\xc4\x66\xda\xa3\xf4\xc3\xeb\x93\xf4\xbf\xfc\xe1\xc7\x1f\x67\xe9\xbb\x8e\x27\x04\xd3\xc8\xdf\x78\x6c\x29\x28\x4b\xa9\x03\xa5\x99\xdb\xd1\xf0\x3f\x62\x02\x7f\x94\xbe\x40\xea\xff\x28\xbe\x64\x24\x06\x14\xb3\x65\xbd\x7d\xc5\x93\x7b\x9b\x75\xb3\x84\x53\x88\x6a\x94\x9c\xae\x8a\x2a\xa7\x80\x2e\xc8\x9a\x16\x70\x1d\x4d\x0f\x96\x67\x11\x4e\xe6\xcb\xba\xba\x29\x1b\xee\xd0\x2Line truncated
|
||||
var _confLocaleLocale_enUsIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xc4\x7d\x7b\x93\xdb\x48\x8e\xe7\xff\xfc\x14\x6c\x5f\xf8\xec\x8e\x28\xcb\xd1\x3d\x71\x8f\x98\xb0\xdd\x57\x5d\xd5\x7e\xcc\xba\x1e\xeb\x2a\xcf\xdc\x9c\xc3\xa1\xa6\x44\x96\xc4\x29\x89\x54\xf3\x51\x72\xcd\xc6\x46\xdc\xd7\xb8\xaf\x77\x9f\xe4\x80\x1f\x80\x7c\x90\x54\xd9\x3d\xbb\x71\xfb\x8f\x94\xcc\x44\xbe\x90\x48\x00\x89\x44\x66\x66\xbb\xdd\x3c\x2f\xda\x65\xfa\x32\x3d\x4e\x77\x59\x59\x6d\x8a\xb6\x4d\xdb\x62\x73\xf3\x6c\x5d\xb7\x5d\x91\xa7\x6f\xca\x8e\xbe\x9b\xbb\x72\x59\x24\xc9\xba\xde\x16\x04\xfa\x96\xfe\x92\x3c\x6b\xd7\x8b\x3a\x6b\x72\x8a\x38\xb5\x70\x52\x7c\xd9\x6d\xea\x86\x81\x7e\x91\x50\xb2\x2e\x36\x3b\xce\x43\x7f\x49\x5b\xae\xaa\x79\x59\xd1\xe7\x15\x85\xd2\x77\x55\xd2\xd6\xcb\x32\xdb\xcc\x83\x04\x44\x58\xfa\x1f\xd3\x1f\xab\x3c\xbd\xea\x8a\x5d\xfa\xa2\xdd\x66\x9b\xcd\xab\xac\x45\x96\xae\x48\xb3\xe5\xb2\xee\xab\xee\xc5\x73\x49\x90\xc2\xeb\xbe\xb3\xd2\x2f\xfa\x4e\xe2\xfa\x9d\x45\x7d\xdc\x25\x4d\xb1\x2a\xa9\x63\x0d\x45\x7d\xd0\x60\xb2\x2f\x16\x6d\xd9\x71\xa3\xff\x22\xa1\xe4\xae\x68\xda\xb2\xe6\xf6\xfc\x59\x42\xc9\x2e\x5b\x31\xc0\x25\xfd\x25\x5d\xb1\xdd\x6d\x32\x64\xb8\xd6\x60\xb2\xc9\xaa\x55\x2f\x30\xef\x35\x98\x2c\x9b\x82\x92\xe6\x55\xb1\xa7\xd8\x13\x7c\xa4\xf4\x31\x9b\xcd\x92\x9e\x70\x3a\xdf\x35\xf5\x4d\xb9\x29\xe6\x59\x95\xcf\xb7\x82\xb5\x8f\x14\x9f\x6a\x7c\x4a\xf1\x29\xc7\xa3\x1b\x45\x4e\x08\x9a\x67\xad\xf6\x85\x86\x86\xf0\x95\xb5\x09\x8a\xaa\xb2\xad\xe5\xe6\x60\x52\x6c\xb3\x72\xc3\x83\xf0\x8c\x03\xd4\xf8\xb6\xdd\xd7\x18\xaa\x4b\x0d\x12\x22\xe6\xdd\xfd\xae\x00\x1e\x9e\x5d\x53\x28\x59\x66\xbb\x6e\xb9\xce\xb8\xad\x12\x4a\x08\x68\x57\x13\x42\xea\xe6\x1e\x70\xf6\x91\xd4\xcd\x2a\xab\xca\xbf\x67\x9d\x20\xe9\x22\xf8\x4c\xb6\x65\xd3\xd4\x8c\xdf\x33\x04\x12\xea\xf1\x9c\xcb\xa1\x98\x73\xc2\x44\x50\x0a\xa7\x6c\xcb\x55\x23\xa8\xe4\xc4\x33\x7c\x71\x29\x9c\x76\x53\x37\xb7\x9a\xf0\x9a\x83\x83\xac\xd4\x08\x4d\x8d\xeb\xcf\x2a\x42\xbe\xa6\x9e\xe1\x23\x02\x68\x93\x2c\xdf\x12\x2a\x77\x59\x55\x30\x8e\x8e\xf9\x8b\xf0\x42\x5f\x89\xd2\xd4\xbc\x2d\xba\xae\xac\x56\x8c\xec\x63\x89\x4a\xaf\x34\x2a\x09\xd2\x5c\xdc\x7d\xdd\xbb\xe1\xa4\xf8\xbf\xd2\x67\x7a\x29\x9f\x92\x16\x64\x42\xa2\xcb\xc9\x3d\x69\xe7\x37\x45\x91\x4b\x5f\xda\xf4\x35\x85\x93\x5d\xbf\xd9\x10\xd6\x7e\xeb\x8b\xb6\xe3\x4c\x97\xf4\x4d\xfd\x97\xef\xa4\x6c\x5b\x0a\x50\xf4\x3b\x04\x12\x1a\xba\x6a\x89\xce\x9c\x20\x90\x24\x9f\xda\x22\x6b\x96\xeb\xcf\x89\xfc\xa3\xad\x1c\x60\xda\x3b\x34\xa8\x4c\x48\x4a\x44\x52\x83\x55\x90\x2c\xeb\x9c\x3f\x4e\xe8\x8f\x8a\x2e\xab\xb6\xa3\x19\xf7\x39\xd1\x00\x83\x49\x48\x06\xa0\x2b\x3b\x60\x41\x23\x31\x7d\x5b\x1e\xc1\xf4\x75\xd9\xb4\xdd\xb3\xae\x24\x62\xfd\xd0\x57\x09\xf7\x8f\x66\xdb\x3c\x5f\x18\x13\x7a\x53\x13\x8a\x10\xdd\x50\xff\xce\xee\xaf\xfe\xf9\xfd\x51\x7a\x49\x9c\x68\xd5\x14\x14\x4e\xa9\x0c\xfa\xa3\x3c\x7f\x98\x25\x94\xcb\x6a\x3a\xcd\xba\x6c\x91\xb5\x85\x47\x2b\x27\x0a\x75\xbb\x34\xd0\x38\x73\x35\x70\xb0\xb6\x8b\xfa\x3b\x35\x43\xa8\x0c\x9d\x57\xae\x8c\x73\x9e\x5c\x14\xcf\x4c\x0d\x99\x2f\x37\x05\xc7\x53\x51\xe9\xbb\xf3\xf3\x8b\xd3\x9f\xd3\xa2\x5a\x95\x55\x91\xee\xcb\x6e\x9d\xf6\xdd\xcd\x7f\x9f\xaf\x8a\xaa\x68\x88\xc7\x2d\xcb\x94\xe6\x54\x43\x94\x90\x12\x61\x4b\xe7\x66\x49\xdb\x6e\x68\xee\x03\xbd\x57\x57\xef\xd3\x33\x46\xf1\x2e\xeb\xd6\x68\x48\xb7\x4e\xda\xdf\x36\x8c\x22\x57\xe1\xf5\xba\x48\x41\x65\x00\xaa\x6f\x0c\x1f\x69\xae\x6d\x9c\x25\x45\xd3\xcc\x89\x2d\x75\xf7\x73\xcd\xac\xe5\x0d\x21\xa5\x08\x22\x9d\xaa\xee\xd2\x45\x91\x22\xcf\x2c\x49\xac\xc1\x86\xdd\xe3\xdd\x6e\x53\x2e\x65\xae\xbf\x91\x34\x8f\x68\x96\x20\x8a\xa5\x10\x0e\x88\xb2\xb4\x00\x5d\xc4\x9e\x79\x3e\xa4\x11\x03\x41\xfe\x75\x41\x0c\x70\xdd\xaf\x84\xed\x6d\xea\x3e\xff\x0e\x94\x6a\xad\xf7\x84\x9a\x7e\xa8\xa9\xc1\xc0\x8e\x03\xf0\x55\x1c\x13\xc5\xb1\xd0\x6a\x8a\x6d\x4d\x7c\xc5\x11\x7b\x49\x04\xb5\x2f\x29\x91\x7a\xda\x66\x77\x34\xdf\xba\x3a\xed\xd6\x65\x9b\xe6\x44\x6c\x4b\x2e\x98\xa6\x46\x4f\xe2\x42\xc8\x82\x08\x54\x48\xc3\xe2\xe2\x31\x00\xd4\xb6\x27\x6a\x5a\x53\x61\x2c\x8c\x58\x72\x52\x91\x53\xed\x44\x97\xa8\x1c\xd0\x37\x51\x6e\x4d\x5c\x99\xf9\xe6\x29\x02\xfa\x1d\x96\x4f\xad\xca\x6e\x6e\xa8\x55\x2d\x51\xc5\xdb\x74\xb9\xa9\x89\xa4\x3e\x7e\x78\x4f\x99\xd7\x5d\xb7\x9b\xef\xea\x06\x64\x7c\x7d\x7d\x49\xd3\xa3\xe9\x7c\x6c\x80\x6b\x86\xa9\xfa\xed\x82\xbe\xf6\xeb\x92\x98\x40\x16\x0c\x10\x50\xb1\x61\xf9\x57\xa5\x75\x35\xc3\x58\xf5\xcd\x66\x30\x8c\x54\xa5\xa5\x1c\x68\x1e\x37\xe1\x39\xff\x5c\xf9\x56\xa2\xbb\x2d\x29\x09\x7b\x0c\x2a\x75\xb5\x80\x1c\x22\xda\xaa\x77\x5c\x6e\x40\x5c\x17\x1a\xe1\x29\x0a\xb2\xcb\xa5\x8b\x04\xa3\x54\xa8\x20\x01\x17\xde\x52\x87\x75\x36\x5f\x9d\x11\x1a\x30\xa5\x11\x7b\xd3\xd4\x5b\x8a\x7d\x4d\x7f\x3e\xc2\x37\xff\x8c\xcb\x03\x4c\x96\xe7\xc4\x66\xda\xa3\xf4\xc3\xeb\x93\xf4\xbf\xfc\xe1\xc7\x1f\x67\xe9\xbb\x8e\x27\x04\xd3\xc8\xdf\x78\x6c\x29\x28\xa2\xd4\x81\xd2\xcc\xed\x68\xf8\x1f\x31\x81\x3f\x4a\x5f\x20\xf5\x7f\x14\x5f\x32\x52\x03\x8a\xd9\xb2\xde\xbe\xe2\xc9\xbd\xcd\xba\x59\xc2\x29\x44\x35\x4a\x4e\x57\x45\x95\x53\x40\x05\xb2\xa6\x05\x5c\x47\xd3\x03\xf1\x2c\xca\xc9\x7c\x59\x57\x37\x65\xc3\x1d\xfa\xa5\xcLine truncated
|
||||
|
||||
func confLocaleLocale_enUsIniBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
@@ -787,7 +787,7 @@ func confLocaleLocale_enUsIni() (*asset, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 37166, mode: os.FileMode(420), modTime: time.Unix(1439366355, 0)}
|
||||
info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 37327, mode: os.FileMode(420), modTime: time.Unix(1439374063, 0)}
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
return a, nil
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
@font-face{font-family:octicons;src:url(../fonts/octicons.eot?#iefix&v=345f8bad9c5003db196d08f05e7f030fd2a32ff6)format('embedded-opentype'),url(../fonts/octicons.woff?v=345f8bad9c5003db196d08f05e7f030fd2a32ff6)format('woff'),url(../fonts/octicons.ttf?v=345f8bad9c5003db196d08f05e7f030fd2a32ff6)format('truetype'),url(../fonts/octicons.svg?v=345f8bad9c5003db196d08f05e7f030fd2a32ff6#octicons)format('svg');font-weight:400;font-style:normal}.mega-octicon,.octicon{font:normal normal normal 16px/1 octicons;display:inline-block;text-decoration:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mega-octicon{font-size:32px}.octicon-alert:before{content:'\f02d'}.octicon-alignment-align:before{content:'\f08a'}.octicon-alignment-aligned-to:before{content:'\f08e'}.octicon-alignment-unalign:before{content:'\f08b'}.octicon-arrow-down:before{content:'\f03f'}.octicon-arrow-left:before{content:'\f040'}.octicon-arrow-right:before{content:'\f03e'}.octicon-arrow-small-down:before{content:'\f0a0'}.octicon-arrow-small-left:before{content:'\f0a1'}.octicon-arrow-small-right:before{content:'\f071'}.octicon-arrow-small-up:before{content:'\f09f'}.octicon-arrow-up:before{content:'\f03d'}.octicon-beer:before{content:'\f069'}.octicon-book:before{content:'\f007'}.octicon-bookmark:before{content:'\f07b'}.octicon-briefcase:before{content:'\f0d3'}.octicon-broadcast:before{content:'\f048'}.octicon-browser:before{content:'\f0c5'}.octicon-bug:before{content:'\f091'}.octicon-calendar:before{content:'\f068'}.octicon-check:before{content:'\f03a'}.octicon-checklist:before{content:'\f076'}.octicon-chevron-down:before{content:'\f0a3'}.octicon-chevron-left:before{content:'\f0a4'}.octicon-chevron-right:before{content:'\f078'}.octicon-chevron-up:before{content:'\f0a2'}.octicon-circle-slash:before{content:'\f084'}.octicon-circuit-board:before{content:'\f0d6'}.octicon-clippy:before{content:'\f035'}.octicon-clock:before{content:'\f046'}.octicon-cloud-download:before{content:'\f00b'}.octicon-cloud-upload:before{content:'\f00c'}.octicon-code:before{content:'\f05f'}.octicon-color-mode:before{content:'\f065'}.octicon-comment-add:before,.octicon-comment:before{content:'\f02b'}.octicon-comment-discussion:before{content:'\f04f'}.octicon-credit-card:before{content:'\f045'}.octicon-dash:before{content:'\f0ca'}.octicon-dashboard:before{content:'\f07d'}.octicon-database:before{content:'\f096'}.octicon-device-camera:before{content:'\f056'}.octicon-device-camera-video:before{content:'\f057'}.octicon-device-desktop:before{content:'\f27c'}.octicon-device-mobile:before{content:'\f038'}.octicon-diff:before{content:'\f04d'}.octicon-diff-added:before{content:'\f06b'}.octicon-diff-ignored:before{content:'\f099'}.octicon-diff-modified:before{content:'\f06d'}.octicon-diff-removed:before{content:'\f06c'}.octicon-diff-renamed:before{content:'\f06e'}.octicon-ellipsis:before{content:'\f09a'}.octicon-eye-unwatch:before,.octicon-eye-watch:before,.octicon-eye:before{content:'\f04e'}.octicon-file-binary:before{content:'\f094'}.octicon-file-code:before{content:'\f010'}.octicon-file-directory:before{content:'\f016'}.octicon-file-media:before{content:'\f012'}.octicon-file-pdf:before{content:'\f014'}.octicon-file-submodule:before{content:'\f017'}.octicon-file-symlink-directory:before{content:'\f0b1'}.octicon-file-symlink-file:before{content:'\f0b0'}.octicon-file-text:before{content:'\f011'}.octicon-file-zip:before{content:'\f013'}.octicon-flame:before{content:'\f0d2'}.octicon-fold:before{content:'\f0cc'}.octicon-gear:before{content:'\f02f'}.octicon-gift:before{content:'\f042'}.octicon-gist:before{content:'\f00e'}.octicon-gist-secret:before{content:'\f08c'}.octicon-git-branch-create:before,.octicon-git-branch-delete:before,.octicon-git-branch:before{content:'\f020'}.octicon-git-commit:before{content:'\f01f'}.octicon-git-compare:before{content:'\f0ac'}.octicon-git-merge:before{content:'\f023'}.octicon-git-pull-request-abandoned:before,.octicon-git-pull-request:before{content:'\f009'}.octicon-globe:before{content:'\f0b6'}.octicon-graph:before{content:'\f043'}.octicon-heart:before{content:'\2665'}.octicon-history:before{content:'\f07e'}.octicon-home:before{content:'\f08d'}.octicon-horizontal-rule:before{content:'\f070'}.octicon-hourglass:before{content:'\f09e'}.octicon-hubot:before{content:'\f09d'}.octicon-inbox:before{content:'\f0cf'}.octicon-info:before{content:'\f059'}.octicon-issue-closed:before{content:'\f028'}.octicon-issue-opened:before{content:'\f026'}.octicon-issue-reopened:before{content:'\f027'}.octicon-jersey:before{content:'\f019'}.octicon-jump-down:before{content:'\f072'}.octicon-jump-left:before{content:'\f0a5'}.octicon-jump-right:before{content:'\f0a6'}.octicon-jump-up:before{content:'\f073'}.octicon-key:before{content:'\f049'}.octicon-keyboard:before{content:'\f00d'}.octicon-law:before{content:'\f0d8'}.octicon-light-bulb:before{content:'\f000'}.octicoLine truncated
|
||||
@font-face{font-family:octicons;src:url(../fonts/octicons.eot?#iefix&v=345f8bad9c5003db196d08f05e7f030fd2a32ff6)format('embedded-opentype'),url(../fonts/octicons.woff?v=345f8bad9c5003db196d08f05e7f030fd2a32ff6)format('woff'),url(../fonts/octicons.ttf?v=345f8bad9c5003db196d08f05e7f030fd2a32ff6)format('truetype'),url(../fonts/octicons.svg?v=345f8bad9c5003db196d08f05e7f030fd2a32ff6#octicons)format('svg');font-weight:400;font-style:normal}.mega-octicon,.octicon{font:normal normal normal 16px/1 octicons;display:inline-block;text-decoration:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mega-octicon{font-size:32px}.octicon-alert:before{content:'\f02d'}.octicon-alignment-align:before{content:'\f08a'}.octicon-alignment-aligned-to:before{content:'\f08e'}.octicon-alignment-unalign:before{content:'\f08b'}.octicon-arrow-down:before{content:'\f03f'}.octicon-arrow-left:before{content:'\f040'}.octicon-arrow-right:before{content:'\f03e'}.octicon-arrow-small-down:before{content:'\f0a0'}.octicon-arrow-small-left:before{content:'\f0a1'}.octicon-arrow-small-right:before{content:'\f071'}.octicon-arrow-small-up:before{content:'\f09f'}.octicon-arrow-up:before{content:'\f03d'}.octicon-beer:before{content:'\f069'}.octicon-book:before{content:'\f007'}.octicon-bookmark:before{content:'\f07b'}.octicon-briefcase:before{content:'\f0d3'}.octicon-broadcast:before{content:'\f048'}.octicon-browser:before{content:'\f0c5'}.octicon-bug:before{content:'\f091'}.octicon-calendar:before{content:'\f068'}.octicon-check:before{content:'\f03a'}.octicon-checklist:before{content:'\f076'}.octicon-chevron-down:before{content:'\f0a3'}.octicon-chevron-left:before{content:'\f0a4'}.octicon-chevron-right:before{content:'\f078'}.octicon-chevron-up:before{content:'\f0a2'}.octicon-circle-slash:before{content:'\f084'}.octicon-circuit-board:before{content:'\f0d6'}.octicon-clippy:before{content:'\f035'}.octicon-clock:before{content:'\f046'}.octicon-cloud-download:before{content:'\f00b'}.octicon-cloud-upload:before{content:'\f00c'}.octicon-code:before{content:'\f05f'}.octicon-color-mode:before{content:'\f065'}.octicon-comment-add:before,.octicon-comment:before{content:'\f02b'}.octicon-comment-discussion:before{content:'\f04f'}.octicon-credit-card:before{content:'\f045'}.octicon-dash:before{content:'\f0ca'}.octicon-dashboard:before{content:'\f07d'}.octicon-database:before{content:'\f096'}.octicon-device-camera:before{content:'\f056'}.octicon-device-camera-video:before{content:'\f057'}.octicon-device-desktop:before{content:'\f27c'}.octicon-device-mobile:before{content:'\f038'}.octicon-diff:before{content:'\f04d'}.octicon-diff-added:before{content:'\f06b'}.octicon-diff-ignored:before{content:'\f099'}.octicon-diff-modified:before{content:'\f06d'}.octicon-diff-removed:before{content:'\f06c'}.octicon-diff-renamed:before{content:'\f06e'}.octicon-ellipsis:before{content:'\f09a'}.octicon-eye-unwatch:before,.octicon-eye-watch:before,.octicon-eye:before{content:'\f04e'}.octicon-file-binary:before{content:'\f094'}.octicon-file-code:before{content:'\f010'}.octicon-file-directory:before{content:'\f016'}.octicon-file-media:before{content:'\f012'}.octicon-file-pdf:before{content:'\f014'}.octicon-file-submodule:before{content:'\f017'}.octicon-file-symlink-directory:before{content:'\f0b1'}.octicon-file-symlink-file:before{content:'\f0b0'}.octicon-file-text:before{content:'\f011'}.octicon-file-zip:before{content:'\f013'}.octicon-flame:before{content:'\f0d2'}.octicon-fold:before{content:'\f0cc'}.octicon-gear:before{content:'\f02f'}.octicon-gift:before{content:'\f042'}.octicon-gist:before{content:'\f00e'}.octicon-gist-secret:before{content:'\f08c'}.octicon-git-branch-create:before,.octicon-git-branch-delete:before,.octicon-git-branch:before{content:'\f020'}.octicon-git-commit:before{content:'\f01f'}.octicon-git-compare:before{content:'\f0ac'}.octicon-git-merge:before{content:'\f023'}.octicon-git-pull-request-abandoned:before,.octicon-git-pull-request:before{content:'\f009'}.octicon-globe:before{content:'\f0b6'}.octicon-graph:before{content:'\f043'}.octicon-heart:before{content:'\2665'}.octicon-history:before{content:'\f07e'}.octicon-home:before{content:'\f08d'}.octicon-horizontal-rule:before{content:'\f070'}.octicon-hourglass:before{content:'\f09e'}.octicon-hubot:before{content:'\f09d'}.octicon-inbox:before{content:'\f0cf'}.octicon-info:before{content:'\f059'}.octicon-issue-closed:before{content:'\f028'}.octicon-issue-opened:before{content:'\f026'}.octicon-issue-reopened:before{content:'\f027'}.octicon-jersey:before{content:'\f019'}.octicon-jump-down:before{content:'\f072'}.octicon-jump-left:before{content:'\f0a5'}.octicon-jump-right:before{content:'\f0a6'}.octicon-jump-up:before{content:'\f073'}.octicon-key:before{content:'\f049'}.octicon-keyboard:before{content:'\f00d'}.octicon-law:before{content:'\f0d8'}.octicon-light-bulb:before{content:'\f000'}.octicoLine truncated
|
||||
@@ -121,8 +121,10 @@
|
||||
@comment-avatar-width: 3em;
|
||||
&.new.issue {
|
||||
.comment.form {
|
||||
.comment .avatar {
|
||||
width: @comment-avatar-width;
|
||||
.comment {
|
||||
.avatar {
|
||||
width: @comment-avatar-width;
|
||||
}
|
||||
}
|
||||
.content {
|
||||
margin-left: 4em;
|
||||
@@ -137,6 +139,7 @@
|
||||
overflow-x: auto;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
&.view.issue {
|
||||
@@ -187,13 +190,31 @@
|
||||
.markdown {
|
||||
font-size: 14px;
|
||||
}
|
||||
.bottom.segment {
|
||||
.no-content {
|
||||
color: #767676;
|
||||
font-style: italic;
|
||||
}
|
||||
> .bottom.segment {
|
||||
background: #f3f4f5;
|
||||
.ui.image {
|
||||
max-height: 150px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ui.form {
|
||||
.field:first-child {
|
||||
clear: none;
|
||||
}
|
||||
.tab.segment {
|
||||
border: none;
|
||||
padding: 0;
|
||||
padding-top: 10px;
|
||||
}
|
||||
textarea {
|
||||
height: 200px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.ui.segment.metas {
|
||||
@@ -203,7 +224,7 @@
|
||||
.comment.form {
|
||||
.ui.comments {
|
||||
margin-top: -12px;
|
||||
max-width: 750px!important;
|
||||
max-width: 100%;
|
||||
}
|
||||
.content {
|
||||
.field:first-child {
|
||||
@@ -218,15 +239,6 @@
|
||||
height: 200px;
|
||||
}
|
||||
}
|
||||
.dropzone {
|
||||
width: 100%;
|
||||
margin-bottom: 10px;
|
||||
border: 2px dashed #0087F7;
|
||||
box-shadow: none;
|
||||
.dz-error-message {
|
||||
top: 140px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.label.list {
|
||||
@@ -352,6 +364,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
.ui.comments {
|
||||
.dropzone {
|
||||
width: 100%;
|
||||
margin-bottom: 10px;
|
||||
border: 2px dashed #0087F7;
|
||||
box-shadow: none!important;
|
||||
.dz-error-message {
|
||||
top: 140px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.settings .key.list {
|
||||
.item:not(:first-child) {
|
||||
border-top: 1px solid #eaeaea;
|
||||
|
||||
@@ -441,11 +441,11 @@ func ViewIssue(ctx *middleware.Context) {
|
||||
}
|
||||
|
||||
if ctx.IsSigned {
|
||||
// // Update issue-user.
|
||||
// if err = models.UpdateIssueUserPairByRead(ctx.User.Id, issue.ID); err != nil {
|
||||
// ctx.Handle(500, "UpdateIssueUserPairByRead: %v", err)
|
||||
// return
|
||||
// }
|
||||
// Update issue-user.
|
||||
if err = issue.ReadBy(ctx.User.Id); err != nil {
|
||||
ctx.Handle(500, "ReadBy: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
if ctx.User.IsAdmin {
|
||||
// labels, err := models.GetLabelsByRepoID(ctx.Repo.Repository.ID)
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<div class="field">
|
||||
<div class="ui top attached tabular menu">
|
||||
<a class="active item" data-tab="write">{{.i18n.Tr "repo.release.write"}}</a>
|
||||
<a class="item" data-tab="preview" data-url="/api/v1/markdown" data-context="{{.RepoLink}}">{{.i18n.Tr "repo.release.preview"}}</a>
|
||||
</div>
|
||||
<div class="ui bottom attached active tab segment" data-tab="write">
|
||||
<textarea name="content"></textarea>
|
||||
</div>
|
||||
<div class="ui bottom attached tab segment markdown" data-tab="preview">
|
||||
{{.i18n.Tr "repo.release.loading"}}
|
||||
</div>
|
||||
</div>
|
||||
{{if .IsAttachmentEnabled}}
|
||||
<div class="attachments"></div>
|
||||
<div class="ui basic button dropzone" id="dropzone" data-upload-url="/issues/attachments" data-accepts="{{.AttachmentAllowedTypes}}" data-max-file="{{.AttachmentMaxFiles}}" data-max-size="2" data-default-message="{{.i18n.Tr "dropzone.default_message"}}" data-invalid-input-type="{{.i18n.Tr "dropzone.invalid_input_type"}}" data-file-too-big="{{.i18n.Tr "dropzone.file_too_big"}}" data-remove-file="{{.i18n.Tr "dropzone.remove_file"}}"></div>
|
||||
{{end}}
|
||||
@@ -15,22 +15,7 @@
|
||||
<div class="field">
|
||||
<input name="title" placeholder="{{.i18n.Tr "repo.milestones.title"}}" value="{{.title}}" autofocus required>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="ui top attached tabular menu">
|
||||
<a class="active item" data-tab="write">{{.i18n.Tr "repo.release.write"}}</a>
|
||||
<a class="item" data-tab="preview" data-url="/api/v1/markdown" data-context="{{.RepoLink}}">{{.i18n.Tr "repo.release.preview"}}</a>
|
||||
</div>
|
||||
<div class="ui bottom attached active tab segment" data-tab="write">
|
||||
<textarea name="content"></textarea>
|
||||
</div>
|
||||
<div class="ui bottom attached tab segment markdown" data-tab="preview">
|
||||
{{.i18n.Tr "repo.release.loading"}}
|
||||
</div>
|
||||
</div>
|
||||
{{if .IsAttachmentEnabled}}
|
||||
<div class="attachments"></div>
|
||||
<div class="ui basic button dropzone" id="dropzone" data-upload-url="/issues/attachments" data-accepts="{{.AttachmentAllowedTypes}}" data-max-file="{{.AttachmentMaxFiles}}" data-max-size="2" data-default-message="{{.i18n.Tr "dropzone.default_message"}}" data-invalid-input-type="{{.i18n.Tr "dropzone.invalid_input_type"}}" data-file-too-big="{{.i18n.Tr "dropzone.file_too_big"}}" data-remove-file="{{.i18n.Tr "dropzone.remove_file"}}"></div>
|
||||
{{end}}
|
||||
{{template "repo/issue/comment_tab" .}}
|
||||
<div class="text right">
|
||||
<button class="ui green button">
|
||||
{{.i18n.Tr "repo.issues.create"}}
|
||||
|
||||
@@ -32,19 +32,42 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui attached segment markdown">
|
||||
{{if .Issue.RenderedContent}}
|
||||
{{.Issue.RenderedContent|Str2html}}
|
||||
{{else}}
|
||||
<span class="no-content">{{.i18n.Tr "repo.issues.no_content"}}</span>
|
||||
{{end}}
|
||||
</div>
|
||||
{{if .Issue.Attachments}}
|
||||
<div class="ui bottom attached segment">
|
||||
<div class="ui small images">
|
||||
{{range .Issue.Attachments}}
|
||||
<a href="/attachments/{{.UUID}}"><img class="ui image" src="/attachments/{{.UUID}}"></a>
|
||||
<a target="_blank" href="/attachments/{{.UUID}}"><img class="ui image" src="/attachments/{{.UUID}}"></a>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="comment form">
|
||||
<a class="avatar" href="{{.SignedUser.HomeLink}}">
|
||||
<img src="{{.SignedUser.AvatarLink}}">
|
||||
</a>
|
||||
<div class="content">
|
||||
<form class="ui segment form" action="{{.Link}}" method="post">
|
||||
{{template "repo/issue/comment_tab" .}}
|
||||
<div class="text right">
|
||||
<div class="ui red basic button" data-close="{{.i18n.Tr "repo.issues.close_issue"}}" data-close-and-comment="{{.i18n.Tr "repo.issues.close_comment_issue"}}">
|
||||
{{.i18n.Tr "repo.issues.close_issue"}}
|
||||
</div>
|
||||
<div class="ui green button">
|
||||
{{.i18n.Tr "repo.issues.create_comment"}}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</ui>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user