Skip to content
laurenyew edited this page Apr 9, 2012 · 10 revisions

StyleSheets (aka: Skin)

**Basics (put into Database) **

Began: 2/20/12

Pulled into Master: 3/2/2012

Summary: Set up Skin in database. Each user has one Skin and a Skin can have many Users using it.

Skin.java: holds fields to change the look of each Skin

Skins.java: controller for Skin.java

main.css: template for changing the skin (uses variables from database Skin)

SkinTest.java: Basic unit testing for methods in Skins.java and database Skin

Files Used/Edited:

  • /app/model/Skin.java

  • /app/controllers/Skins.java

  • /app/model/User.java

  • /app/model/Application.java

  • /app/views/stylesheet/main.css

  • /app/views/tags/main.html

  • /test/unit/SkinTest.java

Edit StyleSheet in Profile

Began: 3/5/12

Pulled into Master: 3/19/2012

Summary: Mapped Profile to Skin instead of User. Made User interface skins page so we can edit skins (to get there, go to account page and there is an edit skin link). Now each Skin has a set of mapped parameters (SkinPair) which are the attribute name and value for a Skin. (fewer variables in code)

Skins.java: controller for Skin.java, holds skins() render method and editSkin(String key, String value) which updates your skin from the inputs in skin.html (hidden inputs go into key, user inputs go to value)

main.css: Has been moved back to public/stylesheets/main.css for good coding style reasons

app/views/Skins/skin.html: this is the editSkin page User interface that is linked from account.

SkinPair.java: attribute name/value mapped to Skin

Files Used/Edited:

  • /app/views/Skins/skin.html

  • /app/model/Skin.java

  • /app/model/SkinPair.java

  • /app/controllers/Skins.java

  • /app/model/User.java

  • /app/model/Profile.java

  • /public/stylesheet/main.css

  • /app/views/tags/main.html

  • /test/unit/SkinTest.java

Set of basic StyleSheets that User can choose from in ChangeSkin page

Began: 3/20/12

Pulled into Master: 3/27/2012

Import Photo into Background

Began: 3/22/12

Pulled into Master: 3/27/2012

Add Thumbnails for choosing template/public skins

Began: 3/28/12

Pulled into Master: 4/4/2012

Redo Skin Database -- now Skins can be used by multiple users

Began: 3/28/12

Pulled into Master: 4/4/2012

Added Unit/Functional/Selenium Testing

Functional as of: 4/9/12

Clone this wiki locally