diff --git a/lms/static/sass/course/wiki/_wiki.scss b/lms/static/sass/course/wiki/_wiki.scss index a5cc307152..a053946a80 100644 --- a/lms/static/sass/course/wiki/_wiki.scss +++ b/lms/static/sass/course/wiki/_wiki.scss @@ -436,6 +436,44 @@ section.wiki { margin-left: -480px; top: 150px; + &.upload-modal, + &.search-file-modal { + width: 400px; + min-height: 0; + margin-left: -200px; + + h4 { + margin-bottom: 20px; + font-weight: bold; + } + + .help-block { + font-size: 0.8em; + } + } + + &.search-file-modal { + width: 500px; + margin-left: -250px; + + p { + font-size: 0.8em; + line-height: 1.4em; + } + + .form-search { + margin: 30px 0 15px; + + input { + width: 350px; + } + + button { + height: 35px; + } + } + } + .modal-header { h1, p { color: #fff; @@ -472,10 +510,17 @@ section.wiki { } } + .modal-inner-wrapper { + background: #fff; + padding: 20px; + } + #previewWindow body { background: #f00 !important; } + + @@ -568,6 +613,27 @@ section.wiki { + /*----------------- + + Attachments + + -----------------*/ + + .attachment-options { + height: 40px; + margin-bottom: 30px; + padding: 20px 0 2px; + border-bottom: 1px solid $light-gray; + border-top: 1px solid $light-gray; + } + + .attachment-list { + + } + + + + /*----------------- diff --git a/lms/templates/wiki/plugins/attachments/index.html b/lms/templates/wiki/plugins/attachments/index.html index e2dab8824f..d110bc709e 100644 --- a/lms/templates/wiki/plugins/attachments/index.html +++ b/lms/templates/wiki/plugins/attachments/index.html @@ -7,14 +7,41 @@ {% block wiki_contents_tab %}
- - {% if article|can_write:user %} +
+ + {% trans "Upload new file" %} + + + {% trans "Search and add file" %} + +
- - {% trans "Upload new file" %} - + + + - - - - - - - - -
-
-
- -
-
- {% if anonymous_disallowed %} - {% include "wiki/includes/anonymous_blocked.html" %} - {% else %} -
- {% wiki_form form %} - -
- {% endif %} -
-
- -
-
-
-
- - -
-
-

{% trans "You can reuse files from other articles. These files are subject to updates on other articles which may or may not be a good thing." %}

- -
-
-
- -
-
+ {% endif %} -
+

{% trans "The following files are available for this article. Copy the markdown tag to directly refer to a file from the article text." %}

{% for attachment in attachments %}