Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
c1499f98
Commit
c1499f98
authored
10 years ago
by
Allen Gilliland
Browse files
Options
Downloads
Patches
Plain Diff
update Global Settings page to new layout.
parent
34f8a52a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/frontend_client/app/superadmin/index/partials/settings.html
+36
-22
36 additions, 22 deletions
...ontend_client/app/superadmin/index/partials/settings.html
with
36 additions
and
22 deletions
resources/frontend_client/app/superadmin/index/partials/settings.html
+
36
−
22
View file @
c1499f98
<div
class=
"wrapper mt4"
>
<h2>
Settings
</h2>
<table
class=
"Table my2"
>
<tr>
<th>
Name
</th>
<th>
Description
</th>
<th>
Value
</th>
</tr>
<tr
ng-repeat=
"setting in settings"
>
<td>
{{setting.key}}
</td>
<td>
{{setting.description}}
</td>
<td>
<input
class=
"input block full"
type=
"text"
placeholder=
"{{setting.default}}"
ng-model=
"setting.value"
></input>
</td>
<td>
<div
class=
"float-right"
>
<button
class=
"Button Button--primary"
ng-click=
"saveSetting(setting)"
ng-disabled=
"!setting.value || setting.value === setting.originalValue"
>
Save
</button>
<button
class=
"mx2 Button Button--remove"
ng-click=
"deleteSetting(setting)"
ng-disabled=
"!setting.originalValue"
>
Clear
</button>
</div>
</td>
</tr>
</table>
<div
class=
"wrapper"
>
<section>
<h2
class=
"PageTitle"
>
Global Settings
</h2>
</section>
<section>
<table>
<thead>
<tr>
<th>
Name
</th>
<th>
Description
</th>
<th>
Value
</th>
<th></th>
</tr>
</thead>
<tbody>
<tr
ng-show=
"!settings"
>
<td
colspan=
4
>
<cv-loading-icon></cv-loading-icon>
<h3>
Loading ...
</h3>
</td>
</tr>
<tr
ng-repeat=
"setting in settings"
>
<td>
{{setting.key}}
</td>
<td>
{{setting.description}}
</td>
<td>
<input
class=
"input block full"
type=
"text"
placeholder=
"{{setting.default}}"
ng-model=
"setting.value"
></input>
</td>
<td>
<button
class=
"Button Button--primary"
ng-click=
"saveSetting(setting)"
ng-disabled=
"!setting.value || setting.value === setting.originalValue"
>
Save
</button>
<button
class=
"mx2 Button Button--remove"
ng-click=
"deleteSetting(setting)"
ng-disabled=
"!setting.originalValue"
>
Clear
</button>
</td>
</tr>
</tbody>
</table>
</section>
</div>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment