projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'xorg/1.0.2/master' into xorg/master
[platal.git]
/
templates
/
profile
/
grades.js.tpl
diff --git
a/templates/profile/grades.js.tpl
b/templates/profile/grades.js.tpl
index
b395b1a
..
ab575cb
100644
(file)
--- a/
templates/profile/grades.js.tpl
+++ b/
templates/profile/grades.js.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-20
09
Polytechnique.org *}
+{* Copyright (C) 2003-20
10
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-24,11
+24,11
@@
subgrades = new Array();
names = new Array();
{foreach from=$medal_list key=type item=list}
{foreach from=$list item=m}
names = new Array();
{foreach from=$medal_list key=type item=list}
{foreach from=$list item=m}
- names[{$m.id}] = "{$m.text}";
- {if $grades[$m.id]|@count}
+ names[{$m.id}] = "{$m.text
|regex_replace:"/\r?\n/":"\\n"
}";
+ {if
t($grades[$m.id]) &&
$grades[$m.id]|@count}
subgrades[{$m.id}] = new Array({$grades[$m.id]|@count});
{foreach from=$grades[$m.id] item=g}
subgrades[{$m.id}] = new Array({$grades[$m.id]|@count});
{foreach from=$grades[$m.id] item=g}
- subgrades[{$m.id}][{$g.gid-1}] = [{$g.gid},"{$g.text}"];
+ subgrades[{$m.id}][{$g.gid-1}] = [{$g.gid},"{$g.text
|regex_replace:"/\r?\n/":"\\n"
}"];
{/foreach}
{/if}
{/foreach}
{/foreach}
{/if}
{/foreach}