[MKDoc-commit] Results table made accessible I also noticed that
the link to the next
chris at mkdoc.demon.co.uk
chris at mkdoc.demon.co.uk
Tue Nov 2 13:50:37 GMT 2004
Log Message:
-----------
Results table made accessible
I also noticed that the link to the next page of results never works, this
need repoting as a bug to the list
Modified Files:
--------------
mkd/resources/templates/admin/finder:
en.html
-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/resources/templates/admin/finder/en.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lresources/templates/admin/finder/en.html -Lresources/templates/admin/finder/en.html -u -r1.4 -r1.5
--- resources/templates/admin/finder/en.html
+++ resources/templates/admin/finder/en.html
@@ -601,7 +601,7 @@
dir text-direction;"
i18n:translate="finder-results-per-page-help"
>
- Select the number of matches per page.
+ Select the number of results.
</em>
<select
name="per_page"
@@ -648,46 +648,282 @@
</fieldset>
</form>
- <table border="1" cellpadding="2">
+ <table
+ border="0"
+ cellpadding="12"
+ cellspacing="6"
+ summary="This table contains the results of your search."
+ i18n:attributes="summary this-table-contains-search-results"
+ >
+ <caption
+ i18n:translate="documents-found"
+ >
+ Documents Found
+ </caption>
<tr>
- <td><strong>ID</strong></td>
- <td><strong>Title</strong></td>
- <td><strong>Created By</strong></td>
- <td><strong>Creation Date</strong></td>
- <td><strong>Last Modified By</strong></td>
- <td><strong>Modification Date</strong></td>
- <td><strong>Language</strong></td>
- <td><strong>Status</strong></td>
+ <th
+ id="h-title"
+ i18n:translate="title"
+ >Title</th>
+ <th
+ id="h-created-by"
+ i18n:translate="created-by"
+ >Created By</th>
+ <th
+ id="h-creation-date"
+ i18n:translate="creation-date"
+ >Creation Date</th>
+ <th
+ id="h-last-modified-by"
+ i18n:translate="last-modified-by"
+ >Last Modified By</th>
+ <th
+ id="h-modification-date"
+ i18n:translate="modification-date"
+ >Modification Date</th>
+ <th
+ id="h-language"
+ i18n:translate="language"
+ >Language</th>
+ <th
+ id="h-status"
+ i18n:translate="status"
+ >Status</th>
+ <!--? Uncomment this if you want a ID col
+ <th
+ id="h-id"
+ i18n:translate="id"
+ >ID</th>
+ ?-->
</tr>
- <tr><td> </td></tr>
- <span petal:repeat="document self/results" petal:omit-tag="">
- <tr>
- <td colspan="7"><a href="#" petal:attributes="href document/uri" petal:content="document/uri">URI</a></td>
- </tr>
- <tr>
- <td petal:content="document/id">ID</td>
- <td petal:content="document/title">Title</td>
- <td petal:content="document/editor_created/real_name">Editor_Created</td>
- <td petal:content="document/date_created">Created_Date</td>
- <td petal:content="document/editor_last_modified/real_name">Editor_Last_Modified</td>
- <td petal:content="document/date_last_modified">Date_Last_Modified</td>
- <td petal:content="document/lang_label">Language_Label</td>
- <td>
- <span petal:condition="true: document/is_hidden">Hidden</span>
- <span petal:condition="false: document/is_hidden">
- <span petal:condition="true: document/is_modified_version">Versioned</span>
- <span petal:condition="false: document/is_modified_version">
- <span petal:condition="true: document/is_deleted_version">Deleted</span>
- <span petal:condition="false: document/is_deleted_version">Live</span>
- </span>
+ <tr
+ petal:repeat="document self/results"
+ >
+
+ <!--? First the even row ?-->
+ <th
+ id="h-1"
+ class="even"
+ headers="h-title"
+ petal:attributes="id string:h-id-${document/id};"
+ petal:condition="true: repeat/even"
+ >
+ <a
+ href="#"
+ hreflang="en"
+ lang="en"
+ xml:lang="en"
+ title="#"
+ petal:content="document/title"
+ petal:attributes="href document/uri;
+ title document/uri;
+ hreflang document/lang;
+ dir document/direction;
+ lang document/lang;
+ xml:lang document/lang;"
+ >Title</a>
+ </th>
+ <td
+ class="even"
+ headers="h-created-by h-id-1"
+ title="lisa"
+ petal:attributes="headers string:h-created-by h-id-${document/id};
+ title document/editor_created/login;"
+ petal:content="document/editor_created/real_name"
+ petal:condition="true: repeat/even"
+ >Lisa Simpson</td>
+ <td
+ class="even"
+ headers="h-creation-date h-id-1"
+ petal:attributes="headers string:h-creation-date h-id-${document/id};"
+ petal:content="document/date_created"
+ petal:condition="true: repeat/even"
+ >2002-12-19 16:02:59</td>
+ <td
+ class="even"
+ headers="h-last-modified-by h-id-1"
+ title="bart"
+ petal:attributes="headers string:h-last-modified-by h-id-${document/id};
+ title document/editor_last_modified/login;"
+ petal:content="document/editor_last_modified/real_name"
+ petal:condition="true: repeat/even"
+ >Bart Simpson</td>
+ <td
+ class="even"
+ headers="h-modification-date h-id-1"
+ petal:attributes="headers string:h-modification-date h-id-${document/id};"
+ petal:content="document/date_last_modified"
+ petal:condition="true: repeat/even"
+ >2003-01-03 10:11:16</td>
+ <td
+ class="even"
+ headers="h-language h-id-1"
+ petal:attributes="headers string:h-language h-id-${document/id};
+ title document/lang;"
+ petal:content="document/lang_label"
+ petal:condition="true: repeat/even"
+ >English</td>
+ <td
+ class="even"
+ headers="h-language h-id-1"
+ petal:attributes="headers string:h-status h-id-${document/id};"
+ petal:condition="true: repeat/even"
+ >
+ <span
+ petal:omit-tag=""
+ petal:translate="hidden"
+ petal:condition="true: document/is_hidden"
+ >Hidden</span>
+ <span
+ petal:omit-tag=""
+ petal:condition="false: document/is_hidden"
+ >
+ <span
+ petal:omit-tag=""
+ petal:translate="versioned"
+ petal:condition="true: document/is_modified_version"
+ >Versioned</span>
+ <span
+ petal:omit-tag=""
+ petal:condition="false: document/is_modified_version"
+ >
+ <span
+ petal:omit-tag=""
+ petal:translate="deleted"
+ petal:condition="true: document/is_deleted_version"
+ >Deleted</span>
+ <span
+ petal:omit-tag=""
+ petal:translate="live"
+ petal:condition="false: document/is_deleted_version"
+ >Live</span>
</span>
- </td>
- </tr>
- <tr><td> </td></tr>
- </span>
+ </span>
+ </td>
+ <!--? Uncomment this if you want a ID col
+ <td
+ class="even"
+ headers="h-id"
+ petal:content="document/id"
+ petal:condition="true: repeat/even"
+ >ID</td>
+ ?-->
+
+ <!--? Now the odd row ?-->
+ <th
+ id="h-1"
+ class="odd"
+ headers="h-title"
+ petal:attributes="id string:h-id-${document/id};"
+ petal:condition="true: repeat/odd"
+ >
+ <a
+ href="#"
+ hreflang="en"
+ lang="en"
+ xml:lang="en"
+ title="#"
+ petal:content="document/title"
+ petal:attributes="href document/uri;
+ title document/uri;
+ hreflang document/lang;
+ dir document/direction;
+ lang document/lang;
+ xml:lang document/lang;"
+ >Title</a>
+ </th>
+ <td
+ class="odd"
+ headers="h-created-by h-id-1"
+ title="lisa"
+ petal:attributes="headers string:h-created-by h-id-${document/id};
+ title document/editor_created/login;"
+ petal:content="document/editor_created/real_name"
+ petal:condition="true: repeat/odd"
+ >Lisa Simpson</td>
+ <td
+ class="odd"
+ headers="h-creation-date h-id-1"
+ petal:attributes="headers string:h-creation-date h-id-${document/id};"
+ petal:content="document/date_created"
+ petal:condition="true: repeat/odd"
+ >2002-12-19 16:02:59</td>
+ <td
+ class="odd"
+ headers="h-last-modified-by h-id-1"
+ title="bart"
+ petal:attributes="headers string:h-last-modified-by h-id-${document/id};
+ title document/editor_last_modified/login;"
+ petal:content="document/editor_last_modified/real_name"
+ petal:condition="true: repeat/odd"
+ >Bart Simpson</td>
+ <td
+ class="odd"
+ headers="h-modification-date h-id-1"
+ petal:attributes="headers string:h-modification-date h-id-${document/id};"
+ petal:content="document/date_last_modified"
+ petal:condition="true: repeat/odd"
+ >2003-01-03 10:11:16</td>
+ <td
+ class="odd"
+ headers="h-language h-id-1"
+ petal:attributes="headers string:h-language h-id-${document/id};
+ title document/lang;"
+ petal:content="document/lang_label"
+ petal:condition="true: repeat/odd"
+ >English</td>
+ <td
+ class="odd"
+ headers="h-language h-id-1"
+ petal:attributes="headers string:h-status h-id-${document/id};"
+ petal:condition="true: repeat/odd"
+ >
+ <span
+ petal:omit-tag=""
+ petal:translate="hidden"
+ petal:condition="true: document/is_hidden"
+ >Hidden</span>
+ <span
+ petal:omit-tag=""
+ petal:condition="false: document/is_hidden"
+ >
+ <span
+ petal:omit-tag=""
+ petal:translate="versioned"
+ petal:condition="true: document/is_modified_version"
+ >Versioned</span>
+ <span
+ petal:omit-tag=""
+ petal:condition="false: document/is_modified_version"
+ >
+ <span
+ petal:omit-tag=""
+ petal:translate="deleted"
+ petal:condition="true: document/is_deleted_version"
+ >Deleted</span>
+ <span
+ petal:omit-tag=""
+ petal:translate="live"
+ petal:condition="false: document/is_deleted_version"
+ >Live</span>
+ </span>
+ </span>
+ </td>
+ <!--? Uncomment this if you want a ID col
+ <td
+ class="odd"
+ headers="h-id"
+ petal:content="document/id"
+ petal:condition="true: repeat/odd"
+ >ID</td>
+ ?-->
+ </tr>
</table>
- <p petal:condition="true:self/navbar">
+ <!--? This navigation bar for the link to the next page of results doesn't work ?-->
+ <p
+ petal:condition="true: self/navbar"
+ >
<span
petal:repeat="element self/navbar"
>
@@ -696,9 +932,10 @@
petal:attributes="href element/uri"
petal:omit-tag="false:element/uri"
petal:content="element/page"
- >1</a>
+ >1</a> |
</span>
</p>
+
</div>
</body>
</html>
More information about the MKDoc-commit
mailing list