|
2 | 2 | <#assign el=args.htmlid?js_string>
|
3 | 3 | <script type="text/javascript">//<![CDATA[
|
4 | 4 | new Extras.dashlet.AuditApplication("${el}").setOptions(
|
5 |
| - { |
6 |
| - "componentId": "${instance.object.id}", |
7 |
| - "application": "${args.application!''}", |
8 |
| - "valueFilter": "${args.valueFilter!''}", |
9 |
| - "limit": "${args.limit!''}", |
10 |
| - "rowsPerPage" : "${args.rowsPerPage!'10'}", |
11 |
| - "additionalQueryParams" : "${args.additionalQueryParams!''}", |
12 |
| - "show_id_column" : "${args.show_id_column!'show'}", |
13 |
| - "show_user_column" : "${args.show_user_column!'show'}", |
14 |
| - "show_time_column" : "${args.show_time_column!'show'}", |
15 |
| - "show_values_column" : "${args.show_values_column!'show'}" |
16 |
| - }).setMessages(${messages}); |
| 5 | + { |
| 6 | + "componentId": "${instance.object.id}", |
| 7 | + "application": "${args.application!''}", |
| 8 | + "valueFilter": "${args.valueFilter!''}", |
| 9 | + "limit": "${args.limit!''}", |
| 10 | + "rowsPerPage" : "${args.rowsPerPage!'10'}", |
| 11 | + "additionalQueryParams" : "${args.additionalQueryParams!''}", |
| 12 | + "show_id_column" : "${args.show_id_column!'show'}", |
| 13 | + "show_user_column" : "${args.show_user_column!'show'}", |
| 14 | + "show_time_column" : "${args.show_time_column!'show'}", |
| 15 | + "show_values_column" : "${args.show_values_column!'show'}" |
| 16 | + }).setMessages(${messages}); |
17 | 17 |
|
18 |
| - <#-- dashlet resizer does not dynamically adjust the number of rows displayed on the page re: pagination --> |
19 |
| - <#-- the number of rows can be configured in the dialog though, sufficient for now --> |
20 |
| - <#-- future research : subscribe to rowsPerPageChange, "" etc... --> |
21 |
| - new Alfresco.widget.DashletResizer("${el}", "${instance.object.id}").setOptions( |
22 |
| - { |
23 |
| - <#-- IE (as usual) needs apparently a default height, otherwise resizing may not work in some situations --> |
24 |
| - "minDashletHeight": ${default_height} |
25 |
| - }); |
| 18 | + <#-- dashlet resizer does not dynamically adjust the number of rows displayed on the page re: pagination --> |
| 19 | + <#-- the number of rows can be configured in the dialog though, sufficient for now --> |
| 20 | + <#-- future research : subscribe to rowsPerPageChange, "" etc... --> |
| 21 | + new Alfresco.widget.DashletResizer("${el}", "${instance.object.id}").setOptions( |
| 22 | + { |
| 23 | + <#-- IE (as usual) needs apparently a default height, otherwise resizing may not work in some situations --> |
| 24 | + "minDashletHeight": ${default_height} |
| 25 | + }); |
26 | 26 |
|
27 | 27 | //]]></script>
|
28 | 28 |
|
|
31 | 31 | <div class="refresh"><a id="${el}-refresh" href="#"> </a></div>
|
32 | 32 |
|
33 | 33 |
|
34 |
| - <div class="toolbar yui-toolbar" id="${el}-toolbar"> |
35 |
| - <div class="links spaced-height" id="${el}-links"> |
36 |
| - <#-- ie7 float bug : the align-right floated element must be declared before the non-floated (left) one... --> |
37 |
| - <span class="custom-align-right"> |
38 |
| - <a class="theme-color-1" href="${msg("audit.dashlet.link.help.url")}" id="${el}-help-link" target="_blank">${msg("audit.dashlet.link.help")}</a> |
39 |
| - </span> |
| 34 | + <div class="toolbar yui-toolbar" id="${el}-toolbar"> |
| 35 | + <div class="links spaced-height" id="${el}-links"> |
| 36 | + <#-- ie7 float bug : the align-right floated element must be declared before the non-floated (left) one... --> |
| 37 | + <span class="custom-align-right"> |
| 38 | + <a class="theme-color-1" href="${msg("audit.dashlet.link.help.url")}" id="${el}-help-link" target="_blank">${msg("audit.dashlet.link.help")}</a> |
| 39 | + </span> |
40 | 40 |
|
41 |
| - <#if userHasConfigPermission && userIsAdmin> |
42 |
| - <#-- for some reason, ie6 ignores the inherited left padding of the link -- wrap in a specific span if on ie6 --> |
43 |
| - <!--[if IE 6]> <span class="spaced-left"> <![endif]--> |
44 |
| - <span> |
45 |
| - <a class="theme-color-1" href="#" id="${el}-configure-link">${msg("audit.dashlet.link.configure")}</a> |
46 |
| - </span> |
47 |
| - <!--[if IE 6]> </span> <![endif]--> |
48 |
| - </#if> |
49 |
| - </div> |
50 |
| - </div> |
| 41 | + <#if userHasConfigPermission && userIsAdmin> |
| 42 | + <#-- for some reason, ie6 ignores the inherited left padding of the link -- wrap in a specific span if on ie6 --> |
| 43 | + <!--[if IE 6]> <span class="spaced-left"> <![endif]--> |
| 44 | + <span> |
| 45 | + <a class="theme-color-1" href="#" id="${el}-configure-link">${msg("audit.dashlet.link.configure")}</a> |
| 46 | + </span> |
| 47 | + <!--[if IE 6]> </span> <![endif]--> |
| 48 | + </#if> |
| 49 | + </div> |
| 50 | + </div> |
51 | 51 |
|
52 |
| - <#-- audit only allows admin to query audit entries. therefore the dashlet is only usable by admin users. --> |
53 |
| - <#if userIsAdmin> |
54 |
| - <#assign currentHeight=default_height> |
55 |
| - <#if args.height??><#assign currentHeight=args.height></#if> |
56 |
| - <div class="body" style="height: ${currentHeight}px;" id="${el}-body"> |
57 |
| - <div class="message spaced-left" id="${el}-message"></div> |
| 52 | + <#-- audit only allows admin to query audit entries. therefore the dashlet is only usable by admin users. --> |
| 53 | + <#if userIsAdmin> |
| 54 | + <#assign currentHeight=default_height> |
| 55 | + <#if args.height??><#assign currentHeight=args.height></#if> |
| 56 | + <div class="body" style="height: ${currentHeight}px;" id="${el}-body"> |
| 57 | + <div class="message spaced-left" id="${el}-message"></div> |
58 | 58 |
|
59 |
| - <div class="spaced-left" id="${el}-searchbox"> |
60 |
| - <#-- search box to filter audit values from YUI --> |
61 |
| - <label id="${el}-searchWithinResultsFilterLabel" for="${el}-searchWithinResultsFilter">${msg("audit.dashlet.searchWithinResults",0)} :</label> |
62 |
| - <input type="text" id="${el}-searchWithinResultsFilter"> |
63 |
| - </div> |
| 59 | + <div class="spaced-left" id="${el}-searchbox"> |
| 60 | + <#-- search box to filter audit values from YUI --> |
| 61 | + <label id="${el}-searchWithinResultsFilterLabel" for="${el}-searchWithinResultsFilter">${msg("audit.dashlet.searchWithinResults",0)} :</label> |
| 62 | + <input type="text" id="${el}-searchWithinResultsFilter"> |
| 63 | + </div> |
64 | 64 |
|
65 |
| - <div class="entries custom-scrollable-list" id="${el}-entries"></div> |
66 |
| - </div> |
67 |
| - |
68 |
| - <#else> |
69 |
| - <div class="body spaced-left" id="${el}-body"> |
70 |
| - ${msg("audit.dashlet.adminPrivilegesRequired")} |
71 |
| - </div> |
72 |
| - </#if> |
| 65 | + <div class="entries custom-scrollable-list" id="${el}-entries"></div> |
| 66 | + </div> |
| 67 | + <#else> |
| 68 | + <div class="body spaced-left" id="${el}-body"> |
| 69 | + ${msg("audit.dashlet.adminPrivilegesRequired")} |
| 70 | + </div> |
| 71 | + </#if> |
73 | 72 | </div>
|
0 commit comments