new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
new Nelmio\CorsBundle\NelmioCorsBundle(),
new Liip\ThemeBundle\LiipThemeBundle(),
- new Wallabag\CoreBundle\WallabagCoreBundle(),
- new Wallabag\ApiBundle\WallabagApiBundle(),
new Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle(),
new Lexik\Bundle\FormFilterBundle\LexikFormFilterBundle(),
new FOS\OAuthServerBundle\FOSOAuthServerBundle(),
- new Wallabag\UserBundle\WallabagUserBundle(),
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new Scheb\TwoFactorBundle\SchebTwoFactorBundle(),
new KPhoen\RulerZBundle\KPhoenRulerZBundle(),
- new Wallabag\ImportBundle\WallabagImportBundle(),
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
new Craue\ConfigBundle\CraueConfigBundle(),
new Lexik\Bundle\MaintenanceBundle\LexikMaintenanceBundle(),
+ new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
+
+ // wallabag bundles
+ new Wallabag\CoreBundle\WallabagCoreBundle(),
+ new Wallabag\ApiBundle\WallabagApiBundle(),
+ new Wallabag\UserBundle\WallabagUserBundle(),
+ new Wallabag\ImportBundle\WallabagImportBundle(),
new Wallabag\AnnotationBundle\WallabagAnnotationBundle(),
];
filesystem_cache:
class: Doctrine\Common\Cache\FilesystemCache
arguments:
- - %kernel.cache_dir%/doctrine/metadata
+ - "%kernel.cache_dir%/doctrine/metadata"
twig.extension.text:
class: Twig_Extensions_Extension_Text
"friendsofsymfony/rest-bundle": "~1.4",
"jms/serializer-bundle": "~1.0",
"nelmio/api-doc-bundle": "~2.7",
- "ezyang/htmlpurifier": "~4.6",
"mgargano/simplehtmldom": "~1.5",
"tecnickcom/tcpdf": "~6.2",
"simplepie/simplepie": "~1.3.1",
"craue/config-bundle": "~1.4",
"mnapoli/piwik-twig-extension": "^1.0",
"lexik/maintenance-bundle": "~2.1",
- "ocramius/proxy-manager": "1.*"
+ "ocramius/proxy-manager": "1.*",
+ "white-october/pagerfanta-bundle": "^1.0"
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "~2.2",
class: Wallabag\CoreBundle\Helper\DetectActiveTheme
arguments:
- "@security.token_storage"
- - %wallabag_core.theme%
+ - "%wallabag_core.theme%"
# custom form type
wallabag_core.form.type.config:
class: Wallabag\CoreBundle\Form\Type\ConfigType
arguments:
- - %liip_theme.themes%
- - %wallabag_core.languages%
+ - "%liip_theme.themes%"
+ - "%wallabag_core.languages%"
tags:
- { name: form.type }
wallabag_core.table_prefix_subscriber:
class: Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber
arguments:
- - %database_table_prefix%
+ - "%database_table_prefix%"
tags:
- { name: doctrine.event_subscriber }
class: Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener
arguments:
- "@doctrine.orm.entity_manager"
- - %wallabag_core.theme%
- - %wallabag_core.items_on_page%
- - %wallabag_core.rss_limit%
- - %wallabag_core.language%
+ - "%wallabag_core.theme%"
+ - "%wallabag_core.items_on_page%"
+ - "%wallabag_core.rss_limit%"
+ - "%wallabag_core.language%"
tags:
- { name: kernel.event_subscriber }
width: 50%;
}
-.pagination {
+div.pagination ul {
text-align: right;
margin-bottom:50px;
}
color: #999;
}
-.pagination > * {
+div.pagination ul > * {
display: inline-block;
margin-left: 0.5em;
}
-.pagination a {
+div.pagination ul a {
color: #999;
text-decoration: none;
}
- .pagination a:hover, .pagination a:focus {
+div.pagination ul a:hover, div.pagination ul a:focus {
text-decoration: underline;
- }
+}
-.pagination .disabled {
+div.pagination ul .disabled {
display: none;
}
-.pagination .current {
+div.pagination ul .current {
height: 25px;
padding: 4px 8px;
border: 1px solid #d5d5d5;
margin-bottom: 0;
}
+.pagination {
+ float: right;
+}
+
+.pagination ul {
+ margin: 0 !important;
+}
+
.pagination li {
padding: 0;
}
display: block;
}
+.pagination li.active span {
+ padding: 0px 10px;
+ height: 30px;
+ display: block;
+ color: #fff;
+}
+
+.pagination .disabled {
+ margin-right: 10px;
+ margin-left: 10px;
+}
+
.page-footer .footer-copyright p {
display: inline;
}
{% block pager %}
<div class="results">
<div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div>
- <div class="pagination">
+ <div class="pagination">
<a href="#" id="filter">{{ 'entry.filters.title'|trans }}</a>
- {% if entries is not empty %}
- –
- {% for p in range(1, entries.nbPages) if entries.nbPages > 1 %}
- <li>
- <a href="{{ path(app.request.attributes.get('_route'), app.request.query.all|merge({'page': p})) }}" class="{{ currentPage == p ? 'current':''}}" >{{ p }}</a>
- </li>
- {% endfor %}
- {% endif %}
+ {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
</div>
</div>
{% endblock %}
{% for entry in entries %}
<div id="entry-{{ entry.id|e }}" class="entry">
- <h2><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></h2>
+ <h2><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|raw }}">{{ entry.title|raw }}</a></h2>
{% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
<div class="estimatedTime">
<tr><td>doctrine/lexer</td><td>MIT</td></tr>
<tr><td>doctrine/migrations</td><td>LGPL-2.1</td></tr>
<tr><td>doctrine/orm</td><td>MIT</td></tr>
- <tr><td>ezyang/htmlpurifier</td><td>LGPL</td></tr>
<tr><td>friendsofsymfony/oauth-server-bundle</td><td>MIT</td></tr>
<tr><td>friendsofsymfony/oauth2-php</td><td>MIT</td></tr>
<tr><td>friendsofsymfony/rest-bundle</td><td>MIT</td></tr>
<div class="nb-results left">
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
</div>
- <ul class="pagination right">
- {% for p in range(1, entries.nbPages) if entries.nbPages > 1 %}
- <li class="{{ currentPage == p ? 'active':'waves-effect'}}">
- <a href="{{ path(app.request.attributes.get('_route'), app.request.query.all|merge({'page': p})) }}">{{ p }}</a>
- </li>
- {% endfor %}
- </ul>
+ {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
</div>
{% endblock %}
<br />
<i class="card-title grey-text text-darken-4 activator mdi-navigation-more-vert right"></i>
{% endif %}
- <span class="card-title"><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|striptags|slice(0, 42)|raw }}</a></span>
+ <span class="card-title"><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|raw }}">{{ entry.title|striptags|slice(0, 42)|raw }}</a></span>
<div class="estimatedTime grey-text">
<span class="tool reading-time">
<tr><td>doctrine/lexer</td><td>MIT</td></tr>
<tr><td>doctrine/migrations</td><td>LGPL-2.1</td></tr>
<tr><td>doctrine/orm</td><td>MIT</td></tr>
- <tr><td>ezyang/htmlpurifier</td><td>LGPL</td></tr>
<tr><td>friendsofsymfony/oauth-server-bundle</td><td>MIT</td></tr>
<tr><td>friendsofsymfony/oauth2-php</td><td>MIT</td></tr>
<tr><td>friendsofsymfony/rest-bundle</td><td>MIT</td></tr>
$client->submit($form, $data);
- $parameters = '?entry_filter%5BreadingTime%5D%5Bleft_number%5D=&entry_filter%5BreadingTime%5D%5Bright_number%5D=';
+ $parameters = '?entry_filter%5BreadingTime%5D%5Bleft_number%5D=&entry_filter%5BreadingTime%5D%5Bright_number%5D=';
$client->request('GET', 'unread/list'.$parameters);