Skip to content

Commit

Permalink
slug based travis build 🐛 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
behram committed Jul 14, 2016
1 parent 1793e74 commit ebcf535
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
1 change: 1 addition & 0 deletions src/Ojs/ApiBundle/Handler/PostHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ private function processForm(AdminPost $entity, array $parameters, $method = "PU
if ($form->isValid()) {
$page = $form->getData();
$entity->setCurrentLocale('en');
$entity->setSlug($entity->getTitle());
$this->om->persist($entity);
$this->om->flush();
return $page;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,22 @@

<ul class="list-group">
{% for article in articles %}
<li class="list-group-item list-group-item-default">
<a href="{{ url('ojs_article_page',{article_id: article.id,slug: journal.slug,publisher: journal.publisher.slug, issue_id: article.issue.id}) }}">
<i class="fa fa-file-text"></i> {{ article.title }}
</a>
<br/>
<i class="fa fa-users"></i>
<span class="text-muted">
(
{% if article.created.date %}
{{ article.created.date|date('Y-m-d') }}
{% endif %}
)
</span>
</li>
{% if article.issue is not empty %}
<li class="list-group-item list-group-item-default">
<a href="{{ url('ojs_article_page',{article_id: article.id,slug: journal.slug,publisher: journal.publisher.slug, issue_id: article.issue.id}) }}">
<i class="fa fa-file-text"></i> {{ article.title }}
</a>
<br/>
<i class="fa fa-users"></i>
<span class="text-muted">
(
{% if article.created.date %}
{{ article.created.date|date('Y-m-d') }}
{% endif %}
)
</span>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,19 @@

<ul class="list-group">
{% for article in articles %}
<li class="list-group-item list-group-item-default">
<a href="{{ url('ojs_article_page',{article_id: article.id,
slug: journal.slug, publisher: journal.publisher.slug, issue_id: article.issue.id}) }}"><i
class="fa fa-file-text"></i> {{ article.title }}
</a><br/>
<i class="fa fa-users"></i>
<span class="text-muted">
({% if article.created.date %}{{ article.created.date|date('Y-m-d') }}{% endif %}
)
</span>
</li>
{% if article.issue is not empty %}
<li class="list-group-item list-group-item-default">
<a href="{{ url('ojs_article_page',{article_id: article.id,
slug: journal.slug, publisher: journal.publisher.slug, issue_id: article.issue.id}) }}"><i
class="fa fa-file-text"></i> {{ article.title }}
</a><br/>
<i class="fa fa-users"></i>
<span class="text-muted">
({% if article.created.date %}{{ article.created.date|date('Y-m-d') }}{% endif %}
)
</span>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
Expand Down

0 comments on commit ebcf535

Please sign in to comment.