Skip to content

Commit 2e52465

Browse files
committed
remove all left/center/right aligned
1 parent 3ae6c21 commit 2e52465

File tree

21 files changed

+36
-92
lines changed

21 files changed

+36
-92
lines changed

templates/install.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "base/head" .}}
22
<div role="main" aria-label="{{.Title}}" class="page-content install">
33
<div class="ui grid install-config-container">
4-
<div class="sixteen wide center aligned centered column">
4+
<div class="sixteen wide tw-text-center centered column">
55
<h3 class="ui top attached header">
66
{{ctx.Locale.Tr "install.title"}}
77
</h3>

templates/org/team/new.tmpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@
7777
<thead>
7878
<tr>
7979
<th>{{ctx.Locale.Tr "units.unit"}}</th>
80-
<th class="center aligned">{{ctx.Locale.Tr "org.teams.none_access"}}
80+
<th class="tw-text-center">{{ctx.Locale.Tr "org.teams.none_access"}}
8181
<span class="tw-align-middle" data-tooltip-content="{{ctx.Locale.Tr "org.teams.none_access_helper"}}">{{svg "octicon-question" 16 "tw-ml-1"}}</span></th>
82-
<th class="center aligned">{{ctx.Locale.Tr "org.teams.read_access"}}
82+
<th class="tw-text-center">{{ctx.Locale.Tr "org.teams.read_access"}}
8383
<span class="tw-align-middle" data-tooltip-content="{{ctx.Locale.Tr "org.teams.read_access_helper"}}">{{svg "octicon-question" 16 "tw-ml-1"}}</span></th>
84-
<th class="center aligned">{{ctx.Locale.Tr "org.teams.write_access"}}
84+
<th class="tw-text-center">{{ctx.Locale.Tr "org.teams.write_access"}}
8585
<span class="tw-align-middle" data-tooltip-content="{{ctx.Locale.Tr "org.teams.write_access_helper"}}">{{svg "octicon-question" 16 "tw-ml-1"}}</span></th>
8686
</tr>
8787
</thead>
@@ -97,17 +97,17 @@
9797
</div>
9898
</div>
9999
</td>
100-
<td class="center aligned">
100+
<td class="tw-text-center">
101101
<div class="ui radio checkbox">
102102
<input type="radio" name="unit_{{$unit.Type.Value}}" value="0"{{if or ($unit.Type.UnitGlobalDisabled) (eq ($.Team.UnitAccessMode ctx $unit.Type) 0)}} checked{{end}} title="{{ctx.Locale.Tr "org.teams.none_access"}}">
103103
</div>
104104
</td>
105-
<td class="center aligned">
105+
<td class="tw-text-center">
106106
<div class="ui radio checkbox">
107107
<input type="radio" name="unit_{{$unit.Type.Value}}" value="1"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode ctx $unit.Type) 1)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}} title="{{ctx.Locale.Tr "org.teams.read_access"}}">
108108
</div>
109109
</td>
110-
<td class="center aligned">
110+
<td class="tw-text-center">
111111
<div class="ui radio checkbox">
112112
<input type="radio" name="unit_{{$unit.Type.Value}}" value="2"{{if (ge ($.Team.UnitAccessMode ctx $unit.Type) 2)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}} title="{{ctx.Locale.Tr "org.teams.write_access"}}">
113113
</div>

