Skip to content

Commit a93b27d

Browse files
authored
Merge pull request #41 from alain01/bt4
Update wggithub_index.tpl
2 parents 821335a + 7ab114b commit a93b27d

2 files changed

Lines changed: 21 additions & 13 deletions

File tree

extra/Templates for bootstrap 4/wggithub/wggithub_footer.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class=""><{$copyright}></div>
1+
<div class="mt-2"><{$copyright}></div>
22

33
<{if $pagenav|default:'' != ''}>
44
<div class='text-right'><{$pagenav}></div>

extra/Templates for bootstrap 4/wggithub/wggithub_index.tpl

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@
3131
<div class="tab-content tab-content-main">
3232
<div id="home" class="maintab tab-pane fade <{if $menu == 0}>active show<{/if}>">
3333
<p class="center"><img class="tabcontent-logo" src="assets/images/logoModule.png" alt="<{$smarty.const._MA_WGGITHUB_TITLE}>" title="<{$smarty.const._MA_WGGITHUB_TITLE}>"></p>
34-
<h3><{$smarty.const._MA_WGGITHUB_DESC}></h3>
35-
<p><{$smarty.const._MA_WGGITHUB_INDEX_DESC}></p>
34+
<div class="d-flex justify-content-center">
35+
<div>
36+
<h4 class="text-center mb-3"><{$smarty.const._MA_WGGITHUB_DESC}></h4>
37+
<{$smarty.const._MA_WGGITHUB_INDEX_DESC}>
38+
</div>
39+
</div>
3640
<p class="tabcontent-lastupdate"><{$smarty.const._MA_WGGITHUB_INDEX_LASTUPDATE}>: <{$lastUpdate}> GMT</p>
3741
<{if $apiexceed|default:''}>
3842
<p><{$smarty.const._MA_WGGITHUB_READGH_ERROR_APILIMIT}></p>
@@ -44,17 +48,21 @@
4448
</div>
4549
<{foreach item=directory from=$directories}>
4650
<div id="menu<{$directory.id}>" class="maintab tab-pane fade <{if $menu == $directory.id}>active show<{/if}>">
47-
48-
<h4 class="mt-2"><{$directory.countRepos}>
49-
<{if $permGlobalRead && ($directory.dir_autoupdate == 0)}>
50-
<a id="btn_update" class="btn btn-primary btn-sm float-right" href="index.php?op=update_dir&amp;dir_name=<{$directory.name}>"><span class="fa fa-refresh fa-lg"></span> <{$smarty.const._MA_WGGITHUB_DIRECTORY_UPDATE}></a>
51-
<{/if}>
52-
</h4>
53-
<p><{$directory.descr}></p>
51+
<div class="d-flex justify-content-center">
52+
<div>
53+
<h4 class="mt-2"><{$directory.countRepos}>
54+
<{if $permGlobalRead && ($directory.dir_autoupdate == 0)}>
55+
<a id="btn_update" class="btn btn-primary btn-sm float-right" href="index.php?op=update_dir&amp;dir_name=<{$directory.name}>"><span class="fa fa-refresh fa-lg"></span> <{$smarty.const._MA_WGGITHUB_DIRECTORY_UPDATE}></a>
56+
<{/if}>
57+
</h4>
58+
<p><{$directory.descr}></p>
59+
</div>
60+
</div>
61+
<hr />
5462
<div class="d-flex flex-row">
55-
<div class="bg-secondary text-nowrap mr-2">
63+
<div class="bg-secondary rounded text-nowrap mr-2">
5664
<!-- Nav tabs for each directory -->
57-
<div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical">
65+
<div class="nav flex-column nav-pills mb-2" id="v-pills-tab" role="tablist" aria-orientation="vertical">
5866
<{if $directory.previousRepos}>
5967
<a id="btn_previous" class="btn btn-outline-warning mx-2 mt-2" href="index.php?op=list<{$directory.previousOp}>&amp;menu=<{$directory.id}>" role="button"><span class="fa fa-arrow-left"></span></a>
6068
<{/if}>
@@ -109,7 +117,7 @@
109117
<{if $permReadmeUpdate|default:''}>
110118
<a class='btn btn-primary btn-sm float-right' href="index.php?op=update_readme&amp;repo_id=<{$repo.id}>&amp;repo_user=<{$repo.user}>&amp;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>
111119
<{/if}>
112-
<div class="border p-2"><{$repo.readme.content_clean|default:''}></div>
120+
<div class="border rounded p-2"><{$repo.readme.content_clean|default:''}></div>
113121
</p>
114122
</div>
115123
<{/foreach}>

0 commit comments

Comments
 (0)