Skip to content

Commit f585769

Browse files
author
Richard Jones
committed
nicer page titles (sf feature 65197)
[[That issue number is invalid.]]
1 parent 0d82200 commit f585769

File tree

7 files changed

+37
-10
lines changed

7 files changed

+37
-10
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Feature:
3939
- added support for last-modified and if-modified-since headers for static
4040
file serving
4141
- added Node.get() method
42+
- nicer page titles (sf feature 65197)
43+
4244

4345
Fixed:
4446
- applied unicode patch. All data is stored in utf-8. Incoming messages

roundup/templates/classic/html/file.index

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<!-- dollarId: file.index,v 1.4 2002/01/23 05:10:27 richard Exp dollar-->
22
<tal:block metal:use-macro="templates/page/macros/icing">
3-
<title metal:fill-slot="head_title">List of files</title>
3+
<title metal:fill-slot="head_title">
4+
<span tal:replace="config/TRACKER_NAME" />: List of files
5+
</title>
46
<td class="page-header-top" metal:fill-slot="body_title">
57
<h2>List of files</h2>
68
</td>

roundup/templates/classic/html/issue.index

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar-->
22
<tal:block metal:use-macro="templates/page/macros/icing">
3-
<title metal:fill-slot="head_title">List of issues</title>
3+
<title metal:fill-slot="head_title">
4+
<span tal:replace="config/TRACKER_NAME" />: List of issues
5+
</title>
46
<td class="page-header-top" metal:fill-slot="body_title">
57
<h2>List of issues</h2>
68
</td>

roundup/templates/classic/html/issue.item

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<!-- dollarId: issue.item,v 1.4 2001/08/03 01:19:43 richard Exp dollar-->
22
<tal:block metal:use-macro="templates/page/macros/icing">
3-
<title metal:fill-slot="head_title">
4-
Issue<span tal:replace="context/id" /> editing
5-
</title>
3+
<title metal:fill-slot="head_title">
4+
<span tal:replace="config/TRACKER_NAME" />:
5+
<span tal:condition="context/id"
6+
tal:replace="string:Issue ${context/id}: ${context/title}" />
7+
<tal:x tal:condition="not:context/id">New Issue</tal:x>
8+
</title>
69
<td class="page-header-top" metal:fill-slot="body_title">
710
<h2>
811
Issue<span tal:replace="context/id" />

roundup/templates/classic/html/msg.index

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<tal:block metal:use-macro="templates/page/macros/icing">
2-
<title metal:fill-slot="head_title">Message listing</title>
2+
<title metal:fill-slot="head_title">
3+
<span tal:replace="config/TRACKER_NAME" />: List of messages
4+
</title>
35
<td class="page-header-top" metal:fill-slot="body_title">
46
<h2>Message listing</h2>
57
</td>

roundup/templates/classic/html/msg.item

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
<!-- dollarId: msg.item,v 1.3 2002/05/22 00:32:34 richard Exp dollar-->
22
<tal:block metal:use-macro="templates/page/macros/icing">
3-
<title metal:fill-slot="head_title">Message editing</title>
3+
<title metal:fill-slot="head_title">
4+
<span tal:replace="config/TRACKER_NAME" />:
5+
<span tal:condition="context/id" tal:replace="string:Message ${context/id}" />
6+
<tal:x tal:condition="not:context/id">New Message</tal:x>
7+
</title>
48
<td class="page-header-top" metal:fill-slot="body_title">
5-
<h2>Message editing</h2>
9+
<h2>
10+
Message<span tal:replace="context/id" />
11+
<tal:x tal:condition="context/is_edit_ok">Editing</tal:x>
12+
</h2>
613
</td>
714
<td class="content" metal:fill-slot="content">
815
<table class="form">

roundup/templates/classic/html/user.item

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
<!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 richard Exp dollar-->
22
<tal:block metal:use-macro="templates/page/macros/icing">
3-
<title metal:fill-slot="head_title">User editing</title>
3+
<title metal:fill-slot="head_title">
4+
<span tal:replace="config/TRACKER_NAME" />:
5+
<span tal:condition="context/id"
6+
tal:replace="string:User ${context/id}: ${context/username}" />
7+
<tal:x tal:condition="not:context/id">New User</tal:x>
8+
</title>
49
<td class="page-header-top" metal:fill-slot="body_title">
5-
<h2>User editing</h2>
10+
<h2>
11+
User<span tal:replace="context/id" />
12+
<tal:x tal:condition="context/is_edit_ok">Editing</tal:x>
13+
</h2>
614
</td>
15+
716
<td class="content" metal:fill-slot="content">
817
<span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())">
918
You are not allowed to view this page.

0 commit comments

Comments
 (0)