]> source.dussan.org Git - sonarqube.git/commitdiff
New views prototype
authorStas Vilchik <vilchiks@gmail.com>
Thu, 28 Aug 2014 11:58:29 +0000 (17:58 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 28 Aug 2014 11:58:36 +0000 (17:58 +0600)
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/views_proto_controller.rb [new file with mode: 0644]
server/sonar-web/src/main/webapp/WEB-INF/app/views/views_proto/index.html.erb [new file with mode: 0644]

diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/views_proto_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/views_proto_controller.rb
new file mode 100644 (file)
index 0000000..c4ce00d
--- /dev/null
@@ -0,0 +1,27 @@
+#
+# SonarQube, open source software quality management tool.
+# Copyright (C) 2008-2014 SonarSource
+# mailto:contact AT sonarsource DOT com
+#
+# SonarQube is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 3 of the License, or (at your option) any later version.
+#
+# SonarQube is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+#
+class ViewsProtoController < ApplicationController
+
+  SECTION=Navigation::SECTION_CONFIGURATION
+
+  def index
+    
+  end
+end
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/views_proto/index.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/views_proto/index.html.erb
new file mode 100644 (file)
index 0000000..cf8ec33
--- /dev/null
@@ -0,0 +1,98 @@
+<div class="navigator quality-gates-navigator" style="margin: -10px;">
+  <div class="navigator-content">
+    <div class="navigator-side">
+      <div class="navigator-actions">
+        <div><h1 class="navigator-header-title">Views</h1>
+
+          <div class="navigator-header-actions button-group">
+            <button id="quality-gate-add">Create</button>
+          </div>
+        </div>
+      </div>
+      <div class="navigator-results quality-gates-nav">
+        <ol class="navigator-results-list">
+          <li class="active">
+            <div class="line line-nowrap">By License</div>
+          </li>
+          <li>
+            <div class="line line-nowrap">Language Team</div>
+          </li>
+          <li>
+            <div class="line line-nowrap">Nemo & Dory</div>
+          </li>
+          <li>
+            <div class="line line-nowrap">Platform Team</div>
+          </li>
+          <li>
+            <div class="line line-nowrap">Projects on Dory</div>
+          </li>
+          <li>
+            <div class="line line-nowrap">Teams</div>
+          </li>
+        </ol>
+      </div>
+    </div>
+    <div class="navigator-main">
+      <div class="navigator-header">
+        <div><h1 class="navigator-header-title">By License</h1>
+          <div class="navigator-header-actions button-group">
+            <button id="quality-gate-rename">Edit</button>
+            <button id="quality-gate-copy">Add Sub-view</button>
+            <button id="quality-gate-unset-as-default">Associate Projects</button>
+            <button id="quality-gate-delete" class="button-red">Delete</button>
+          </div>
+        </div>
+      </div>
+
+      <div class="navigator-details">
+        <div class="quality-gate-section-name">Structure</div>
+        <div class="libraries-tree">
+          <ul>
+            <li>
+              <i class="icon-qualifier-svw"></i>
+              <span class="libraries-tree-name">By License</span>
+              <ul>
+                <li class="libraries-tree-with-subtree">
+                  <i class="icon-qualifier-svw"></i>
+                  <a>
+                    <span class="libraries-tree-name">Commercial</span>
+                  </a>
+                  <ul>
+                    <li>
+                      <i class="icon-qualifier-trk"></i>
+                      <span class="libraries-tree-name">All projects matching regular expression "com.*"</span>
+                    </li>
+                  </ul>
+                </li>
+                <li class="libraries-tree-with-subtree">
+                  <i class="icon-qualifier-svw"></i>
+                  <a>
+                    <span class="libraries-tree-name">Open Source</span>
+                  </a>
+                  <ul>
+                    <li>
+                      <i class="icon-qualifier-trk"></i>
+                      <span class="libraries-tree-name">All projects matching regular expression "(org.*)|(hudson.*)"</span>
+                    </li>
+                  </ul>
+                </li>
+                <li class="libraries-tree-with-subtree">
+                  <i class="icon-qualifier-svw"></i>
+                  <a>
+                    <span class="libraries-tree-name">Unclassified</span>
+                  </a>
+                  <ul>
+                    <li>
+                      <i class="icon-qualifier-trk"></i>
+                      <span class="libraries-tree-name">All remaining projects not associated to "BY_LICENSE"</span>
+                    </li>
+                  </ul>
+                </li>
+              </ul>
+            </li>
+          </ul>
+        </div>
+      </div>
+    </div>
+  </div>
+</div>