Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Manson Wang | 9350533d11 | |
saurabhbhatia | 6e39e4f240 |
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 |
|
@ -38,6 +38,8 @@ $(document).ready(function() {
|
|||
}
|
||||
}
|
||||
})
|
||||
|
||||
$('.page_footer').append($('#last_update_date')[0]);
|
||||
});
|
||||
// Ad Banner FX code [end]
|
||||
|
||||
|
|
|
@ -179,6 +179,7 @@ div[data-role="page"] {
|
|||
}
|
||||
.content .orbit-cycle-slideshow {
|
||||
height: 300px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.content .orbit-cycle-slideshow img {
|
||||
width: 100%;
|
||||
|
@ -325,13 +326,22 @@ div[id^="dialog"] .content {
|
|||
margin-bottom: 5px;
|
||||
}
|
||||
@media(min-width:320px){
|
||||
.content .orbit-cycle-slideshow {
|
||||
height: 130px;
|
||||
}
|
||||
}
|
||||
@media(min-width: 480px){
|
||||
.content .orbit-cycle-slideshow {
|
||||
height: 170px;
|
||||
}
|
||||
.content .newitem {
|
||||
width: 440px;
|
||||
}
|
||||
}
|
||||
@media(min-width:600px) {
|
||||
.content .orbit-cycle-slideshow {
|
||||
height: 200px;
|
||||
}
|
||||
.main-menu ul {
|
||||
width: 420px;
|
||||
}
|
||||
|
@ -340,6 +350,9 @@ div[id^="dialog"] .content {
|
|||
}
|
||||
}
|
||||
@media(min-width:768px) {
|
||||
.content .orbit-cycle-slideshow {
|
||||
height: 250px;
|
||||
}
|
||||
.main-menu ul {
|
||||
width: 480px;
|
||||
}
|
||||
|
@ -351,6 +364,9 @@ div[id^="dialog"] .content {
|
|||
}
|
||||
}
|
||||
@media(min-width:800px) {
|
||||
.content .orbit-cycle-slideshow {
|
||||
height: 330px;
|
||||
}
|
||||
.main-menu ul {
|
||||
width: 480px;
|
||||
}
|
||||
|
@ -359,6 +375,9 @@ div[id^="dialog"] .content {
|
|||
}
|
||||
}
|
||||
@media(min-width:961px) {
|
||||
.content .orbit-cycle-slideshow {
|
||||
height: 380px;
|
||||
}
|
||||
.main-menu ul {
|
||||
width: 480px;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ class PagesController < ApplicationController
|
|||
include ApplicationHelper
|
||||
before_filter :get_item, :only => [:index_from_link, :show_from_link]
|
||||
before_filter :check_frontend_open, :only => [:index,:show]
|
||||
before_filter :get_last_update_date, :only => [:index,:show]
|
||||
# caches_page :index
|
||||
|
||||
def index
|
||||
|
@ -226,4 +227,8 @@ class PagesController < ApplicationController
|
|||
return false
|
||||
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
|
||||
|
|
|
@ -41,5 +41,6 @@
|
|||
}
|
||||
</style>
|
||||
<% end %>
|
||||
<div id='last_update_date_wrap' style='display:none;'><div id='last_update_date'><%= @last_update_date %></div></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|