{"id":16148331,"url":"https://github.com/chanwit/centillex-web","last_synced_at":"2025-04-06T21:21:32.997Z","repository":{"id":66507480,"uuid":"2252739","full_name":"chanwit/centillex-web","owner":"chanwit","description":"Web site","archived":false,"fork":false,"pushed_at":"2013-01-07T14:40:29.000Z","size":700,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T03:19:35.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chanwit.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}},"created_at":"2011-08-23T02:36:18.000Z","updated_at":"2013-10-06T21:26:58.000Z","dependencies_parsed_at":"2023-02-20T05:31:03.005Z","dependency_job_id":null,"html_url":"https://github.com/chanwit/centillex-web","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanwit%2Fcentillex-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanwit%2Fcentillex-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanwit%2Fcentillex-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanwit%2Fcentillex-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanwit","download_url":"https://codeload.github.com/chanwit/centillex-web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247551501,"owners_count":20957112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-10T00:32:47.277Z","updated_at":"2025-04-06T21:21:32.968Z","avatar_url":"https://github.com/chanwit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Web App Theme\n=============\n\nWeb App Theme is a rails generator by [Andrea Franz](http://gravityblast.com) that you can use to generate admin panels quickly.\nInspired by cool themes like [Lighthouse](http://lighthouseapp.com/), [Basecamp](http://basecamphq.com/), [RadiantCMS](http://radiantcms.org/) and others,\nit wants to be an idea to start developing a complete web application layout.\n\nInstallation\n------------\n\nYou can use web-app-theme \u003e= 0.6.2 with Rails 3. If you want to use it with rails 2, use web-app-theme 0.5.3\nSpecify the web-app-theme gem in your Gemfile, only for :development and :test\n\n    group :development, :test do\n      gem 'web-app-theme', '\u003e= 0.6.2'\n    end\n\nUsage\n-----\n\n### Theme Generator\n\nUsed without parameters, it generates the layout inside the application.html.erb file using the default theme.\n\n    rails g web_app_theme:theme\n\nYou can specify the layout file name in the first parameter:\n\n    rails g web_app_theme:theme admin # it will generate a layout called `admin.html.erb`\n\nIf you want to use another theme, instead of the default, you can use the `--theme` option:\n\n    rails g web_app_theme:theme admin --theme=\"drastic-dark\"\n\nYou can specify the template engine with `--engine=name` option, where name can be erb (default) or haml:\n\n    rails g web_app_theme:theme --engine=haml # you must specify haml in your Gemfile\n\nIf you want to generate the stylesheets of a specific theme without changing the previously generated layout you can pass the `--no-layout` option:\n\n    rails g web_app_theme:theme --theme=bec --no-layout\n\n\nYou can specify the text used in the header with the `--app-name` option:\n\n    rails g web_app_theme:theme --app-name=\"My New Application\"\n  \nIf you need a layout for login and signup pages, you can use the `--type` option with `sign` as value. Ìf not specified, the default value is `administration`\n\n    rails g web_app_theme:theme sign --layout-type=sign\n\n### Themed Generator\n\nStart creating your controllers manually or with a scaffold, and then use the `themed generator` to overwrite the previously generated views.\n\nIf you have a controller named like the plural of the used model you can specify just the first parameter:\n\n    rails g web_app_theme:themed posts # you have a model named Post and a controller named PostsController\n    \n    rails g web_app_theme:themed admin/gallery_pictures # you have a model named GalleryPicture and a controller named Admin::GalleryPicturesController\n\nUse the `--layout` option specifying the previously generated layout to add a link to the controller you are working on:\n\n    rails g web_app_theme:themed posts --layout=admin # you will see the `Posts` link in the navigation\n\nIf the controller has a name different to the model used, specify the controller path in the first parameter and the model name in the second one:\n\n    rails g web_app_theme:themed items post\n    \n    rails g web_app_theme:themed admin/items post\n\nIf you use `will_paginate` for pagination use the `--will-paginate`:\n\n    rails g web_app_theme:themed items post --will-paginate\n\nYou can specify the template engine with `--engine=name` option, where name can be erb (default) or haml:\n\n    rails g web_app_theme:themed posts --engine=haml\n\nIf you have something like `map.resource :dashboard` in your `routes.rb` file, you can use the `--type=text` to generate a view with just text:\n    \n    rails g web_app_theme:themed dashboards --themed-type=text\n\nIf you want to show form error messages inside the generated forms, use the following code inside your `environment.rb`\n\n    ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| \n      if html_tag =~ /\u003clabel/\n        %|\u003cdiv class=\"fieldWithErrors\"\u003e#{html_tag} \u003cspan class=\"error\"\u003e#{[instance.error_message].join(', ')}\u003c/span\u003e\u003c/div\u003e|.html_safe\n      else\n        html_tag\n      end\n    end\n\nIf you want to have translated pages, simple create in your locale.yml the keys just like config/locales/en_us.yml example.\n\n\ten_us:\n\t  web-app-theme: \n\t    save: Save\n\t    cancel: Cancel\n\t    list: List\n\t    edit: Edit\n\t    new: New\n\t    show: Show\n\t    delete: Delete\n\t    confirm: Are you sure?\n\t    created_at: Created at\n\t    all: All\n\n\n![Web App Theme screenshot](http://img.skitch.com/20091109-c2k618qerx1ysw5ytxsighuf3f.jpg)\n\nContributing\n---\n\n* Fork this repository.\n* Duplicate the  'themes/default' folder and rename it.\n* Modify the style.css file adding your favorite colors.\n* Add a link to your theme in the 'Switch Theme' block inside the index.html file.\n* Send a pull request.\n\nLinks\n-----\n\n* Repository: git://github.com/pilu/web-app-theme.git\n* List: \u003chttp://groups.google.com/group/web-app-theme-generator\u003e\n* Issues: \u003chttp://github.com/pilu/web-app-theme/issues\u003e\n* Gem: \u003chttp://gemcutter.org/gems/web-app-theme\u003e\n* Themes: \u003chttp://pilu.github.com/web-app-theme\u003e\n\nAuthor\n------\n\nAndrea Franz - [http://gravityblast.com](http://gravityblast.com)\n\nContributors\n------------\n\n* Nelson Fernandez\n* Giovanni Intini\n* Jeremy Durham\n* Wouter de Vries\n* Marco Borromeo\n* rick mckay\n* Peter Sarnacki\n* Garret Alfert\n* Mikkel Hoegh\n* Juan Maria Martinez Arce\n* Stas SUSHKOV\n* Daniel Cukier\n* Roberto Klein\n* Bryan Woods\n* Sandro Duarte\n* David Francisco\n\nCredits\n-------\n\n* Icons: FAMFAMFAM Silk icons \u003chttp://www.famfamfam.com/lab/icons/silk/\u003e\n* Buttons: Particletree - Rediscovering the Button Element \u003chttp://particletree.com/features/rediscovering-the-button-element/\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanwit%2Fcentillex-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanwit%2Fcentillex-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanwit%2Fcentillex-web/lists"}