/[debian-med]/trunk/community/website/index.php
ViewVC logotype

Contents of /trunk/community/website/index.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 785 - (show annotations) (download)
Sun Nov 11 16:24:55 2007 UTC (5 years, 6 months ago) by hanska-guest
File size: 6635 byte(s)
Last validation try
1 <?php
2 require_once("inc/header.inc.php");
3 ?>
4 <table class="columns">
5 <tr>
6 <td class="left">
7 <span class="section"><?=_("information")?></span>
8 <div class="section">
9 <div class="sectionTop"></div>
10 <div class="row" style="text-align: center;">
11 <?=_("Developers please visit our")?><br />
12 <a href="http://wiki.debian.org/DebianMed"><?=_("Wiki page")?></a>
13 </div>
14 <div class="row">
15 <?=_("The Debian-Med project presents packages that are associated with <ul><li>medicine</li><li>pre-clinical research</li><li>life science.</li></ul> Its developments are mostly focused on three areas for the moment: <ul><li>medical practice</li><li>imaging</li><li>bioinformatics.</li></ul>")?>
16 </div>
17 <?php
18 if ($show_locale_warning) {
19 ?>
20 <div class="row">
21 <p class="error">
22 <img src="/img/warning.png" alt="<?=_("warning")?>" style="text-align:center;" />
23 <br />
24 <?=_("You're using a low priority locale.<br />Please ask the site administrators to add your locale, or provide one yourself :).")?>
25 <br /><br />
26 <?php
27 $msg = _("Visit the %1Localization page%2.");
28 echo str_replace(array("%1", "%2"), array('<a href="/locales.php">', '</a>'), $msg);
29 ?>
30 </p>
31 </div>
32 <?php
33 }
34 ?>
35 </div>
36 <span class="section"><?=_("members")?></span>
37 <div class="section">
38 <div class="sectionTop"></div>
39 <div class="row">
40 <div class="relatedHeading">
41 <table class="related">
42 <?php
43 require_once("inc/parser.inc.php");
44
45 $members = ParseMembersTable(30063);
46
47 ksort($members);
48
49 $img = "";
50 foreach ($members as $name => $details) {
51 switch ($details["role"]) {
52 case "admin":
53 $img = "/img/wh_green.png";
54 $alt = _("Project Administrator");
55 break;
56 case "developer":
57 default:
58 $img = "/img/wh_grey.png";
59 $alt = _("Project Developer");
60 }
61 ?>
62 <tr><td>
63 <img src="<?=$img?>" alt="<?=$alt?>" title="<?=$alt?>" />
64 <a href="http://alioth.debian.org/users/<?=$details["userid"]?>"><?=$name?></a>
65 </td></tr>
66 <?php
67 }
68 ?>
69 </table>
70 </div>
71 <table class="related">
72 <tr><td>
73 <img src="/img/wh_green.png" alt="<?=_("Green Wheel")?>" />
74 <?=_("Project Administrator")?>
75 </td></tr>
76 <tr><td>
77 <img src="/img/wh_grey.png" alt="<?=_("Grey Wheel")?>" />
78 <?=_("Project Developer")?>
79 </td></tr>
80 </table>
81 </div>
82 </div>
83 <span class="section"><?=_("pages")?></span>
84 <div class="section">
85 <div class="sectionTop"></div>
86 <div class="row">
87 <ul>
88 <li><a href="/bugs.php"><?=_("Bugs page")?></a></li>
89 <li><a href="/locales.php"><?=_("Locales page")?></a></li>
90 <li><a href="/ddtp.php"><?=_("DDTP page")?></a></li>
91 <li>&hellip;</li>
92 </ul>
93 </div>
94 </div>
95 <span class="section"><?=_("UTC time")?></span>
96 <div class="section">
97 <div class="sectionTop"></div>
98 <div class="row"><?=date("r", time())?></div>
99 <div class="row"><?=strftime("%c", time())?></div>
100 </div>
101 <span class="section"><?=_("badges")?></span>
102 <div class="section">
103 <div class="sectionTop"></div>
104 <div class="row">
105 <p style="text-align: center">
106 <a href="http://validator.w3.org/check?uri=referer">
107 <img src="http://www.w3.org/Icons/valid-xhtml11-blue" alt="<?=_("Valid XHTML 1.1")?>" height="31" width="88" />
108 </a>
109 </p>
110 <!-- I am not so very serious about the BOINC link, it is just that the
111 validator link alone was rather ... boring? -->
112 <p style="text-align: center">
113 <a href="http://boinc.berkeley.edu">
114 <img src="http://boinc.berkeley.edu/logo/www_logo.gif" alt="<?=_("Berkeley Open Infrastructure for Network Computing")?>" />
115 </a>
116 </p>
117 </div>
118 </div>
119 </td>
120 <td class="main">
121 <span class="section"><?=_("recent activity")?></span>
122 <div class="section">
123 <div class="sectionTop"></div>
124 <div class="row">
125 <table width="100%">
126 <tr>
127 <th><?=_("date")?></th>
128 <th><?=_("author")?></th>
129 <th style="width:400px"><?=_("content")?></th>
130 <th><?=_("link")?></th>
131 </tr>
132 <?php
133 include_once("inc/lastRSS.php");
134 $rss = new lastRSS;
135 $rss->cache_dir = "./cache";
136 $rss->cache_time = 3600;
137
138 if ($rs = $rss->get("http://cia.vc/stats/project/Debian-Med/.rss")) {
139 // we show only the last 10 commits by default
140 for ($i = 0; $i < 9; $i++) {
141 $desc = html_entity_decode($rs["items"][$i]["description"]);
142 preg_match("/(Commit by.*)<strong>(.*)<\/strong>/", $desc, $matches);
143 $author = $matches[2];
144 $desc = preg_replace("/(Commit by.*<strong>.*<\/strong>.*<span.*::.*<\/span>)/", "", $desc);
145 ?>
146 <tr>
147 <td><?=strftime("%c", strtotime($rs["items"][$i]["pubDate"]))?></td>
148 <td><a href="http://alioth.debian.org/users/<?=$author?>"><?=$author?></a></td>
149 <td><?=$desc?></td>
150 <td><a href="<?=$rs["items"][$i]["link"]?>">&raquo;</a></td>
151 </tr>
152 <?php
153 }
154 }
155 ?>
156 </table>
157 </div>
158 </div>
159 <span class="section"><?=_("todo")?></span>
160 <div class="section">
161 <div class="sectionTop"></div>
162 <div class="row">
163 <ul>
164 <li>use AJAX to make the commit feed "live";</li>
165 <li>add Packages information:
166 <ul>
167 <li>bug reports (w/AJAX);</li>
168 <li>upload status;</li>
169 <li>distributions versions;</li>
170 <li>buildd status;</li>
171 <li>&hellip;</li>
172 </ul></li>
173 <li>use a general backend for retrieving information (i.e. do not put retrieving code directly
174 into index.php);</li>
175 <li><del>dynamically generate members list from
176 <a href="http://alioth.debian.org/project/memberlist.php?group_id=30063">
177 http://alioth.debian.org/project/memberlist.php?group_id=30063</a> &mdash; it also has links to
178 personal pages and usernames!</del></li>
179 <li><del>bugs retrieval from Debian BTS;</del></li>
180 <li>localization support:
181 <ul>
182 <li><del>add proper support localize website;</del></li>
183 <li>automatize .po generation (and compilation);</li>
184 <li>&hellip;</li>
185 </ul></li>
186 <li>fully support DDTP; <img src="/img/yellow.png" alt="In progress" title="In progress" /></li>
187 <li>make this TO-DO list dynamic;</li>
188 <li>add parsing scripts under SVN control;</li>
189 <li>&hellip;</li>
190 </ul>
191 </div>
192 </div>
193 </td>
194 </tr>
195 </table>
196 <hr />
197 <p>
198 <small><?=_("Please, note that this is a SVN export of our website. It might break during SVN commits.")?></small>
199 </p>
200 <?php
201 require_once("inc/footer.inc.php")
202 ?>

  ViewVC Help
Powered by ViewVC 1.1.5