Changes for page ExternalApps
Last modified by bougault on 2019/09/12 12:46
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -13,8 +13,28 @@ 13 13 } 14 14 15 15 .application img { 16 - margin: 0 auto; 16 + display: block; 17 + margin: 0 auto 1.5rem auto; 17 17 } 19 + 20 +.application .title { 21 + text-align: center; 22 + height: 3em; 23 + margin-top: 2rem; 24 +} 25 + 26 +.application .tags { 27 + display: flex; 28 + justify-content: space-around; 29 +} 30 + 31 +.application .tags span { 32 + font-size: .8rem; 33 + background: var(--color-support-dark); 34 + color: var(--color-white); 35 + padding: .3rem .5rem; 36 + border-radius: var(--border-radius-default); 37 +} 18 18 </style> 19 19 20 20 ... ... @@ -23,6 +23,7 @@ 23 23 #set($app = $xwiki.getDocument($application)) 24 24 #set($URL = $app.display('url')) 25 25 #set($title = $app.display('title')) 46 + #set($category = $app.display('category')) 26 26 <div class="col-md-3"> 27 27 <div class="application"> 28 28 #if($app.getAttachment('logo.png').isImage()) ... ... @@ -30,13 +30,14 @@ 30 30 #else 31 31 <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN89x8AAuEB74Y0o2cAAAAASUVORK5CYII=" width="75" height="75" alt=""> 32 32 #end 33 - <h3>$title</h3> 54 + <div class="tags"><span>$category</span></div> 55 + <h3 class="title">$title</h3> 34 34 <a href="$URL">$URL</a> 35 35 <p>$!app.getValue('description')</p> 36 - <input id="$application.concat('-visibility')" type="checkbox" #if($app.getValue('private') == 1)checked#end disabled /><label for="$application.concat('-visibility')">Private</label> 58 + ##<input id="$application.concat('-visibility')" type="checkbox" #if($app.getValue('private') == 1)checked#end disabled /><label for="$application.concat('-visibility')">Private</label> 37 37 38 38 <div> 39 - $app.getValue('maintainers') 61 + ##$app.getValue('maintainers') 40 40 ##$app.display('maintainers') 41 41 </div> 42 42