Indefero

Indefero Commit Details


Date:2008-08-06 15:30:44 (16 years 4 months ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3, svn
Commit:19ca5ef02f0c9a2cba873e73d639578b09824983
Parents: a8699db26800e6ecf96bea7747507c042d4fcbed
Message:Added a nice warning if the user tries to download a deprecated file.

Changes:

File differences

src/IDF/Views/Download.php
4242
4343
4444
45
46
4745
4846
4947
......
8482
8583
8684
85
86
87
88
8789
8890
8991
......
109111
110112
111113
114
115
112116
113117
114118
{
$prj = $request->project;
$title = sprintf(__('%s Downloads'), (string) $prj);
$tags = self::getDownloadTags($prj);
$dtag = array_pop($tags); // The last tag is the deprecated tag.
// Paginator to paginate the files to download.
$pag = new Pluf_Paginator(new IDF_Upload());
$pag->class = 'recent-issues';
$prj->inOr404($upload);
$title = sprintf(__('Download %s'), $upload->summary);
$form = false;
$ptags = self::getDownloadTags($prj);
$dtag = array_pop($ptags); // The last tag is the deprecated tag.
$tags = $upload->get_tags_list();
$deprecated = Pluf_Model_InArray($dtag, $tags);
if ($request->method == 'POST' and
true === IDF_Precondition::projectMemberOrOwner($request)) {
return Pluf_Shortcuts_RenderToResponse('downloads/view.html',
array(
'file' => $upload,
'deprecated' => $deprecated,
'tags' => $tags,
'auto_labels' => self::autoCompleteArrays($prj),
'page_title' => $title,
'form' => $form,
src/IDF/locale/fr/idf.po
22
33
44
5
6
5
6
77
88
99
......
236236
237237
238238
239
239240
240241
241242
......
250251
251252
252253
254
253255
254256
255257
......
257259
258260
259261
262
260263
261264
262265
263266
264267
265268
269
266270
267271
268272
269273
270274
271275
276
272277
273278
274279
......
280285
281286
282287
288
283289
284290
285291
......
288294
289295
290296
297
291298
292299
293300
294301
295302
303
296304
297305
298306
......
440448
441449
442450
451
443452
444453
445454
446455
447456
457
448458
449459
450460
451461
462
452463
453464
454465
......
459470
460471
461472
473
462474
463475
464476
465477
478
466479
467480
468481
469482
470483
484
471485
472486
473487
474488
489
475490
476491
477492
478493
479494
480495
496
481497
482498
483499
......
12271243
12281244
12291245
1246
12301247
12311248
12321249
12331250
12341251
1252
12351253
12361254
12371255
12381256
1257
1258
1259
1260
msgstr ""
"Project-Id-Version: InDefero\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-08-06 21:49+0200\n"
"PO-Revision-Date: 2008-08-06 21:51+0100\n"
"POT-Creation-Date: 2008-08-06 22:28+0200\n"
"PO-Revision-Date: 2008-08-06 22:30+0100\n"
"Last-Translator: Loïc d'Anterroches <titoo@users.sourceforge.net>\n"
"Language-Team: Translation team <titoo@users.sourceforge.net>\n"
"MIME-Version: 1.0\n"
#: IDF/Form/Upload.php:49
#: IDF/Views/Download.php:56
#: IDF/Views/Download.php:212
#: IDF/Views/Download.php:218
msgid "File"
msgstr "Fichier"
#: IDF/Form/IssueUpdate.php:45
#: IDF/Views/Download.php:57
#: IDF/Views/Download.php:213
#: IDF/Views/Download.php:219
msgid "Summary"
msgstr "Résumé"
#: IDF/gettexttemplates/source/tree.html.php:9
#: IDF/Views/Download.php:58
#: IDF/Views/Download.php:214
#: IDF/Views/Download.php:220
msgid "Size"
msgstr "Taille"
#: IDF/Views/Download.php:57
#: IDF/Views/Download.php:59
#: IDF/Views/Download.php:215
#: IDF/Views/Download.php:221
msgid "Uploaded"
msgstr "Mis en ligne"
#: IDF/Views/Download.php:61
#: IDF/Views/Download.php:63
#: IDF/Views/Download.php:219
#: IDF/Views/Download.php:225
msgid "No downloads were found."
msgstr "Aucun fichier n'a été trouvé."
#: IDF/Views/Download.php:94
#: IDF/Views/Download.php:96
#: IDF/Views/Download.php:100
#, php-format
msgid "The file <a href=\"%1$s\">%2$s</a> has been updated."
msgstr "Le fichier <a href=\"%1$s\">%2$s</a> a été mis à jour."
#: IDF/gettexttemplates/downloads/base.html.php:4
#: IDF/gettexttemplates/downloads/index.html.php:3
#: IDF/Views/Download.php:137
#: IDF/Views/Download.php:143
msgid "New Download"
msgstr "Nouveau téléchargement"
#: IDF/Views/Download.php:144
#: IDF/Views/Download.php:146
#: IDF/Views/Download.php:152
#, php-format
msgid "The <a href=\"%s\">file</a> has been uploaded."
msgstr "Le <a href=\"%s\">fichier</a> a été mis en ligne."
#: IDF/gettexttemplates/downloads/view.html.php:3
#: IDF/gettexttemplates/issues/view.html.php:6
#: IDF/gettexttemplates/downloads/view.html.php:4
#, php-format
msgid "by %%submitter%%"
msgstr "par %%submitter%%"
#: IDF/gettexttemplates/downloads/view.html.php:4
#: IDF/gettexttemplates/downloads/view.html.php:5
msgid "The form contains some errors. Please correct them to update the file."
msgstr "Le formulaire contient des erreurs. Merci de les corriger pour mettre en ligne le fichier."
#: IDF/gettexttemplates/downloads/view.html.php:5
#: IDF/gettexttemplates/downloads/view.html.php:6
msgid "Update File"
msgstr "Mettre à jour le fichier"
#: IDF/gettexttemplates/register/index.html.php:7
#: IDF/gettexttemplates/issues/view.html.php:14
#: IDF/gettexttemplates/issues/create.html.php:12
#: IDF/gettexttemplates/downloads/view.html.php:7
msgid "Cancel"
msgstr "Annuler"
#: IDF/gettexttemplates/downloads/view.html.php:7
#: IDF/gettexttemplates/downloads/view.html.php:8
msgid "Uploaded:"
msgstr "Mis en ligne :"
#: IDF/gettexttemplates/downloads/view.html.php:8
#: IDF/gettexttemplates/issues/view.html.php:16
#: IDF/gettexttemplates/downloads/view.html.php:9
msgid "Updated:"
msgstr "Mis à jour :"
#: IDF/gettexttemplates/downloads/view.html.php:9
#: IDF/gettexttemplates/downloads/view.html.php:10
msgid "Downloads:"
msgstr "Téléchargements :"
#: IDF/gettexttemplates/downloads/view.html.php:10
#: IDF/gettexttemplates/issues/view.html.php:11
#: IDF/gettexttemplates/issues/view.html.php:20
#: IDF/gettexttemplates/downloads/view.html.php:11
msgid "Labels:"
msgstr "Étiquettes :"
msgstr "Détails d'un commit de %s - %s"
#: IDF/Views/Download.php:199
#: IDF/Views/Download.php:205
#, php-format
msgid "%1$s Downloads with Label %2$s"
msgstr "Téléchargements avec l'étiquette %2$s de %1$s"
#: IDF/Views/Download.php:207
#: IDF/Views/Download.php:213
#, php-format
msgid "This table shows the downloads with label %s."
msgstr "Ce tableau montre les téléchargements avec l'étiquette %s."
#: IDF/gettexttemplates/downloads/view.html.php:3
msgid "<strong>Attention!</strong> This file is marked as deprecated, download it only if you are sure you need this specific version."
msgstr "<strong>Attention !</strong> Ce fichier est marqué comme obsolète, téléchargez ce fichier uniquement si vous avez besoin de cette version."
src/IDF/locale/idf.pot
88
99
1010
11
11
1212
1313
1414
......
223223
224224
225225
226
226227
227228
228229
......
230231
231232
232233
233
234
234235
235236
236237
237238
238239
240
239241
240242
241243
242244
243
245
244246
245247
246248
247249
248
250
249251
250252
251253
......
255257
256258
257259
260
258261
259262
260263
261264
262265
263266
267
264268
265269
266270
267271
272
268273
269274
270275
......
404409
405410
406411
412
407413
408414
409415
410416
411417
418
412419
413420
414421
415422
423
416424
417425
418426
......
423431
424432
425433
434
426435
427436
428437
429438
439
430440
431441
432442
433443
434444
445
435446
436447
437448
438449
450
439451
440452
441453
442454
443455
444456
457
445458
446459
447460
......
11581171
11591172
11601173
1161
1174
11621175
11631176
11641177
11651178
1166
1179
11671180
11681181
11691182
1183
1184
1185
1186
1187
1188
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-08-06 21:49+0200\n"
"POT-Creation-Date: 2008-08-06 22:28+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#: IDF/Views/Download.php:54 IDF/gettexttemplates/source/tree.html.php:6
#: IDF/Form/Upload.php:49 IDF/Views/Download.php:56 IDF/Views/Download.php:212
#: IDF/Views/Download.php:218
msgid "File"
msgstr ""
#: IDF/Views/Issue.php:228 IDF/Views/Issue.php:281 IDF/Form/Upload.php:40
#: IDF/Form/IssueCreate.php:50 IDF/Form/UpdateUpload.php:42
#: IDF/Form/IssueUpdate.php:45 IDF/Views/Download.php:57
#: IDF/Views/Download.php:213
#: IDF/Views/Download.php:213 IDF/Views/Download.php:219
msgid "Summary"
msgstr ""
#: IDF/Views/Download.php:56 IDF/gettexttemplates/source/tree.html.php:9
#: IDF/Views/Download.php:58 IDF/Views/Download.php:214
#: IDF/Views/Download.php:220
msgid "Size"
msgstr ""
#: IDF/Views/Download.php:57 IDF/Views/Download.php:59
#: IDF/Views/Download.php:215
#: IDF/Views/Download.php:215 IDF/Views/Download.php:221
msgid "Uploaded"
msgstr ""
#: IDF/Views/Download.php:61 IDF/Views/Download.php:63
#: IDF/Views/Download.php:219
#: IDF/Views/Download.php:219 IDF/Views/Download.php:225
msgid "No downloads were found."
msgstr ""
msgstr ""
#: IDF/Views/Download.php:94 IDF/Views/Download.php:96
#: IDF/Views/Download.php:100
#, php-format
msgid "The file <a href=\"%1$s\">%2$s</a> has been updated."
msgstr ""
#: IDF/Views/Download.php:135 IDF/gettexttemplates/downloads/base.html.php:4
#: IDF/gettexttemplates/downloads/index.html.php:3 IDF/Views/Download.php:137
#: IDF/Views/Download.php:143
msgid "New Download"
msgstr ""
#: IDF/Views/Download.php:144 IDF/Views/Download.php:146
#: IDF/Views/Download.php:152
#, php-format
msgid "The <a href=\"%s\">file</a> has been uploaded."
msgstr ""
#: IDF/gettexttemplates/downloads/view.html.php:3
#: IDF/gettexttemplates/issues/view.html.php:6
#: IDF/gettexttemplates/downloads/view.html.php:4
#, php-format
msgid "by %%submitter%%"
msgstr ""
#: IDF/gettexttemplates/downloads/view.html.php:4
#: IDF/gettexttemplates/downloads/view.html.php:5
msgid "The form contains some errors. Please correct them to update the file."
msgstr ""
#: IDF/gettexttemplates/downloads/view.html.php:5
#: IDF/gettexttemplates/downloads/view.html.php:6
msgid "Update File"
msgstr ""
#: IDF/gettexttemplates/register/index.html.php:7
#: IDF/gettexttemplates/issues/view.html.php:14
#: IDF/gettexttemplates/issues/create.html.php:12
#: IDF/gettexttemplates/downloads/view.html.php:7
msgid "Cancel"
msgstr ""
#: IDF/gettexttemplates/downloads/view.html.php:7
#: IDF/gettexttemplates/downloads/view.html.php:8
msgid "Uploaded:"
msgstr ""
#: IDF/gettexttemplates/downloads/view.html.php:8
#: IDF/gettexttemplates/issues/view.html.php:16
#: IDF/gettexttemplates/downloads/view.html.php:9
msgid "Updated:"
msgstr ""
#: IDF/gettexttemplates/downloads/view.html.php:9
#: IDF/gettexttemplates/downloads/view.html.php:10
msgid "Downloads:"
msgstr ""
#: IDF/gettexttemplates/downloads/view.html.php:10
#: IDF/gettexttemplates/issues/view.html.php:11
#: IDF/gettexttemplates/issues/view.html.php:20
#: IDF/gettexttemplates/downloads/view.html.php:11
msgid "Labels:"
msgstr ""
msgid "%s Commit Details - %s"
msgstr ""
#: IDF/Views/Download.php:199
#: IDF/Views/Download.php:199 IDF/Views/Download.php:205
#, php-format
msgid "%1$s Downloads with Label %2$s"
msgstr ""
#: IDF/Views/Download.php:207
#: IDF/Views/Download.php:207 IDF/Views/Download.php:213
#, php-format
msgid "This table shows the downloads with label %s."
msgstr ""
#: IDF/gettexttemplates/downloads/view.html.php:3
msgid ""
"<strong>Attention!</strong> This file is marked as deprecated, download it "
"only if you are sure you need this specific version."
msgstr ""
src/IDF/templates/downloads/view.html
33
44
55
6
67
78
89
......
5253
5354
5455
55
56
5657
5758
5859
{block body}
<div class="download-file">
{if $deprecated}<p class="smaller">{blocktrans}<strong>Attention!</strong> This file is marked as deprecated, download it only if you are sure you need this specific version.{/blocktrans}</p>{/if}
<a href="{url 'IDF_Views_Download::download', array($project.shortname, $file.id)}">{$file}</a> - {$file.filesize|size}
</div>
<strong>{trans 'Updated:'}</strong> <span class="nobrk">{$file.modif_dtime|dateago}</span></p>
<p>
<strong>{trans 'Downloads:'}</strong> <span class="nobrk">{$file.downloads}</span></p>
{assign $tags = $file.get_tags_list()}{if $tags.count()}
{if $tags.count()}
<p>
<strong>{trans 'Labels:'}</strong><br />
{foreach $tags as $tag}{aurl 'url', 'IDF_Views_Download::listLabel', array($project.shortname, $tag.id)}

Archive Download the corresponding diff file

Page rendered in 0.09663s using 13 queries.