Browse Source

Temporary fix for paging (show all in dropdown)

Former-commit-id: cf6483f3cd
Former-commit-id: 75c83ad390
pull/258/head
Jack Lukic 12 years ago
parent
commit
89a14c4ffb
10 changed files with 8 additions and 17 deletions
  1. 1
      node/src/documents/elements/button.html
  2. 3
      node/src/documents/elements/divider.html
  3. 1
      node/src/documents/elements/header.html
  4. 1
      node/src/documents/elements/icon.html
  5. 1
      node/src/documents/elements/input.html
  6. 1
      node/src/documents/elements/label.html
  7. 1
      node/src/documents/elements/progress.html
  8. 3
      node/src/documents/elements/segment.html
  9. 3
      node/src/documents/elements/step.html
  10. 10
      node/src/layouts/default.html.eco

1
node/src/documents/elements/button.html

@ -1,7 +1,6 @@
---
layout : 'default'
css : 'button'
title : 'Button'
type : 'UI Element'
---

3
node/src/documents/elements/divider.html

@ -1,7 +1,6 @@
---
layout : 'default'
css : "divider"
css : 'divider'
title : 'Divider'
type : 'UI Element'
---

1
node/src/documents/elements/header.html

@ -1,7 +1,6 @@
---
layout : 'default'
css : 'header'
title : 'Header'
type : 'UI Element'
---

1
node/src/documents/elements/icon.html

@ -1,7 +1,6 @@
---
layout : 'default'
css : 'icon'
title : 'Icon'
type : 'UI Element'
---

1
node/src/documents/elements/input.html

@ -1,7 +1,6 @@
---
layout : 'default'
css : 'input'
title : 'Input'
type : 'UI Element'
---

1
node/src/documents/elements/label.html

@ -1,7 +1,6 @@
---
layout : 'default'
css : "label"
title : 'Label'
type : 'UI Element'
---

1
node/src/documents/elements/progress.html

@ -1,7 +1,6 @@
---
layout : 'default'
css : 'progress'
title : 'Progress'
type : 'UI Element'
---

3
node/src/documents/elements/segment.html

@ -1,7 +1,6 @@
---
layout : 'default'
css : 'header'
css : 'segment'
title : 'Segment'
type : 'UI Element'
---

3
node/src/documents/elements/step.html

@ -1,7 +1,6 @@
---
layout : 'default'
css : "steps"
css : 'steps'
title : 'Step'
type : 'UI Element'
---

10
node/src/layouts/default.html.eco

@ -131,8 +131,8 @@
<b><%= @document.type %>:</b> <%= @document.title %>
</div>
<div class="icon previous link<%= if pageNumber is 1 then " disabled" %> item">
<% if pageNumber > 1 and pageCollection[pageNumber - 2]?: %>
<a href="<%= pageCollection[pageNumber - 2].url %>"><i class="left arrow icon"></i></a>
<% if pageNumber > 1 and currentCollection[pageNumber - 2]?: %>
<a href="<%= currentCollection[pageNumber - 2].url %>"><i class="left arrow icon"></i></a>
<% else: %>
<i class="left arrow icon"></i>
<% end %>
@ -140,7 +140,7 @@
<div class="section ui simple dropdown item">
<span class="count"><%= "#{pageNumber} of #{pageCount}" %></span>
<div class="menu">
<% for element, index in pageCollection: %>
<% for element, index in currentCollection: %>
<div class="<%= if element.id is @document.id then 'active ' %>item">
<a href="<%= element.url %>"><%= (index+1) %>. <%= element.title %></a>
</div>
@ -148,8 +148,8 @@
</div>
</div>
<div class="icon next <%= if pageNumber is pageCount then "disabled " %>link item">
<% if pageNumber isnt pageCount and pageCollection[pageNumber]?: %>
<a href="<%= pageCollection[pageNumber].url %>"><i class="right arrow icon"></i></a>
<% if pageNumber isnt pageCount and currentCollection[pageNumber]?: %>
<a href="<%= currentCollection[pageNumber].url %>"><i class="right arrow icon"></i></a>
<% else: %>
<i class="right arrow icon"></i>
<% end %>

Loading…
Cancel
Save