diff --git a/app/views/libraries/show.html.erb b/app/views/libraries/show.html.erb index 0a29fc05..9fe19994 100644 --- a/app/views/libraries/show.html.erb +++ b/app/views/libraries/show.html.erb @@ -1,93 +1,103 @@ -<% - admin_or_self = admin_or_business? || @library.user_id == User.current.id -%> -
-

- <%= link_to '教学案例', libraries_path, class: 'color-grey-9' %> > - 详情 -

-

- - <%= @library.title %> - - <%= show_library_tags(@library) %> - <% if admin_or_self %> - <% if @library.pending? %> - 草稿 - <% elsif @library.processing? %> - 审核中 - <% elsif @library.refused? %> - 未通过 - <% end %> - <% end %> - <%= link_to('返回', libraries_path, class: 'fr color-grey-9 mt5') %> -

-
-
-
- <%= link_to image_tag(url_to_avatar(@library.user), width: 50, height: 50, class: 'radius mr15 mt3'), user_path(@library.user) %> -
-
  • - <%= @library.user.show_real_name %> - <% if admin_or_business? || @library.user_id == User.current.id && @library.pending? %> - <%= link_to '删除', 'javascript:void(0);', data: { id: @library.id }, - class: 'white-btn edu-blueline-btn fr ml20 delete-btn' %> - <% end %> - <% if admin_or_self %> - <%= link_to '编辑', edit_library_path(id: @library.id), class: 'white-btn edu-blueline-btn fr' %> - <% end %> -
  • -
  • - <%= @library.user.school_name %> - - 编码:<%= @library.uuid %> - <% if @library.published? %> - 发布时间:<%= @library.published_at.strftime('%Y-%m-%d %H:%M') %> - <% else %> - 上传时间:<%= @library.created_at.strftime('%Y-%m-%d %H:%M') %> - <% end %> - -
  • -
    -
    -
    -
    - -
    -
    - <%= render partial: 'attachments/links', locals: { attachments: @library.attachments, options: {} } %> -
    -
    -
    -
    -
    - \ No newline at end of file diff --git a/app/views/users/_returnTop_btn.html.erb b/app/views/users/_returnTop_btn.html.erb index c0e256c8..621c9467 100644 --- a/app/views/users/_returnTop_btn.html.erb +++ b/app/views/users/_returnTop_btn.html.erb @@ -30,17 +30,6 @@ - -
    \ No newline at end of file diff --git a/public/stylesheets/educoder/edu-main.css b/public/stylesheets/educoder/edu-main.css index 33059917..7059dea9 100644 --- a/public/stylesheets/educoder/edu-main.css +++ b/public/stylesheets/educoder/edu-main.css @@ -1138,4 +1138,45 @@ html>body #ajax-indicator { position: fixed; } width: 73px; height: 30px; text-align: center; +} + +.noteDetailPoints{ + width: 70px; + height: 70px; + background-color: #4cacff; + border-radius: 50%; + color: #fff; + text-align: center; + margin: 0 auto; + -webkit-box-sizing: border-box; + box-sizing: border-box; + padding: 2px 0; + cursor: pointer; + line-height: 22px; + padding-top: 12px; +} + +.noteDetailPointsBCD1E3{ + width: 70px; + height: 70px; + background-color: #BCD1E3; + border-radius: 50%; + color: #fff; + text-align: center; + margin: 0 auto; + -webkit-box-sizing: border-box; + box-sizing: border-box; + padding: 2px 0; + cursor: pointer; + line-height: 22px; + padding-top: 12px; +} + +.-task-sidebars{ + position: fixed; + width: 40px; + height: 180px; + right: 0; + bottom: 30px; + z-index: 10; } \ No newline at end of file