From ad23ba646e23a748f9ba8a40e620fe130bc53fd7 Mon Sep 17 00:00:00 2001 From: yanxd Date: Fri, 28 Mar 2014 17:08:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=90=86=E7=90=86css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/issues/show.html.erb | 4 +- app/views/welcome/course.html.erb | 15 +++--- public/stylesheets/welcome.css | 87 +++++++++---------------------- 3 files changed, 36 insertions(+), 70 deletions(-) diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index f8159fc7a..169f1a107 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -1,3 +1,6 @@ +<%# html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> +<% html_title "#{@issue.tracker.name} #{@issue.source_from}: #{@issue.subject}" %> + <%= render :partial => 'action_menu' %>

<%= issue_heading(@issue) %>

@@ -152,7 +155,6 @@ end %> <%= f.link_to 'PDF' %> <% end %> -<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> <% content_for :sidebar do %> <%= render :partial => 'issues/sidebar' %> diff --git a/app/views/welcome/course.html.erb b/app/views/welcome/course.html.erb index 71acc78aa..ca8e29b88 100644 --- a/app/views/welcome/course.html.erb +++ b/app/views/welcome/course.html.erb @@ -111,22 +111,23 @@
-

新开课程

- <%= link_to "更多>>", {:controller => 'projects', :action => 'course', :project_type => 1}, :target => "_blank" %> +

新开课程

+ <%= link_to "更多>>", {:controller => 'projects', :action => 'course', :project_type => 1} %>
    <% find_miracle_course(10, 7).map do |project| %> -
  • > -
    +
  • > +
    <%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
    -
    +
    [<%= get_course_term project %>] <%= link_to( project.name, project_path(project.id), :class => "d-g-blue d-p-project-name",:title => "#{project.name}" )%> (<%= link_to "#{studentCount(project)}人", project_member_path(project, :role => 2) ,:course =>'1' %>) + (<%=(project.attachments.count.to_i+Version.joins(:project).where("projects.id=#{project.id}").count.to_i).to_s%>份资料)
    -
    +
    <% course = Course.find_by_extra(project.identifier) %> <%= course.teacher.user_extensions.occupation.try(:gsub, /(.+)$/, '\1:') %> @@ -139,7 +140,7 @@ -
    +