From ee25d99ea44af2340248301de3790bcaf9c6e25f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 7 Nov 2017 18:43:01 +0000 Subject: Reference bootstrap css and js from CDN --- gentoobrowse-api/service/notifications/xslt/base.xslt | 7 ++++--- gentoobrowse-api/unittests/testNotifications.cpp | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gentoobrowse-api/service/notifications/xslt/base.xslt b/gentoobrowse-api/service/notifications/xslt/base.xslt index ee21294..65f4e20 100644 --- a/gentoobrowse-api/service/notifications/xslt/base.xslt +++ b/gentoobrowse-api/service/notifications/xslt/base.xslt @@ -3,12 +3,13 @@ + <!DOCTYPE html> - - + + <xsl:call-template name="title" /> @@ -68,7 +69,7 @@ - + diff --git a/gentoobrowse-api/unittests/testNotifications.cpp b/gentoobrowse-api/unittests/testNotifications.cpp index 357a29e..79ea08f 100644 --- a/gentoobrowse-api/unittests/testNotifications.cpp +++ b/gentoobrowse-api/unittests/testNotifications.cpp @@ -42,6 +42,7 @@ commonAssert(Gentoo::EmailPtr e) BOOST_REQUIRE(isHtml(e->body[1]->payload)); BOOST_REQUIRE_EQUAL(e->body[0]->payload.find("http://gentoobrowse.randomdan.homeip.net"), std::string::npos); BOOST_REQUIRE_EQUAL(e->body[1]->payload.find("http://gentoobrowse.randomdan.homeip.net"), std::string::npos); + BOOST_REQUIRE_NE(e->body[1]->payload.find("https://cdnjs.cloudflare.com/"), std::string::npos); } BOOST_AUTO_TEST_CASE( testSend ) -- cgit v1.2.3