别忘了改数据库!= =

This commit is contained in:
Wen 2014-04-25 10:42:57 +08:00
parent 60101b169a
commit ba80593ab0
3 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,4 @@
<% port = ":3000" if Rails.env.development? %>
<script type="text/javascript">
function get_school(value){
$.ajax({
@ -19,7 +20,8 @@
<script type="text/javascript">
function test(id){
location.href = encodeURI('http://course.trustie.net&school_id=')+id;
location.href = encodeURI('http://course.trustie.net<%=port%>?school_id='+id);
}
</script>
<script type="text/javascript">
@ -44,8 +46,8 @@
<div>
<p>
<a href="http://course.trustie.net&school_id=0">全部学校</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://course.trustie.net">我的学校</a>
<a href="http://course.trustie.net<%=port%>?school_id=0">全部学校</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://course.trustie.net<%=port%>">我的学校</a>
</p>
<ul>
<li style="width: 40%; float: left">请选择省份:<%= select_tag "province",

View File

@ -110,11 +110,11 @@
<% if School.find(User.current.user_extensions.school.id).logo_link.nil? %>
<%= image_tag '/images/transparent.png', size: "75x75" %>
<% else %>
<%= image_tag School.find(User.current.user_extensions.school.id).logo_link, size: "75x75" %>
<%= image_tag(School.find(User.current.user_extensions.school.id).logo_link, size: "75x75") %>
<% end %>
<br />
<% else %>
<%= image_tag School.find(params[:school_id]).logo_link, "75x75" %>
<%= image_tag(School.find(params[:school_id]).logo_link, size: "75x75") %>
<br />
<% end %>
<% end %>

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB