Customizations for NKUT
Before Width: | Height: | Size: 268 KiB After Width: | Height: | Size: 301 KiB |
Before Width: | Height: | Size: 319 KiB After Width: | Height: | Size: 348 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 15 KiB |
|
@ -179,6 +179,7 @@ div[data-role="page"] {
|
||||||
}
|
}
|
||||||
.content .orbit-cycle-slideshow {
|
.content .orbit-cycle-slideshow {
|
||||||
height: 300px;
|
height: 300px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.content .orbit-cycle-slideshow img {
|
.content .orbit-cycle-slideshow img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -325,13 +326,22 @@ div[id^="dialog"] .content {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
@media(min-width:320px){
|
@media(min-width:320px){
|
||||||
|
.content .orbit-cycle-slideshow {
|
||||||
|
height: 130px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media(min-width: 480px){
|
@media(min-width: 480px){
|
||||||
|
.content .orbit-cycle-slideshow {
|
||||||
|
height: 170px;
|
||||||
|
}
|
||||||
.content .newitem {
|
.content .newitem {
|
||||||
width: 440px;
|
width: 440px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media(min-width:600px) {
|
@media(min-width:600px) {
|
||||||
|
.content .orbit-cycle-slideshow {
|
||||||
|
height: 200px;
|
||||||
|
}
|
||||||
.main-menu ul {
|
.main-menu ul {
|
||||||
width: 420px;
|
width: 420px;
|
||||||
}
|
}
|
||||||
|
@ -340,6 +350,9 @@ div[id^="dialog"] .content {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media(min-width:768px) {
|
@media(min-width:768px) {
|
||||||
|
.content .orbit-cycle-slideshow {
|
||||||
|
height: 250px;
|
||||||
|
}
|
||||||
.main-menu ul {
|
.main-menu ul {
|
||||||
width: 480px;
|
width: 480px;
|
||||||
}
|
}
|
||||||
|
@ -351,6 +364,9 @@ div[id^="dialog"] .content {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media(min-width:800px) {
|
@media(min-width:800px) {
|
||||||
|
.content .orbit-cycle-slideshow {
|
||||||
|
height: 330px;
|
||||||
|
}
|
||||||
.main-menu ul {
|
.main-menu ul {
|
||||||
width: 480px;
|
width: 480px;
|
||||||
}
|
}
|
||||||
|
@ -359,6 +375,9 @@ div[id^="dialog"] .content {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media(min-width:961px) {
|
@media(min-width:961px) {
|
||||||
|
.content .orbit-cycle-slideshow {
|
||||||
|
height: 380px;
|
||||||
|
}
|
||||||
.main-menu ul {
|
.main-menu ul {
|
||||||
width: 480px;
|
width: 480px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ class PagesController < ApplicationController
|
||||||
include ApplicationHelper
|
include ApplicationHelper
|
||||||
before_filter :get_item, :only => [:index_from_link, :show_from_link]
|
before_filter :get_item, :only => [:index_from_link, :show_from_link]
|
||||||
before_filter :check_frontend_open, :only => [:index,:show]
|
before_filter :check_frontend_open, :only => [:index,:show]
|
||||||
|
before_filter :get_last_update_date, :only => [:index,:show]
|
||||||
# caches_page :index
|
# caches_page :index
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
@ -226,4 +227,8 @@ class PagesController < ApplicationController
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def get_last_update_date
|
||||||
|
@last_update_date = t(:total_visitors)+' : '+ Impression.count.to_s+' | '+t(:update_at)+' : '+Bulletin.order_by(:updated_at.desc).limit(1).first[:updated_at].to_s
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -41,5 +41,6 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<div id='last_update_date_wrap' style='display:none;'><div id='last_update_date'><%= @last_update_date %></div></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|