/[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 861 - (show annotations) (download)
Sun Nov 25 10:01:16 2007 UTC (5 years, 5 months ago) by hanska-guest
File size: 7491 byte(s)
New To-Do item :)
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 <?=_("Your browser uses language settings that we could not yet provide translations for.<br />If you can spare one to two hours then please consider to help us in translating our pages for your people, too. Instructions are found <a href=\"/locales.php\">here</a>.")?>
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"><?=_("pages")?></span>
37 <div class="section">
38 <div class="sectionTop"></div>
39 <div class="row">
40 <ul>
41 <li><a href="/bugs.php"><?=_("Bugs page")?></a></li>
42 <li><a href="/ddtp.php"><?=_("DDTP page")?></a></li>
43 <hr />
44 <li><a href="/locales.php"><?=_("Locales page")?></a></li>
45 <li>&hellip;</li>
46 </ul>
47 </div>
48 </div>
49 <span class="section"><?=_("members")?></span>
50 <div class="section">
51 <div class="sectionTop"></div>
52 <div class="row">
53 <div class="relatedHeading">
54 <table class="related">
55 <?php
56 require_once("inc/parser.inc.php");
57
58 $members = ParseMembersTable(30063);
59
60 ksort($members);
61
62 $img = "";
63 foreach ($members as $name => $details) {
64 switch ($details["role"]) {
65 case "admin":
66 $img = "/img/wh_green.png";
67 $alt = _("Project Administrator");
68 break;
69 case "developer":
70 default:
71 $img = "/img/wh_grey.png";
72 $alt = _("Project Developer");
73 }
74 ?>
75 <tr><td>
76 <img src="<?=$img?>" alt="<?=$alt?>" title="<?=$alt?>" />
77 <a href="http://alioth.debian.org/users/<?=$details["userid"]?>"><?=$name?></a>
78 </td></tr>
79 <?php
80 }
81 ?>
82 </table>
83 </div>
84 <table class="related">
85 <tr><td>
86 <img src="/img/wh_green.png" alt="<?=_("Green Wheel")?>" />
87 <?=_("Project Administrator")?>
88 </td></tr>
89 <tr><td>
90 <img src="/img/wh_grey.png" alt="<?=_("Grey Wheel")?>" />
91 <?=_("Project Developer")?>
92 </td></tr>
93 </table>
94 </div>
95 </div>
96 <span class="section"><?=_("UTC time")?></span>
97 <div class="section">
98 <div class="sectionTop"></div>
99 <div class="row"><?=date("r", time())?></div>
100 <div class="row"><?=strftime("%c", time())?></div>
101 </div>
102 <span class="section"><?=_("badges")?></span>
103 <div class="section">
104 <div class="sectionTop"></div>
105 <div class="row">
106 <p style="text-align: center">
107 <a href="http://validator.w3.org/check?uri=referer">
108 <img src="http://www.w3.org/Icons/valid-xhtml11-blue" alt="<?=_("Valid XHTML 1.1")?>" height="31" width="88" />
109 </a>
110 </p>
111 <p style="text-align: center">
112 <a href="http://jigsaw.w3.org/css-validator/validator?uri=http://debian-med.alioth.debian.org/">
113 <img src="http://www.w3.org/Icons/valid-css2-blue" alt="<?=_("Valid CSS 2")?>" height="31" width="88" />
114 </a>
115 </p>
116 <!-- I am not so very serious about the BOINC link, it is just that the
117 validator link alone was rather ... boring? -->
118 <p style="text-align: center">
119 <a href="http://boinc.berkeley.edu">
120 <img src="http://boinc.berkeley.edu/logo/www_logo.gif" alt="<?=_("Berkeley Open Infrastructure for Network Computing")?>" />
121 </a>
122 </p>
123 </div>
124 </div>
125 </td>
126 <td class="main">
127 <span class="section"><?=_("recent activity")?></span>
128 <div class="section">
129 <div class="sectionTop"></div>
130 <div class="row">
131 <table width="100%">
132 <tr>
133 <th><?=_("date")?></th>
134 <th><?=_("author")?></th>
135 <th style="width:400px"><?=_("content")?></th>
136 <th><?=_("link")?></th>
137 </tr>
138 <?php
139 include_once("inc/lastRSS.php");
140 $rss = new lastRSS;
141 $rss->cache_dir = "./cache";
142 $rss->cache_time = 3600;
143
144 if ($rs = $rss->get("http://cia.vc/stats/project/Debian-Med/.rss")) {
145 // we show only the last 10 commits by default
146 for ($i = 0; $i < 9; $i++) {
147 $desc = html_entity_decode($rs["items"][$i]["description"]);
148 preg_match("/(Commit by.*)<strong>(.*)<\/strong>/", $desc, $matches);
149 $author = $matches[2];
150 $desc = preg_replace("/(Commit by.*<strong>.*<\/strong>.*<span.*::.*<\/span>)/", "", $desc);
151 ?>
152 <tr>
153 <td><?=strftime("%c", strtotime($rs["items"][$i]["pubDate"]))?></td>
154 <td><a href="http://alioth.debian.org/users/<?=$author?>"><?=$author?></a></td>
155 <td><?=$desc?></td>
156 <td><a href="<?=$rs["items"][$i]["link"]?>">&raquo;</a></td>
157 </tr>
158 <?php
159 }
160 }
161 ?>
162 </table>
163 </div>
164 </div>
165 <span class="section"><?=_("todo")?></span>
166 <div class="section">
167 <div class="sectionTop"></div>
168 <div class="row">
169 <ul>
170 <li>Build list of existing and prospective packages to replace the sections on
171 our static wml pages like <a href="http://www.debian.org/devel/debian-med/microbio">Microbiology</a>,
172 <a href="http://www.debian.org/devel/debian-med/microbio">Imaging</a> and others;</li>
173 <li>use AJAX to make the commit feed "live";</li>
174 <li>add Packages information:
175 <ul>
176 <li>bug reports (w/AJAX);</li>
177 <li>upload status;</li>
178 <li>distributions versions;</li>
179 <li>buildd status;</li>
180 <li>&hellip;</li>
181 </ul></li>
182 <li>use a general backend for retrieving information (i.e. do not put retrieving code directly
183 into index.php);</li>
184 <li><del>dynamically generate members list from
185 <a href="http://alioth.debian.org/project/memberlist.php?group_id=30063">
186 http://alioth.debian.org/project/memberlist.php?group_id=30063</a> &mdash; it also has links to
187 personal pages and usernames!</del></li>
188 <li><del>bugs retrieval from Debian BTS;</del></li>
189 <li>localization support:
190 <ul>
191 <li><del>add proper support localize website;</del></li>
192 <li>automatize .po generation (and compilation);</li>
193 <li>&hellip;</li>
194 </ul></li>
195 <li>fully support DDTP; <img src="/img/yellow.png" alt="In progress" title="In progress" /></li>
196 <li>make this TO-DO list dynamic;</li>
197 <li>add parsing scripts under SVN control;</li>
198 <li>add a "BuildD page" parsing <a href="http://people.debian.org/~igloo/status.php">http://people.debian.org/~igloo/status.php</a>;</li>
199 <li>&hellip;</li>
200 </ul>
201 </div>
202 </div>
203 </td>
204 </tr>
205 </table>
206 <hr />
207 <p>
208 <small><?=_("Please, note that this is a SVN export of our website. It might break during SVN commits.")?></small>
209 </p>
210 <?php
211 require_once("inc/footer.inc.php")
212 ?>

  ViewVC Help
Powered by ViewVC 1.1.5