Skip to content

Commit 4e47d00

Browse files
committed
better IE support, some css cleanup, some UI label changes, and updated YUI compressor to 2.4.7
git-svn-id: https://share-extras.googlecode.com/svn/trunk/Sandbox/Audit Dashlet@794 a3f5c567-fd0f-3a89-9b71-a290c5a5f590
1 parent 587a2ac commit 4e47d00

14 files changed

+66
-36
lines changed

README.txt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,22 @@ of the dashboard and drag the dashlet into one of the columns from the list of d
5858
For convenience, the list will pop out when opening the configure dialog with no applications currently configured.
5959
Could be useful if you don't know what application name to search for.
6060

61-
The number of data rows (audit events) per page is configurable by the 'Entries per page' parameter.
61+
The number of data rows (audit events) displayed per page is configurable by the 'Entries per page' parameter.
6262

6363
Additional server side filters are configurable :
6464
UI Name Description Audit API corresponding parameter
6565
-----------------------------------------------------------------------------------------------------------
66-
- value filter filter on the audit value (exact match,optional) 'value'
66+
- value filter filter on the audit value (exact match, optional) 'value'
6767
- limit maximum number of audit entries retrieved (optional) 'limit' (default 100)
6868
- Additional Query params other possible query parameters (optional) from/to time, from/to id, user
6969

