{"id":15470785,"url":"https://github.com/choptastic/coldstrap","last_synced_at":"2026-04-27T12:05:08.398Z","repository":{"id":137558849,"uuid":"50692923","full_name":"choptastic/coldstrap","owner":"choptastic","description":"Bootstrap for Nitrogen Web Framework","archived":false,"fork":false,"pushed_at":"2023-12-31T06:45:55.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T12:45:35.750Z","etag":null,"topics":["bootstrap","nitrogen"],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/choptastic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-29T21:35:39.000Z","updated_at":"2021-11-22T22:39:43.000Z","dependencies_parsed_at":"2023-12-31T07:33:33.385Z","dependency_job_id":"99e3048a-c3e5-4e7d-b077-6da149301aeb","html_url":"https://github.com/choptastic/coldstrap","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/choptastic/coldstrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choptastic%2Fcoldstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choptastic%2Fcoldstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choptastic%2Fcoldstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choptastic%2Fcoldstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/choptastic","download_url":"https://codeload.github.com/choptastic/coldstrap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choptastic%2Fcoldstrap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","nitrogen"],"created_at":"2024-10-02T02:06:50.539Z","updated_at":"2026-04-27T12:05:08.381Z","avatar_url":"https://github.com/choptastic.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coldstrap\n\n[Bootstrap](http://getbootstrap.com) elements for the [Nitrogen Web Framework](http://nitrogenproject.com)\n\n### Note about elements\n\nThe vast majority of the Coldstrap elements are copies of their respective\nNitrogen analogs with a few additional attributes. I will show which are which.\n\n### Note about compatibility\n\nColdstrap depends on the [rekt](https://github.com/nitrogen/rekt) parse\ntransform and uses the typespecs, which only works with the `merl` library\n(which was added to OTP in Erlang 18).  If you're trying to use Coldstrap with\na version of Erlang older than Erlang 18.0, you'll want to add\n[merl](http://github.com/richcarl/merl) to your rebar dependencies.\n\n## Elements\n\nTo see the elements, check out\n[include/records.hrl](https://github.com/choptastic/coldstrap/blob/master/include/records.hrl)\nto see which elements are added, and are extended versions of Nitrogen analogs.\n\n## Functions\n\n### modal\n\nOpens a bootstrap [modal](http://getbootstrap.com/javascript/#modals) window.\n\n* `coldstrap:modal(Body)`\n* `coldstrap:modal(Title, Body)`\n* `coldstrap:modal(Title, Body, Footer)`\n* `coldstrap:modal(Title, Body, Footer, Options)`\n\n**Note:** `Options` is a proplist analog to the options presented in the\n[Bootstrap Modal Docs](http://getbootstrap.com/javascript/#modals-options)\n\n### confirm\n\nA special modal window specifically for submitting things and providing buttons\n\n**Note:** Below, the `Buttons` argument is expected to be a list of tuples, any\nof the following are acceptable:\n\n1. `{ButtonText, Postback}`\n2. `{ButtonText, PostbackDelegate, Postback}`\n3. Any valid Nitrogen element (e.g. `#btn{}`)\n\n#### The confirm functions\n\n\n* `coldstrap:confirm(Body)`\n* `coldstrap:confirm(Body, CloseText)`\n* `coldstrap:confirm(Body, Buttons, CloseText)`\n* `coldstrap:confirm(Title, Body, Buttons, CloseText)`\n\n#### Example:\n\n```erlang\nUser = \"Chops\",\nTitle = \"Delete User\",\nBody = [\"Really delete the user named \",#em{text=User},\"?\"],\nButtons = [\n\t{\"Yes, Delete\", {delete, User}},\n\t{\"No, Don't Delete, but Disable Account\", {disable, User}}\n],\nCloseText = \"No, Do not Delete\",\ncoldstrap:confirm(Title, Body, Buttons, CloseText).\n```\n\n### close_modal\n\n* `coldstrap:close_modal()`\n\n## Licence\n\nCopyright 2016-2017 Jesse Gumm\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoptastic%2Fcoldstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchoptastic%2Fcoldstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoptastic%2Fcoldstrap/lists"}