|
4 | 4 | <div class="errorMsg"><strong><{$error}></strong></div> |
5 | 5 | <{/if}> |
6 | 6 |
|
| 7 | +<!-- show directories in tabs --> |
7 | 8 | <{if $directoriesCount|default:0 > 0}> |
8 | 9 | <!-- filter area --> |
9 | 10 | <div id="filter_bar" class="tab-filter"> |
|
45 | 46 | <{/if}> |
46 | 47 | </div> |
47 | 48 | <{foreach item=directory from=$directories}> |
48 | | - <div id="menu<{$directory.id}>" class="maintab tab-pane fade <{if $menu == $directory.id}>in active<{/if}>"> |
49 | | - <div class="col-xs-12 tab-content-info"> |
50 | | - <h4> |
51 | | - <{$directory.countRepos}> |
52 | | - <{if $permGlobalRead && ($directory.dir_autoupdate == 0)}> |
53 | | - <a id="btn_update" class="btn btn-primary btn-sm pull-right" href="index.php?op=update_dir&dir_name=<{$directory.name}>"><{$smarty.const._MA_WGGITHUB_DIRECTORY_UPDATE}> </a> |
54 | | - <{/if}> |
55 | | - </h4> |
56 | | - <p><{$directory.descr}></p> |
57 | | - </div> |
58 | | - <div class="col-xs-3"> <!-- required for floating --> |
59 | | - <!-- Nav tabs for each directory --> |
60 | | - <ul class="nav nav-tabs tabs-left sideways"> |
61 | | - <{if $directory.previousRepos|default:''}> |
62 | | - <li class=""><a id="btn_previous" href="index.php?op=list<{$directory.previousOp}>&menu=<{$directory.id}>"> ... </a></li> |
63 | | - <{/if}> |
64 | | - <{foreach name=repo item=repo from=$directory.repos}> |
65 | | - <li class="<{if $smarty.foreach.repo.first}>active<{/if}>"><a href="#tabdetail<{$repo.id}>" data-toggle="tab"><{$repo.name}></a></li> |
66 | | - <{/foreach}> |
67 | | - <{if $directory.nextRepos|default:''}> |
68 | | - <li class=""> |
69 | | - <a id="btn_next" href="index.php?op=list<{$directory.nextOp}>&menu=<{$directory.id}>"> ... </a> |
70 | | - </li> |
71 | | - <{/if}> |
72 | | - </ul> |
73 | | - </div> |
74 | | - <div class="col-xs-9"> |
75 | | - <!-- Tab panes --> |
76 | | - <div class="tab-content"> |
77 | | - <{foreach name=repo item=repo from=$directory.repos}> |
78 | | - <div class="tab-pane<{if $smarty.foreach.repo.first}> active<{/if}>" id="tabdetail<{$repo.id}>"> |
79 | | - <div class="col-xs-12 sm-12 tabcontent-headline"> |
80 | | - <h3><{$smarty.const._MA_WGGITHUB_REPOSITORY}>: <{$repo.name}></h3> |
81 | | - </div> |
82 | | - <div class="clearfix"></div> |
83 | | - <div class="codixs-12 col-sm-6 tabcontent-headline"> |
84 | | - <p><i class="fa fa-calendar"></i> <{$smarty.const._MA_WGGITHUB_REPOSITORY_CREATEDAT}>: <{$repo.createdat}></p> |
85 | | - </div> |
86 | | - <div class="col-xs-12 col-sm-6 tabcontent-headline"> |
87 | | - <p><i class="fa fa-calendar"></i> <{$smarty.const._MA_WGGITHUB_REPOSITORY_UPDATEDAT}>: <{$repo.updatedat}></p> |
88 | | - </div> |
89 | | - <{if $repo.releases|default:''}> |
90 | | - <div class="col-xs-12 col-sm-12 tabcontent-headline"> |
91 | | - <p class=""><{$smarty.const._MA_WGGITHUB_RELEASES}>:</p> |
92 | | - <{foreach item=release from=$repo.releases}> |
93 | | - <p class=""> |
94 | | - <{$release.name}> <span style="font-size: smaller">(<{$release.publishedat}>)</span> |
95 | | - <a class='btn btn-info btn-sm' href="<{$release.zipballurl}>" title="<{$smarty.const._MA_WGGITHUB_RELEASE_ZIP}>"><{$smarty.const._MA_WGGITHUB_RELEASE_ZIP}></a> |
96 | | - <a class='btn btn-info btn-sm' href="<{$release.tarballurl}>" title="<{$smarty.const._MA_WGGITHUB_RELEASE_TAR}>"><{$smarty.const._MA_WGGITHUB_RELEASE_TAR}></a> |
97 | | - </p> |
98 | | - <{/foreach}> |
| 49 | + <div id="menu<{$directory.id}>" class="maintab tab-pane fade <{if $menu == $directory.id}>in active<{/if}>"> |
| 50 | + <div class="col-xs-12 tab-content-info"> |
| 51 | + <h4> |
| 52 | + <{$directory.countRepos}> |
| 53 | + <{if $permGlobalRead && ($directory.dir_autoupdate == 0)}> |
| 54 | + <a id="btn_update" class="btn btn-primary btn-sm pull-right" href="index.php?op=update_dir&dir_name=<{$directory.name}>"><{$smarty.const._MA_WGGITHUB_DIRECTORY_UPDATE}> </a> |
| 55 | + <{/if}> |
| 56 | + </h4> |
| 57 | + <p><{$directory.descr}></p> |
| 58 | + </div> |
| 59 | + <div class="col-xs-3"> <!-- required for floating --> |
| 60 | + <!-- Nav tabs for each directory --> |
| 61 | + <ul class="nav nav-tabs tabs-left sideways"> |
| 62 | + <{if $directory.previousRepos|default:''}> |
| 63 | + <li class=""><a id="btn_previous" href="index.php?op=list<{$directory.previousOp}>&menu=<{$directory.id}>"> ... </a></li> |
| 64 | + <{/if}> |
| 65 | + <{foreach name=repo item=repo from=$directory.repos}> |
| 66 | + <li class="<{if $smarty.foreach.repo.first}>active<{/if}>"><a href="#tabdetail<{$repo.id}>" data-toggle="tab"><{$repo.name}></a></li> |
| 67 | + <{/foreach}> |
| 68 | + <{if $directory.nextRepos|default:''}> |
| 69 | + <li class=""> |
| 70 | + <a id="btn_next" href="index.php?op=list<{$directory.nextOp}>&menu=<{$directory.id}>"> ... </a> |
| 71 | + </li> |
| 72 | + <{/if}> |
| 73 | + </ul> |
| 74 | + </div> |
| 75 | + <div class="col-xs-9"> |
| 76 | + <!-- Tab panes --> |
| 77 | + <div class="tab-content"> |
| 78 | + <{foreach name=repo item=repo from=$directory.repos}> |
| 79 | + <div class="tab-pane<{if $smarty.foreach.repo.first}> active<{/if}>" id="tabdetail<{$repo.id}>"> |
| 80 | + <div class="col-xs-12 sm-12 tabcontent-headline"> |
| 81 | + <h3><{$smarty.const._MA_WGGITHUB_REPOSITORY}>: <{$repo.name}></h3> |
99 | 82 | </div> |
100 | | - <{/if}> |
101 | | - <div class="col-xs-12 col-sm-12 tabcontent-headline"> |
102 | | - <p class=""><a class='btn btn-primary right' href="<{$repo.htmlurl}>" title="<{$smarty.const._MA_WGGITHUB_REPOSITORY_GOTO}>" target="_blank"><{$smarty.const._MA_WGGITHUB_REPOSITORY_GOTO}></a></p> |
103 | | - </div> |
104 | | - <{if $repo.readme.gitbook_link|default:''}> |
| 83 | + <div class="clearfix"></div> |
| 84 | + <div class="codixs-12 col-sm-6 tabcontent-headline"> |
| 85 | + <p><i class="fa fa-calendar"></i> <{$smarty.const._MA_WGGITHUB_REPOSITORY_CREATEDAT}>: <{$repo.createdat}></p> |
| 86 | + </div> |
| 87 | + <div class="col-xs-12 col-sm-6 tabcontent-headline"> |
| 88 | + <p><i class="fa fa-calendar"></i> <{$smarty.const._MA_WGGITHUB_REPOSITORY_UPDATEDAT}>: <{$repo.updatedat}></p> |
| 89 | + </div> |
| 90 | + <{if $repo.releases|default:''}> |
| 91 | + <div class="col-xs-12 col-sm-12 tabcontent-headline"> |
| 92 | + <p class=""><{$smarty.const._MA_WGGITHUB_RELEASES}>:</p> |
| 93 | + <{foreach item=release from=$repo.releases}> |
| 94 | + <p class=""> |
| 95 | + <{$release.name}> <span style="font-size: smaller">(<{$release.publishedat}>)</span> |
| 96 | + <a class='btn btn-info btn-sm' href="<{$release.zipballurl}>" title="<{$smarty.const._MA_WGGITHUB_RELEASE_ZIP}>"><{$smarty.const._MA_WGGITHUB_RELEASE_ZIP}></a> |
| 97 | + <a class='btn btn-info btn-sm' href="<{$release.tarballurl}>" title="<{$smarty.const._MA_WGGITHUB_RELEASE_TAR}>"><{$smarty.const._MA_WGGITHUB_RELEASE_TAR}></a> |
| 98 | + </p> |
| 99 | + <{/foreach}> |
| 100 | + </div> |
| 101 | + <{/if}> |
105 | 102 | <div class="col-xs-12 col-sm-12 tabcontent-headline"> |
106 | | - <p class=""><a class='btn btn-warning right' href="<{$repo.readme.gitbook_link}>" title="<{$smarty.const._MA_WGGITHUB_GITBOOK_GOTO}>" target="_blank"><{$smarty.const._MA_WGGITHUB_GITBOOK_GOTO}></a></p> |
| 103 | + <p class=""><a class='btn btn-primary right' href="<{$repo.htmlurl}>" title="<{$smarty.const._MA_WGGITHUB_REPOSITORY_GOTO}>" target="_blank"><{$smarty.const._MA_WGGITHUB_REPOSITORY_GOTO}></a></p> |
107 | 104 | </div> |
108 | | - <{/if}> |
109 | | - <div class="col-xs-12 sm-12 tabcontent-content"> |
110 | | - <{if $permReadmeUpdate|default:''}> |
111 | | - <i class="fa fa-re"></i> |
112 | | - <a class='btn btn-primary btn-sm pull-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}>"><{$smarty.const._MA_WGGITHUB_README_UPDATE}></a></p> |
| 105 | + <{if $repo.readme.gitbook_link|default:''}> |
| 106 | + <div class="col-xs-12 col-sm-12 tabcontent-headline"> |
| 107 | + <p class=""><a class='btn btn-warning right' href="<{$repo.readme.gitbook_link}>" title="<{$smarty.const._MA_WGGITHUB_GITBOOK_GOTO}>" target="_blank"><{$smarty.const._MA_WGGITHUB_GITBOOK_GOTO}></a></p> |
| 108 | + </div> |
113 | 109 | <{/if}> |
114 | | - <{$repo.readme.content_clean|default:''}> |
| 110 | + <div class="col-xs-12 sm-12 tabcontent-content"> |
| 111 | + <{if $permReadmeUpdate|default:''}> |
| 112 | + <i class="fa fa-re"></i> |
| 113 | + <a class='btn btn-primary btn-sm pull-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}>"><{$smarty.const._MA_WGGITHUB_README_UPDATE}></a></p> |
| 114 | + <{/if}> |
| 115 | + <{$repo.readme.content_clean|default:''}> |
| 116 | + </div> |
115 | 117 | </div> |
116 | | - </div> |
117 | | - <{/foreach}> |
| 118 | + <{/foreach}> |
| 119 | + </div> |
118 | 120 | </div> |
| 121 | + <div class="clearfix"></div> |
119 | 122 | </div> |
120 | | - |
121 | | - <div class="clearfix"></div> |
122 | | - |
123 | | - </div> |
124 | 123 | <{/foreach}> |
| 124 | + </div> |
| 125 | +<{/if}> |
| 126 | +<!-- end show directories in tabs --> |
125 | 127 |
|
| 128 | +<!-- show single repo --> |
| 129 | +<{if $showSingle|default:false}> |
| 130 | + <div class="tab-content tab-content-main"> |
| 131 | + <div class="col-xs-12"> |
| 132 | + <!-- Tab panes --> |
| 133 | + <div class="tab-content"> |
| 134 | + <div class="" id="tabdetail<{$repo.id}>"> |
| 135 | + <div class="col-xs-12 sm-12 tabcontent-headline"> |
| 136 | + <h3><{$smarty.const._MA_WGGITHUB_REPOSITORY}>: <{$repo.name}></h3> |
| 137 | + </div> |
| 138 | + <div class="clearfix"></div> |
| 139 | + <div class="codixs-12 col-sm-6 tabcontent-headline"> |
| 140 | + <p><i class="fa fa-calendar"></i> <{$smarty.const._MA_WGGITHUB_REPOSITORY_CREATEDAT}>: <{$repo.createdat}></p> |
| 141 | + </div> |
| 142 | + <div class="col-xs-12 col-sm-6 tabcontent-headline"> |
| 143 | + <p><i class="fa fa-calendar"></i> <{$smarty.const._MA_WGGITHUB_REPOSITORY_UPDATEDAT}>: <{$repo.updatedat}></p> |
| 144 | + </div> |
| 145 | + <{if $repo.releases|default:''}> |
| 146 | + <div class="col-xs-12 col-sm-12 tabcontent-headline"> |
| 147 | + <p class=""><{$smarty.const._MA_WGGITHUB_RELEASES}>:</p> |
| 148 | + <{foreach item=release from=$repo.releases}> |
| 149 | + <p class=""> |
| 150 | + <{$release.name}> <span style="font-size: smaller">(<{$release.publishedat}>)</span> |
| 151 | + <a class='btn btn-info btn-sm' href="<{$release.zipballurl}>" title="<{$smarty.const._MA_WGGITHUB_RELEASE_ZIP}>"><{$smarty.const._MA_WGGITHUB_RELEASE_ZIP}></a> |
| 152 | + <a class='btn btn-info btn-sm' href="<{$release.tarballurl}>" title="<{$smarty.const._MA_WGGITHUB_RELEASE_TAR}>"><{$smarty.const._MA_WGGITHUB_RELEASE_TAR}></a> |
| 153 | + </p> |
| 154 | + <{/foreach}> |
| 155 | + </div> |
| 156 | + <{/if}> |
| 157 | + <div class="col-xs-12 col-sm-12 tabcontent-headline"> |
| 158 | + <p class=""><a class='btn btn-primary right' href="<{$repo.htmlurl}>" title="<{$smarty.const._MA_WGGITHUB_REPOSITORY_GOTO}>" target="_blank"><{$smarty.const._MA_WGGITHUB_REPOSITORY_GOTO}></a></p> |
| 159 | + </div> |
| 160 | + <{if $repo.readme_val.gitbook_link|default:''}> |
| 161 | + <div class="col-xs-12 col-sm-12 tabcontent-headline"> |
| 162 | + <p class=""><a class='btn btn-warning right' href="<{$repo.readme_val.gitbook_link}>" title="<{$smarty.const._MA_WGGITHUB_GITBOOK_GOTO}>" target="_blank"><{$smarty.const._MA_WGGITHUB_GITBOOK_GOTO}></a></p> |
| 163 | + </div> |
| 164 | + <{/if}> |
| 165 | + <div class="col-xs-12 sm-12 tabcontent-content"> |
| 166 | + <{$repo.readme_val.content_clean|default:''}> |
| 167 | + </div> |
| 168 | + </div> |
| 169 | + </div> |
| 170 | + </div> |
| 171 | + <div class="clearfix"></div> |
126 | 172 | </div> |
127 | | - <{/if}> |
| 173 | + <{/if}> |
| 174 | +<!-- end show single repo --> |
128 | 175 |
|
129 | 176 | <script type="text/javascript"> |
130 | 177 | var executeClick = function(href) |
|
0 commit comments