From 5836286fda1257edf2f6f1b32d4a0a09480e8bab Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Mon, 24 Jun 2013 14:47:43 -0400 Subject: [PATCH] PDF textbooks: unified naming conventions --- cms/static/coffee/fixtures/chapter.underscore | 1 - .../coffee/fixtures/edit-chapter.underscore | 1 + .../coffee/fixtures/edit-textbook.underscore | 1 + .../coffee/fixtures/show-textbook.underscore | 1 + .../coffee/fixtures/textbook-edit.underscore | 1 - .../coffee/fixtures/textbook-show.underscore | 1 - .../coffee/spec/views/textbook_spec.coffee | 34 +++++++++---------- cms/static/js/models/textbook.js | 2 +- cms/static/js/views/textbook.js | 16 ++++----- ...ter.underscore => edit-chapter.underscore} | 0 ...it.underscore => edit-textbook.underscore} | 0 ...ow.underscore => show-textbook.underscore} | 0 cms/templates/textbooks.html | 18 +++------- 13 files changed, 33 insertions(+), 43 deletions(-) delete mode 120000 cms/static/coffee/fixtures/chapter.underscore create mode 120000 cms/static/coffee/fixtures/edit-chapter.underscore create mode 120000 cms/static/coffee/fixtures/edit-textbook.underscore create mode 120000 cms/static/coffee/fixtures/show-textbook.underscore delete mode 120000 cms/static/coffee/fixtures/textbook-edit.underscore delete mode 120000 cms/static/coffee/fixtures/textbook-show.underscore rename cms/templates/js/{chapter.underscore => edit-chapter.underscore} (100%) rename cms/templates/js/{textbook-edit.underscore => edit-textbook.underscore} (100%) rename cms/templates/js/{textbook-show.underscore => show-textbook.underscore} (100%) diff --git a/cms/static/coffee/fixtures/chapter.underscore b/cms/static/coffee/fixtures/chapter.underscore deleted file mode 120000 index 75b8edddaa..0000000000 --- a/cms/static/coffee/fixtures/chapter.underscore +++ /dev/null @@ -1 +0,0 @@ -../../../templates/js/chapter.underscore \ No newline at end of file diff --git a/cms/static/coffee/fixtures/edit-chapter.underscore b/cms/static/coffee/fixtures/edit-chapter.underscore new file mode 120000 index 0000000000..9e057ab233 --- /dev/null +++ b/cms/static/coffee/fixtures/edit-chapter.underscore @@ -0,0 +1 @@ +../../../templates/js/edit-chapter.underscore \ No newline at end of file diff --git a/cms/static/coffee/fixtures/edit-textbook.underscore b/cms/static/coffee/fixtures/edit-textbook.underscore new file mode 120000 index 0000000000..5bb17a2d43 --- /dev/null +++ b/cms/static/coffee/fixtures/edit-textbook.underscore @@ -0,0 +1 @@ +../../../templates/js/edit-textbook.underscore \ No newline at end of file diff --git a/cms/static/coffee/fixtures/show-textbook.underscore b/cms/static/coffee/fixtures/show-textbook.underscore new file mode 120000 index 0000000000..d2ba37d689 --- /dev/null +++ b/cms/static/coffee/fixtures/show-textbook.underscore @@ -0,0 +1 @@ +../../../templates/js/show-textbook.underscore \ No newline at end of file diff --git a/cms/static/coffee/fixtures/textbook-edit.underscore b/cms/static/coffee/fixtures/textbook-edit.underscore deleted file mode 120000 index c341cb36c0..0000000000 --- a/cms/static/coffee/fixtures/textbook-edit.underscore +++ /dev/null @@ -1 +0,0 @@ -../../../templates/js/textbook-edit.underscore \ No newline at end of file diff --git a/cms/static/coffee/fixtures/textbook-show.underscore b/cms/static/coffee/fixtures/textbook-show.underscore deleted file mode 120000 index 8acf2ca0b2..0000000000 --- a/cms/static/coffee/fixtures/textbook-show.underscore +++ /dev/null @@ -1 +0,0 @@ -../../../templates/js/textbook-show.underscore \ No newline at end of file diff --git a/cms/static/coffee/spec/views/textbook_spec.coffee b/cms/static/coffee/spec/views/textbook_spec.coffee index 2ab0403ff8..b890caa4aa 100644 --- a/cms/static/coffee/spec/views/textbook_spec.coffee +++ b/cms/static/coffee/spec/views/textbook_spec.coffee @@ -10,9 +10,9 @@ beforeEach -> else return trimmedText.indexOf(text) != -1; -describe "CMS.Views.TextbookShow", -> +describe "CMS.Views.ShowTextbook", -> describe "Basic", -> - tpl = readFixtures('textbook-show.underscore') + tpl = readFixtures('show-textbook.underscore') beforeEach -> setFixtures($(" - - - - +% endfor <%block name="jsextra">