The pagination code in lib/stoerte_web/views/torrents_view.ex is pretty awful and could use a rewrite.
lib/stoerte_web/views/torrents_view.ex