##// END OF EJS Templates
templates: use string content when possible
super-admin -
r5044:4c5924a0 default
parent child Browse files
Show More
@@ -97,7 +97,7 b''
97 -->
97 -->
98 <div class="code-body textarea text-area editor">
98 <div class="code-body textarea text-area editor">
99 %if renderer:
99 %if renderer:
100 ${h.render(gist_file.content, renderer=renderer)}
100 ${h.render(gist_file.str_content, renderer=renderer)}
101 %else:
101 %else:
102 ${h.pygmentize(gist_file,linenos=True,anchorlinenos=True,lineanchors='L',cssclass="code-highlight")}
102 ${h.pygmentize(gist_file,linenos=True,anchorlinenos=True,lineanchors='L',cssclass="code-highlight")}
103 %endif
103 %endif
@@ -1,4 +1,3 b''
1 ## -*- coding: utf-8 -*-
2 ##usage:
1 ##usage:
3 ## <%namespace name="diff_block" file="/changeset/diff_block.mako"/>
2 ## <%namespace name="diff_block" file="/changeset/diff_block.mako"/>
4 ## ${diff_block.diff_block_changeset_table(change)}
3 ## ${diff_block.diff_block_changeset_table(change)}
@@ -16,7 +15,7 b''
16 <div id="${h.FID('',filenode_path)}_target" ></div>
15 <div id="${h.FID('',filenode_path)}_target" ></div>
17 <div id="${h.FID('',filenode_path)}" class="diffblock margined comm">
16 <div id="${h.FID('',filenode_path)}" class="diffblock margined comm">
18 <div class="code-body">
17 <div class="code-body">
19 <div class="full_f_path" path="${h.safe_unicode(filenode_path)}" style="display: none"></div>
18 <div class="full_f_path" path="${h.safe_str(filenode_path)}" style="display: none"></div>
20 ${diff|n}
19 ${diff|n}
21 % if file_data["is_limited_diff"]:
20 % if file_data["is_limited_diff"]:
22 % if file_data["exceeds_limit"]:
21 % if file_data["exceeds_limit"]:
@@ -37,7 +36,7 b''
37 <div id="${h.FID('',filenode_path)}_target" ></div>
36 <div id="${h.FID('',filenode_path)}_target" ></div>
38 <div id="${h.FID('',filenode_path)}" class="diffblock margined comm" >
37 <div id="${h.FID('',filenode_path)}" class="diffblock margined comm" >
39 <div class="code-body">
38 <div class="code-body">
40 <div class="full_f_path" path="${h.safe_unicode(filenode_path)}" style="display: none;"></div>
39 <div class="full_f_path" path="${h.safe_str(filenode_path)}" style="display: none;"></div>
41 ${diff|n}
40 ${diff|n}
42 % if file_data["is_limited_diff"]:
41 % if file_data["is_limited_diff"]:
43 % if file_data["exceeds_limit"]:
42 % if file_data["exceeds_limit"]:
@@ -71,7 +71,7 b''
71
71
72 <div id="editor_container">
72 <div id="editor_container">
73 <pre id="editor_pre"></pre>
73 <pre id="editor_pre"></pre>
74 <textarea id="editor" name="content" >${h.escape(c.file.content)|n}</textarea>
74 <textarea id="editor" name="content" >${h.escape(c.file.str_content)|n}</textarea>
75 <div id="editor_preview" ></div>
75 <div id="editor_preview" ></div>
76 </div>
76 </div>
77 </div>
77 </div>
@@ -146,7 +146,7 b''
146 'standard': h.route_path('repo_files',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path),
146 'standard': h.route_path('repo_files',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path),
147 }
147 }
148 %>
148 %>
149 ${h.render(c.file.content, renderer=c.renderer, relative_urls=relative_urls)}
149 ${h.render(c.file.str_content, renderer=c.renderer, relative_urls=relative_urls)}
150 %else:
150 %else:
151 <table class="cb codehilite">
151 <table class="cb codehilite">
152 %if c.annotate:
152 %if c.annotate:
General Comments 0
You need to be logged in to leave comments. Login now