templates/repo/branch/list.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<p class="info tw-flex tw-items-center tw-my-1">{{svg "octicon-git-commit" 16 "tw-mr-1"}}<a href="{{.RepoLink}}/commit/{{PathEscape .DefaultBranchBranch.DBBranch.CommitID}}">{{ShortSha .DefaultBranchBranch.DBBranch.CommitID}}</a> · <span class="commit-message">{{ctx.RenderUtils.RenderCommitMessage .DefaultBranchBranch.DBBranch.CommitMessage (.Repository.ComposeMetas ctx)}}</span> · {{ctx.Locale.Tr "org.repo_updated"}} {{DateUtils.TimeSince .DefaultBranchBranch.DBBranch.CommitTime}}{{if .DefaultBranchBranch.DBBranch.Pusher}} &nbsp;{{template "shared/user/avatarlink" dict "user" .DefaultBranchBranch.DBBranch.Pusher}}{{template "shared/user/namelink" .DefaultBranchBranch.DBBranch.Pusher}}{{end}}</p>
3131
</td>
3232
{{/* FIXME: here and below, the tw-overflow-visible is not quite right but it is still needed the moment: to show the important buttons when the width is narrow */}}
33-
<td class="right aligned middle aligned tw-overflow-visible">
33+
<td class="tw-text-right tw-overflow-visible">
3434
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}}
3535
<button class="btn interact-bg show-create-branch-modal tw-p-2"
3636
data-modal="#create-branch-modal"
@@ -121,7 +121,7 @@
121121
</div>
122122
{{end}}
123123
</td>
124-
<td class="two wide right aligned">
124+
<td class="two wide tw-text-right">
125125
{{if not .LatestPullRequest}}
126126
{{if .IsIncluded}}
127127
<span class="ui orange large label" data-tooltip-content="{{ctx.Locale.Tr "repo.branch.included_desc"}}">
@@ -150,7 +150,7 @@
150150
{{end}}
151151
</td>
152152
{{/* FIXME: here and above, the tw-overflow-visible is not quite right */}}
153-
<td class="three wide right aligned tw-overflow-visible">
153+
<td class="three wide tw-text-right tw-overflow-visible">
154154
{{if and $.IsWriter (not $.Repository.IsArchived) (not .DBBranch.IsDeleted)}}
155155
<button class="btn interact-bg tw-p-2 show-modal show-create-branch-modal"
156156
data-branch-from="{{.DBBranch.Name}}"

templates/repo/commits_list.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<th class="three wide">{{ctx.Locale.Tr "repo.commits.author"}}</th>
66
<th class="two wide sha">{{StringUtils.ToUpper $.Repository.ObjectFormatName}}</th>
77
<th class="eight wide message">{{ctx.Locale.Tr "repo.commits.message"}}</th>
8-
<th class="two wide right aligned">{{ctx.Locale.Tr "repo.commits.date"}}</th>
8+
<th class="two wide tw-text-right">{{ctx.Locale.Tr "repo.commits.date"}}</th>
99
<th class="one wide"></th>
1010
</tr>
1111
</thead>
@@ -61,11 +61,11 @@
6161
{{end}}
6262
</td>
6363
{{if .Committer}}
64-
<td class="tw-text-right aligned">{{DateUtils.TimeSince .Committer.When}}</td>
64+
<td class="tw-text-right">{{DateUtils.TimeSince .Committer.When}}</td>
6565
{{else}}
66-
<td class="tw-text-right aligned">{{DateUtils.TimeSince .Author.When}}</td>
66+
<td class="tw-text-right">{{DateUtils.TimeSince .Author.When}}</td>
6767
{{end}}
68-
<td class="tw-text-right aligned tw-py-0">
68+
<td class="tw-text-right tw-py-0">
6969
<button class="btn interact-bg tw-p-2 copy-commit-id" data-tooltip-content="{{ctx.Locale.Tr "copy_hash"}}" data-clipboard-text="{{.ID}}">{{svg "octicon-copy"}}</button>
7070
{{/* at the moment, wiki doesn't support these "view" links like "view at history point" */}}
7171
{{if not $.PageIsWiki}}

templates/repo/issue/choose.tmpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
{{range .IssueTemplates}}
1111
<div class="ui attached segment">
1212
<div class="ui two column grid">
13-
<div class="column left aligned">
13+
<div class="column">
1414
<strong>{{.Name}}</strong>
1515
<br>{{.About}}
1616
</div>
17-
<div class="column right aligned">
17+
<div class="column tw-text-right">
1818
<a href="{{$.RepoLink}}/issues/new?template={{.FileName}}{{if $.milestone}}&milestone={{$.milestone}}{{end}}{{if $.project}}&project={{$.project}}{{end}}" class="ui primary button">{{ctx.Locale.Tr "repo.issues.choose.get_started"}}</a>
1919
</div>
2020
</div>
@@ -23,11 +23,11 @@
2323
{{range .IssueConfig.ContactLinks}}
2424
<div class="ui attached segment">
2525
<div class="ui two column grid">
26-
<div class="column left aligned">
26+
<div class="column">
2727
<strong>{{.Name}}</strong>
2828
<br>{{.About}}
2929
</div>
30-
<div class="column right aligned">
30+
<div class="column tw-text-right">
3131
<a href="{{.URL}}" class="ui primary button">{{svg "octicon-link-external"}} {{ctx.Locale.Tr "repo.issues.choose.open_external_link"}}</a>
3232
</div>
3333
</div>
@@ -36,11 +36,11 @@
3636
{{if .IssueConfig.BlankIssuesEnabled}}
3737
<div class="ui attached segment">
3838
<div class="ui two column grid">
39-
<div class="column left aligned">
39+
<div class="column">
4040
<strong>{{ctx.Locale.Tr "repo.issues.choose.blank"}}</strong>
4141
<br/>{{ctx.Locale.Tr "repo.issues.choose.blank_about"}}
4242
</div>
43-
<div class="column right aligned">
43+
<div class="column tw-text-right">
4444
<a href="{{.RepoLink}}/issues/new?{{if .milestone}}&milestone={{.milestone}}{{end}}{{if $.project}}&project={{$.project}}{{end}}" class="ui primary button">{{ctx.Locale.Tr "repo.issues.choose.get_started"}}</a>
4545
</div>
4646
</div>

