Changeset 0da9dfe in tol


Ignore:
Timestamp:
Dec 14, 2011, 7:17:14 PM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
00c4270
Parents:
5b6b63c
Message:

refs #1347, implementing url to source code in trac

[@src tol tol/init.cpp init.cpp trunk@]

[@src tol tol/init.cpp init.cpp@]

[@src tol tol/init.cpp@]

[@src mms MMS/definition/01_variable/def_variable.tol def_variable.tol@]

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3927 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/nbdbmanager/nbdbmanager.tcl

    r5b6b63c r0da9dfe  
    9898        mms,milestone https://www.tol-project.org/mms/milestone
    9999        mms,ticket https://www.tol-project.org/mms/ticket
     100        tol,browser https://www.tol-project.org/browser/tolp
     101        tol,browser,default trunk
     102        mms,browser https://trac.localbayes.es/mms/browser
     103        mms,browser,default trunk
    100104      }
    101105     
    … …  
    128132        return [ eval url tol $path $args ]
    129133      }
     134
     135      # [@src tol tol/init.cpp init.cpp trunk@]
     136      # [@src tol tol/init.cpp init.cpp@]
     137      # [@src tol tol/init.cpp@]
     138      # [@src mms MMS/definition/01_variable/def_variable.tol def_variable.tol@]
     139      proc src { where path args } {
     140        foreach { label release } {"" ""} break
     141        foreach { label release } $args break
     142        if { $release eq "" } {
     143          set release "trunk"
     144        }
     145        set urlroot $::urlConf(${where},browser)
     146        set url "${urlroot}/${release}/${path}"
     147        if { $label eq "" } {
     148          return "\[${url}\]"
     149        } else {
     150          return "\[$label | ${url}\]"
     151        }
     152      }
    130153    }
    131154  }
Note: See TracChangeset for help on using the changeset viewer.