Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UNL Resource Scheduler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jeff Sturek
UNL Resource Scheduler
Commits
6593406b
Commit
6593406b
authored
8 years ago
by
Tyler Lemburg
Browse files
Options
Downloads
Patches
Plain Diff
Fix links on admin home page
parent
b965de36
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
models/service_space.rb
+5
-0
5 additions, 0 deletions
models/service_space.rb
views/admin/home.erb
+6
-6
6 additions, 6 deletions
views/admin/home.erb
with
11 additions
and
6 deletions
models/service_space.rb
+
5
−
0
View file @
6593406b
...
...
@@ -42,4 +42,9 @@ class ServiceSpace < ActiveRecord::Base
def
admin_email_href
"/
#{
self
.
url_name
}
/admin/email/"
end
alias_method
:admin_emails_href
,
:admin_email_href
def
agenda_href
"/
#{
self
.
url_name
}
/admin/agenda/"
end
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
views/admin/home.erb
+
6
−
6
View file @
6593406b
<div
id=
"pagetitle"
>
<h3>
NIS Manag
er Administration
</h3>
<h3>
<%=
@space
.
name
%>
Resource Schedul
er Administration
</h3>
<span
class=
"wdn-subhead"
>
Hello,
<%=
@user
.
full_name
%>
(
<%=
@user
.
username
%>
)
<%
if
@user
.
is_super_user?
(
@space
)
%>
<br>
Super User
<%
end
%>
</span>
</div>
...
...
@@ -9,7 +9,7 @@
<tr>
<td><strong>
Users
</strong></td>
<td></td>
<td><a
class=
"wdn-button wdn-button-brand"
href=
"
/
admin
/
users
/
"
>
Manage
</a></td>
<td><a
class=
"wdn-button wdn-button-brand"
href=
"
<%=
@space
.
admin
_
users
_href
%>
"
>
Manage
</a></td>
</tr>
<%
end
%>
<%
if
@user
.
has_permission?
(
Permission
::
MANAGE_EVENTS
,
@space
)
%>
...
...
@@ -23,7 +23,7 @@
<tr>
<td><strong>
Resources
</strong></td>
<td>
<%=
resource_count
%>
resources
</td>
<td><a
class=
"wdn-button wdn-button-brand"
href=
"
/admin/tools/
"
>
Manage
</a></td>
<td><a
class=
"wdn-button wdn-button-brand"
href=
"
<%=
@space
.
admin_resources_href
%>
"
>
Manage
</a></td>
</tr>
<%
end
%>
<%
if
@user
.
has_permission?
(
Permission
::
MANAGE_SPACE_HOURS
,
@space
)
%>
...
...
@@ -40,21 +40,21 @@
The space is open all day.
<%
end
%>
</td>
<td><a
class=
"wdn-button wdn-button-brand"
href=
"
/
admin
/
hours
/
"
>
Manage
</a></td>
<td><a
class=
"wdn-button wdn-button-brand"
href=
"
<%=
@space
.
admin
_
hours
_href
%>
"
>
Manage
</a></td>
</tr>
<%
end
%>
<%
if
@user
.
has_permission?
(
Permission
::
MANAGE_EMAILS
,
@space
)
%>
<tr>
<td><strong>
Emails
</strong></td>
<td></td>
<td><a
class=
"wdn-button wdn-button-brand"
href=
"
/
admin
/
emails
/
"
>
Manage
</a></td>
<td><a
class=
"wdn-button wdn-button-brand"
href=
"
<%=
@space
.
admin
_
emails
_href
%>
"
>
Manage
</a></td>
</tr>
<%
end
%>
<%
if
@user
.
has_permission?
(
Permission
::
SEE_AGENDA
,
@space
)
%>
<tr>
<td><strong>
Agenda
</strong></td>
<td></td>
<td><a
class=
"wdn-button wdn-button-brand"
href=
"
/admin/agenda/
"
>
View
</a></td>
<td><a
class=
"wdn-button wdn-button-brand"
href=
"
<%=
@space
.
agenda_href
%>
"
>
View
</a></td>
</tr>
<%
end
%>
</tbody>
...
...
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