Some bug fixes as suggested (in great detail, just short of a patch)
by Dirk Lemstra <dirk.lemstra@atosorigin.com>. Also, add some stuff
to the generally-available-to-all-templates dataset. And finally,
re-work all the templates for consistent look and feel.
I can die now.
* viewcvs/lib/viewcvs.py
(common_template_data): Expose the 'where', 'roottype', and
'rootname' Request members, and the 'nav_path', to all views.
Also, do the root selection stuffs ('roots', 'change_root_action',
'change_root_hidden_values').
(nav_header_data): No longer explicitly add 'nav_path' to the data
dictionary.
(_dir_url): For Subversion, supply the revision number to the
generated links.
(view_directory): Include the revision when generating log view
URLs. Also, expose a 'tree_rev_href' data item for linking to the
revision view. No longer explicitly add 'roottype', 'where', and
'current_root' to the data dictionary. No longer do the root
selection stuff here, either.
(view_log): No longer explicitly add 'roottype', 'where', and
'current_root' to the data dictionary.
(human_readable_diff): No longer explicitly add 'where' to the data
dictionary.
(view_markup, view_revision): No longer explicitly add 'roottype' to
the data dictionary.
* viewcvs/website/upgrading.html
Document the changes.
* viewcvs/website/help_rootview.html
Add a missing "<br>".
* viewcvs/templates/annotate.ezt
* viewcvs/templates/graph.ezt
* viewcvs/templates/log.ezt
* viewcvs/templates/log_table.ezt
* viewcvs/templates/markup.ezt
* viewcvs/templates/query.ezt
* viewcvs/templates/revision.ezt
* viewcvs/templates/include/dir_header.ezt
* viewcvs/templates/include/footer.ezt
* viewcvs/templates/include/header.ezt
Beat the heck outta these templates until they all reference
header.ezt and footer.ezt (except for error.ezt), and they all
present a basically consistent interface across all views.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@835 8cb11bc2-c004-0410-86c3-e597b4017df7
2004-04-22 19:40:01 +04:00
|
|
|
[# setup page definitions]
|
2005-01-14 06:40:55 +03:00
|
|
|
[define page_title]View of /[where][end]
|
2004-05-12 05:46:43 +04:00
|
|
|
[define help_href][docroot]/help_rootview.html[end]
|
Some bug fixes as suggested (in great detail, just short of a patch)
by Dirk Lemstra <dirk.lemstra@atosorigin.com>. Also, add some stuff
to the generally-available-to-all-templates dataset. And finally,
re-work all the templates for consistent look and feel.
I can die now.
* viewcvs/lib/viewcvs.py
(common_template_data): Expose the 'where', 'roottype', and
'rootname' Request members, and the 'nav_path', to all views.
Also, do the root selection stuffs ('roots', 'change_root_action',
'change_root_hidden_values').
(nav_header_data): No longer explicitly add 'nav_path' to the data
dictionary.
(_dir_url): For Subversion, supply the revision number to the
generated links.
(view_directory): Include the revision when generating log view
URLs. Also, expose a 'tree_rev_href' data item for linking to the
revision view. No longer explicitly add 'roottype', 'where', and
'current_root' to the data dictionary. No longer do the root
selection stuff here, either.
(view_log): No longer explicitly add 'roottype', 'where', and
'current_root' to the data dictionary.
(human_readable_diff): No longer explicitly add 'where' to the data
dictionary.
(view_markup, view_revision): No longer explicitly add 'roottype' to
the data dictionary.
* viewcvs/website/upgrading.html
Document the changes.
* viewcvs/website/help_rootview.html
Add a missing "<br>".
* viewcvs/templates/annotate.ezt
* viewcvs/templates/graph.ezt
* viewcvs/templates/log.ezt
* viewcvs/templates/log_table.ezt
* viewcvs/templates/markup.ezt
* viewcvs/templates/query.ezt
* viewcvs/templates/revision.ezt
* viewcvs/templates/include/dir_header.ezt
* viewcvs/templates/include/footer.ezt
* viewcvs/templates/include/header.ezt
Beat the heck outta these templates until they all reference
header.ezt and footer.ezt (except for error.ezt), and they all
present a basically consistent interface across all views.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@835 8cb11bc2-c004-0410-86c3-e597b4017df7
2004-04-22 19:40:01 +04:00
|
|
|
[# end]
|
|
|
|
|
2004-04-20 20:40:12 +04:00
|
|
|
[include "include/header.ezt" "markup"]
|
2005-01-14 08:20:46 +03:00
|
|
|
[include "include/file_header.ezt"]
|
2005-09-28 21:06:16 +04:00
|
|
|
<hr />
|
2004-05-12 05:46:43 +04:00
|
|
|
<div class="vc_summary">
|
2005-09-28 21:06:16 +04:00
|
|
|
Revision: <strong>[rev]</strong> -
|
|
|
|
(<a href="[download_href]"><strong>download</strong></a>)
|
|
|
|
[if-any download_text_href](<a href="[download_text_href]"><strong>as text</strong></a>)[end]
|
|
|
|
[if-any annotate_href](<a href="[annotate_href]"><strong>annotate</strong></a>)[end]
|
2004-01-22 01:50:26 +03:00
|
|
|
|
2005-09-28 21:06:16 +04:00
|
|
|
[if-any vendor_branch] <em>(vendor branch)</em>[end]
|
|
|
|
<br /><em>[date_str]</em> ([ago] ago) by <em>[author]</em>
|
2005-02-25 18:59:20 +03:00
|
|
|
[if-any branches]
|
2005-09-28 21:06:16 +04:00
|
|
|
<br />Branch: <strong>[branches]</strong>
|
2005-02-25 18:59:20 +03:00
|
|
|
[end]
|
|
|
|
[if-any tags]
|
2005-09-28 21:06:16 +04:00
|
|
|
<br />CVS Tags: <strong>[tags]</strong>
|
2005-02-25 18:59:20 +03:00
|
|
|
[end]
|
|
|
|
[if-any branch_points]
|
2005-09-28 21:06:16 +04:00
|
|
|
<br />Branch point for: <strong>[branch_points]</strong>
|
2005-02-25 18:59:20 +03:00
|
|
|
[end]
|
|
|
|
[is roottype "cvs"]
|
|
|
|
[if-any changed]
|
2005-09-28 21:06:16 +04:00
|
|
|
<br />Changes since <strong>[prev]: [changed] lines</strong>
|
Big update! Convert the rest of the pages to use templates.
* annotation, human readable diff, CvsGraph, and a marked-up file all
use a template to generate the basic parts of the page. In many
cases (annotate, graph, markup), the content is still rendered
by other code.
* for the diff support, we take advantage of the new list iteration
support in EZT to "iterate on" a DiffSource object, which parses a
diff stream into structured object for the template to display.
* for the CvsGraph page, we make use of EZT's new stream support to
stream in an imagemap from the CvsGraph executable. the graph page
includes a navigation header now.
* updated the upgrading.html page with some items missing from the 0.7
instructions, plus new instructions.
* because of the complete conversion, the configuration file no longer
specifies colors or images -- these are all in the templates now.
Removed the relevant material from config.py and viewcvs.conf.dist.
* converted html_footer() to use the new footer.ezt template because
we still have to call that manually in the markup and annotate
cases.
* add the templates to viewcvs.conf.dist and config.py
* added a handy generate_page() utility for generating pages from a
template and its input data.
* removed download_link, html_icon, html_option, print_diff_select,
and navigate_header utility functions. These all printed HTML to the
output, but are obsolete due to the new templates.
* the new nav_header_data() utility function fills in data used by the
"header.ezt" template, which replaces the navigate_header() func.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@395 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-12-18 03:22:14 +03:00
|
|
|
[end]
|
2005-02-25 18:59:20 +03:00
|
|
|
[end]
|
|
|
|
[is roottype "svn"][if-any size]
|
2005-09-28 21:06:16 +04:00
|
|
|
<br />File size: [size] byte(s)
|
2005-02-25 18:59:20 +03:00
|
|
|
[end][end]
|
|
|
|
[is state "dead"]
|
2005-09-28 21:06:16 +04:00
|
|
|
<br /><strong><em>FILE REMOVED</em></strong>
|
2005-02-25 18:59:20 +03:00
|
|
|
[end]
|
|
|
|
[if-any log]
|
2004-07-19 12:49:39 +04:00
|
|
|
<pre class="vc_log">[log]</pre>
|
Big update! Convert the rest of the pages to use templates.
* annotation, human readable diff, CvsGraph, and a marked-up file all
use a template to generate the basic parts of the page. In many
cases (annotate, graph, markup), the content is still rendered
by other code.
* for the diff support, we take advantage of the new list iteration
support in EZT to "iterate on" a DiffSource object, which parses a
diff stream into structured object for the template to display.
* for the CvsGraph page, we make use of EZT's new stream support to
stream in an imagemap from the CvsGraph executable. the graph page
includes a navigation header now.
* updated the upgrading.html page with some items missing from the 0.7
instructions, plus new instructions.
* because of the complete conversion, the configuration file no longer
specifies colors or images -- these are all in the templates now.
Removed the relevant material from config.py and viewcvs.conf.dist.
* converted html_footer() to use the new footer.ezt template because
we still have to call that manually in the markup and annotate
cases.
* add the templates to viewcvs.conf.dist and config.py
* added a handy generate_page() utility for generating pages from a
template and its input data.
* removed download_link, html_icon, html_option, print_diff_select,
and navigate_header utility functions. These all printed HTML to the
output, but are obsolete due to the new templates.
* the new nav_header_data() utility function fills in data used by the
"header.ezt" template, which replaces the navigate_header() func.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@395 8cb11bc2-c004-0410-86c3-e597b4017df7
2001-12-18 03:22:14 +03:00
|
|
|
[end]
|
2004-05-12 05:46:43 +04:00
|
|
|
</div>
|
2004-04-20 20:40:12 +04:00
|
|
|
|
2005-09-28 21:06:16 +04:00
|
|
|
<div>[markup]</div>
|
2004-04-20 20:40:12 +04:00
|
|
|
|
|
|
|
[include "include/footer.ezt"]
|