RE: [viewvc-users] RSS Template Similar to SVN Mailer

[email protected]
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <1031909751.13976.1310996968936.JavaMail.httpd@localhost>
Here's another way of doing it instead of breaking it into a conditionalize-by-type like SVNMailer does:

 - Still do three loops for each type, but just statically declare an "Action Type" column off to the left, even if the section is empty.

- Screenshots:

http://digitalfreaks.org/~lavalamp/ViewVC_RSS_Template_1.png

http://digitalfreaks.org/~lavalamp/ViewVC_RSS_Template_0.png

--------------------

                <description>&#x3C;pre&#x3E;


                Author: [if-any commits.author][commits.author][else](unknown author)[end]
                Date: [if-any commits.rss_date][commits.rss_date][else](unknown date)[end]
                New Revision: [if-any commits.rev][commits.rev][else](unknown revision)[end]
                Number of Files Changed: [if-any commits.num_files][commits.num_files][else](unknown number of files changed)[end]
                &#13;
                Log:
                [format "xml"][format "html"][commits.log][end][end]
                &#13;
                &#09; | Type | Activity(+/-) | Dir: / File |&#13; &#09; --------------------------------------
                [for commits.files] [is commits.files.type "Add"] &#09; | Add | ([commits.files.plus]/[commits.files.minus]) : [commits.files.dir] / [commits.files.file] | [end][end] [for commits.files] [is commits.files.type "Change"] &#09; | Change | ([commits.files.plus]/[commits.files.minus]) : [commits.files.dir] / [commits.files.file] | [end][end] [for commits.files] [is commits.files.type "Remove"] &#09; | Remove | ([commits.files.plus]/[commits.files.minus]) : [commits.files.dir] / [commits.files.file] | [end][end]
                &#x3C;/pre&#x3E;</description>

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2796969

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.