Changeset 9976 for lang/gauche/oldtype/trunk
- Timestamp:
- 04/20/08 13:56:23 (5 years ago)
- Location:
- lang/gauche/oldtype/trunk
- Files:
-
- 3 added
- 4 modified
-
Kahua/oldtype/Makefile (modified) (1 diff)
-
Kahua/oldtype/oldtype/import/orig (added)
-
Kahua/oldtype/oldtype/import/tooltips.css (added)
-
Kahua/oldtype/oldtype/import/tooltips.js (added)
-
Kahua/oldtype/oldtype/oldtype.js (modified) (2 diffs)
-
Kahua/oldtype/oldtype/oldtype.kahua (modified) (5 diffs)
-
bin/ot_RecentChanges (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/gauche/oldtype/trunk/Kahua/oldtype/Makefile
r8607 r9976 37 37 TEST_DIR = $(PWD) 38 38 SCRIPTFILES = $(package)/$(package).kahua $(package)/version.kahua $(package)/util.kahua $(package)/format.scm $(package)/kahualib.scm $(package)/parse.scm $(package)/util.scm $(package)/pasttime.scm 39 STATICFILES = $(package)/$(package).css $(package)/staticimg/*.png $(package)/*.el $(package)/import/*.js $(package)/$(package).js39 STATICFILES = $(package)/$(package).css $(package)/staticimg/*.png $(package)/*.el $(package)/import/*.js $(package)/import/*.css $(package)/$(package).js 40 40 41 41 SOURCEDIR = $(package) -
lang/gauche/oldtype/trunk/Kahua/oldtype/oldtype/oldtype.js
r7811 r9976 7 7 var dropOutTime = 1500; // ms 8 8 9 // for In-place edit 9 10 function otEditStart( bodyId ) { 10 11 if( 'none' == $(bodyId + ':editarea').getStyle( 'display' )) { … … 26 27 } 27 28 29 // for tooltips.js 30 function setup_tooltips( ) { 31 $$("body .help").each( function(input) { 32 new Tooltip(input, {backgroundColor: "#FC9", borderColor: "#C96", 33 textColor: "#000", textShadowColor: "#FFF"}); 34 }); 35 } -
lang/gauche/oldtype/trunk/Kahua/oldtype/oldtype/oldtype.kahua
r9585 r9976 54 54 (if (eq? 'w3m (oldtype-user-agent)) 55 55 (br/) 56 ( node-set/57 ( text/ "Click to jump:")58 (map/59 (lambda (x)60 ( let ((name (car x))61 (param (cadr x)))62 (case name63 ((div)64 ( let ((latest-rate (assq-ref param 'latest-rate))65 (id (assq-ref param 'lineno)))66 (a/ (@/ (href (format "#~d" id)))67 (case latest-rate68 ((0) (oldtype:icon-image 'vline0))69 ((1) (oldtype:icon-image 'vline1))70 ((2) (oldtype:icon-image 'vline2))71 ((3) (oldtype:icon-image 'vline3))72 ((4) (oldtype:icon-image 'vline4))73 (else (oldtype:icon-image 'vline5)))))))))74 sxmls))))56 (map/ 57 (lambda (x) 58 (let ((name (car x)) 59 (param (cadr x))) 60 (case name 61 ((div) 62 (let ((latest-rate (assq-ref param 'latest-rate)) 63 (id (assq-ref param 'lineno))) 64 (a/ (@/ (href (format "#~d" id)) 65 (title "Click to jump") 66 (class "help")) 67 (case latest-rate 68 ((0) (oldtype:icon-image 'vline0)) 69 ((1) (oldtype:icon-image 'vline1)) 70 ((2) (oldtype:icon-image 'vline2)) 71 ((3) (oldtype:icon-image 'vline3)) 72 ((4) (oldtype:icon-image 'vline4)) 73 (else (oldtype:icon-image 'vline5))))))))) 74 sxmls))) 75 75 76 76 … … 127 127 (string-append orig "\n")) 128 128 (string-append orig "\n"))) 129 page-src))) 130 ""131 )))))129 page-src)))) 130 "" 131 )))) 132 132 (node-set 133 (list 134 (if is-w3m 135 (text/ "info") 136 (oldtype:icon-image 'info)) 137 (case (assq-ref param 'latest-rate) 138 ((0) (oldtype:icon-image 'new0)) 139 ((1) (oldtype:icon-image 'new1)) 140 ((2) (oldtype:icon-image 'new2)) 141 ((3) (oldtype:icon-image 'new3)) 142 ((4) (oldtype:icon-image 'new4)) 143 (else (if is-w3m 144 (oldtype:space->nbsp " ") 145 (oldtype:icon-image 'new5)))))))) 133 (let ((date-message (string-append 134 (oldtype:utc->ago-string (assq-ref param 'commit-utc)) " " 135 "date:" 136 (oldtype:utc->date-string (assq-ref param 'commit-utc)))) 137 (person-message (symbol->string (assq-ref param 'committer)))) 138 (list 139 (span/ (@/ (title date-message) 140 (class "help")) 141 (case (assq-ref param 'latest-rate) 142 ((0) (oldtype:icon-image 'new0)) 143 ((1) (oldtype:icon-image 'new1)) 144 ((2) (oldtype:icon-image 'new2)) 145 ((3) (oldtype:icon-image 'new3)) 146 ((4) (oldtype:icon-image 'new4)) 147 (else (if is-w3m 148 (oldtype:space->nbsp " ") 149 (oldtype:icon-image 'new5))))) 150 (let1 committer-str (symbol->string (assq-ref param 'committer)) 151 (a/ (@/ (href 152 (oldtype:gen-page-path committer-str))) 153 (span/ 154 (@/ (class "help") 155 (title person-message)) 156 (img/ 157 (@/ 158 (class "icon") 159 (src 160 (string-append 161 (oldtype:static-image-path) "../img/" committer-str ".png")))))))))))) 146 162 (_rest 147 163 (node-set (rec (cdr arg))))) … … 155 171 (style "float: none;")) 156 172 (div/ (@/ (style "position: absolute; left: 2em; font-size: small;")) 157 _first 158 (oldtype:expand-wiki-name (symbol->string (assq-ref param 'committer)))) 173 _first) 159 174 (if (oldtype:is-editable wikiname) 160 175 (div/ (@/ (style "padding-left: 5em;") … … 246 261 247 262 (define (standard-page wikiname barcode nodes first-line) 248 (html/ (head/ (title/ (string-append wikiname first-line))263 (html/ (head/ (title/ (string-append wikiname " / " first-line)) 249 264 (link/ (@/ (rel "stylesheet") (type "text/css") 250 265 (href (string-append "/kahua/" (kahua-worker-type) "/oldtype.css")))) 266 (link/ (@/ (rel "stylesheet") (type "text/css") 267 (href (string-append "/kahua/" (kahua-worker-type) "/import/tooltips.css")))) 251 268 (script/ (@/ (src (string-append "/kahua/" (kahua-worker-type) "/import/prototype.js")) (type "text/javascript"))) 252 269 (script/ (@/ (src (string-append "/kahua/" (kahua-worker-type) "/import/scriptaculous.js")) (type "text/javascript"))) 270 (script/ (@/ (src (string-append "/kahua/" (kahua-worker-type) "/import/tooltips.js")) (type "text/javascript"))) 253 271 (script/ (@/ (src (string-append "/kahua/" (kahua-worker-type) "/oldtype.js")) (type "text/javascript")))) 254 272 (body/ 273 (@/ (onload "setup_tooltips();")) 255 274 (div/ (@/ (class "header")) 256 275 (div/ (@/ (style "float: left;")) … … 289 308 (filter 290 309 (lambda (x) 291 (not (#/^[ ]*$/ x))) 310 (not (or 311 (#/^[ ]*$/ x) 312 (#/^[ ]*##/ x)))) 292 313 page-src))) 293 314 -
lang/gauche/oldtype/trunk/bin/ot_RecentChanges
r8607 r9976 13 13 fi 14 14 15 echo "RecentChanges of OldType contents." > ${OT_EDITHOME}/edit/!RecentChanges.ot.tmp 16 echo "----" >> ${OT_EDITHOME}/edit/!RecentChanges.ot.tmp 15 17 _svn t --xml info ${lst} | ${OT_HOME}/src/oldtype_svninfo shell | while read line 16 18 do … … 20 22 echo "- ##(timestamp ${commit_utc}) ##(since ${commit_utc}): [[${name}]] by ([[${commit_author}]])" 21 23 fi 22 done | sort -r | head -${DISPLAY_LINES} > ${OT_EDITHOME}/edit/!RecentChanges.ot.tmp24 done | sort -r | head -${DISPLAY_LINES} >> ${OT_EDITHOME}/edit/!RecentChanges.ot.tmp 23 25 if [ -s ${OT_EDITHOME}/edit/!RecentChanges.ot.tmp ]; then 24 26 /bin/mv -f ${OT_EDITHOME}/edit/!RecentChanges.ot.tmp ${OT_EDITHOME}/edit/!RecentChanges.ot
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)