| ... |
... |
@@ -13,8 +13,27 @@ |
| 13 |
13 |
} |
| 14 |
14 |
|
| 15 |
15 |
.application img { |
|
16 |
+ display: block; |
| 16 |
16 |
margin: 0 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 |
+} |
|
29 |
+ |
|
30 |
+.application .tags span { |
|
31 |
+ font-size: .8rem; |
|
32 |
+ background: var(--color-support-dark); |
|
33 |
+ color: var(--color-white); |
|
34 |
+ padding: .3rem .5rem; |
|
35 |
+ border-radius: var(--border-radius-default); |
|
36 |
+} |
| 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')) |
|
45 |
+ #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> |
|
53 |
+ <span class="category">$category</span> |
|
54 |
+ <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> |
|
57 |
+ ##<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') |
|
60 |
+ ##$app.getValue('maintainers') |
| 40 |
40 |
##$app.display('maintainers') |
| 41 |
41 |
</div> |
| 42 |
42 |
|