-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #399 from MadanBhandari/issue/387
Problem: Card title & description is limited #387
- Loading branch information
Showing
19 changed files
with
200 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 32 additions & 58 deletions
90
imports/ui/shared/learningResourceList/learningResourceList.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,34 @@ | ||
<template name="learningResourceList"> | ||
{{#if isHome}} | ||
{{#each learningResources}} | ||
<div class="card learningResource"> | ||
<p class="home-label bg-success">Learn</p> | ||
<div class="card-body"> | ||
{{#if canEdit}} | ||
<div class="news-settings float-right dropdown"> | ||
<i class="icon-settings dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" | ||
aria-expanded="false"></i> | ||
<div class="dropdown-menu"> | ||
<a class="dropdown-item" id="js-edit" href="/learn/{{slug}}/edit"><i class="icon-pencil"></i> | ||
Edit</a> | ||
<a class="dropdown-item text-danger" id="js-remove" href="#"><i class="icon-trash text-danger"></i> | ||
Delete</a> | ||
</div> | ||
</div> | ||
{{/if}} | ||
|
||
<h4 class="card-title"> | ||
<a href="/learn/{{slug}}" title="{{title}}">{{title}}</a> | ||
</h4> | ||
<p class="card-text">{{limitChars summary}}</p> | ||
<hr /> | ||
{{> flagItem item="learn"}} | ||
</div> | ||
</div> | ||
{{/each}} | ||
{{else}} | ||
<div class="{{containerClasses}}"> | ||
{{#each learningResources}} | ||
<div class="{{cardWrapperClasses}}"> | ||
<div class="card learningResource"> | ||
<div class="card-body"> | ||
{{#if canEdit}} | ||
<div class="news-settings float-right dropdown"> | ||
<i class="icon-settings dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" | ||
aria-expanded="false"></i> | ||
<div class="dropdown-menu"> | ||
<a class="dropdown-item" id="js-edit" href="/learn/{{slug}}/edit"><i class="icon-pencil"></i> | ||
Edit</a> | ||
<a class="dropdown-item text-danger" id="js-remove" href="#"><i class="icon-trash text-danger"></i> | ||
Delete</a> | ||
</div> | ||
</div> | ||
{{/if}} | ||
|
||
<h4 class="card-title"> | ||
<a href="/learn/{{slug}}" title="{{title}}">{{title}}</a> | ||
</h4> | ||
<p class="card-text">{{limitChars summary}}</p> | ||
<hr /> | ||
{{> flagItem item="learn"}} | ||
</div> | ||
</div> | ||
</div> | ||
{{/each}} | ||
{{#if isHome}} | ||
{{#each learningResources}} | ||
<div class="card learningResource"> | ||
<p class="home-label bg-success">Learn</p> | ||
<div class="card-body"> | ||
<h4 class="card-title"> | ||
<a href="/learn/{{slug}}" title="{{title}}">{{title}}</a> | ||
</h4> | ||
<p class="card-text">{{limitChars summary}}</p> | ||
<hr /> | ||
{{> flagItem item="learn" edit=editURL _id=this._id}} | ||
</div> | ||
</div> | ||
{{/each}} | ||
{{else}} | ||
<div class="{{containerClasses}}"> | ||
{{#each learningResources}} | ||
<div class="{{cardWrapperClasses}}"> | ||
<div class="card learningResource"> | ||
<div class="card-body"> | ||
<h4 class="card-title"> | ||
<a href="/learn/{{slug}}" title="{{title}}">{{title}}</a> | ||
</h4> | ||
<p class="card-text">{{limitChars summary}}</p> | ||
<hr /> | ||
{{> flagItem item="learn" edit=editURL _id=this._id}} | ||
</div> | ||
{{/if}} | ||
</template> | ||
</div> | ||
</div> | ||
{{/each}} | ||
</div> | ||
{{/if}} | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
imports/ui/shared/learningResourceList/learningResourceList.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
.card.learningResource { | ||
.card-title { | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
font-size: 1em; | ||
} | ||
.card-text { | ||
height: 3em; | ||
height: 4em; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,50 @@ | ||
<template name="projectList"> | ||
{{#if isHome}} | ||
{{#each projects}} | ||
<div class="card project"> | ||
<p class="home-label bg-primary">Project</p> | ||
<div class="card-body"> | ||
{{#if canEdit}} | ||
<div class="news-settings float-right dropdown"> | ||
<i class="icon-settings dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></i> | ||
<div class="dropdown-menu"> | ||
<a class="dropdown-item" id="js-edit" href="/projects/{{_id}}/edit"><i class="icon-pencil"></i> | ||
Edit</a> | ||
<a class="dropdown-item text-danger" id="js-remove" href="#"><i class="icon-trash text-danger"></i> | ||
Delete</a> | ||
</div> | ||
</div> | ||
{{/if}} | ||
|
||
<h4 class="card-title"> | ||
<a href="/projects/{{slug}}" title="{{headline}}">{{headline}}</a> | ||
</h4> | ||
<br> | ||
<p class="card-text"> | ||
{{limitChars description}} | ||
</p> | ||
<hr> | ||
{{#if github_url}} | ||
<a href="{{github_url}}" class="github card-link"><i class="fab fa-github fa-lg"></i></a> | ||
{{else}} | ||
<a href="#" class="no-github card-link"><img style="max-width: 1.5em; margin-top: -.125em;" | ||
src="/img/no-github.png" alt="no github repo"></a> | ||
{{/if}} | ||
<a href="{{website}}" title="Go to {{website}}" class="website card-link"><i class="fas fa-external-link-alt fa-lg"></i></a> | ||
{{> flagItem item="project"}} | ||
</div> | ||
</div> | ||
{{/each}} | ||
{{else}} | ||
<div class="{{containerClasses}}"> | ||
{{#each projects}} | ||
<div class="{{cardWrapperClasses}}"> | ||
<div class="card project"> | ||
<div class="card-body"> | ||
{{#if canEdit}} | ||
<div class="news-settings float-right dropdown"> | ||
<i class="icon-settings dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></i> | ||
<div class="dropdown-menu"> | ||
<a class="dropdown-item" id="js-edit" href="/projects/{{_id}}/edit"><i class="icon-pencil"></i> | ||
Edit</a> | ||
<a class="dropdown-item text-danger" id="js-remove" href="#"><i class="icon-trash text-danger"></i> | ||
Delete</a> | ||
</div> | ||
</div> | ||
{{/if}} | ||
|
||
<h4 class="card-title"> | ||
<a href="/projects/{{slug}}" title="{{headline}}">{{headline}}</a> | ||
</h4> | ||
<br> | ||
<p class="card-text"> | ||
{{limitChars description}} | ||
</p> | ||
<hr> | ||
{{#if github_url}} | ||
<a href="{{github_url}}" class="github card-link"><i class="fab fa-github fa-lg"></i></a> | ||
{{else}} | ||
<a href="#" class="no-github card-link"><img style="max-width: 1.5em; margin-top: -.125em;" | ||
src="/img/no-github.png" alt="no github repo"></a> | ||
{{/if}} | ||
<a href="{{website}}" title="Go to {{website}}" class="website card-link"><i class="fas fa-external-link-alt fa-lg"></i></a> | ||
{{> flagItem item="project"}} | ||
</div> | ||
</div> | ||
</div> | ||
{{/each}} | ||
{{#if isHome}} | ||
{{#each projects}} | ||
<div class="card project"> | ||
<p class="home-label bg-primary">Project</p> | ||
<div class="card-body"> | ||
<h4 class="card-title"> | ||
<a href="/projects/{{slug}}" title="{{headline}}">{{headline}}</a> | ||
</h4> | ||
<p class="card-text"> | ||
{{limitChars description}} | ||
</p> | ||
<hr> | ||
{{#if github_url}} | ||
<a href="{{github_url}}" class="github card-link"><i class="fab fa-github fa-lg"></i></a> | ||
{else}} | ||
<a href="#" class="no-github card-link"><img style="max-width: 1.5em; margin-top: -.125em;" src="/img/no-github.png" alt="no github repo"></a> | ||
{{/if}} | ||
<a href="{{website}}" title="Go to {{website}}" class="website card-link"><i class="fas fa-external-link-alt fa-lg"></i></a> | ||
{{> flagItem item="project" edit=editURL _id=this._id}} | ||
</div> | ||
</div> | ||
{{/each}} | ||
{{else}} | ||
<div class="{{containerClasses}}"> | ||
{{#each projects}} | ||
<div class="{{cardWrapperClasses}}"> | ||
<div class="card project"> | ||
<div class="card-body"> | ||
<h4 class="card-title"> | ||
<a href="/projects/{{slug}}" title="{{headline}}">{{headline}}</a> | ||
</h4> | ||
<p class="card-text"> | ||
{{limitChars description}} | ||
</p> | ||
<hr> | ||
{{#if github_url}} | ||
<a href="{{github_url}}" class="github card-link"><i class="fab fa-github fa-lg"></i></a> | ||
{{else}} | ||
<a href="#" class="no-github card-link"><img style="max-width: 1.5em; margin-top: -.125em;" src="/img/no-github.png" alt="no github repo"></a> | ||
{{/if}} | ||
<a href="{{website}}" title="Go to {{website}}" class="website card-link"><i class="fas fa-external-link-alt fa-lg"></i></a> | ||
{{> flagItem item="project" edit=editURL _id=this._id}} | ||
</div> | ||
</div> | ||
{{/if}} | ||
|
||
</template> | ||
</div> | ||
{{/each}} | ||
</div> | ||
{{/if}} | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.