add option pagination
center pagination Fix pagination css Symbols for previous and next modified: app/assets/stylesheets/conversations.scss modified: app/views/conversations/index.haml Add responsive pagination Fix broken pagination modified: app/assets/stylesheets/conversations.scss modified: app/views/conversations/index.haml Fix broken pagination for mobile Mobile pagination Unify desktop and mobile background change background color
This commit is contained in:
parent
241ac83f17
commit
a97bfec39c
4 changed files with 33 additions and 2 deletions
|
|
@ -180,6 +180,21 @@
|
||||||
a:hover {
|
a:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
.pagination {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.disabled a {
|
||||||
|
background: $background-grey;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1354px) {
|
||||||
|
#left_pane #conversation_inbox .pagination ul > li > a {
|
||||||
|
padding: 4px 7px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -847,6 +847,22 @@ form#new_user.new_user input.btn {
|
||||||
text-shadow: 1px 1px 20px rgb(126, 240, 77);
|
text-shadow: 1px 1px 20px rgb(126, 240, 77);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#conversation_inbox {
|
||||||
|
.pagination {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
ul > li > a {
|
||||||
|
padding: 4px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.disabled a{
|
||||||
|
background: $background-grey;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
input#user_password, #user_username, #user_password_confirmation, #user_email {
|
input#user_password, #user_username, #user_password_confirmation, #user_email {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
- else
|
- else
|
||||||
#no_conversations
|
#no_conversations
|
||||||
= t('.no_messages')
|
= t('.no_messages')
|
||||||
= will_paginate @conversations, :renderer => WillPaginate::ActionView::BootstrapLinkRenderer
|
= will_paginate @conversations, :previous_label => '«', :next_label => '»', :inner_window => 1, :renderer => WillPaginate::ActionView::BootstrapLinkRenderer
|
||||||
|
|
||||||
.span8
|
.span8
|
||||||
- if @conversation
|
- if @conversation
|
||||||
|
|
|
||||||
|
|
@ -27,4 +27,4 @@
|
||||||
%i
|
%i
|
||||||
= t('.no_messages')
|
= t('.no_messages')
|
||||||
|
|
||||||
= will_paginate @conversations, :renderer => WillPaginate::ActionView::BootstrapLinkRenderer
|
= will_paginate @conversations, :previous_label => '«', :next_label => '»', :inner_window => 1, :outer_window => 0, :renderer => WillPaginate::ActionView::BootstrapLinkRenderer
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue