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

  ViewVC Help
Powered by ViewVC 1.1.5