Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
marketplaces
gannonce-ui
Commits
e3ea3b1c
Commit
e3ea3b1c
authored
Apr 27, 2017
by
Cédric Moreau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[enh] « Mes annonces » affiche désormais clairement si l'on est pas connecté
parent
564c4356
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
src/pages/my_announces/my_announces.html
src/pages/my_announces/my_announces.html
+17
-16
No files found.
src/pages/my_announces/my_announces.html
View file @
e3ea3b1c
<ion-content
padding
>
<h2
*ngIf=
"announces.length == 0"
>
Vous n'avez aucune annonce pour le moment.
</h2>
<ion-list
id=
"home-list"
>
<button
ion-item
*ngFor=
"let a of announces"
[routerLink]=
"['/announce/edit', a.uuid]"
[ngClass]=
"{'closed': a.stock == 0}"
>
<ion-avatar
item-left
>
<img
*ngIf=
"a.thumbnail"
src=
"{{ a.thumbnail }}"
>
<div
class=
"nophoto"
*ngIf=
"!a.thumbnail"
>
<ion-icon
name=
"photos"
></ion-icon>
</div>
</ion-avatar>
<h2>
{{ a.stock == 0 ? '[FERMÉE] ' + a.title : a.title }}
</h2>
<p>
{{ a.desc }}
</p>
<h3
clear
item-right
>
{{ a.price }} Ğ1
</h3>
</button>
</ion-list>
<ng-container
*ngIf=
"!
account
Service.
acc
"
>
<ng-container
*ngIf=
"!
login
Service.
pub
"
>
<p>
Vous devez préalablement
<a
routerLink=
"/mon_compte"
>
créer votre compte
</a>
pour pouvoir ajouter des annonces.
</p>
</ng-container>
<ng-container
*ngIf=
"accountService.acc"
>
<ng-container
*ngIf=
"loginService.pub"
>
<h2
*ngIf=
"announces.length == 0"
>
Vous n'avez aucune annonce pour le moment.
</h2>
<ion-list
id=
"home-list"
>
<button
ion-item
*ngFor=
"let a of announces"
[routerLink]=
"['/announce/edit', a.uuid]"
[ngClass]=
"{'closed': a.stock == 0}"
>
<ion-avatar
item-left
>
<img
*ngIf=
"a.thumbnail"
src=
"{{ a.thumbnail }}"
>
<div
class=
"nophoto"
*ngIf=
"!a.thumbnail"
>
<ion-icon
name=
"photos"
></ion-icon>
</div>
</ion-avatar>
<h2>
{{ a.stock == 0 ? '[FERMÉE] ' + a.title : a.title }}
</h2>
<p>
{{ a.desc }}
</p>
<h3
clear
item-right
>
{{ a.price }} Ğ1
</h3>
</button>
</ion-list>
<button
ion-button
routerLink=
"/announces/new"
>
Ajouter une nouvelle annonce
</button>
</ng-container>
</ion-content>
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