7070
(See http://wiki.alfresco.com/wiki/Auditing_(from_V3.4)#Advanced_Query). This filtering is done server-side.
7171

7272
The columns to display are also configurable (show/hide).
7373

74+
Note : the output in the "audited values" field will depend on the configuration of the current audit application.
75+
(ie what data extractors have been configured, if using the access auditor or not, etc ...).
76+
7477
* Search box
7578

7679
The dashlet search box allows more search capabilities than the server side filter, ie :
@@ -97,7 +100,7 @@ of the dashboard and drag the dashlet into one of the columns from the list of d
97100

98101
- to search for a colon (:), use the field prefix, eg; field:.+:.+ or values:[^:]+: etc... otherwise the colon will be interpreted
99102
as a field identifier
100-
103+
101104
- noderefs in the audit values will be detected, and "enhanced" with a link to the docdetails page of that noderef
102105

103106
- multi field search is currently not supported, e.g +id:95 -name:romain. Would have to support ( ) , and/or grouping ,etc ...
@@ -106,6 +109,13 @@ of the dashboard and drag the dashlet into one of the columns from the list of d
106109

107110
Changelog
108111
---------
112+
113+
0.41:
114+
- better IE support
115+
- some css cleanup
116+
- some UI label changes
117+
- updated YUI compressor to 2.4.7
118+
109119
0.4:
110120
- datatable columns can now be configured to be shown or hidden
111121
- an extra field has been added to the config dialog to pass additional server side query parameters.

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
build.version=0.4
1+
build.version=0.41
22
project.name=sample-audit-dashlet
33
jar.name=${project.name}-${build.version}.jar

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
<path id="yuicompressor.classpath">
7575
<fileset dir="lib">
76-
<include name="yuicompressor-2.4.2.jar"/>
76+
<include name="yuicompressor-2.4.7.jar"/>
7777
<include name="yui-compressor-ant-task-0.5.jar"/>
7878
</fileset>
7979
</path>

config/alfresco/site-webscripts/org/alfresco/components/dashlets/audit-application.get.html.ftl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@
3131
<div class="refresh"><a id="${el}-refresh" href="#">&nbsp;</a></div>
3232

3333

34-
<div class="toolbar" id="${el}-toolbar">
35-
<#if userHasConfigPermission && userIsAdmin>
36-
<span class="yui-button-align">
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="spaced-more-left 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+
41+
<#if userHasConfigPermission && userIsAdmin>
3742
<span class="first-child">
3843
<a class="theme-color-1" href="#" id="${el}-configure-link">${msg("audit.dashlet.link.configure")}</a>
3944
</span>
40-
</span>
41-
</#if>
42-
<span class="align-right yui-button-align">
43-
<span class="first-child spaced-more-left">
44-
<a class="theme-color-1" href="${msg("audit.dashlet.link.help.url")}" id="${el}-help-link" target="_blank">${msg("audit.dashlet.link.help")}</a>
45-
</span>
46-
</span>
45+
</#if>
46+
</div>
4747
</div>
4848

4949
<#-- audit only allows admin to query audit entries. therefore the dashlet is only usable by admin users. -->
@@ -53,7 +53,7 @@
5353
<div class="body" style="height: ${currentHeight}px;" id="${el}-body">
5454
<div class="message spaced-left" id="${el}-message"></div>
5555

56-
<div class="markup spaced-left" id="${el}-searchbox">
56+
<div class="spaced-left" id="${el}-searchbox">
5757
<#-- search box to filter audit values from YUI -->
5858
<label id="${el}-searchWithinResultsFilterLabel" for="${el}-searchWithinResultsFilter">${msg("audit.dashlet.searchWithinResults",0)} :</label>
5959
<input type="text" id="${el}-searchWithinResultsFilter">

config/alfresco/site-webscripts/org/alfresco/components/dashlets/audit-application.get.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ audit.dashlet.link.help.url=http://code.google.com/p/share-extras/wiki/SampleAud
77
audit.dashlet.notConfigured=No application is configured.
88
audit.dashlet.loading=Loading ...
99
audit.dashlet.noEntries=No matching entries found.
10-
audit.dashlet.searchWithinResults=Search within the {0} results
10+
audit.dashlet.searchWithinResults=Search within the {0} result(s)
1111
audit.dashlet.valuefilteredOn=filtered on
12-
audit.dashlet.filteredResults={0} results ({1} filtered out)
12+
audit.dashlet.filteredResults={0} result(s) ({1} filtered out)
1313
audit.dashlet.invalidSearch=Invalid search expression !
1414
audit.dashlet.adminPrivilegesRequired=You need to be an admin user to query audit entries.
1515

config/alfresco/site-webscripts/org/alfresco/components/dashlets/audit-application.get_en.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ audit.dashlet.link.help.url=http://code.google.com/p/share-extras/wiki/SampleAud
77
audit.dashlet.notConfigured=No application is configured.
88
audit.dashlet.loading=Loading ...
99
audit.dashlet.noEntries=No matching entries found.
10-
audit.dashlet.searchWithinResults=Search within the {0} results
10+
audit.dashlet.searchWithinResults=Search within the {0} result(s)
1111
audit.dashlet.valuefilteredOn=filtered on
12-
audit.dashlet.filteredResults={0} results ({1} filtered out)
12+
audit.dashlet.filteredResults={0} result(s) ({1} filtered out)
1313
audit.dashlet.invalidSearch=Invalid search expression !
1414
audit.dashlet.adminPrivilegesRequired=You need to be an admin user to query audit entries.
1515

config/alfresco/site-webscripts/org/alfresco/components/dashlets/audit-application.get_fr.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ audit.dashlet.link.help.url=http://code.google.com/p/share-extras/wiki/SampleAud
77
audit.dashlet.notConfigured=Aucune application configur\u00e9e.
88
audit.dashlet.loading=Chargement ...
99
audit.dashlet.noEntries=Aucun \u00e9v\u00e8nement correspondant.
10-
audit.dashlet.searchWithinResults=Chercher parmi les {0} r\u00e9sultats
10+
audit.dashlet.searchWithinResults=Chercher parmi les {0} r\u00e9sultat(s)
1111
audit.dashlet.valuefilteredOn=filtr\u00e9e sur
12-
audit.dashlet.filteredResults={0} r\u00e9sultats ({1} filtr\u00e9s)
12+
audit.dashlet.filteredResults={0} r\u00e9sultat(s) ({1} filtr\u00e9(s) )
1313
audit.dashlet.invalidSearch=Recherche invalide !
1414
audit.dashlet.adminPrivilegesRequired=Vous devez \u00eatre un administrateur pour consulter les donn\u00e9es d'audit.
1515

config/alfresco/site-webscripts/org/alfresco/modules/dashlets/audit-application-config.get.html.ftl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<form id="${el}-form" action="" method="POST">
66
<div class="yui-gd">
77
<div class="yui-u first"><label for="${el}-application">${msg("audit.dashlet.config.label.application")} :</label></div>
8-
<div class="yui-u">
8+
<div class="yui-u" id="${el}-application-div">
99
<input type="text" name="application" id="${el}-application" />
1010
<div id="${el}-application-select"></div>
1111
</div>
@@ -54,16 +54,16 @@
5454
<div class="yui-gd">
5555
<div class="yui-u first"><span>${msg("audit.dashlet.config.label.show_fields")} :</span></div>
5656
<div class="yui-u">
57-
<input type="checkbox" class="spaced-right" id="${el}-checkbox-show_id_column" name="checkbox-show_id_column"/>
57+
<input type="checkbox" id="${el}-checkbox-show_id_column" name="checkbox-show_id_column"/>
5858
<span class="spaced-right">${msg("audit.dashlet.field.label.id")}</span>
5959

60-
<input type="checkbox" class="spaced-right" id="${el}-checkbox-show_user_column" name="checkbox-show_user_column"/>
60+
<input type="checkbox" id="${el}-checkbox-show_user_column" name="checkbox-show_user_column"/>
6161
<span class="spaced-right">${msg("audit.dashlet.field.label.user")}</span>
6262

63-
<input type="checkbox" class="spaced-right" id="${el}-checkbox-show_time_column" name="checkbox-show_time_column"/>
63+
<input type="checkbox" id="${el}-checkbox-show_time_column" name="checkbox-show_time_column"/>
6464
<span class="spaced-right">${msg("audit.dashlet.field.label.time")}</span>
6565

66-
<input type="checkbox" class="spaced-right" id="${el}-checkbox-show_values_column" name="checkbox-values_column"/>
66+
<input type="checkbox" id="${el}-checkbox-show_values_column" name="checkbox-values_column"/>
6767
</span class="spaced-right">${msg("audit.dashlet.field.label.values")}</span>
6868
</div>
6969
</div>

config/alfresco/site-webscripts/org/alfresco/modules/dashlets/audit-application-config.get.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ audit.dashlet.field.label.id=DB ID
1313
audit.dashlet.field.label.application=Application
1414
audit.dashlet.field.label.user=User
1515
audit.dashlet.field.label.time=Timestamp
16-
audit.dashlet.field.label.values=Audited Values
16+
audit.dashlet.field.label.values=Values

config/alfresco/site-webscripts/org/alfresco/modules/dashlets/audit-application-config.get_en.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ audit.dashlet.field.label.id=DB ID
1313
audit.dashlet.field.label.application=Application
1414
audit.dashlet.field.label.user=User
1515
audit.dashlet.field.label.time=Timestamp
16-
audit.dashlet.field.label.values=Audited Values
16+
audit.dashlet.field.label.values=Values

0 commit comments

Comments
 (0)