mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 12:03:03 +00:00
#150 Moved list,grid and object-collection to shared package
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<div class="card">
|
||||
|
||||
<a [routerLink]="['/communities/' + object.id]"class="card-img-top">
|
||||
<ds-comcol-page-logo [logo]="object.logo">
|
||||
</ds-comcol-page-logo>
|
||||
</a>
|
||||
<div class="card-block">
|
||||
<h4 class="card-title">{{object.name}}</h4>
|
||||
<p *ngIf="object.shortDescription" class="card-text">{{object.shortDescription}}</p>
|
||||
<a [routerLink]="['/communities/' + object.id]" class="lead btn btn-primary viewButton">View</a>
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,2 @@
|
||||
@import '../../../../styles/variables';
|
||||
@import '../grid-card-styling';
|
@@ -0,0 +1,15 @@
|
||||
import { Component, Input, Inject } from '@angular/core';
|
||||
|
||||
import { Community } from '../../../core/shared/community.model';
|
||||
import { ObjectGridElementComponent } from '../object-grid-element/object-grid-element.component';
|
||||
import { renderElementsFor} from '../../object-collection/shared/dso-element-decorator';
|
||||
import { ViewMode } from '../../../+search-page/search-options.model';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-community-grid-element',
|
||||
styleUrls: ['./community-grid-element.component.scss'],
|
||||
templateUrl: './community-grid-element.component.html'
|
||||
})
|
||||
|
||||
@renderElementsFor(Community, ViewMode.Grid)
|
||||
export class CommunityGridElementComponent extends ObjectGridElementComponent<Community> {}
|
Reference in New Issue
Block a user