Skip to content

Commit 417b010

Browse files
committed
mobile improvements
+ build fix Signed-off-by: Michael Gnehr <[email protected]>
1 parent c102abe commit 417b010

File tree

5 files changed

+25
-10
lines changed

5 files changed

+25
-10
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,7 @@ wiki.last_commit_info = %s edited this page %s
10331033
wiki.edit_page_button = Edit
10341034
wiki.new_page_button = New Page
10351035
wiki.file_revision = Page Revision
1036+
wiki.wiki_page_revisions = Uncyclo Page Revisions
10361037
wiki.back_to_wiki = Back to wiki page
10371038
wiki.delete_page_button = Delete Page
10381039
wiki.delete_page_notice_1 = Deleting the wiki page '%s' cannot be undone. Continue?

public/css/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ footer .ui.left,footer .ui.right{line-height:40px}
287287
.markdown:not(code) .csv-data tr{border-top:0}
288288
.markdown:not(code) .csv-data th{font-weight:700;background:#f8f8f8;border-top:0}
289289
.markdown:not(code) .ui.list .list,.markdown:not(code) ol.ui.list ol,.markdown:not(code) ul.ui.list ul{padding-left:2em}
290+
.repository.wiki.revisions .ui.container>.ui.stackable.grid{flex-direction:row-reverse}
291+
.repository.wiki.revisions .ui.container>.ui.stackable.grid>.header{margin-top:0}
290292
.file-revisions-btn{display:block;float:left;padding:11px!important;margin-right:10px!important}
291293
.file-revisions-btn i{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
292294
.home .logo{max-width:220px}

public/less/_markdown.less

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,17 @@
495495
}
496496
}
497497

498+
.repository.wiki.revisions {
499+
.ui.container > .ui.stackable.grid {
500+
-ms-flex-direction: row-reverse;
501+
flex-direction: row-reverse;
502+
503+
> .header {
504+
margin-top: 0;
505+
}
506+
}
507+
}
508+
498509
.file-revisions-btn {
499510
display: block;
500511
float: left;

routers/repo/wiki.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func Uncyclo(ctx *context.Context) {
276276
ctx.HTML(200, tplUncycloView)
277277
}
278278

279-
// Uncyclo renders file revision list of wiki page
279+
// UncycloRevision renders file revision list of wiki page
280280
func UncycloRevision(ctx *context.Context) {
281281
ctx.Data["PageIsUncyclo"] = true
282282
ctx.Data["CanWriteUncyclo"] = ctx.Repo.CanWrite(models.UnitTypeUncyclo) && !ctx.Repo.Repository.IsArchived

templates/repo/wiki/revision.tmpl

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,7 @@
44
{{ $title := .title}}
55
<div class="ui container">
66
<div class="ui stackable grid">
7-
<div class="ui header ten wide column">
8-
<a class="file-revisions-btn ui basic button" title="{{.i18n.Tr "repo.wiki.back_to_wiki"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}" ><span>{{.revision}}</span> <i class="fa fa-fw fa-file-text-o"></i></a>
9-
{{$title}}
10-
<div class="ui sub header">
11-
{{$timeSince := TimeSince .Author.When $.Lang}}
12-
{{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}}
13-
</div>
14-
</div>
15-
<div class="ui six wide column">
7+
<div class="ui eight wide column text right">
168
<div class="ui action small input" id="clone-panel">
179
{{if not $.DisableHTTP}}
1810
<button class="ui basic clone button" id="repo-clone-https" data-link="{{.UncycloCloneLink.HTTPS}}">
@@ -36,7 +28,16 @@
3628
{{end}}
3729
</div>
3830
</div>
31+
<div class="ui header eight wide column">
32+
<a class="file-revisions-btn ui basic button" title="{{.i18n.Tr "repo.wiki.back_to_wiki"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}" ><span>{{.revision}}</span> <i class="fa fa-fw fa-file-text-o"></i></a>
33+
{{$title}}
34+
<div class="ui sub header">
35+
{{$timeSince := TimeSince .Author.When $.Lang}}
36+
{{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}}
37+
</div>
38+
</div>
3939
</div>
40+
<h2 class="ui top header">{{.i18n.Tr "repo.wiki.wiki_page_revisions"}}</h2>
4041
<div class="ui" style="margin-top: 1rem;">
4142
<h4 class="ui top attached header">
4243
<div class="ui stackable grid">

0 commit comments

Comments
 (0)