diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-05-12 10:34:08 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-05-12 16:04:24 +0200 |
commit | f5dc170c7a8b0d416d684e901672a3f10d6394f3 (patch) | |
tree | 157d8819e5537f9c1785ba63cab8f6369454d2c8 | |
parent | 538bcc64caacf7ca7e81a4848183fc282a86859b (diff) | |
download | sonarqube-f5dc170c7a8b0d416d684e901672a3f10d6394f3.tar.gz sonarqube-f5dc170c7a8b0d416d684e901672a3f10d6394f3.zip |
SONAR-4636 Extract branded resources and prepare for unbranded builds
-rw-r--r-- | sonar-server/pom.xml | 27 | ||||
-rw-r--r-- | sonar-server/src/main/erb/branding/_footer.html.erb | 1 | ||||
-rw-r--r-- | sonar-server/src/main/erb/branding/logo.png (renamed from sonar-server/src/main/webapp/images/sonarqube-24x100.png) | bin | 1419 -> 1419 bytes | |||
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/branding/_footer.html.erb | 1 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb | 5 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/images/logo.png | bin | 0 -> 68 bytes |
6 files changed, 32 insertions, 2 deletions
diff --git a/sonar-server/pom.xml b/sonar-server/pom.xml index 335705fda92..8c38874b515 100644 --- a/sonar-server/pom.xml +++ b/sonar-server/pom.xml @@ -13,6 +13,7 @@ <properties> <gruntTask>default</gruntTask> + <branding.url>file:${basedir}/src/main/erb/branding</branding.url> <!-- self-analysis --> <sonar.sources>src/main/java,src/main/js</sonar.sources> @@ -259,6 +260,32 @@ </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>download-branding-resources</id> + <phase>process-resources</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <target> + <!-- download file --> + <get src="${branding.url}/_footer.html.erb" + dest="${project.build.directory}/${project.build.finalName}/WEB-INF/app/views/branding" + verbose="false" + usetimestamp="false"/> + <get src="${branding.url}/logo.png" + dest="${project.build.directory}/${project.build.finalName}/images" + verbose="false" + usetimestamp="false"/> + </target> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> diff --git a/sonar-server/src/main/erb/branding/_footer.html.erb b/sonar-server/src/main/erb/branding/_footer.html.erb new file mode 100644 index 00000000000..17057651da0 --- /dev/null +++ b/sonar-server/src/main/erb/branding/_footer.html.erb @@ -0,0 +1 @@ +<div>SonarQube™ technology is powered by <a href="http://www.sonarsource.com" target="SonarSource SA">SonarSource SA</a></div> diff --git a/sonar-server/src/main/webapp/images/sonarqube-24x100.png b/sonar-server/src/main/erb/branding/logo.png Binary files differindex 18a2bf63d5c..18a2bf63d5c 100644 --- a/sonar-server/src/main/webapp/images/sonarqube-24x100.png +++ b/sonar-server/src/main/erb/branding/logo.png diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/branding/_footer.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/branding/_footer.html.erb new file mode 100644 index 00000000000..63abc76f030 --- /dev/null +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/branding/_footer.html.erb @@ -0,0 +1 @@ +<div>TODO</div> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb index 38d86a3f656..b154e543bd1 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb @@ -166,8 +166,9 @@ <% end %> <%= yield :sidebar %> + <li id="logo"> - <center><a href="http://www.sonarqube.org/" target="SonarSource"><%= image_tag('sonarqube-24x100.png', :alt => message('layout.sonar.slogan'), :width => 100, :height => 24) -%></a></center> + <center><a href="http://www.sonarqube.org/" target="SonarSource"><%= image_tag('logo.png', :alt => message('layout.sonar.slogan'), :width => 100, :height => 24) -%></a></center> </li> </ul> </div> @@ -204,7 +205,7 @@ <% end %> <% end %> <div id="ftlinks"> - <div>SonarQube™ technology is powered by <a href="http://www.sonarsource.com" target="SonarSource SA">SonarSource SA</a></div> + <%= render 'branding/footer' -%> <div> Version <%= sonar_version -%> - <a href="http://www.sonarqube.org" target="sonar">Community</a> - diff --git a/sonar-server/src/main/webapp/images/logo.png b/sonar-server/src/main/webapp/images/logo.png Binary files differnew file mode 100644 index 00000000000..427fb75b862 --- /dev/null +++ b/sonar-server/src/main/webapp/images/logo.png |