Trying to add bootstrap theme, not sure about template syntax

42 views
Skip to first unread message

Teddy Brown

unread,
Apr 18, 2018, 7:29:24 PM4/18/18
to CAS Community
Hi,
I'm trying to add the Bootstrap theme to my CAS template, but the syntax here in Thymeleaf confuses me a bit.  Where are these references set?

I was able to find Bootstrap which appears to be from webjars, in target/cas/WEB-INF/lib/bootstrap-3.3.7-1.jar
    <link rel="stylesheet" th:href="@{#{webjars.fontawesomemin.css}}"/>
    <link type="text/css" rel="stylesheet" th:href="@{#{webjars.bootstrapmin.css}}"/>

I've looked at Webjars and Thymeleaf documentation and the only references I can find to bootstrap include it more directly.

Seems to be #{webjars.bootstrapmin.css} is referring to a property message somewhere, but I don't know where this is referenced.  

Am I going nuts?

Man H

unread,
Apr 18, 2018, 7:43:14 PM4/18/18
to cas-...@apereo.org
just add your own css :

    <link rel='stylesheet' th:href="@{/webjars/bootstrap/3.3.6/css/bootstrap.min.css}" />
    <link rel="stylesheet" th:href="@{/css/myown.bootstrap.css}"/>


--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/beb156f3-7360-4124-b88b-c567988edd30%40apereo.org.

Teddy Brown

unread,
Apr 18, 2018, 9:52:30 PM4/18/18
to CAS Community
Got it working.  Am using the default bootstrap theme, which is already bundled in the lincluded bootstrap webjar.  

Also found the reference to #{webjars.bootstrapmin.css} inside cas-server-core-web-5.2.3.jar:cas_common_messages.properties.   

Thanks for the help.


On Wednesday, April 18, 2018 at 7:43:14 PM UTC-4, Manfredo Hopp wrote:
just add your own css :

    <link rel='stylesheet' th:href="@{/webjars/bootstrap/3.3.6/css/bootstrap.min.css}" />
    <link rel="stylesheet" th:href="@{/css/myown.bootstrap.css}"/>

2018-04-18 20:29 GMT-03:00 Teddy Brown <te...@teddybrown.ca>:
Hi,
I'm trying to add the Bootstrap theme to my CAS template, but the syntax here in Thymeleaf confuses me a bit.  Where are these references set?

I was able to find Bootstrap which appears to be from webjars, in target/cas/WEB-INF/lib/bootstrap-3.3.7-1.jar
    <link rel="stylesheet" th:href="@{#{webjars.fontawesomemin.css}}"/>
    <link type="text/css" rel="stylesheet" th:href="@{#{webjars.bootstrapmin.css}}"/>

I've looked at Webjars and Thymeleaf documentation and the only references I can find to bootstrap include it more directly.

Seems to be #{webjars.bootstrapmin.css} is referring to a property message somewhere, but I don't know where this is referenced.  

Am I going nuts?

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
Reply all
Reply to author
Forward
0 new messages