Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
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
ulakbus
ulakbus-ui
Commits
1e7fe815
Commit
1e7fe815
authored
May 27, 2016
by
Bahadir Can Yildiz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/Cont_WF' into develop
parents
d5264732
943c1ab1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
app_routes.js
app/app_routes.js
+4
-3
crud_controller.js
app/components/crud/crud_controller.js
+2
-1
directives.js
app/shared/directives.js
+2
-1
header-notification.html
app/shared/templates/directives/header-notification.html
+3
-3
No files found.
app/app_routes.js
View file @
1e7fe815
...
...
@@ -31,13 +31,16 @@ angular.module('ulakbus')
templateUrl
:
'components/uitemplates/form_service_pg.html'
,
controller
:
'FormServicePg'
})
// use crud without selected user
// important: regex urls must be defined later than static ones
.
when
(
'/:wf/'
,
{
templateUrl
:
'components/crud/templates/crud-preload.html'
,
controller
:
'CRUDController'
})
.
when
(
'/cwf/:wf/:token'
,
{
templateUrl
:
'components/crud/templates/crud.html'
,
controller
:
'CRUDController'
})
.
when
(
'/:wf/do/:cmd'
,
{
templateUrl
:
'components/crud/templates/crud.html'
,
controller
:
'CRUDListFormController'
...
...
@@ -58,8 +61,6 @@ angular.module('ulakbus')
templateUrl
:
'components/crud/templates/crud.html'
,
controller
:
'CRUDListFormController'
})
.
otherwise
({
redirectTo
:
'/dashboard'
});
}])
.
factory
(
'IsOnline'
,
function
()
{
...
...
app/components/crud/crud_controller.js
View file @
1e7fe815
...
...
@@ -68,7 +68,8 @@ angular.module('ulakbus.crud', ['schemaForm', 'ui.bootstrap', 'ulakbus.formServi
id
:
scope
.
param_id
||
routeParams
.
param_id
,
wf
:
routeParams
.
wf
,
object_id
:
routeParams
.
key
,
filters
:
{}
filters
:
{},
token
:
routeParams
.
token
};
if
(
scope
.
param_id
)
{
...
...
app/shared/directives.js
View file @
1e7fe815
...
...
@@ -43,7 +43,7 @@ angular.module('ulakbus')
restrict
:
'E'
,
replace
:
true
,
scope
:
{},
controller
:
function
(
$scope
)
{
controller
:
function
(
$scope
,
$log
)
{
// notification categories:
// 1: tasks, 2: messages, 3: announcements, 4: recents
$scope
.
notifications
=
{
1
:
[],
2
:
[],
3
:
[],
4
:
[]};
...
...
@@ -80,6 +80,7 @@ angular.module('ulakbus')
* When "notifications" send via websocket, parse notifications by type.
*/
$scope
.
$on
(
"notifications"
,
function
(
event
,
data
)
{
$log
.
debug
(
"Notification!"
,
data
);
$scope
.
groupNotifications
(
data
);
});
...
...
app/shared/templates/directives/header-notification.html
View file @
1e7fe815
...
...
@@ -38,7 +38,7 @@
</a>
<ul
class=
"dropdown-messages"
uib-dropdown-menu
ng-show=
"notifications[2].length > 0"
>
<li
ng-repeat=
"notify in notifications[2] | limitTo: '8'"
>
<a>
<a
href=
"{{notify.url}}"
>
<div
ng-click=
"popModal(notify)"
>
<div>
<strong>
{{notify.title}}
</strong>
...
...
@@ -70,7 +70,7 @@
</a>
<ul
class=
"dropdown-tasks"
uib-dropdown-menu
ng-if=
"notifications[1].length > 0"
>
<li
ng-repeat=
"notify in notifications[1] | limitTo: '8'"
>
<a>
<a
href=
"{{notify.url}}"
>
<div>
<p>
<strong>
{{notify.title}}
</strong>
...
...
@@ -106,7 +106,7 @@
</a>
<ul
class=
"dropdown-alerts"
uib-dropdown-menu
ng-if=
"notifications[3].length > 0"
>
<li
ng-repeat=
"notify in notifications[3] | limitTo: '8'"
>
<a
role=
"button"
>
<a
role=
"button"
href=
"{{notify.url}}"
>
<div>
<i
class=
"fa fa-comment fa-fw"
></i>
New Comment
<span
class=
"pull-right text-muted small"
>
4 minutes ago
</span>
...
...
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