Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
fae47c33
Commit
fae47c33
authored
Oct 04, 2012
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 796072: Make admin/table.html.tmpl a bit faster
r=dkl a=LpSolit
parent
21fd6817
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
30 deletions
+15
-30
table.html.tmpl
template/en/default/admin/table.html.tmpl
+14
-29
filterexceptions.pl
template/en/default/filterexceptions.pl
+1
-1
No files found.
template/en/default/admin/table.html.tmpl
View file @
fae47c33
...
...
@@ -125,41 +125,26 @@
[% IF class %] class="[% class FILTER html %]" [% END %]>
[% IF contentlink %]
[% link_uri = contentlink %]
[% WHILE link_uri.search('%%(.+?)%%')%]
[% FOREACH m = link_uri.match('%%(.+?)%%') %]
[% IF row.$m.defined %]
[% replacement_value = FILTER uri; row.$m; END %]
[% ELSE %]
[% replacement_value = "" %]
[% END %]
[% link_uri = link_uri.replace("%%$m%%", replacement_value) %]
[% END %]
[% FOREACH m = contentlink.match('%%(.+?)%%', 1) %]
[% replacement_value = FILTER uri; row.$m; END %]
[% contentlink = contentlink.replace("%%$m%%", replacement_value) %]
[% END %]
<a href="[%
link_uri
%]">
<a href="[%
contentlink
%]">
[% END %]
[% IF content_use_field %]
[% colname = row.${c.name} %]
[% field_descs.${colname} FILTER html %]
[% colname = row.${c.name} %]
[% field_descs.${colname} FILTER html %]
[% ELSIF content %]
[% content FILTER html_light %]
[% content FILTER html_light %]
[% ELSIF yesno_field %]
[% row.${c.name} ? "Yes" : "No" %]
[% ELSIF allow_html_content %]
[% row.${c.name} FILTER html_light %]
[% ELSE %]
[% IF yesno_field %]
[% IF row.${c.name} %]
Yes
[% ELSE %]
No
[% END %]
[% ELSE %]
[% IF allow_html_content %]
[% row.${c.name} FILTER html_light %]
[% ELSE %]
[% row.${c.name} FILTER html %]
[% END %]
[% END %]
[% row.${c.name} FILTER html %]
[% END %]
[% IF contentlink %]
</a>
[% END %]
...
...
template/en/default/filterexceptions.pl
View file @
fae47c33
...
...
@@ -348,7 +348,7 @@
],
'admin/table.html.tmpl'
=>
[
'
link_uri
'
'
contentlink
'
],
'admin/custom_fields/cf-js.js.tmpl'
=>
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment