Compare commits

...
This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.

2 Commits
master ... nkut

Author SHA1 Message Date
Manson Wang 9350533d11 NKUT footer displaying number of visitors and last update time 2014-02-07 15:44:18 +08:00
saurabhbhatia 6e39e4f240 Customizations for NKUT 2014-02-07 15:44:18 +08:00
9 changed files with 27 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 KiB

After

Width:  |  Height:  |  Size: 301 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 KiB

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -38,6 +38,8 @@ $(document).ready(function() {
}
}
})
$('.page_footer').append($('#last_update_date')[0]);
});
// Ad Banner FX code [end]

View File

@ -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;
}

View File

@ -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

View File

@ -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>