Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F5131173
index.html.erb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Aug 17, 1:49 PM
Size
1 KB
Mime Type
text/plain
Expires
Wed, Aug 19, 1:49 PM (1 d, 2 h)
Engine
blob
Format
Raw Data
Handle
421559
Attached To
rARCHIVING archiving
index.html.erb
View Options
<h1>Settings</h1>
<%
if
!
@settings
.
persisted?
%>
<div class="alert alert-warning" role="alert">
The following configuration is the default configuration.
</div>
<%
end
%>
<div class="row">
<div class="col-xs-4">
<h3>Client Settings</h3>
</div>
<div class="col-xs-4">
<h3>Job Settings</h3>
</div>
<div class="col-xs-4">
<h3>Pool Settings</h3>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<%=
table_for
(
ConfigurationSetting
.
current_client_settings_human
)
%>
</div>
<div class="col-xs-4">
<%=
table_for
(
ConfigurationSetting
.
current_job_settings
)
%>
</div>
<div class="col-xs-4">
<%=
table_for
(
ConfigurationSetting
.
current_pool_settings
)
%>
</div>
</div>
<div class="row">
<div class="col-xs-2">
<%=
link_to
'Change Config'
,
@settings
.
persisted?
?
edit_admin_setting_path
(
@settings
)
:
new_admin_setting_path
,
class
:
'btn btn-primary'
,
role
:
'button'
%>
</div>
<%
if
@settings
.
persisted?
%>
<div class="col-xs-2">
<%=
link_to
'Restore to defaults'
,
reset_admin_setting_path
(
@settings
),
method
:
:delete
,
data
:
{
confirm
:
'This will reset the configuration to the defaults'
},
class
:
'btn btn-danger'
,
role
:
'button'
%>
</div>
<%
end
%>
</div>
Event Timeline
Log In to Comment