Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Posts without a title now link to post detail.

if no post title is entered the post content is displayed as the title, with a 50 character maximum and an elipsis to avoid awkward mid word/sentence break.
  • Loading branch information
Seth Hall committed Apr 4, 2016
1 parent e4e87c6 commit 5633626
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/www/templates/posts/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
<div class="post-text">
<a href="/posts/{{post.id}}">
<h3>{{post.title}}</h3>
<h3>{{ post.title || post.content | limitTo:50 }} ...</h3>
</a>
<p>
{{post.content}}
Expand Down Expand Up @@ -61,7 +61,7 @@ <h4 class="delta-alt" translate>
-->
<collection-selector
post="post"
ng-if="post.allowed_privileges.indexOf('update') !== -1"
ng-if="post.allowed_privileges.indexOf('update') !== -1"
ng-show="editableCollections.length > 0 || post.allowed_privilleges.indexOf('update') != 1"
>
</collection-selector>
Expand All @@ -77,5 +77,3 @@ <h4 class="delta-alt" translate>
</span>
-->
</div>


0 comments on commit 5633626

Please sign in to comment.