@@ -123,6 +123,119 @@ class BoostDevelopmentView(CalendarView):
123123 template_name = "boost_development.html"
124124
125125
126+ class CommunityView (V3Mixin , TemplateView ):
127+ template_name = "community.html"
128+ v3_template_name = "v3/community.html"
129+
130+ def get_v3_context_data (self , ** kwargs ):
131+ ctx = super ().get_v3_context_data (** kwargs )
132+ ctx ["help_options" ] = [
133+ {
134+ "quote" : "I'm stuck on an error" ,
135+ "description" : "Visit the CPPLang Slack for fast responses, quick debugging and real-time conversation" ,
136+ "cta_text" : "Join Slack 24,000+ members" ,
137+ "cta_url" : "https://cppalliance.org/slack/" ,
138+ "author" : {
139+ "name" : "Character Name" ,
140+ "role" : "Contributor" ,
141+ "avatar_url" : "/static/img/v3/community-page/avatar-beaver-character.png" ,
142+ },
143+ },
144+ {
145+ "quote" : "I have a proposal for a new feature" ,
146+ "description" : "Propose libraries, participate in the formal review and submit major features on the mailing list" ,
147+ "cta_text" : "Subscribe now" ,
148+ "cta_url" : "https://lists.boost.org/mailman3/lists/boost.lists.boost.org/" ,
149+ "author" : {
150+ "name" : "Character Name" ,
151+ "role" : "Author" ,
152+ "avatar_url" : "/static/img/v3/community-page/avatar-mouse-character.png" ,
153+ },
154+ },
155+ {
156+ "quote" : "I found a bug" ,
157+ "description" : "Find the library you're looking for on GitHub, follow the reporting template and let the author know" ,
158+ "cta_text" : "Report it on GitHub" ,
159+ "cta_url" : "https://github.com/boostorg" ,
160+ "author" : {
161+ "name" : "Character Name" ,
162+ "role" : "Maintainer" ,
163+ "avatar_url" : "/static/img/v3/community-page/avatar-cheetah-character.png" ,
164+ },
165+ },
166+ {
167+ "quote" : "I have a general question" ,
168+ "description" : "Post on Reddit and engage in casual chat with fellow Boost enthusiasts" ,
169+ "cta_text" : "Visit Reddit" ,
170+ "cta_url" : "https://www.reddit.com/r/boost/" ,
171+ "author" : {
172+ "name" : "Character Name" ,
173+ "role" : "Contributor" ,
174+ "avatar_url" : "/static/img/v3/community-page/avatar-fish-character.png" ,
175+ },
176+ },
177+ ]
178+ ctx ["libraries" ] = [
179+ {
180+ "name" : "Beast" ,
181+ "url" : "/library/latest/beast/" ,
182+ "description" : "A collection of useful generic algorithms." ,
183+ "categories" : ["Concurrent" , "IO" ],
184+ "cpp_version" : "C++ 11" ,
185+ },
186+ {
187+ "name" : "Cobalt" ,
188+ "url" : "/library/latest/cobalt/" ,
189+ "description" : "Coroutines. Basic Algorithms & Types" ,
190+ "categories" : [
191+ "Concurrent" ,
192+ "Coroutines" ,
193+ "Awaitables" ,
194+ "Asynchronous" ,
195+ ],
196+ "cpp_version" : "C++ 20" ,
197+ },
198+ {
199+ "name" : "JSON" ,
200+ "url" : "/library/latest/json/" ,
201+ "description" : "JSON parsing, serialization, and DOM" ,
202+ "categories" : ["Containers" , "Data" , "IO" ],
203+ "cpp_version" : "C++ 11" ,
204+ },
205+ {
206+ "name" : "Lib Name" ,
207+ "url" : "#" ,
208+ "description" : "Lib Description" ,
209+ "categories" : ["Containers" , "Data" , "IO" ],
210+ "cpp_version" : "C++ 11" ,
211+ },
212+ {
213+ "name" : "Lib Name" ,
214+ "url" : "#" ,
215+ "description" : "Lib Description" ,
216+ "categories" : ["Containers" , "Data" , "IO" ],
217+ "cpp_version" : "C++ 11" ,
218+ },
219+ ]
220+ ctx ["posts" ] = SharedResources .demo_posts [:4 ]
221+ ctx ["slack_member_count" ] = "30,000"
222+ ctx ["install_card_pkg_managers" ] = SharedResources .install_card_pkg_managers
223+ ctx ["install_card_system_install" ] = SharedResources .install_card_system_install
224+ ctx ["create_account_card_body_html" ] = (
225+ "<p>Your contribution badges appear on your Boost profile with:</p>"
226+ "<ul>"
227+ "<li>Contribution statistics</li>"
228+ "<li>Progress towards next badge</li>"
229+ "<li>Recent activity feed</li>"
230+ "</ul>"
231+ )
232+ ctx ["create_account_card_preview_url" ] = (
233+ f"{ settings .STATIC_URL } img/v3/community-page/"
234+ "community-create-account-preview.png"
235+ )
236+ return ctx
237+
238+
126239class ClearCacheView (UserPassesTestMixin , View ):
127240 http_method_names = ["get" ]
128241 login_url = "/login/"
0 commit comments