Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
marcink
- Thu, 08 Dec 2011 01:36:13
Show More
rhodecode/lib/helpers.py
0
+9
0
@@
-717,3
+717,12
b' def urlify_text(text):'
717
def rst ( source ):
717
def rst ( source ):
718
return literal ( '<div class="rst-block"> %s </div>' %
718
return literal ( '<div class="rst-block"> %s </div>' %
719
MarkupRenderer . rst ( source ))
719
MarkupRenderer . rst ( source ))
720
721
def rst_w_mentions ( source ):
722
"""
723
Wrapped rst renderer with @mention highlighting
724
725
:param source:
726
"""
727
return literal ( '<div class="rst-block"> %s </div>' %
728
MarkupRenderer . rst_with_mentions ( source ))
rhodecode/lib/markup_renderer.py
0
+10
0
@@
-127,3
+127,13
b' class MarkupRenderer(object):'
127
log . warning ( 'Install docutils to use this function' )
127
log . warning ( 'Install docutils to use this function' )
128
return cls . plain ( source )
128
return cls . plain ( source )
129
129
130
@classmethod
131
def rst_with_mentions ( cls , source ):
132
mention_pat = re . compile ( r '(?:^@|\s@)(\w+)' )
133
134
def wrapp ( match_obj ):
135
uname = match_obj . groups ()[ 0 ]
136
return ' **@ %(uname)s ** ' % { 'uname' : uname }
137
mention_hl = mention_pat . sub ( wrapp , source ) . strip ()
138
return cls . rst ( mention_hl )
139
rhodecode/model/notification.py
0
+1
-1
@@
-104,7
+104,7
b' class NotificationModel(BaseModel):'
104
email_subject = NotificationModel () . make_description ( notif , False )
104
email_subject = NotificationModel () . make_description ( notif , False )
105
type_ = type_
105
type_ = type_
106
email_body = body
106
email_body = body
107
kwargs = { 'subject' : subject , 'body' : h . rst ( body )}
107
kwargs = { 'subject' : subject , 'body' : h . rst_w_mentions ( body )}
108
kwargs . update ( email_kwargs )
108
kwargs . update ( email_kwargs )
109
email_body_html = EmailNotificationModel () \
109
email_body_html = EmailNotificationModel () \
110
. get_email_tmpl ( type_ , ** kwargs )
110
. get_email_tmpl ( type_ , ** kwargs )
rhodecode/templates/admin/notifications/show_notification.html
0
+1
-1
@@
-39,7
+39,7
b''
39
< span id = "${c.notification.notification_id}" class = "delete-notification delete_icon action" ></ span >
39
< span id = "${c.notification.notification_id}" class = "delete-notification delete_icon action" ></ span >
40
</ div >
40
</ div >
41
</ div >
41
</ div >
42
< div > ${h.rst(c.notification.body)} </ div >
42
< div > ${h.rst_w_mentions (c.notification.body)} </ div >
43
</ div >
43
</ div >
44
</ div >
44
</ div >
45
</ div >
45
</ div >
rhodecode/templates/changeset/changeset_file_comment.html
0
+1
-1
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages