Skip to content

Commit 3ae6c21

Browse files
committed
Replace text-align classes with tailwind
1 parent 5266311 commit 3ae6c21

File tree

19 files changed

+38
-46
lines changed

19 files changed

+38
-46
lines changed

templates/admin/dashboard.tmpl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,57 +15,57 @@
1515
<tbody>
1616
<tr>
1717
<td>{{ctx.Locale.Tr "admin.dashboard.delete_inactive_accounts"}}</td>
18-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="delete_inactive_accounts">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
18+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="delete_inactive_accounts">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
1919
</tr>
2020
<tr>
2121
<td>{{ctx.Locale.Tr "admin.dashboard.delete_repo_archives"}}</td>
22-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="delete_repo_archives">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
22+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="delete_repo_archives">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
2323
</tr>
2424
<tr>
2525
<td>{{ctx.Locale.Tr "admin.dashboard.delete_missing_repos"}}</td>
26-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="delete_missing_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
26+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="delete_missing_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
2727
</tr>
2828
<tr>
2929
<td>{{ctx.Locale.Tr "admin.dashboard.git_gc_repos"}}</td>
30-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="git_gc_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
30+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="git_gc_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
3131
</tr>
3232
{{if and (not .SSH.Disabled) (not .SSH.StartBuiltinServer)}}
3333
<tr>
3434
<td>{{ctx.Locale.Tr "admin.dashboard.resync_all_sshkeys"}}</td>
35-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="resync_all_sshkeys">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
35+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="resync_all_sshkeys">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
3636
</tr>
3737
<tr>
3838
<td>{{ctx.Locale.Tr "admin.dashboard.resync_all_sshprincipals"}}</td>
39-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="resync_all_sshprincipals">{{svg "octicon-play" 16}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
39+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="resync_all_sshprincipals">{{svg "octicon-play" 16}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
4040
</tr>
4141
{{end}}
4242
<tr>
4343
<td>{{ctx.Locale.Tr "admin.dashboard.resync_all_hooks"}}</td>
44-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="resync_all_hooks">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
44+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="resync_all_hooks">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
4545
</tr>
4646
<tr>
4747
<td>{{ctx.Locale.Tr "admin.dashboard.reinit_missing_repos"}}</td>
48-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="reinit_missing_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
48+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="reinit_missing_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
4949
</tr>
5050
<tr>
5151
<td>{{ctx.Locale.Tr "admin.dashboard.sync_external_users"}}</td>
52-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="sync_external_users">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
52+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="sync_external_users">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
5353
</tr>
5454
<tr>
5555
<td>{{ctx.Locale.Tr "admin.dashboard.repo_health_check"}}</td>
56-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="repo_health_check">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
56+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="repo_health_check">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
5757
</tr>
5858
<tr>
5959
<td>{{ctx.Locale.Tr "admin.dashboard.delete_generated_repository_avatars"}}</td>
60-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="delete_generated_repository_avatars">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
60+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="delete_generated_repository_avatars">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
6161
</tr>
6262
<tr>
6363
<td>{{ctx.Locale.Tr "admin.dashboard.sync_repo_branches"}}</td>
64-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="sync_repo_branches">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
64+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="sync_repo_branches">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
6565
</tr>
6666
<tr>
6767
<td>{{ctx.Locale.Tr "admin.dashboard.sync_repo_tags"}}</td>
68-
<td class="text right"><button type="submit" class="ui primary button" name="op" value="sync_repo_tags">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
68+
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="sync_repo_tags">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
6969
</tr>
7070
</tbody>
7171
</table>

templates/org/team/teams.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="ui container">
55
{{template "base/alert" .}}
66
{{if .IsOrganizationOwner}}
7-
<div class="text right">
7+
<div class="tw-text-right">
88
<a class="ui primary button" href="{{.OrgLink}}/teams/new">{{svg "octicon-plus"}} {{ctx.Locale.Tr "org.create_new_team"}}</a>
99
</div>
1010
<div class="divider"></div>

templates/repo/commit_page.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<input id="new_branch_name" name="new_branch_name" required>
8484
</div>
8585

86-
<div class="text right actions">
86+
<div class="tw-text-right actions">
8787
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
8888
<button class="ui primary button">{{ctx.Locale.Tr "repo.branch.confirm_create_branch"}}</button>
8989
</div>
@@ -108,7 +108,7 @@
108108
<input id="new_branch_name" name="new_branch_name" required>
109109
</div>
110110

111-
<div class="text right actions">
111+
<div class="tw-text-right actions">
112112
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
113113
<button class="ui primary button">{{ctx.Locale.Tr "repo.tag.confirm_create_tag"}}</button>
114114
</div>

templates/repo/commits_list.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
{{end}}
6262
</td>
6363
{{if .Committer}}
64-
<td class="text right aligned">{{DateUtils.TimeSince .Committer.When}}</td>
64+
<td class="tw-text-right aligned">{{DateUtils.TimeSince .Committer.When}}</td>
6565
{{else}}
66-
<td class="text right aligned">{{DateUtils.TimeSince .Author.When}}</td>
66+
<td class="tw-text-right aligned">{{DateUtils.TimeSince .Author.When}}</td>
6767
{{end}}
68-
<td class="text right aligned tw-py-0">
68+
<td class="tw-text-right aligned 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/diff/box.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
{{template "repo/upload" .}}
236236
</div>
237237
{{end}}
238-
<div class="text right edit buttons">
238+
<div class="tw-text-right edit buttons">
239239
<button class="ui cancel button">{{ctx.Locale.Tr "repo.issues.cancel"}}</button>
240240
<button class="ui primary button">{{ctx.Locale.Tr "repo.issues.save"}}</button>
241241
</div>

templates/repo/issue/milestone_issues.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="tw-flex">
77
<h1 class="tw-mb-2">{{.Milestone.Name}}</h1>
88
{{if not .Repository.IsArchived}}
9-
<div class="text right tw-flex-1">
9+
<div class="tw-text-right tw-flex-1">
1010
{{if or .CanWriteIssues .CanWritePulls}}
1111
{{if .Milestone.IsClosed}}
1212
<a class="ui primary basic button link-action" href data-url="{{$.RepoLink}}/milestones/{{.MilestoneID}}/open">{{ctx.Locale.Tr "repo.milestones.open"}}

templates/repo/issue/new_form.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{{else}}
3434
{{template "repo/issue/comment_tab" .}}
3535
{{end}}
36-
<div class="text right">
36+
<div class="tw-text-right">
3737
<button class="ui primary button">
3838
{{if .PageIsComparePull}}
3939
{{ctx.Locale.Tr "repo.pulls.create"}}

templates/repo/issue/sidebar/issue_management.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
</div>
7777
{{end}}
7878

79-
<div class="text right actions">
79+
<div class="tw-text-right actions">
8080
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
8181
<button class="ui red button">
8282
{{if .Issue.IsLocked}}

templates/repo/issue/sidebar/reviewer_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
<label for="issue-sidebar-dismiss-review-message">{{ctx.Locale.Tr "action.review_dismissed_reason"}}</label>
122122
<input id="issue-sidebar-dismiss-review-message" name="message">
123123
</div>
124-
<div class="text right actions">
124+
<div class="tw-text-right actions">
125125
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
126126
<button class="ui red button" type="submit">{{ctx.Locale.Tr "ok"}}</button>
127127
</div>

templates/repo/issue/view_content.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
{{template "repo/issue/comment_tab" .}}
8484
{{.CsrfTokenHtml}}
8585
<div class="field footer">
86-
<div class="text right">
86+
<div class="tw-text-right">
8787
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .DisableStatusChange)}}
8888
{{if .Issue.IsClosed}}
8989
<button id="status-button" class="ui primary basic button" data-status="{{ctx.Locale.Tr "repo.issues.reopen_issue"}}" data-status-and-comment="{{ctx.Locale.Tr "repo.issues.reopen_comment_issue"}}" name="status" value="reopen">
@@ -157,7 +157,7 @@
157157
{{end}}
158158

159159
<div class="field">
160-
<div class="text right edit">
160+
<div class="tw-text-right edit">
161161
<button type="button" class="ui cancel button">{{ctx.Locale.Tr "repo.issues.cancel"}}</button>
162162
<button type="submit" class="ui primary button">{{ctx.Locale.Tr "repo.issues.save"}}</button>
163163
</div>

0 commit comments

Comments
 (0)