This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
a21aa392
Commit
a21aa392
authored
3 years ago
by
Eduard Frankford
Browse files
Options
Downloads
Patches
Plain Diff
like button now below rating
parent
2847c4cf
2 merge requests
!55
June Release
,
!54
thumbs_up button implementation
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.classpath
+7
-5
7 additions, 5 deletions
.classpath
package-lock.json
+1236
-32533
1236 additions, 32533 deletions
package-lock.json
src/main/webapp/app/exercise/exercise-details/exercise-details.component.html
+55
-32
55 additions, 32 deletions
...exercise/exercise-details/exercise-details.component.html
with
1298 additions
and
32570 deletions
.classpath
+
7
−
5
View file @
a21aa392
...
...
@@ -26,7 +26,6 @@
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"
>
<attributes>
<attribute
name=
"module"
value=
"true"
/>
<attribute
name=
"maven.pomderived"
value=
"true"
/>
</attributes>
</classpathentry>
...
...
@@ -35,17 +34,20 @@
<attribute
name=
"maven.pomderived"
value=
"true"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"src"
path=
"target/generated-sources/annotations"
>
<classpathentry
kind=
"src"
output=
"target/test-classes"
path=
"target/generated-
test-
sources/
test-
annotations"
>
<attributes>
<attribute
name=
"test"
value=
"true"
/>
<attribute
name=
"optional"
value=
"true"
/>
<attribute
name=
"maven.pomderived"
value=
"true"
/>
<attribute
name=
"ignore_optional_problems"
value=
"true"
/>
<attribute
name=
"m2e-apt"
value=
"true"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"src"
output=
"target/test-classes"
path=
"target/generated-test-sources/test-annotations"
>
<classpathentry
combineaccessrules=
"false"
kind=
"src"
path=
"/SharingPluginPlattform"
/>
<classpathentry
kind=
"src"
path=
"target/generated-sources/annotations"
>
<attributes>
<attribute
name=
"test"
value=
"true"
/>
<attribute
name=
"optional"
value=
"true"
/>
</attributes>
</classpathentry>
<classpathentry
combineaccessrules=
"false"
kind=
"src"
path=
"/SharingPluginPlattform"
/>
<classpathentry
kind=
"output"
path=
"target/classes"
/>
</classpath>
This diff is collapsed.
Click to expand it.
package-lock.json
+
1236
−
32533
View file @
a21aa392
This diff is collapsed.
Click to expand it.
src/main/webapp/app/exercise/exercise-details/exercise-details.component.html
+
55
−
32
View file @
a21aa392
...
...
@@ -37,6 +37,49 @@
</div>
</div>
<!-- modal rating end-->
<div
*ngIf=
"!exercise.userHasLiked"
style=
"float: left; width: 100%; margin-bottom: 5px; padding-top: 15px;"
>
<div
style=
"float: left;"
>
<div>
<button
style=
"padding: 0%; font-size: 1.2;"
*ngIf=
"!exercise.userHasLiked"
type=
"button"
class=
"btn"
(click)=
"likeAction()"
[disabled]=
"!isAuthenticated()"
>
<!-- <fa-icon icon="heart"></fa-icon> -->
<fa-icon
[icon]=
"['far', 'heart']"
></fa-icon>
</button>
</div>
<!-- <div class="onhoverIconDisplay"><p class="card-text" jhiTranslate="exercise.details.views"></p></div> -->
</div>
<div
class=
"star-container"
>
<span>
{{exercise.numberOfLikes}}
</span>
</div>
</div>
<!-- modal views end-->
<div
*ngIf=
"exercise.userHasLiked"
style=
"float: left; width: 100%; margin-bottom: 5px; padding-top: 15px;"
>
<div
style=
"float: left;"
>
<div>
<button
style=
"padding: 0%; font-size: 1.2;"
*ngIf=
"exercise.userHasLiked"
type=
"button"
class=
"btn"
(click)=
"unlikeAction()"
[disabled]=
"!isAuthenticated()"
>
<!-- <fa-icon icon="heart"></fa-icon> -->
<fa-icon
class=
"rediconcolor"
icon=
'heart'
></fa-icon>
</button>
</div>
</div>
<div
class=
"star-container"
>
<span>
{{exercise.numberOfLikes}}
</span>
</div>
</div>
<div
*ngIf=
"exercise.rating"
style=
"float: left; width: 100%; margin-bottom: 5px; padding-top: 15px;"
>
<div
style=
"float: left;"
>
...
...
@@ -92,41 +135,21 @@
>
</button>
</div>
<div
*ngIf=
"exercise.originalResult.file.parentId"
style=
"float: left; width: 100%; padding-top: 15px; margin-bottom: 25px;"
>
<ng-template
#helpToParent
data-container=
"body"
>
{{ 'exercise.help.toParent' | translate}}
</ng-template>
<fa-icon
style=
"padding: 5px 0px 0px 5px;float:left;"
[ngbTooltip]=
"helpToParent"
container=
"body"
[icon]=
"treeIcon"
(click)=
"toParent(exercise.originalResult.file.parentId)"
></fa-icon>
</div>
<div
*ngIf=
"exercise.originalResult.file.parentId"
style=
"float: left; width: 100%; padding-top: 15px; margin-bottom: 25px;"
>
<ng-template
#helpToParent
data-container=
"body"
>
{{ 'exercise.help.toParent' |
translate}}
</ng-template>
<fa-icon
style=
"padding: 5px 0px 0px 5px;float:left;"
[ngbTooltip]=
"helpToParent"
container=
"body"
[icon]=
"treeIcon"
(click)=
"toParent(exercise.originalResult.file.parentId)"
></fa-icon>
</div>
<button
*ngIf=
"exercise.type == exerciseType.COLLECTION"
type=
"button"
class=
"btn btn-outline-secondary"
(click)=
"searchChildren(exercise.originalResult.exerciseId)"
data-dismiss=
"modal"
<button
*ngIf=
"exercise.type == exerciseType.COLLECTION"
type=
"button"
class=
"btn btn-outline-secondary"
(click)=
"searchChildren(exercise.originalResult.exerciseId)"
data-dismiss=
"modal"
style=
"display: block; margin-bottom: 5px;"
jhiTranslate=
"exercise.details.allExercises"
>
jhiTranslate=
"exercise.details.allExercises"
>
</button>
<div>
<div>
<button
type=
"button"
class=
"btn-block btn btn-outline-secondary"
style=
"display: block;"
(click)=
"openLink(exercise.gitlabURL)"
jhiTranslate=
"exercise.details.git"
>
</button>
</div>
<div>
<button
type=
"button"
class=
"btn-block btn btn-outline-secondary"
style=
"margin-top: 20px;"
data-toggle=
"modal"
data-target=
"#mdModal"
(click)=
"selectREADME()"
>
README
</button>
</div>
<div
style=
"width: 100%;"
><button
*ngIf=
"!exercise.userHasLiked"
type=
"button"
class=
"btn like"
(click)=
"likeAction()"
[disabled]=
"!isAuthenticated()"
>
<!-- <fa-icon icon="heart"></fa-icon> -->
<fa-icon
[icon]=
"['far', 'heart']"
></fa-icon>
{{exercise.numberOfLikes}}
</button>
<button
*ngIf=
"exercise.userHasLiked"
type=
"button"
class=
"btn like"
(click)=
"unlikeAction()"
[disabled]=
"!isAuthenticated()"
>
<!-- <fa-icon icon="heart"></fa-icon> -->
<fa-icon
class=
"rediconcolor"
icon=
'heart'
></fa-icon>
{{exercise.numberOfLikes}}
</button>
</div>
</div>
</div>
<jhi-exercise-metadata
class=
"col-12 col-md-8"
[exercise]=
"exercise"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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