comparison after5.rb @ 63:e2aa6180c2c6 draft

Show the number of group member in groupman().
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 25 Jun 2012 14:30:54 +0900
parents 2d33f85c3d9f
children 2445a87742d0
comparison
equal deleted inserted replaced
62:2d33f85c3d9f 63:e2aa6180c2c6
2 # -*- coding: euc-jp -*- 2 # -*- coding: euc-jp -*-
3 # 3 #
4 # Associative Scheduling Table - after5 4 # Associative Scheduling Table - after5
5 # (C)2003, 2004, 2006, 2008, 2012 by HIROSE Yuuji [yuuji<at>gentei.org] 5 # (C)2003, 2004, 2006, 2008, 2012 by HIROSE Yuuji [yuuji<at>gentei.org]
6 # $Id: after5.rb,v 1.19 2012/04/01 11:52:25 yuuji Exp yuuji $ 6 # $Id: after5.rb,v 1.19 2012/04/01 11:52:25 yuuji Exp yuuji $
7 # Last modified Mon Jun 25 14:07:39 2012 on firestorm 7 # Last modified Mon Jun 25 14:29:40 2012 on firestorm
8 # See http://www.gentei.org/~yuuji/software/after5/ 8 # See http://www.gentei.org/~yuuji/software/after5/
9 # このスクリプトはEUCで保存してください。 9 # このスクリプトはEUCで保存してください。
10 $hgid = <<_HGID_.split[1..-2].join(" ") 10 $hgid = <<_HGID_.split[1..-2].join(" ")
11 $HGid$ 11 $HGid$
12 _HGID_ 12 _HGID_
1224 'daystodisplay' => ['日分表示', 'days to display'], 1224 'daystodisplay' => ['日分表示', 'days to display'],
1225 'before' => ['前', 'before'], 1225 'before' => ['前', 'before'],
1226 'precedingday' => ['前日', 'Preceding day'], 1226 'precedingday' => ['前日', 'Preceding day'],
1227 'theday' => ['当日朝', "the day's morning"], 1227 'theday' => ['当日朝', "the day's morning"],
1228 'night' => ['(夜)', '(night)'], 1228 'night' => ['(夜)', '(night)'],
1229 'publicok' => ['メンバーに<br>見せてもええね?', 1229 'publicok' => ['アカウント保持者全員<br>に見せてもええね?',
1230 'visible from other members?'], 1230 'visible to anyone who has account of this board?'],
1231 'public' => ['公', 'pub'], 1231 'public' => ['公', 'pub'],
1232 'nonpublic' => ['非', 'sec'], 1232 'nonpublic' => ['非', 'sec'],
1233 'through' => ['〜', '=&gt;'], 1233 'through' => ['〜', '=&gt;'],
1234 'yes' => ['はいな', 'yes'], 1234 'yes' => ['はいな', 'yes'],
1235 'no' => ['やだ', 'nope'], 1235 'no' => ['やだ', 'nope'],
3038 # nor administrator of it, skip listing. 3038 # nor administrator of it, skip listing.
3039 next if !memberp && !@sc.isadmin(user, g) \ 3039 next if !memberp && !@sc.isadmin(user, g) \
3040 && @sc.getgroupattr(g, 'inviteonly') 3040 && @sc.getgroupattr(g, 'inviteonly')
3041 @H.elementln("tr"){ 3041 @H.elementln("tr"){
3042 @H.element("td", @sc.isadmin(user, g) ? admclass : nil){ 3042 @H.element("td", @sc.isadmin(user, g) ? admclass : nil){
3043 g 3043 g + "<br>("+@sc.members(g).length.to_s+")"
3044 } + \ 3044 } + \
3045 @H.element("td"){ 3045 @H.element("td"){
3046 @H.element("div", {'class'=>'c'}) { 3046 @H.element("div", {'class'=>'c'}) {
3047 if @sc.isadmin(user, g) 3047 if @sc.isadmin(user, g)
3048 @H.a(@myname+"?-admgroup+#{g}", msg('adminop')) 3048 @H.a(@myname+"?-admgroup+#{g}", msg('adminop'))

yatex.org