at样式问题
This commit is contained in:
parent
da5709e3f0
commit
4ce9eb428e
|
@ -156,6 +156,13 @@ class Issue < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# at 功能添加消息提醒
|
||||||
|
def act_as_at_message
|
||||||
|
users = self.description.scan /<span class="at" data-user-id="(\d+?)">/m
|
||||||
|
### xxx 在 xxx 中at了你
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
# 更新缺陷
|
# 更新缺陷
|
||||||
#def act_as_forge_message_update
|
#def act_as_forge_message_update
|
||||||
# unless self.author_id == self.assigned_to_id
|
# unless self.author_id == self.assigned_to_id
|
||||||
|
|
|
@ -34,7 +34,7 @@ var enableAt = function(_editor) {
|
||||||
var at_config = {
|
var at_config = {
|
||||||
at: "@",
|
at: "@",
|
||||||
data: names,
|
data: names,
|
||||||
insertTpl: '@${name}(${login})',
|
insertTpl: '<span class="at" data-user-id="${userid}">@${name}(${login})</span>',
|
||||||
displayTpl: "<li>${name} <small>${login}</small></li>",
|
displayTpl: "<li>${name} <small>${login}</small></li>",
|
||||||
searchKey: 'searchKey',
|
searchKey: 'searchKey',
|
||||||
limit: 200
|
limit: 200
|
||||||
|
|
|
@ -47,3 +47,4 @@
|
||||||
color: #777;
|
color: #777;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -282,7 +282,7 @@ K.options = {
|
||||||
font : ['id', 'class', 'color', 'size', 'face', '.background-color'],
|
font : ['id', 'class', 'color', 'size', 'face', '.background-color'],
|
||||||
span : [
|
span : [
|
||||||
'id', 'class', '.color', '.background-color', '.font-size', '.font-family', '.background',
|
'id', 'class', '.color', '.background-color', '.font-size', '.font-family', '.background',
|
||||||
'.font-weight', '.font-style', '.text-decoration', '.vertical-align', '.line-height'
|
'.font-weight', '.font-style', '.text-decoration', '.vertical-align', '.line-height', 'data-user-id'
|
||||||
],
|
],
|
||||||
div : [
|
div : [
|
||||||
'id', 'class', 'align', '.border', '.margin', '.padding', '.text-align', '.color',
|
'id', 'class', 'align', '.border', '.margin', '.padding', '.text-align', '.color',
|
||||||
|
|
|
@ -44,4 +44,5 @@
|
||||||
.ke-content div.ref .ref_body {margin:0;padding:2px;line-height:20px;color:#666;font-size:9pt;}
|
.ke-content div.ref .ref_body {margin:0;padding:2px;line-height:20px;color:#666;font-size:9pt;}
|
||||||
|
|
||||||
|
|
||||||
.ke-content blockquote {margin:15px 10px;border:2px solid #eee;padding:5px 5px 5px 35px;background:#f4f5f7 url('../img/blockquote.gif') no-repeat left top;color:#060;font-size:9pt;}
|
.ke-content blockquote {margin:15px 10px;border:2px solid #eee;padding:5px 5px 5px 35px;background:#f4f5f7 url('../img/blockquote.gif') no-repeat left top;color:#060;font-size:9pt;}
|
||||||
|
span.at {color:#269ac9;}
|
|
@ -912,3 +912,5 @@ a.resourcesTypeUser {background:url(images/homepage_icon.png) -178px -453px no-r
|
||||||
.list_style ol li{list-style-type: decimal;margin-left: 20px;}
|
.list_style ol li{list-style-type: decimal;margin-left: 20px;}
|
||||||
.list_style ul li{list-style-type: disc;margin-left: 20px;}
|
.list_style ul li{list-style-type: disc;margin-left: 20px;}
|
||||||
|
|
||||||
|
/* @功能 定义 */
|
||||||
|
span.at {color:#269ac9;}
|
Loading…
Reference in New Issue