Changeset a43543 in indico
- Timestamp:
- 04/20/11 15:25:03 (2 years ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
- Children:
- 77d8e3
- Parents:
- 40200c
- git-author:
- Leszek Syroka <leszek.marek.syroka@…> (11/12/10 17:18:55)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (04/20/11 15:25:03)
- Location:
- indico/MaKaC/webinterface
- Files:
-
- 2 edited
-
tpls/CategoryDisplay.tpl (modified) (5 diffs)
-
urlHandlers.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/webinterface/tpls/CategoryDisplay.tpl
r988cfe ra43543 8 8 <div class="categoryHeader"> 9 9 <ul> 10 % if not isRootCategory: 10 % if not isRootCategory: 11 11 <li><a href="${ urlHandlers.UHCategoryDisplay.getURL(categ.owner) }">${ _("Go to parent category") }</a>|</li> 12 12 % endif 13 % if categ.getConferenceList() != []: 13 % if categ.getConferenceList() != []: 14 14 <li><a href="${ urlHandlers.UHCategoryToiCal.getURL(categ) }">${ _("iCal export")}</a>|</li> 15 15 % endif 16 16 <li><a id="moreLink" class="dropDownMenu" href="#">${ _("View") }</a></li> 17 % if allowCreateEvent: 17 % if allowCreateEvent: 18 18 <li>|<a id="createEventLink" class="dropDownMenu" href="#">${ _("Create") }</a></li> 19 19 % endif 20 % if allowUserModif: 20 % if allowUserModif: 21 21 <li style="font-weight: bold" >|<a id="manageLink" class="dropDownMenu highlight" href="#">${ _("Manage")}</a></li> 22 22 % endif 23 23 </ul> 24 24 <h1 class="categoryTitle"> 25 % if isRootCategory and containsCategories: 25 % if isRootCategory and containsCategories: 26 26 ${ _("Main categories") } 27 % elif isRootCategory: 27 % elif isRootCategory: 28 28 ${ _("All events") } 29 % else: 29 % else: 30 30 ${ name } 31 31 % endif 32 32 </h1> 33 33 34 % if isRootCategory and containsCategories: 34 % if isRootCategory and containsCategories: 35 35 <div class="categoryInfo"> 36 36 ${ _("Click on a category to start browsing through the hierarchy") } 37 37 </div> 38 38 % endif 39 % if description: 39 % if description: 40 40 <div class="categoryInfo"> 41 41 ${ description } … … 44 44 45 45 46 % if managers: 46 % if managers: 47 47 <div class="categoryManagers"><strong>${ _("Managers") }:</strong> ${ managers }</div> 48 48 % endif 49 49 50 50 <!-- 51 % if taskList: 51 % if taskList: 52 52 <h2 class="subtitle"> 53 53 ${ taskList } … … 87 87 var menuItems = {}; 88 88 menuItems["${ _("Today's events") }"] = "${ urlHandlers.UHCategoryOverview.getURL(categ) }"; 89 menuItems["${ _("Week's events") }"] = "${ urlHandlers.UHCategoryOverview.getWeekOverviewUrl(categ) }"; 90 //menuItems["${ _("Month's events") }"] = "${ urlHandlers.UHCategoryOverview.getMonthOverviewUrl(categ) }"; 89 91 menuItems['${ _("Calendar") }'] = "${ urlHandlers.UHCalendar.getURL([categ]) }"; 90 92 menuItems['${ _("Category map") }'] = "${ urlHandlers.UHCategoryMap.getURL(categ) }"; … … 99 101 100 102 101 % if allowCreateEvent: 103 % if allowCreateEvent: 102 104 <script type="text/javascript"> 103 105 var createEventLink2 = $E('createEventLink'); … … 124 126 % endif 125 127 126 % if allowUserModif: 128 % if allowUserModif: 127 129 <script type="text/javascript"> 128 130 var manageLink = $E('manageLink'); -
indico/MaKaC/webinterface/urlHandlers.py
rbb77c9 ra43543 24 24 from new import classobj 25 25 from MaKaC.common.utils import utf8rep 26 from MaKaC.common.timezoneUtils import nowutc 26 27 27 28 """ … … 2417 2418 getURLFromOverview = classmethod( getURLFromOverview ) 2418 2419 2420 @classmethod 2421 def getWeekOverviewUrl(cls, categ): 2422 url = cls.getURL(categ) 2423 p = {"day" : nowutc().day, 2424 "month" : nowutc().month, 2425 "year" : nowutc().year, 2426 "period" : "week", 2427 "detail" : "conference"} 2428 url.addParams(p) 2429 return url 2430 2431 @classmethod 2432 def getMonthOverviewUrl(cls, categ): 2433 url = cls.getURL(categ) 2434 p = {"day" : nowutc().day, 2435 "month" : nowutc().month, 2436 "year" : nowutc().year, 2437 "period" : "month", 2438 "detail" : "conference"} 2439 url.addParams(p) 2440 return url 2419 2441 2420 2442 class UHTaskList( URLHandler ):
Note: See TracChangeset
for help on using the changeset viewer.
