Skip to content

Commit

Permalink
fix(ui): remove undefined css classes
Browse files Browse the repository at this point in the history
  • Loading branch information
leg100 committed Sep 2, 2023
1 parent 8141c6e commit 6f02fb8
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
{{ end }}
</div>
{{ end }}
<form class="module-delete-button" action="{{ deleteModulePath .Module.ID }}" method="POST">
<form id="module-delete-button" action="{{ deleteModulePath .Module.ID }}" method="POST">
<button class="btn-danger" onclick="return confirm('Are you sure you want to delete?')">Delete module</button>
</form>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


{{ define "content" }}
<div id="content-list" class="content-list">
<div id="content-list">
{{ range .Items }}
{{ block "content-list-item" . }}{{ end }}
{{ else }}
Expand Down
10 changes: 5 additions & 5 deletions internal/http/html/static/templates/content/module_new.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

{{ define "content" }}
<div class="flex gap-6 items-center mb-5">
<div class="new-module-tab {{ if eq .Step "connect-vcs" }}text-black{{ else }}text-gray-400{{ end }}">
<div class="{{ if eq .Step "connect-vcs" }}text-black{{ else }}text-gray-400{{ end }}">
<a href="{{ newModulePath .Organization }}?step=connect-vcs">
1. connect vcs
</a>
</div>
<div class="new-module-tab {{ if eq .Step "select-repo" }}text-black{{ else }}text-gray-400{{ end }}">
<div class="{{ if eq .Step "select-repo" }}text-black{{ else }}text-gray-400{{ end }}">
2. select repo
</div>
<div class="new-module-tab {{ if eq .Step "confirm-selection" }}text-black{{ else }}text-gray-400{{ end }}">
<div class="{{ if eq .Step "confirm-selection" }}text-black{{ else }}text-gray-400{{ end }}">
3. confirm selection
</div>
</div>
Expand All @@ -23,7 +23,7 @@
<div>
Choose a VCS provider that hosts your module source code.
</div>
<div id="content-list" class="content-list">
<div id="content-list">
{{ range .Items }}
<div class="widget">
<div>
Expand Down Expand Up @@ -55,7 +55,7 @@
<button class="btn">connect</button>
</form>

<div id="content-list" class="content-list">
<div id="content-list">
{{ range .Repos }}
<div class="widget">
<div>
Expand Down
4 changes: 2 additions & 2 deletions internal/http/html/static/templates/content/team_list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
{{ end }}

{{ define "content" }}
<div id="content-list" class="content-list">
<div id="content-list">
{{ range .Teams }}
<div id="item-team-{{ .Name }}" class="widget">
<div>
<a class="status" href="{{ teamPath .ID }}">{{ .Name }}</a>
<a href="{{ teamPath .ID }}">{{ .Name }}</a>
</div>
<div>
{{ template "identifier" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ define "content-header-title" }}users{{ end }}

{{ define "content" }}
<div id="content-list" class="content-list">
<div id="content-list">
{{ range .Users }}
{{ block "content-list-item" . }}{{ end }}
{{ else }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ end }}

{{ define "content" }}
<div id="content-list" class="content-list">
<div id="content-list">
{{ range .VariableSets }}
{{ template "variable-set-item" . }}
{{ else }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{{ define "content" }}
<div>
Create a Github VCS provider with a <a class="show-underline" href="https://github.com/settings/tokens">personal token</a> with the <span class="data">repo</span> scope.
Create a Github VCS provider with a <a class="underline" href="https://github.com/settings/tokens">personal token</a> with the <span class="bg-gray-200">repo</span> scope.
Enter the token below along with a descriptive name.
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{{ define "content" }}
<div>
Create a Gitlab VCS provider using a <a class="show-underline" href="https://gitlab.com/-/profile/personal_access_tokens">personal token</a> with the <span class="data">api</span> scope.
Create a Gitlab VCS provider using a <a class="underline" href="https://gitlab.com/-/profile/personal_access_tokens">personal token</a> with the <span class="bg-gray-200">api</span> scope.
Enter the token below along with a descriptive name.
</div>
{{ template "create_vcs_provider_form" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
To connect workspaces and publish modules, OTF needs access to your version control system (VCS) provider. Use this page to create and list access to VCS providers.
</div>

<div id="content-list" class="content-list">
<div id="content-list">
{{ range .Items }}
{{ block "content-list-item" . }}{{ end }}
{{ else }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>
<div class="flex gap-4 flex-col basis-1/5">
{{ if .CanCreateRun }}
<div class="actions-container">
<div>
<h3 class="font-semibold mb-2">Actions</h3>
<form id="workspace-start-run-form" action="{{ startRunWorkspacePath .Workspace.ID }}" method="POST">
<select name="operation" id="start-run-operation" onchange="this.form.submit()">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Select a VCS provider to use to connect this workspace to a repository.
</div>

<div id="content-list" class="content-list">
<div id="content-list">
{{ range .Items }}
<div class="widget">
<div>
Expand All @@ -22,7 +22,7 @@
{{ .Name }}
</a>
</span>
<span class="status-ago">{{ durationRound .CreatedAt }} ago</span>
<span>{{ durationRound .CreatedAt }} ago</span>
</div>
<div>
{{ template "identifier" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<button class="btn">connect</button>
</form>

<div id="content-list" class="content-list">
<div id="content-list">
{{ range .Repos }}
<div class="widget">
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<span class="bg-orange-100 text-xs font-semibold p-1">OVERWRITTEN</span>
<s>
{{ end }}
<a class="show-underline" href="{{ $.EditPath .ID }}">{{ .Key }}</a>
<a class="underline" href="{{ $.EditPath .ID }}">{{ .Key }}</a>
{{ if $.IsOverwritten . }}
</s>
{{ end }}
</td>
<td class="p-2">{{ if .Sensitive }}<span class="data">hidden</span>{{ else }}{{ .Value }}{{ end }}</td>
<td class="p-2">{{ if .Sensitive }}<span class="bg-gray-200">hidden</span>{{ else }}{{ .Value }}{{ end }}</td>
<td class="p-2">{{ .Category }}</td>
<td class="p-2 text-right">
{{ if $.CanDeleteVariable }}
Expand Down

0 comments on commit 6f02fb8

Please sign in to comment.