Changeset 194
- Timestamp:
- Nov 20, 2009, 3:13:48 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/WebAlbumTagLib.groovy
r182 r194 2 2 3 3 static namespace = "wa" 4 5 def ifDevEnv = { attrs, body ->6 def map = grailsApplication.metadata7 String env = map[grailsApplication.ENVIRONMENT]8 if (env == grailsApplication.ENV_DEVELOPMENT) {9 out << body()10 }11 }12 4 13 5 def pictureAnchor = { attrs, body -> -
trunk/grails-app/views/login/auth.gsp
r193 r194 54 54 <div id='login'> 55 55 <h1>Welcome to gnuMims please log in</h1> 56 57 <g:if env="development"> 56 58 The demo users are <b>user</b>, <b>manager</b> and <b>admin</b> all having the password: <b>pass</b> 59 </g:if> 57 60 58 61 <div class='inner'> … … 64 67 <p> 65 68 <label for='j_username'>Login ID</label> 66 <input type='text' class='text_' name='j_username' id='j_username' value='manager' /> 69 70 <g:if env="production"> 71 <input type='text' class='text_' name='j_username' id='j_username'/> 72 </g:if> 73 <g:else > 74 <input type='text' class='text_' name='j_username' id='j_username' value='manager' /> 75 </g:else > 76 67 77 </p> 68 78 <p> 69 79 <label for='j_password'>Password</label> 70 <input type='password' class='text_' name='j_password' id='j_password' value="pass"/> 80 81 <g:if env="production"> 82 <input type='password' class='text_' name='j_password' id='j_password' /> 83 </g:if> 84 <g:else > 85 <input type='password' class='text_' name='j_password' id='j_password' value="pass" /> 86 </g:else > 71 87 </p> 72 88
Note: See TracChangeset
for help on using the changeset viewer.