Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MSKINS-183] Drop Ohloh widgets #24

Merged
merged 1 commit into from
May 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 0 additions & 76 deletions src/it/mskins-25/pom.xml

This file was deleted.

36 changes: 0 additions & 36 deletions src/it/mskins-25/src/site/apt/index.apt.vm

This file was deleted.

58 changes: 0 additions & 58 deletions src/it/mskins-25/src/site/site.xml

This file was deleted.

44 changes: 0 additions & 44 deletions src/main/resources/META-INF/maven/site-macros.vm
Original file line number Diff line number Diff line change
Expand Up @@ -728,50 +728,6 @@ $indent </ul>##
#**##end
#end
##
#macro ( ohloh )
#**##if ( $decoration.getCustomChild( 'fluidoSkin.ohloh.projectId' ) )
#* *##set ( $projectId = $decoration.getCustomValue( 'fluidoSkin.ohloh.projectId' ) )
##
#* *##set( $widget = "users_logo.js" )
##
#* *##if ( $decoration.getCustomChild( 'fluidoSkin.ohloh.widget' ) )
#* *##set( $definedWidget = $decoration.getCustomValue( 'fluidoSkin.ohloh.widget' ) )
##
#* *##if ( $definedWidget.equalsIgnoreCase( "users-logo" ) )
#* *##set( $widget = "users_logo.js" )
#* *##elseif ( $definedWidget.equalsIgnoreCase( "users-green" ) )
#* *##set( $widget = "users.js?style=green" )
#* *##elseif ( $definedWidget.equalsIgnoreCase( "users-red" ) )
#* *##set( $widget = "users.js?style=red" )
#* *##elseif ( $definedWidget.equalsIgnoreCase( "users-blue" ) )
#* *##set( $widget = "users.js?style=blue" )
#* *##elseif ( $definedWidget.equalsIgnoreCase( "users-gray" ) )
#* *##set( $widget = "users.js?style=gray" )
#* *##elseif ( $definedWidget.equalsIgnoreCase( "users-rainbow" ) )
#* *##set( $widget = "users.js?style=rainbow" )
#* *##elseif ( $definedWidget.equalsIgnoreCase( "users" ) )
#* *##set( $widget = "users.js" )
#* *##elseif ( $definedWidget.equalsIgnoreCase( "thin-badge" ) )
#* *##set( $widget = "thin_badge.js" )
#* *##elseif ( $definedWidget.equalsIgnoreCase( "partner-badge" ) )
#* *##set( $widget = "partner_badge.js" )
#* *##elseif ( $definedWidget.equalsIgnoreCase( "languages" ) )
#* *##set( $widget = "languages.js" )
#* *##elseif ( $definedWidget.equalsIgnoreCase( "factoids" ) )
#* *##set( $widget = "factoids.js" )
#* *##elseif ( $definedWidget.equalsIgnoreCase( "cocomo" ) )
#* *##set( $widget = "cocomo.js" )
#* *##elseif ( $definedWidget.equalsIgnoreCase( "stats" ) )
#* *##set( $widget = "basic_stats.js" )
#* *##end
#**##end
##
<div id="ohloh" class="pull-right">
<script src="https://www.ohloh.net/p/${projectId}/widgets/project_${widget}"></script>
</div>
#end
#end
##
#macro ( flattrHead )
#**##if ( $decoration.getCustomChild( 'fluidoSkin.flattr.thing' )
&& ( $decoration.getCustomChild( 'fluidoSkin.flattr.url' ) || $project.url ) )
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/META-INF/maven/site.vm
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@
#* *##builtByLogo( $decoration.poweredBy )
#* *#</p>
#* *##end
##
#* *##ohloh()
</div>
</footer>
#**##piwik()
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/css/maven-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@
.clear{clear:both;visibility: hidden;}
.clear hr{display: none;}
.section p,.section p,.section dt,.section dt{margin-right: 7px;margin-left: 7px;}
#ohloh {margin-bottom: 10px;}
#poweredBy{text-align: center}
2 changes: 0 additions & 2 deletions src/site/apt/ITs.apt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ Maven Fuido Skin ITs

* {{{./mskins-24_topbar/index.html}Twitter (topbar)}}

* {{{./mskins-25/index.html}Ohloh}}

* {{{./mskins-33/index.html}Like}}

* {{{./mskins-161-sidebar-fb-like-share}Like with share}}
Expand Down
53 changes: 0 additions & 53 deletions src/site/apt/index.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -385,59 +385,6 @@ Welcome to ${project.name}!

By default, it is rendered in the sidebar, if the topbar only is available it will be rendered there.

** Ohloh widgets

Since version <<1.1>>, fluido-skin supports the Ohloh {{{https://www.ohloh.net/p/maven2/widgets}widgets}}
to simplify its integration. Users must define:

* <<<custom.fluidoSkin.ohloh.projectId>>>: <<required>>, it is the project identifier in Ohloh (could be the numeric id or the project name);

* <<<custom.fluidoSkin.ohloh.widget>>>: <<optional>>, it is the kind of widget has to be rendered, admitted values are:

* <<<users-logo>>> (default)

* <<<users-green>>>

* <<<users-red>>>

* <<<users-blue>>>

* <<<users-gray>>>

* <<<users-rainbow>>>

* <<<users>>>

* <<<thin-badge>>>

* <<<partner-badge>>>

* <<<languages>>>

* <<<factoids>>>

* <<<cocomo>>>

* <<<stats>>>


+-----+
<project name="xxx">
[...]
<custom>
<fluidoSkin>
<ohloh>
<projectId>3499</projectId>
<widget>factoids</widget>
</ohloh>
</fluidoSkin>
</custom>
[...]
</project>
+-----+

Ohloh widgets will be rendered always in the footer as last element

** Facebook like button

Since version <<1.2>>, fluido-skin supports the Facebook {{{https://developers.facebook.com/docs/plugins/like-button}like}}
Expand Down