Changeset 707
- Timestamp:
- Nov 15, 2010, 11:06:23 AM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AppCoreController.groovy
r688 r707 67 67 def sections = Section.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } 68 68 69 def showTab = [:] 70 switch (params.showTab) { 71 case "showReportsTab": 72 showTab.reports = new String("true") 73 break 74 case "showOptionsTab": 75 showTab.Options = new String("true") 76 break 77 case "showAboutTab": 78 showTab.about = new String("true") 79 break 80 default: 81 showTab.quickLinks = new String("true") 82 } 83 69 84 return [grailsVersion: grailsVersion, 70 85 applicationString: applicationString, 71 86 plugins: plugins, 72 sections: sections] 87 sections: sections, 88 showTab: showTab] 73 89 } 74 90 -
trunk/grails-app/views/appCore/start.gsp
r706 r707 23 23 24 24 <richui:tabLabels> 25 <richui:tabLabel selected=" true" title="Quick Links" />26 <richui:tabLabel selected="${ 0}" title="Reports" />27 <richui:tabLabel selected="${ 0}" title="Options" />28 <richui:tabLabel selected="${ 0}" title="About" />25 <richui:tabLabel selected="${showTab.quickLinks}" title="Quick Links" /> 26 <richui:tabLabel selected="${showTab.reports}" title="Reports" /> 27 <richui:tabLabel selected="${showTab.Options}" title="Options" /> 28 <richui:tabLabel selected="${showTab.about}" title="About" /> 29 29 </richui:tabLabels> 30 30
Note: See TracChangeset
for help on using the changeset viewer.