Fix inability to upload files without Flash

When Flash is unavailable, the fallback Add File link is not clickable,
because the invisible div#swfupload_holder is blocking it. Hide to fix.

Test plan:
* Use a browser with no Flash installed (or Flash disabled)
* Go to the Files page in any course
* Click on the Add File link
* Confirm that the basic HTML file uploader appears below
gradebook: remember last visited tab

fixes CNVS-10632

test plan:
  * enable and open outcome gradebook
  * leave and re-enter gradebook
  * verify that the tab you last viewed opens immediately

Change-Id: I3d3e1cc3c53ef1f860ed2fe63f9c190372ecca08
Reviewed-on: https://gerrit.instructure.com/30783
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Willesen <jonw@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Braden Anderson <banderson@instructure.com>
moved workflow to gem

test plan:
 * smoke test (incl. publishing, unpublishing, deleting)

fixes CNVS-11422

Change-Id: I5e66f9ef0742359938529d08338a94c98cef9bec
Reviewed-on: https://gerrit.instructure.com/30695
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Mark Severson <markse@instructure.com>
QA-Review: Mark Severson <markse@instructure.com>
extract color gem

test plan:
 * colors on the old calendar still display correctly
 * click assignments top nav button
   * sidebar colors should be displayed correctly

fixes CNVS-11423

Change-Id: I07677569d121797ba52382e5e29be7b16878031e
Reviewed-on: https://gerrit.instructure.com/30700
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Mark Severson <markse@instructure.com>
QA-Review: Mark Severson <markse@instructure.com>
Student re-login during an LDB quiz session

This patch makes it possible for students who get logged out while
taking a quiz in the LDB to re-login and resume their quiz with no
interruption.

fixes CNVS-9986

TEST PLAN
---- ----

  - Create an LDB quiz and start taking it in the LDB browser.
  - Use a different browser, or computer, to login using the same
    student account, and then log-out
  - Try to modify your answer in the LDB, and:
    - verify that you are prompted with a login pop-up, and:
      - proceed to test cases

> Case 1: Successfully logging in

  - when prompted, enter the correct credentials, and verify that:
    - the pop-up automatically closes itself
    - you see a successful status message in green
    - you are able to modify your answers and continue taking the quiz
      normally
    - you are able to submit the quiz

> Case 2: Failing to log in

  - when prompted, enter bad credentials, and verify that:
    - the pop-up does not close
    - you see an erratic status message in red

> Case 3: Logging in as someone else

  - when prompted, use a different account to login, and verify that:
    - the pop-up closes itself
    - the pop-up immediately re-opens itself
    - you see the erratic message of authentication failure

> Case 4: Trying to escape

  - when prompted, try the following things:
    - close the pop-up manually by clicking the X or close button
    - click on stuff in the background (quiz window)
  - verify that:
    - when the pop-up loses focus, it automatically "pops" itself back
      onto the foreground
    - you can not modify answers by clicking the background, like
      clicking a radio button or a checkbox
    - you can't do *anything* except for logging in

DEMO
----

http://amireh.net/Funky-LDB-Login.avi

Change-Id: I0edd993b388ab73fe4a4d8fa3f96b7422be7ceb1
Reviewed-on: https://gerrit.instructure.com/28874
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ryan Florence <ryanf@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Product-Review: Ahmad Amireh <ahmad@instructure.com>
fix "edit syllabus description" in new course

test plan:
 - create a new course
 - go to the Syllabus tab
 - press "Edit Syllabus Description"
 - the edit button should disappear and the wiki sidebar
   should appear

fixes CNVS-11193

Change-Id: I811c865c46588b31df52efd9c3df1228c945ecbf
Reviewed-on: https://gerrit.instructure.com/30848
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
fix sis/user_importer_spec for rails 3

also make sure that _stub_sleep doesn't remain if
the spec fails

Change-Id: I355cf5623285492131b01f45eb7e1a800635255a
Reviewed-on: https://gerrit.instructure.com/30993
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
use dark gray text for module items in student view

test plan:  with draft state enabled,
 - view modules page as a student
   - module items should be dark gray
 - view modules page as a teacher
   - published module items should be green
   - unpublished module items should be gray (lighter than the
     color students see)

fixes CNVS-10976

