@@ -1111,10 +1111,39 @@ def get_context_data(self, **kwargs):
11111111 # Install bjam tool user config: https://www.bfgroup.xyz/b2/manual/release/index.html
11121112 cp ./libs/beast/tools/user-config.jam $HOME"""
11131113
1114+ INSTALL_CARD_PKG_MANAGERS = [
1115+ {"label" : "Conan" , "value" : "conan" , "command" : "conan install boost" },
1116+ {"label" : "Vcpkg" , "value" : "vcpkg" , "command" : "vcpkg install boost" },
1117+ ]
1118+ INSTALL_CARD_SYSTEM_INSTALL = [
1119+ {
1120+ "label" : "Ubuntu" ,
1121+ "value" : "ubuntu" ,
1122+ "command" : "sudo apt install libboost-all-dev" ,
1123+ },
1124+ {
1125+ "label" : "Fedora" ,
1126+ "value" : "fedora" ,
1127+ "command" : "sudo dnf install boost-devel" ,
1128+ },
1129+ {
1130+ "label" : "CentOS" ,
1131+ "value" : "centos" ,
1132+ "command" : "sudo yum install boost-devel" ,
1133+ },
1134+ {"label" : "Arch" , "value" : "arch" , "command" : "sudo pacman -S boost" },
1135+ {"label" : "Homebrew" , "value" : "homebrew" , "command" : "brew install boost" },
1136+ ]
1137+
11141138 context = super ().get_context_data (** kwargs )
11151139 context ["code_demo_beast" ] = CODE_DEMO_BEAST
11161140 context ["code_demo_hello" ] = CODE_DEMO_HELLO
11171141 context ["code_demo_install" ] = CODE_DEMO_INSTALL
1142+ context ["install_card_title" ] = (
1143+ "Install Boost and get started in your terminal."
1144+ )
1145+ context ["install_card_pkg_managers" ] = INSTALL_CARD_PKG_MANAGERS
1146+ context ["install_card_system_install" ] = INSTALL_CARD_SYSTEM_INSTALL
11181147 context ["popular_terms" ] = [
11191148 {"label" : "Networking" },
11201149 {"label" : "Math" },
@@ -1290,6 +1319,66 @@ def get_context_data(self, **kwargs):
12901319 ],
12911320 }
12921321
1322+ context ["banner_data" ] = {
1323+ "icon_name" : "alert" ,
1324+ "banner_message" : "This is an older version of Boost and was released in 2017. The <a href='https://www.example.com'>current version</a> is 1.90.0." ,
1325+ }
1326+
1327+ context ["account_connections_mixed" ] = [
1328+ {
1329+ "platform" : "github" ,
1330+ "label" : "GitHub" ,
1331+ "connected" : True ,
1332+ "status_text" : "Connected" ,
1333+ "action_label" : "Manage" ,
1334+ "action_url" : "#" ,
1335+ },
1336+ {
1337+ "platform" : "google" ,
1338+ "label" : "Google" ,
1339+ "connected" : False ,
1340+ "status_text" : "Not connected" ,
1341+ "action_label" : "Connect" ,
1342+ "action_url" : "#" ,
1343+ },
1344+ ]
1345+ context ["account_connections_all_connected" ] = [
1346+ {
1347+ "platform" : "github" ,
1348+ "label" : "GitHub" ,
1349+ "connected" : True ,
1350+ "status_text" : "Connected" ,
1351+ "action_label" : "Manage" ,
1352+ "action_url" : "#" ,
1353+ },
1354+ {
1355+ "platform" : "google" ,
1356+ "label" : "Google" ,
1357+ "connected" : True ,
1358+ "status_text" : "Connected" ,
1359+ "action_label" : "Manage" ,
1360+ "action_url" : "#" ,
1361+ },
1362+ ]
1363+ context ["account_connections_none_connected" ] = [
1364+ {
1365+ "platform" : "github" ,
1366+ "label" : "GitHub" ,
1367+ "connected" : False ,
1368+ "status_text" : "Not connected" ,
1369+ "action_label" : "Connect" ,
1370+ "action_url" : "#" ,
1371+ },
1372+ {
1373+ "platform" : "google" ,
1374+ "label" : "Google" ,
1375+ "connected" : False ,
1376+ "status_text" : "Not connected" ,
1377+ "action_label" : "Connect" ,
1378+ "action_url" : "#" ,
1379+ },
1380+ ]
1381+
12931382 latest = Version .objects .most_recent ()
12941383 if latest :
12951384 lv = (
0 commit comments