Subversion Repositories wimsdev

Rev

Rev 16687 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
751 bpr 1
!!##language independant
23 reyssat 2
!set parm1=!text select /$namechars in $parm1
3
!set parm1=!char 1 to $namelim of $parm1
16693 guerimand 4
!set kblock=!positionof item $block in $filelist
23 reyssat 5
 
16693 guerimand 6
 
23 reyssat 7
!if $parm1=$block or $parm1=$empty
12490 bpr 8
  !default parm2=??
9
  !set parm2=!slashsubst $parm2
10
  !set pp=!item 3 to -1 of $parms
11
  !set pp=!slashsubst $pp
16687 guerimand 12
  <a id="primi$(embed_file).$serial"></a>
16693 guerimand 13
  !if $doc/$kblock.$(embed_file).$serial notitemof $foldlist and $printable!=yes
14
    !href cmd=reply&job=read&foldin=$kblock.$(embed_file).$serial#primi$(embed_file).$serial $parm2
12490 bpr 15
  !else
16
    $pp
17
    !if $printable!=yes
16213 bpr 18
      !set wims_ref_class=wims_button small
16693 guerimand 19
      !href cmd=reply&job=read&foldout=$kblock.$(embed_file).$serial#primi$(embed_file).$serial $n_foldout
12490 bpr 20
    !endif
23 reyssat 21
  !endif
12490 bpr 22
  !exit
23 reyssat 23
!endif
24
 
25
!reset titb
26
!read $wims_priv_thisdoc/$parm1.def
27
!set prompt=!item 2 to -1 of $parms
28
!default prompt=$titb
29
!if $titb=$empty
12490 bpr 30
  !default prompt=<span class="tt">$parm1</span>
31
  $prompt
23 reyssat 32
  !if $editable=yes
16213 bpr 33
    !set wims_ref_class=wims_button small
12490 bpr 34
    !href cmd=reply&job=edit&block=$parm1 $n_create
35
  !else
36
    <span class="small">$n_nonavailable</span>
23 reyssat 37
  !endif
12490 bpr 38
!else
16687 guerimand 39
  <a id="primi$(embed_file).$serial"></a>
12490 bpr 40
  $prompt
41
  !if $printable=yes
42
    !goto alwaysin
43
  !endif
16213 bpr 44
  !set wims_ref_class=wims_button small
16693 guerimand 45
  !if $doc/$kblock.$(embed_file).$serial notitemof $foldlist and robot notin $session
46
    !href cmd=reply&job=read&foldin=$kblock.$(embed_file).$serial#primi$(embed_file).$serial $wims_name_detail
12490 bpr 47
  !else
16693 guerimand 48
    !href cmd=reply&job=read&foldout=$kblock.$(embed_file).$serial#primi$(embed_file).$serial $n_foldout
12490 bpr 49
    !if $editable=yes
16213 bpr 50
      !set wims_ref_class=wims_button small
12490 bpr 51
      !href cmd=reply&job=edit&doc=$doc&block=$parm1 $wims_name_Edit
52
    !endif
53
    :alwaysin
54
    !set blocksave=$blocksave $block
55
    !set block=$parm1
56
    !read $wims_priv_thisdoc/$parm1.def content
57
    !set block=!word -1 of $blocksave
58
    !set blocksave=!word 1 to -2 of $blocksave
59
    !set gotblock=!append item $parm1 to $gotblock
60
  !endif
23 reyssat 61
!endif