design
This commit is contained in:
parent
aeb949161e
commit
c5e1b49b53
|
@ -1,15 +1,15 @@
|
||||||
<div class="ui-g-12 ui-bottom-border-1">
|
<div class="ui-g ui-g-12 ui-g-nopad ui-app-noti">
|
||||||
No tifications
|
<h4>No tifications</h4>
|
||||||
</div>
|
<li role="menuitem" *ngFor="let noti of notifications; let i = index">
|
||||||
<li role="menuitem" *ngFor="let noti of notifications; let i = index" class="ui-bottom-border-1 ui-app-noti">
|
|
||||||
<a *ngIf="i < 5" href="javascript:void(0)" class="topbar-message" (click)="onNotiClick(noti)" [ngStyle]="noti.confirmDate ? '' : {'background-color': 'lightblue'}">
|
<a *ngIf="i < 5" href="javascript:void(0)" class="topbar-message" (click)="onNotiClick(noti)" [ngStyle]="noti.confirmDate ? '' : {'background-color': 'lightblue'}">
|
||||||
|
<div class="ui-app-noti-date">{{noti.createDate | date: 'short'}}</div>
|
||||||
<div class="ui-app-noti-title">{{noti.title}}</div>
|
<div class="ui-app-noti-title">{{noti.title}}</div>
|
||||||
<div class="ui-app-noti-content">{{noti.message}}</div>
|
<div class="ui-app-noti-content">{{noti.message}}</div>
|
||||||
<div class="ui-app-noti-date">{{noti.createDate | date: 'short'}}</div>
|
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li role="menuitem">
|
<li>
|
||||||
<a href="javascript:void(0)" class="topbar-message" (click)="onViewAllClick(noti)">
|
<a href="javascript:void(0)" (click)="onViewAllClick(noti)">
|
||||||
<span>View All</span>
|
<span>View All</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
</div>
|
|
@ -4,6 +4,14 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p-table [value]="notifications" selectionMode="single" (onRowSelect)="onRowSelect($event)" >
|
<p-table [value]="notifications" selectionMode="single" (onRowSelect)="onRowSelect($event)" >
|
||||||
|
<ng-template pTemplate="header">
|
||||||
|
<tr>
|
||||||
|
<th style="width:9em">Date</th>
|
||||||
|
<th style="width:12em">Title</th>
|
||||||
|
<th pResizableColumn>Message</th>
|
||||||
|
<th style="width:8em">User</th>
|
||||||
|
</tr>
|
||||||
|
</ng-template>
|
||||||
<ng-template pTemplate="body" let-notification let-rowIndex="rowIndex" >
|
<ng-template pTemplate="body" let-notification let-rowIndex="rowIndex" >
|
||||||
<tr [pSelectableRow]="notification" [ngStyle]="notification.confirmDate ? '' : {'background-color': 'lightblue'}">
|
<tr [pSelectableRow]="notification" [ngStyle]="notification.confirmDate ? '' : {'background-color': 'lightblue'}">
|
||||||
<td>{{notification.createDate | date: 'dd/MM/yyyy'}}</td>
|
<td>{{notification.createDate | date: 'dd/MM/yyyy'}}</td>
|
||||||
|
|
|
@ -189,27 +189,35 @@ img.ui-img-profile-responsive {
|
||||||
.ui-bottom-border-1 {
|
.ui-bottom-border-1 {
|
||||||
border-bottom: #bdbdbd 1px solid;
|
border-bottom: #bdbdbd 1px solid;
|
||||||
}
|
}
|
||||||
.ultima-menu li a{
|
|
||||||
.ui-app-noti{
|
.layout-container .ultima-menu .ui-app-noti{
|
||||||
|
h4 {
|
||||||
|
line-height: 1.2em;
|
||||||
|
border-top : 1px solid #bdbdbd;
|
||||||
|
border-bottom : 1px solid #bdbdbd;
|
||||||
|
margin: 0;
|
||||||
|
width: 100%;
|
||||||
|
padding: 7px 10px;
|
||||||
|
color: #bdbdbd;
|
||||||
|
}
|
||||||
li{
|
li{
|
||||||
padding: 10px !important;
|
padding: 0 ;
|
||||||
line-height: 1.2em !important;
|
width: 100%;
|
||||||
width: 100% !important;
|
border-bottom: #bdbdbd 1px solid;
|
||||||
a {
|
a {
|
||||||
|
display: block;
|
||||||
.ui-app-noti-title {
|
.ui-app-noti-title {
|
||||||
font-weight: bold !important;
|
font-weight: bold;
|
||||||
float: left !important;
|
float: left;
|
||||||
padding: 10px !important;
|
|
||||||
margin: 0 !important;
|
|
||||||
}
|
}
|
||||||
.ui-app-noti-date{
|
.ui-app-noti-date{
|
||||||
float: right !important;
|
float: right;
|
||||||
font-size: 0.6em !important;
|
font-size: 0.8em;
|
||||||
color: gray !important;
|
color: #5e6166;
|
||||||
}
|
}
|
||||||
.ui-app-noti-content{
|
.ui-app-noti-content{
|
||||||
float: left !important;
|
float: left;
|
||||||
}
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user