@description = t 'changeset.list.description'
end
- @edit_pages, @edits = paginate(:changesets,
- :include => [:user, :changeset_tags],
- :conditions => conditions,
- :order => "changesets.created_at DESC",
- :per_page => 20)
+ @page = (params[:page] || 1).to_i
+ @page_size = 20
+
+ @edits = Changeset.find(:all,
+ :include => [:user, :changeset_tags],
+ :conditions => conditions,
+ :order => "changesets.created_at DESC",
+ :offset => (@page - 1) * @page_size,
+ :limit => @page_size)
end
private
<p>
-<% current_page = @edit_pages.current_page %>
-
-<%= t'changeset.changeset_paging_nav.showing_page' %>
-<%= current_page.number %> (<%= current_page.first_item %><%
-if (current_page.first_item < current_page.last_item) # if more than 1 changeset on page
- %>-<%= current_page.last_item %><%
-end %>
-<%= t'changeset.changeset_paging_nav.of'%> <%= @edit_pages.item_count %>)
-<% if @edit_pages.page_count > 1 %>
- | <%= pagination_links_each(@edit_pages, {}) { |n| link_to(n, params.merge({ :page => n })) } %>
+
+<% if @page > 1 %>
+<%= link_to t('changeset.changeset_paging_nav.previous'), :page => @page - 1 %>
+<% else %>
+<%= t('changeset.changeset_paging_nav.previous') %>
<% end %>
+
+| <%= t('changeset.changeset_paging_nav.showing_page', :page => @page) %> |
+
+<% if @edits.size < @page_size %>
+<%= t('changeset.changeset_paging_nav.next') %>
+<% else %>
+<%= link_to t('changeset.changeset_paging_nav.next'), :page => @page + 1 %>
+<% end %>
+
</p>
no_comment: (geen)
no_edits: (geen wysigings)
still_editing: (steeds besig met wysiging)
- changeset_paging_nav:
- of: van
- showing_page: Wys bladsy
changesets:
area: Gebied
comment: Opmerking
show_area_box: паказаць мяжу мясцовасці
still_editing: (у працэсе рэдагавання)
view_changeset_details: Падрабязней пра набор зменаў
- changeset_paging_nav:
- of: з
- showing_page: Паказваецца старонка
changesets:
area: Мясцовасць
comment: Каментар
show_area_box: diskouez takad ar voest
still_editing: (oc'h aozañ c'hoazh)
view_changeset_details: Gwelet munudoù ar strollad kemmoù
- changeset_paging_nav:
- of: eus
- showing_page: O tiskouez ar bajenn
changesets:
area: Takad
comment: Addispleg
no_comment: (žádný)
still_editing: (stále se upravuje)
view_changeset_details: Zobrazit detaily sady změn
- changeset_paging_nav:
- of: z
- showing_page: Zobrazuji stranu
changesets:
area: Oblast
comment: Komentář
show_area_box: Bereich anzeigen
still_editing: (in Bearbeitung)
view_changeset_details: Details des Changesets
- changeset_paging_nav:
- of: von
- showing_page: Seite
changesets:
area: Bereich
comment: Kommentar
show_area_box: wobłuk pokazaś
still_editing: (wobźěłujo se)
view_changeset_details: Drobnostki sajźbow změnow pokazaś
- changeset_paging_nav:
- of: z
- showing_page: Pokazujo se bok
changesets:
area: Wurězk
comment: Komentar
anonymous: Ανόνυμος
show_area_box: δείξε περιοχή κουτιού
view_changeset_details: Δες αλλαγή συλλογής λεπτομερειών
- changeset_paging_nav:
- showing_page: Eμφάνιση σελίδας
changesets:
area: Περιοχή
comment: Σχόλιο
edit: "edit"
changeset:
changeset_paging_nav:
- showing_page: "Showing page"
- of: "of"
+ showing_page: "Showing page {{page}}"
+ next: "Next »"
+ previous: "« Previous"
changeset:
id: "#{{id}}"
still_editing: "(still editing)"
no_comment: (neniu)
no_edits: (neniaj redaktoj)
still_editing: (estas ankoraŭ redaktata)
- changeset_paging_nav:
- showing_page: Montrante paĝon
changesets:
area: Areo
comment: Komento
show_area_box: mostrar caja
still_editing: (todavía en edición)
view_changeset_details: Ver detalles del conjunto de cambios
- changeset_paging_nav:
- of: de
- showing_page: Mostrando página
changesets:
area: Ã\81rea
comment: Comentario
show_area_box: näytä alueen rajat kartalla
still_editing: (muokkaus kesken)
view_changeset_details: Näytä muutoskokoelman tarkemmat tiedot
- changeset_paging_nav:
- of: " /"
- showing_page: Sivu
changesets:
area: Alue
comment: Kommentti
show_area_box: afficher la zone de la boîte
still_editing: (en cours de modification)
view_changeset_details: Afficher les détails du groupe de modifications
- changeset_paging_nav:
- of: de
- showing_page: Affichage de la page
changesets:
area: Zone
comment: Commentaire
no_edits: (nissun cambiament)
still_editing: (ancjemò in cambiament)
view_changeset_details: Viôt detais dal grup di cambiaments
- changeset_paging_nav:
- of: su
- showing_page: Daûr a mostrâ la pagjine
changesets:
area: Aree
comment: Coment
no_edits: (कोई संपादित नहीं है)
still_editing: (संपादित किया जा रहा है)
view_changeset_details: इस changeset के विवरण देखे
- changeset_paging_nav:
- of: "पृष्ठ गिनती:"
- showing_page: "इस पृष्ठ का प्रदर्शन:"
changesets:
area: क्षेत्र
comment: टिप्पणी
show_area_box: prikaži okvir područja
still_editing: (još uređuje)
view_changeset_details: Prikaži detalje changeseta
- changeset_paging_nav:
- of: od
- showing_page: Prikazujem stranicu
changesets:
area: Područje
comment: Komentar
show_area_box: wobłuk pokazać
still_editing: (wobdźěłuje so hišće)
view_changeset_details: Podrobnosće sadźby změnow pokazać
- changeset_paging_nav:
- of: z
- showing_page: Pokazuje so strona
changesets:
area: Wobłuk
comment: Komentar
show_area_box: területhatároló megjelenítése
still_editing: (szerkesztés alatt)
view_changeset_details: Módosításcsomag részleteinek megtekintése
- changeset_paging_nav:
- of: "összesen:"
- showing_page: "Jelenlegi oldal:"
changesets:
area: Terület
comment: Megjegyzés
show_area_box: monstrar quadro del area
still_editing: (ancora in modification)
view_changeset_details: Vider detalios del gruppo de modificationes
- changeset_paging_nav:
- of: de
- showing_page: Monstrante pagina
changesets:
area: Area
comment: Commento
show_area_box: sýna svæðismörk
still_editing: (enn að breyta)
view_changeset_details: Skoða breytingarsett
- changeset_paging_nav:
- of: af
- showing_page: Sýni síðu
changesets:
area: Svæði
comment: Athugasemd
show_area_box: visualizza il riquadro dell'area
still_editing: (ancora in modifica)
view_changeset_details: Visualizza i dettagli del gruppo di modifiche
- changeset_paging_nav:
- of: di
- showing_page: Visualizzata la pagina
changesets:
area: Area
comment: Commento
show_area_box: 領域境界を表示
still_editing: (まだ編集中です)
view_changeset_details: 変更セットの詳細表示
- changeset_paging_nav:
- showing_page: ページ表示
changesets:
area: 領域
comment: コメント
show_area_box: прикажи рамка на површина
still_editing: (сè уште уредува)
view_changeset_details: Преглед на детали од измените
- changeset_paging_nav:
- of: од
- showing_page: Приказ на страница
changesets:
area: Површина
comment: Коментар
no_comment: (keen)
no_edits: (keen Ännern)
still_editing: (noch an’t Ännern)
- changeset_paging_nav:
- of: von
- showing_page: an’t Sied weddergeven
changesets:
area: Rebeed
comment: Kommentar
show_area_box: toon rechthoek
still_editing: (nog aan het bewerken)
view_changeset_details: Details wijzigingenset weergeven
- changeset_paging_nav:
- of: van
- showing_page: Bezig met weergeven van pagina
changesets:
area: Gebied
comment: Opmerking
show_area_box: vis boks for område
still_editing: (redigerer forsatt)
view_changeset_details: Vis detaljer for endringssett
- changeset_paging_nav:
- of: av
- showing_page: Viser side
changesets:
area: Område
comment: Kommentar
show_area_box: pokaż prostokąt zawierający
still_editing: (nadal edytowany)
view_changeset_details: Zobacz szczegóły changesetu
- changeset_paging_nav:
- of: z
- showing_page: Widoczna jest strona
changesets:
area: Obszar
comment: Komentarz
show_area_box: exibir limite da área
still_editing: (ainda editando)
view_changeset_details: Ver detalhes das alterações
- changeset_paging_nav:
- of: de
- showing_page: Exibindo página
changesets:
area: Área
comment: Comentário
show_area_box: afișează chenarul zonei
still_editing: (încă se editează)
view_changeset_details: Vizualizare detalii set de schimbări
- changeset_paging_nav:
- of: din
- showing_page: Se afișează pagina
changesets:
area: Zonă
comment: Comentariu
show_area_box: Показать рамку, охватывающую область пакета правок
still_editing: (ещё редактируется)
view_changeset_details: Просмотреть подробности пакета правок
- changeset_paging_nav:
- of: из
- showing_page: Страница
changesets:
area: Область
comment: Комментарий
show_area_box: prikaži pravokotno področje
still_editing: (še ureja)
view_changeset_details: Ogled podrobnosti paketa sprememb
- changeset_paging_nav:
- of: od
- showing_page: Prikaz strani
changesets:
area: Področje
comment: Komentar
no_comment: (ingen)
no_edits: (inga ändringar)
still_editing: (redigerar fortfarande)
- changeset_paging_nav:
- of: av
- showing_page: Visar sida
changesets:
area: Area
comment: Kommentar
show_area_box: hiện hộp vùng
still_editing: (đang mở)
view_changeset_details: Xem chi tiết của bộ thay đổi
- changeset_paging_nav:
- of: trong
- showing_page: Đang hiện trang
changesets:
area: Vùng
comment: Miêu tả
show_area_box: 显示区域窗口
still_editing: (仍在编辑中)
view_changeset_details: 查看详细变更
- changeset_paging_nav:
- showing_page: 显示网页
changesets:
area: 区域
comment: 评论
show_area_box: 顯示區域方塊
still_editing: (尚在編輯)
view_changeset_details: 檢視變更組合詳細資訊
- changeset_paging_nav:
- of: /
- showing_page: 正在顯示頁面
changesets:
area: 區域
comment: 註解