Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
73f85e39
Commit
73f85e39
authored
Aug 22, 2017
by
chenith
Committed by
Harsh Shah
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated HT001 to display customized use rname.
parent
b6006b3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
htmlheader.jsp
cmsWebApp/webroot/extensions/adminportal/inc/htmlheader.jsp
+18
-1
page_admin_home.jsp
cmsWebApp/webroot/extensions/adminportal/page_admin_home.jsp
+3
-3
No files found.
cmsWebApp/webroot/extensions/adminportal/inc/htmlheader.jsp
View file @
73f85e39
...
...
@@ -16,6 +16,23 @@
if
(
clientUser
!=
null
)
{
StringBuilder
sb =
new
StringBuilder
();
if
(
clientUser
.
getFirstName
()!=
null
)
{
sb
.
append
(
clientUser
.
getFirstName
());
sb
.
append
("
");
if
(
clientUser
.
getLastName
()!=
null
)
{
sb
.
append
(
clientUser
.
getLastName
().
charAt
(
0
));
sb
.
append
(".");
}
}
else
{
sb
.
append
(
clientUser
.
getUserName
());
}
%
>
<header>
<div
class=
"container-fluid"
>
...
...
@@ -44,7 +61,7 @@
</div>
<div
class=
"user-profile-dropdown"
>
<a
href=
"#"
class=
"user-name"
data-toggle=
"dropdown"
>
<oneit:toString
value=
"<%=
oneit.security.jsp.SecUserToNameTransform.INSTANCE.transform(clientUser
) %>"
mode=
"EscapeHTML"
/>
<oneit:toString
value=
"<%=
sb.toString(
) %>"
mode=
"EscapeHTML"
/>
<img
src=
"images/arrow.svg"
/>
</a>
<ul
class=
"profile-dropdown dropdown-menu"
>
...
...
cmsWebApp/webroot/extensions/adminportal/page_admin_home.jsp
View file @
73f85e39
...
...
@@ -7,8 +7,9 @@
<oneit:dynIncluded>
<%
//TODO: filter with Client;
SecUser secUser = SecUser.getTXUser(transaction);
Job[] jobs = Job.SearchByAll().andJobStatus(new EqualsFilter<>(JobStatus.OPEN))
.andSecUser(new EqualsFilter(
SecUser.getTXUser(transaction)
))
.andSecUser(new EqualsFilter(
secUser
))
.search(transaction);
Article jobsArticle = WebUtils.getArticleByShortCut(transaction, WebUtils.JOBS);
...
...
@@ -16,14 +17,13 @@
String shortlistPage = jobsArticle.getLink(request, CollectionUtils.mapEntry("cms.rm", WebUtils.APPLICANTS_SHORTLIST).toMap());
String homePage = WebUtils.getSamePageInRenderMode(request, "Page");
String jobsPage = jobsArticle.getLink(request, CollectionUtils.mapEntry("cms.rm", "Page").toMap());
%>
<oneit:form name="editJob" method="post" enctype="multipart/form-data">
<div class="dashboard-content-area">
<div class="dashboard-first-part">
<div class="welcome-box">
<div class="dashboard-welcome">
<div class="welcome-text"> Welcome <br/> back <oneit:toString value="<%=
SecUserToNameTransform.INSTANCE.transform(SecUser.getTXUser(transaction)) + "!" %>" mode="EscapeHTML"/>
</div>
<div class="welcome-text"> Welcome <br/> back <oneit:toString value="<%=
secUser.getFirstName()!=null ? secUser.getFirstName() : secUser.getUserName()%>" mode="EscapeHTML"/>!
</div>
<a class="d-create-job-btn" href="<%= jobsArticle.getLink(request, CollectionUtils.mapEntry("cms.rm", WebUtils.CREATE_JOB).toMap()) %>">Create a Job</a>
</div>
<div class="col-sm-3 col-xs-12 d-three-box green-light">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment