Rev 14938 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14938 | Rev 14942 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | !if $t_ notwordof exercise doc href |
2 | !if $t_ notwordof exercise doc href |
3 | !exit |
3 | !exit |
4 | !endif |
4 | !endif |
5 | 5 | ||
6 | !if href iswordof $t_ |
6 | !if href iswordof $t_ |
7 |
|
7 | !! !default a_=$l_ |
8 |
|
8 | !! !set n_=!replace internal . by , in $l_ |
9 |
|
9 | !! !set n_=!item -1 of $n_ |
10 |
|
10 | !! !set n_=!lowercase $n_ |
11 |
|
11 | !! !if $n_ notwordof jpeg jpg png gif pdf tex txt mp3 flv avi ggb ods |
12 |
|
12 | !! !set n_=cgi |
13 |
|
13 | !! !endif |
14 | - | ||
15 |
|
14 | !! !set n_=!replace internal cgi? by $n_? in $m_filedir |
16 | !! <a target="wims_internal" href="$n_/$l_" >$a_</a> |
15 | !! <a target="wims_internal" href="$n_/$l_" >$a_</a> |
17 | <a target="wims_internal" href="$m_filedir/$l_" download="$l_">$a_</a> |
16 | <a target="wims_internal" href="$m_filedir/$l_" download="$l_">$a_</a> |
18 | !exit |
17 | !exit |
19 | !endif |
18 | !endif |
20 | 19 |