templates/repo/migrate/migrating.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
{{template "base/alert" .}}
88
<div class="home">
99
<div class="ui stackable middle very relaxed page grid">
10-
<div id="repo_migrating" class="sixteen wide center aligned centered column" data-migrating-repo-link="{{.Link}}">
10+
<div id="repo_migrating" class="sixteen wide tw-text-center centered column" data-migrating-repo-link="{{.Link}}">
1111
<div>
1212
<img src="{{AssetUrlPrefix}}/img/loading.png">
1313
</div>
1414
</div>
15-
<div id="repo_migrating_failed_image" class="sixteen wide center aligned centered column tw-hidden">
15+
<div id="repo_migrating_failed_image" class="sixteen wide tw-text-center centered column tw-hidden">
1616
<div>
1717
<img src="{{AssetUrlPrefix}}/img/failed.png">
1818
</div>
1919
</div>
2020
</div>
2121
<div class="ui stackable middle very relaxed page grid">
22-
<div class="sixteen wide center aligned centered column">
22+
<div class="sixteen wide tw-text-center centered column">
2323
<div id="repo_migrating_progress">
2424
<p>{{ctx.Locale.Tr "repo.migrate.migrating" .CloneAddr}}</p>
2525
<p id="repo_migrating_progress_message"></p>

templates/repo/pulse.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383
{{if .Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
8484
{{if eq .Activity.Code.CommitCountInAllBranches 0}}
85-
<div class="ui center aligned segment">
85+
<div class="ui tw-text-center segment">
8686
<h4 class="ui header">{{ctx.Locale.Tr "repo.activity.no_git_activity"}}</h4>
8787
</div>
8888
{{end}}

templates/repo/settings/branches.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</div>
5757
</div>
5858
{{else}}
59-
<div class="flex-item center aligned">
59+
<div class="flex-item tw-text-center">
6060
{{ctx.Locale.Tr "repo.settings.no_protected_branch"}}
6161
</div>
6262
{{end}}

templates/repo/settings/lfs.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</td>
1919
<td>{{FileSize .Size}}</td>
2020
<td>{{DateUtils.TimeSince .CreatedUnix}}</td>
21-
<td class="right aligned">
21+
<td class="tw-text-right">
2222
<a class="ui primary button" href="{{$.Link}}/find?oid={{.Oid}}&size={{.Size}}">{{ctx.Locale.Tr "repo.settings.lfs_findcommits"}}</a>
2323
<button class="ui basic show-modal icon button red" data-modal="#delete-{{.Oid}}">
2424
<span class="btn-octicon btn-octicon-danger" data-tooltip-content="{{ctx.Locale.Tr "repo.editor.delete_this_file"}}">{{svg "octicon-trash"}}</span>

templates/repo/settings/lfs_locks.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</a>
3737
</td>
3838
<td>{{DateUtils.TimeSince .Created}}</td>
39-
<td class="right aligned">
39+
<td class="tw-text-right">
4040
<form action="{{$.LFSFilesLink}}/locks/{{$lock.ID}}/unlock" method="post">
4141
{{$.CsrfTokenHtml}}
4242
<button class="ui primary button"><span class="btn-octicon">{{svg "octicon-lock"}}</span>{{ctx.Locale.Tr "repo.settings.lfs_force_unlock"}}</button>

0 commit comments

Comments
 (0)