@@ -90,6 +90,7 @@ trait RoutesService {
90
90
def authenticationUrl (provider : String , redirectTo : Option [String ] = None )(implicit req : RequestHeader ): String
91
91
def faviconPath : Call
92
92
def jqueryPath : Call
93
+ def bootstrapCssPath : Call
93
94
def customCssPath : Option [Call ]
94
95
}
95
96
@@ -104,9 +105,11 @@ object RoutesService {
104
105
105
106
val FaviconKey = " securesocial.faviconPath"
106
107
val JQueryKey = " securesocial.jqueryPath"
108
+ val BootstrapCssKey = " securesocial.bootstrapCssPath"
107
109
val CustomCssKey = " securesocial.customCssPath"
108
110
val DefaultFaviconPath = " images/favicon.png"
109
111
val DefaultJqueryPath = " javascripts/jquery-1.7.1.min.js"
112
+ val DefaultBootstrapCssPath = " bootstrap/css/bootstrap.min.css"
110
113
111
114
protected def absoluteUrl (call : Call )(implicit req : RequestHeader ): String = {
112
115
call.absoluteURL(IdentityProvider .sslEnabled)
@@ -182,6 +185,11 @@ object RoutesService {
182
185
*/
183
186
override val jqueryPath = valueFor(JQueryKey , DefaultJqueryPath )
184
187
188
+ /**
189
+ * Loads the Bootstrap CSS file to use from configuration, using a default one if not provided
190
+ * @return the path to Bootstrap CSS file to use
191
+ */
192
+ override val bootstrapCssPath = valueFor(BootstrapCssKey , DefaultBootstrapCssPath )
185
193
/**
186
194
* Loads the Custom Css file to use from configuration. If there is none define, none will be used
187
195
* @return Option containing a custom css file or None
0 commit comments