Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
CTF
Project
Project
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
Grzegorz
CTF
Commits
6422ddc7
Commit
6422ddc7
authored
Apr 05, 2016
by
Antek Grzanka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Showing short description of task.
parent
b162112e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
tasksController.js
...esources/assets/statics/js/controllers/tasksController.js
+7
-0
tasks.html
service/src/main/resources/assets/tasks.html
+1
-1
No files found.
service/src/main/resources/assets/statics/js/controllers/tasksController.js
View file @
6422ddc7
...
@@ -3,6 +3,11 @@
...
@@ -3,6 +3,11 @@
$scope
.
apiAddress
=
AppSettings
.
getApiAddress
();
$scope
.
apiAddress
=
AppSettings
.
getApiAddress
();
APIProvider
.
getTasks
(
function
(
data
){
APIProvider
.
getTasks
(
function
(
data
){
// console.log(data);
// console.log(data);
$
.
each
(
data
,
function
(
key
){
data
[
key
].
short_description
=
data
[
key
].
description
.
split
(
" "
).
slice
(
0
,
6
).
join
(
" "
).
concat
(
"..."
);
});
APIProvider
.
getMyCompletedLevelsList
(
function
(
completed
){
APIProvider
.
getMyCompletedLevelsList
(
function
(
completed
){
$
.
each
(
data
,
function
(
key
,
task
){
$
.
each
(
data
,
function
(
key
,
task
){
if
(
completed
.
indexOf
(
task
.
level
)
!==
-
1
){
if
(
completed
.
indexOf
(
task
.
level
)
!==
-
1
){
...
@@ -13,7 +18,9 @@
...
@@ -13,7 +18,9 @@
}
}
});
});
});
});
$scope
.
tasks
=
data
;
$scope
.
tasks
=
data
;
});
});
}]);
}]);
})();
})();
\ No newline at end of file
service/src/main/resources/assets/tasks.html
View file @
6422ddc7
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<i
ng-if=
"task.taskType === 'WEB'"
class=
"fa fa-globe"
alt=
"Zadanie webowe"
></i>
<i
ng-if=
"task.taskType === 'WEB'"
class=
"fa fa-globe"
alt=
"Zadanie webowe"
></i>
{{task.name}}
{{task.name}}
</span>
</span>
<p>
Poziom {{task.level}}.
Super zadanie.
</p>
<p>
Poziom {{task.level}}.
{{task.short_description}}
</p>
</div>
</div>
<div
class=
"card-action"
>
<div
class=
"card-action"
>
<a
href=
"#/task/{{task.level}}"
>
Przejdź do zadania
</a></td>
<a
href=
"#/task/{{task.level}}"
>
Przejdź do zadania
</a></td>
...
...
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