ExtensionList.html 4.73 KB
Newer Older
1
<f:if condition="{extensions}">
2
3
4
5
    <f:then>
        <div class="ter-ext-list-count">
            <f:translate key="extensions_found" arguments="{0: '{f:count(subject : extensions)}'}"/>
        </div>
speedprogs_de's avatar
speedprogs_de committed
6

7
8
9
10
        <f:widget.paginate objects="{extensions}" as="paginateExtensions"
                           configuration="{itemsPerPage: settings.listCount, insertAbove: 0, insertBelow: 1}">
            <f:for each="{paginateExtensions}" as="extension">
                <div class="ter-ext-list-row cl">
11

12
13
14
15
16
17
18
19
20
                    <!-- Headline -->
                    <div class="ter-ext-list-row-head">
                        <terfe2:extensionIcon version="{extension.lastVersion}" alt="{extension.lastVersion.title}"
                                              class="ter-ext-icon"/>
                        <f:link.action controller="Extension" action="show" arguments="{extension : extension}">
                            {extension.lastVersion.title}
                        </f:link.action>
                        <span class="ter-ext-list-row-key">{extension.extKey}</span>
                    </div>
21

22
23
                    <!-- Content area -->
                    <div class="ter-ext-list-row-regular cl">
24

25
26
27
28
29
30
31
32
33
                        <!-- Description -->
                        <div class="ter-ext-list-row-description">
                            <div class="ter-ext-list-meta">
                                <f:translate key="by"/>
                                {extension.lastVersion.author.name}
                            </div>
                            <terfe2:crop length="{settings.descriptionLength}">{extension.lastVersion.description}
                            </terfe2:crop>
                        </div>
34

35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
                        <!-- General information -->
                        <div class="ter-ext-list-row-info ter-ext-info">
                            <table>
                                <tr>
                                    <th>
                                        <f:translate key="version"/>
                                    </th>
                                    <td>{extension.lastVersion.versionString} <span
                                            class="ter-ext-state ter-ext-state-{extension.lastVersion.state}">{extension.lastVersion.state}</span>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        <f:translate key="last_updated"/>
                                    </th>
                                    <td>
                                        <terfe2:dateTime format="{settings.dateFormat}">
                                            {extension.lastVersion.uploadDate}
                                        </terfe2:dateTime>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        <f:translate key="downloads"/>
                                    </th>
                                    <td>{extension.downloads}</td>
                                </tr>
                                <tr>
                                    <th>
                                        <f:translate key="manual"/>
                                    </th>
                                    <td>{documentationLink}</td>
                                </tr>
                            </table>
                        </div>
70

71
                    </div>
72

73
74
75
76
77
78
79
80
81
82
83
84
85
86
                    <div class="ter-ext-list-row-downloads">
                        <f:link.action controller="Extension" action="download"
                                       arguments="{extension : extension, versionString : extension.lastVersion.versionString, format : 't3x'}"
                                       class="ter-download-icon ter-download-icon-t3x">
                            <f:translate key="download_t3x"/>
                        </f:link.action>
                        <f:if condition="{extension.lastVersion.hasZipFile}">
                            <f:link.action controller="Extension" action="download"
                                           arguments="{extension : extension, versionString : extension.lastVersion.versionString, format : 'zip'}"
                                           class="ter-download-icon ter-download-icon-zip">
                                <f:translate key="download_zip"/>
                            </f:link.action>
                        </f:if>
                    </div>
sventb's avatar
merged    
sventb committed
87

88
89
90
91
92
93
94
                </div>
            </f:for>
        </f:widget.paginate>
    </f:then>
    <f:else>
        <f:translate key="msg.no_entries_found"/>
    </f:else>
95
</f:if>