@@ -29,6 +29,7 @@ trait RoutesService {
29
29
def authenticationUrl (provider : String , redirectTo : Option [String ] = None )(implicit req : RequestHeader ): String
30
30
def faviconPath : Call
31
31
def jqueryPath : Call
32
+ def bootstrapCssPath : Call
32
33
def customCssPath : Option [Call ]
33
34
}
34
35
@@ -43,9 +44,11 @@ object RoutesService {
43
44
44
45
val FaviconKey = " securesocial.faviconPath"
45
46
val JQueryKey = " securesocial.jqueryPath"
47
+ val BootstrapCssKey = " securesocial.bootstrapCssPath"
46
48
val CustomCssKey = " securesocial.customCssPath"
47
49
val DefaultFaviconPath = " images/favicon.png"
48
50
val DefaultJqueryPath = " javascripts/jquery-1.7.1.min.js"
51
+ val DefaultBootstrapCssPath = " bootstrap/css/bootstrap.min.css"
49
52
50
53
protected def absoluteUrl (call : Call )(implicit req : RequestHeader ): String = {
51
54
call.absoluteURL(IdentityProvider .sslEnabled)
@@ -85,6 +88,11 @@ object RoutesService {
85
88
*/
86
89
override val jqueryPath = valueFor(JQueryKey , DefaultJqueryPath )
87
90
91
+ /**
92
+ * Loads the Bootstrap CSS file to use from configuration, using a default one if not provided
93
+ * @return the path to Bootstrap CSS file to use
94
+ */
95
+ override val bootstrapCssPath = valueFor(BootstrapCssKey , DefaultBootstrapCssPath )
88
96
/**
89
97
* Loads the Custom Css file to use from configuration. If there is none define, none will be used
90
98
* @return Option containing a custom css file or None
0 commit comments