Change-Id: If621d4cfd917d5a878bf2149da5f9c5f665c0c58
Reviewed-on: https://gerrit.instructure.com/30949
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
rails3: include root in assignment serializer

Change-Id: I20583fb721e8c23fcdadcb09407d5a27a88103a7
Reviewed-on: https://gerrit.instructure.com/30895
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
fix redis_spec for rails 3

Change-Id: Idd2a47bd17c191b1827b9a10418d9add2de0eace
Reviewed-on: https://gerrit.instructure.com/30991
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
don't load associations when marshalling records in rails 3

Change-Id: I97b89d79fed24b8ac7de7da3f37e519017889ce6
Reviewed-on: https://gerrit.instructure.com/30997
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
add Content-Length headers to send_file and send_data for rails 3

Change-Id: I2ace18b38a7ff697312039d1e4eb4b4a5c1b4217
Reviewed-on: https://gerrit.instructure.com/30923
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
avoid n-queries loading account users on account settings page

refs CNVS-11420

Change-Id: Ia54b5b3ac528d39b1aad0d4039305786d7bd2dd4
Reviewed-on: https://gerrit.instructure.com/31000
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Anthus Williams <awilliams@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
fix error_report_spec for rails 3

Change-Id: I167be7022746c3c7842485aa83073bbba6b239b8
Reviewed-on: https://gerrit.instructure.com/30999
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
"outdent" isn't a word (and makes no sense for unindented things)

test plan:
- In a course with draft state enabled,
  - the gear menus for module items should have "Increase indent"
    and "Decrease indent" options instead of "Outdent" and "Indent"
    options.
  - The "Decrease indent" option should not show up for items
    that are not indented.
  - The "Increase indent" option should not show up for items
    that are already indented to the maximum amount (5 levels)
  - the '?' key shortcut dialog should also use the terminology
    "increase indent" / "decrease indent"

fixes CNVS-10995

Change-Id: I7e9052b6dbcbe6836ab0577a74dbdc29961a6858
Reviewed-on: https://gerrit.instructure.com/30939
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
add "id" to "all_dates" in quiz and assignment APIs

Test Plan:
  - Make a quiz and an assignment. Add some assignment overrides to
    each.
  - Query the quizzes show API for the quiz you made. You should see
    an "id" field for dates in "all_dates" that came from
    assignment overrides. For the "Everyone Else" date, it should
    not have an "id" field but should have a "base" field with the
    value of `true`.
  - Query the assignments API for the same information for the
    assignment you made. The "id" field should be present for
    dates that came from assignment overrides. For the
    "Everyone Else field" date, it should not have an "id"
    field, but should have a "base" field with the value of
    `true`.

closes CNVS-11445

Change-Id: I4136b86673cf772149b7735c0fe9c6730ff32415
Reviewed-on: https://gerrit.instructure.com/30787
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
use a single query instead of n queries to fetch latest account reports

refs CNVS-11420

test plan:
 * run an account report
 * refresh the settings page
 * it should show that it ran

Change-Id: Ie60570db1ceaff51a4dadd0c30357c333dcabf1c
Reviewed-on: https://gerrit.instructure.com/30995
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
student outcome results view

fixes CNVS-10896

test plan:
  * open feature options as a site admin
  * verify that student outcome gradebook is listed
  * enable the feature
  * open outcome gradebook
  * click on a student's name
  * verify that the student outcome grades page opens

Change-Id: I3c7be377b0c8ab669fa268038baac1bb8c1dc32d
Reviewed-on: https://gerrit.instructure.com/30672
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Willesen <jonw@instructure.com>
QA-Review: Trevor deHaan <tdehaan@instructure.com>
Product-Review: Braden Anderson <banderson@instructure.com>
preload enrollment term for account course index

refs CNVS-11420

Change-Id: Icebecea5e5444d7b75dfcb193f947278aab3fe21
Reviewed-on: https://gerrit.instructure.com/31014
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Nick Cloward <ncloward@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
add image for non-existent domain error page

refs: CNVS-10531

Adds an image used in the changes for g/30445.

Change-Id: If5c76a09839fb9e2c0dffc0d5f5f1ef403495e04
Reviewed-on: https://gerrit.instructure.com/30443
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Anthus Williams <awilliams@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Nick Cloward <ncloward@instructure.com>