[vhffs-dev] [1640] Mercurial repositories are now displayed in the public area. |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1640
Author: guillaumito
Date: 2010-11-18 21:50:48 +0100 (Thu, 18 Nov 2010)
Log Message:
-----------
Mercurial repositories are now displayed in the public area.
Modified Paths:
--------------
trunk/vhffs-public/group.pl
trunk/vhffs-public/templates/content/group-details.tt
trunk/vhffs-themes/light-grey/main.css
Modified: trunk/vhffs-public/group.pl
===================================================================
--- trunk/vhffs-public/group.pl 2010-11-17 01:05:22 UTC (rev 1639)
+++ trunk/vhffs-public/group.pl 2010-11-18 20:50:48 UTC (rev 1640)
@@ -101,7 +101,15 @@
};
}
+if( $vhffs->get_config->get_service_availability('mercurial') == 1 ) {
+ use Vhffs::Panel::Mercurial;
+ $vars->{mercurial} = {
+ mercurial_web_url => $config->get_service('mercurial')->{'mercurialweb_url'},
+ repositories => Vhffs::Panel::Mercurial::get_repos_per_group($vhffs, $group->get_gid )
+ };
+}
+
if( $vhffs->get_config->get_service_availability('mailinglist') == 1 ) {
use Vhffs::Panel::MailingList;;
$vars->{ml} = {
Modified: trunk/vhffs-public/templates/content/group-details.tt
===================================================================
--- trunk/vhffs-public/templates/content/group-details.tt 2010-11-17 01:05:22 UTC (rev 1639)
+++ trunk/vhffs-public/templates/content/group-details.tt 2010-11-18 20:50:48 UTC (rev 1640)
@@ -82,6 +82,18 @@
</ul>
[% END %]
+[% IF mercurial && mercurial.repositories.size %]
+<h3>[% 'Mercurial Repositories' | i18n %]</h3>
+<ul class="mercurial-info">
+[% FOREACH m = mercurial.repositories %]
+<li>
+<p><a class="webmercurial-link" href="[% mercurial.mercurial_web_url %]/[% m.reponame %]">[% m.reponame %]</a></p>
+<p>[% m.description %]</p>
+</li>
+[% END %]
+</ul>
+[% END %]
+
[% IF ml && ml.lists.size %]
<h3>[% 'Mailing Lists' | i18n %]</h3>
<ul class="ml-info">
Modified: trunk/vhffs-themes/light-grey/main.css
===================================================================
--- trunk/vhffs-themes/light-grey/main.css 2010-11-17 01:05:22 UTC (rev 1639)
+++ trunk/vhffs-themes/light-grey/main.css 2010-11-18 20:50:48 UTC (rev 1640)
@@ -1391,6 +1391,7 @@
#public-content a.webcvs-link,
#public-content a.websvn-link,
#public-content a.webgit-link,
+#public-content a.webmercurial-link,
#public-content a.list-archives-link {
text-decoration: none;
font-weight: bold