|
51 | 51 | <{/if}> |
52 | 52 | </h4> |
53 | 53 | <p><{$directory.descr}></p> |
54 | | - |
55 | | - <div class="container"> |
56 | | - <div class="row"> |
57 | | - <div class="col-5 col-md-3 bg-secondary text-nowrap"> <!-- required for floating --> |
58 | | - <!-- Nav tabs for each directory --> |
59 | | - <div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical"> |
60 | | - <{if $directory.previousRepos}> |
61 | | - <a class="nav-link" id="btn_previous" href="index.php?op=list<{$directory.previousOp}>&menu=<{$directory.id}>"> ... </a> |
62 | | - <{/if}> |
63 | | - <{foreach name=repo item=repo from=$directory.repos}> |
64 | | - <a class="mt-2 nav-link <{if $smarty.foreach.repo.first}>active<{/if}>" href="#tabdetail<{$repo.id}>" data-toggle="tab"><{$repo.name}></a> |
65 | | - <{/foreach}> |
66 | | - <{if $directory.nextRepos}> |
67 | | - <a id="btn_next" href="index.php?op=list<{$directory.nextOp}>&menu=<{$directory.id}>"> ... </a> |
68 | | - <{/if}> |
69 | | - </div> |
| 54 | + <div class="d-flex flex-row"> |
| 55 | + <div class="bg-secondary text-nowrap mr-2"> |
| 56 | + <!-- Nav tabs for each directory --> |
| 57 | + <div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical"> |
| 58 | + <{if $directory.previousRepos}> |
| 59 | + <a id="btn_previous" class="btn btn-outline-warning mx-2 mt-2" href="index.php?op=list<{$directory.previousOp}>&menu=<{$directory.id}>" role="button"><span class="fa fa-arrow-left"></span></a> |
| 60 | + <{/if}> |
| 61 | + <{foreach name=repo item=repo from=$directory.repos}> |
| 62 | + <a class="mx-2 mt-2 nav-link <{if $smarty.foreach.repo.first}>active<{/if}>" href="#tabdetail<{$repo.id}>" data-toggle="tab"><{$repo.name}></a> |
| 63 | + <{/foreach}> |
| 64 | + <{if $directory.nextRepos}> |
| 65 | + <a id="btn_next" class="btn btn-outline-warning mx-2 mb-2" href="index.php?op=list<{$directory.nextOp}>&menu=<{$directory.id}>" role="button"><span class="fa fa-arrow-right"></span></a> |
| 66 | + <{/if}> |
70 | 67 | </div> |
71 | | - <div class="col-6 col-md-8"> |
72 | | - <!-- Tab panes --> |
73 | | - <div class="tab-content"> |
74 | | - <{foreach name=repo item=repo from=$directory.repos}> |
75 | | - <div class="tab-pane fade <{if $smarty.foreach.repo.first}>active show<{/if}>" id="tabdetail<{$repo.id}>" role="tabpanel"> |
76 | | - <h4><{$smarty.const._MA_WGGITHUB_REPOSITORY}>: <{$repo.name}></h4> |
77 | | - <p> |
78 | | - <span class="fa fa-calendar"></span> <{$repo.createdat}> (<{$smarty.const._MA_WGGITHUB_REPOSITORY_CREATEDAT}>)<br /> |
79 | | - <span class="fa fa-calendar"></span> <{$repo.updatedat}> (<{$smarty.const._MA_WGGITHUB_REPOSITORY_UPDATEDAT}>) |
80 | | - </p> |
| 68 | + </div> |
| 69 | + <div> |
| 70 | + <!-- Tab panes --> |
| 71 | + <div class="tab-content"> |
| 72 | + <{foreach name=repo item=repo from=$directory.repos}> |
| 73 | + <div class="tab-pane fade <{if $smarty.foreach.repo.first}>active show<{/if}>" id="tabdetail<{$repo.id}>" role="tabpanel"> |
| 74 | + <h4><{$smarty.const._MA_WGGITHUB_REPOSITORY}>: <{$repo.name}></h4> |
| 75 | + <p> |
| 76 | + <span class="fa fa-calendar"></span> <{$repo.createdat}> (<{$smarty.const._MA_WGGITHUB_REPOSITORY_CREATEDAT}>)<br /> |
| 77 | + <span class="fa fa-calendar"></span> <{$repo.updatedat}> (<{$smarty.const._MA_WGGITHUB_REPOSITORY_UPDATEDAT}>) |
| 78 | + </p> |
81 | 79 |
|
82 | | - <{if $repo.releases|default:''}> |
83 | | - <p><b><{$smarty.const._MA_WGGITHUB_RELEASES}>:</b></p> |
84 | | - <{foreach item=release from=$repo.releases}> |
85 | | - <ul class="list-group"> |
86 | | - <li class="list-group-item d-flex justify-content-between align-items-center"> |
87 | | - <div><{$release.name}><br /><span style="font-size: smaller"><span class="fa fa-calendar"></span> <{$release.publishedat}></span></div> |
88 | | - |
89 | | - <div class="dropdown"> |
90 | | - <button class="btn btn-info dropdown-toggle" type="button" id="dropdownButton-ziptar" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
91 | | - <span class="fa fa-download fa-lg"></span> |
92 | | - </button> |
93 | | - <div class="dropdown-menu" aria-labelledby="dropdownButton-ziptar"> |
94 | | - <a class="dropdown-item" href="<{$release.zipballurl}>" title="<{$smarty.const._MA_WGGITHUB_RELEASE_ZIP}>"><{$smarty.const._MA_WGGITHUB_RELEASE_ZIP}></a> |
95 | | - <a class="dropdown-item" href="<{$release.tarballurl}>" title="<{$smarty.const._MA_WGGITHUB_RELEASE_TAR}>"><{$smarty.const._MA_WGGITHUB_RELEASE_TAR}></a> |
96 | | - </div> |
| 80 | + <{if $repo.releases|default:''}> |
| 81 | + <p><b><{$smarty.const._MA_WGGITHUB_RELEASES}>:</b></p> |
| 82 | + <{foreach item=release from=$repo.releases}> |
| 83 | + <ul class="list-group"> |
| 84 | + <li class="list-group-item d-flex justify-content-between align-items-center"> |
| 85 | + <div><{$release.name}><br /><span style="font-size: smaller"><span class="fa fa-calendar"></span> <{$release.publishedat}></span></div> |
| 86 | + |
| 87 | + <div class="dropdown"> |
| 88 | + <button class="btn btn-info dropdown-toggle" type="button" id="dropdownButton-ziptar" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
| 89 | + <span class="fa fa-download fa-lg"></span> |
| 90 | + </button> |
| 91 | + <div class="dropdown-menu" aria-labelledby="dropdownButton-ziptar"> |
| 92 | + <a class="dropdown-item" href="<{$release.zipballurl}>" title="<{$smarty.const._MA_WGGITHUB_RELEASE_ZIP}>"><{$smarty.const._MA_WGGITHUB_RELEASE_ZIP}></a> |
| 93 | + <a class="dropdown-item" href="<{$release.tarballurl}>" title="<{$smarty.const._MA_WGGITHUB_RELEASE_TAR}>"><{$smarty.const._MA_WGGITHUB_RELEASE_TAR}></a> |
97 | 94 | </div> |
98 | | - </li> |
99 | | - </ul> |
100 | | - <{/foreach}> |
101 | | - <{/if}> |
| 95 | + </div> |
| 96 | + </li> |
| 97 | + </ul> |
| 98 | + <{/foreach}> |
| 99 | + <{/if}> |
102 | 100 |
|
103 | | - <p class="pt-2 text-center"><a class="btn btn-primary" href="<{$repo.htmlurl}>" title="<{$smarty.const._MA_WGGITHUB_REPOSITORY_GOTO}>" target="_blank"><span class="fa fa-github fa-lg"></span> <{$smarty.const._MA_WGGITHUB_REPOSITORY_GOTO}></a></p> |
| 101 | + <p class="pt-2 text-center"><a class="btn btn-primary" href="<{$repo.htmlurl}>" title="<{$smarty.const._MA_WGGITHUB_REPOSITORY_GOTO}>" target="_blank"><span class="fa fa-github fa-lg"></span> <{$smarty.const._MA_WGGITHUB_REPOSITORY_GOTO}></a></p> |
104 | 102 |
|
105 | | - <{if $repo.readme.gitbook_link|default:''}> |
106 | | - <p class="text-center"><a class='btn btn-warning' href="<{$repo.readme.gitbook_link}>" title="<{$smarty.const._MA_WGGITHUB_GITBOOK_GOTO}>" target="_blank"> <span class="fa fa-book fa-lg"></span> <{$smarty.const._MA_WGGITHUB_GITBOOK_GOTO}></a></p> |
107 | | - <{/if}> |
108 | | - |
109 | | - <hr /> |
110 | | - <p class="lead mt-2"><span class="fa fa-file-text-o"></span> <b><{$smarty.const._MA_WGGITHUB_REPOSITORY_README}></b> |
111 | | - <{if $permReadmeUpdate|default:''}> |
112 | | - <a class='btn btn-primary btn-sm float-right' href="index.php?op=update_readme&repo_id=<{$repo.id}>&repo_user=<{$repo.user}>&repo_name=<{$repo.name}>" title="<{$smarty.const._MA_WGGITHUB_README_UPDATE}>"><span class="fa fa-refresh fa-lg"></span> <{$smarty.const._MA_WGGITHUB_README_UPDATE}></a> |
113 | | - <{/if}> |
114 | | - <div class="border p-2"><{$repo.readme.content_clean|default:''}></div> |
115 | | - </p> |
116 | | - </div> |
117 | | - <{/foreach}> |
118 | | - </div> |
| 103 | + <{if $repo.readme.gitbook_link|default:''}> |
| 104 | + <p class="text-center"><a class='btn btn-warning' href="<{$repo.readme.gitbook_link}>" title="<{$smarty.const._MA_WGGITHUB_GITBOOK_GOTO}>" target="_blank"> <span class="fa fa-book fa-lg"></span> <{$smarty.const._MA_WGGITHUB_GITBOOK_GOTO}></a></p> |
| 105 | + <{/if}> |
| 106 | + |
| 107 | + <hr /> |
| 108 | + <p class="lead mt-2"><span class="fa fa-file-text-o"></span> <b><{$smarty.const._MA_WGGITHUB_REPOSITORY_README}></b> |
| 109 | + <{if $permReadmeUpdate|default:''}> |
| 110 | + <a class='btn btn-primary btn-sm float-right' href="index.php?op=update_readme&repo_id=<{$repo.id}>&repo_user=<{$repo.user}>&repo_name=<{$repo.name}>" title="<{$smarty.const._MA_WGGITHUB_README_UPDATE}>"><span class="fa fa-refresh fa-lg"></span> <{$smarty.const._MA_WGGITHUB_README_UPDATE}></a> |
| 111 | + <{/if}> |
| 112 | + <div class="border p-2"><{$repo.readme.content_clean|default:''}></div> |
| 113 | + </p> |
| 114 | + </div> |
| 115 | + <{/foreach}> |
119 | 116 | </div> |
120 | | - |
121 | 117 | </div> |
122 | | - </div> |
123 | 118 |
|
| 119 | + </div> |
124 | 120 | </div> |
125 | 121 | <{/foreach}> |
126 | 122 |
|
|
0 commit comments