Changeset 17914

Show
Ignore:
Timestamp:
08/20/08 09:10:33 (3 months ago)
Author:
uroslates
Message:

- Applying new UI for wiki
- fixing issues found by testing team.
- tests fix (updated wiki system properties).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/core/build.xml

    r17830 r17914  
    383383 
    384384                        <pathelement location="${build.lib.dir}\roller-core.jar" /> 
    385                         <pathelement location="${build.lib.dir}\bliki-3.0.0.jar" /> 
     385                        <pathelement location="${build.lib.dir}\bliki-3.0.2.jar" /> 
    386386                        <pathelement location="${build.lib.dir}\htmllexer.jar" /> 
    387387                        <pathelement location="${build.lib.dir}\htmlparser.jar" /> 
  • trunk/core/db/oracle/create-scripts/versions/8.5.0/update_system_properties.sql

    r17893 r17914  
    184184      p.property = 'all.global.toolbar.standard.remove.alt'; 
    185185 
     186update pn_property p set  
     187       p.property_value = 'Viewing Page' 
     188where  
     189      p.context_id = 2000 and 
     190      p.language = 'en' and 
     191      p.property = 'prm.wiki.view.viewTitle'; 
     192 
     193update pn_property p set  
     194       p.property_value = 'Editing Page' 
     195where  
     196      p.context_id = 2000 and 
     197      p.language = 'en' and 
     198      p.property = 'prm.wiki.edit.editTitle'; 
     199 
     200update pn_property p set  
     201       p.property_value = 'History For Wiki Page' 
     202where  
     203      p.context_id = 2000 and 
     204      p.language = 'en' and 
     205      p.property = 'prm.wiki.history.historyTitle'; 
     206 
     207insert into pn_property (CONTEXT_ID, LANGUAGE, PROPERTY_TYPE, PROPERTY, PROPERTY_VALUE, PROPERTY_VALUE_CLOB,RECORD_STATUS,IS_SYSTEM_PROPERTY,IS_TRANSLATABLE_PROPERTY)  
     208values (2000,'en','text','prm.wiki.edit.describe.label','Edit summary (describe the changes you have made):','','A',0,1); 
     209 
    186210commit; 
    187211prompt 0 records loaded 
  • trunk/core/src/net/project/hibernate/dao/IPnWikiPageDAO.java

    r17744 r17914  
    4848         */ 
    4949        public List<PnWikiPage> getAllImageDetailPagesForWiki(Integer ownerObjectId, String objectName, String recordStatus); 
    50          
     50 
     51        /** 
     52         * Method for getting specified number of wiki pages from specified wiki space ordered by date (in desc order). 
     53         * @param spaceId 
     54         * @param numberOfPages 
     55         * @return 
     56         */ 
     57        public List<PnWikiPage> getWikiPagesByDate(Integer spaceId, int numberOfPages, String namespace); 
    5158} 
  • trunk/core/src/net/project/hibernate/dao/impl/PnWikiPageDAOImpl.java

    r17744 r17914  
    223223                return resultList; 
    224224        } 
    225          
     225 
     226        public List<PnWikiPage> getWikiPagesByDate(Integer spaceId, int numberOfPages, String namespace) { 
     227                List<PnWikiPage> resultList = new ArrayList<PnWikiPage>(); 
     228                StringBuffer sql = new StringBuffer(" from PnWikiPage wp where wp.ownerObjectId = :ownerObjectId "); 
     229                sql.append(" and wp.recordStatus = :recordStatus  "); 
     230                if( namespace != null && !namespace.equals("") ) { 
     231                        sql.append(" and wp.pageName LIKE :namespace"); 
     232                } 
     233                sql.append(" order by editDate desc "); 
     234 
     235                try { 
     236                        Query query = getHibernateTemplate().getSessionFactory().getCurrentSession().createQuery(sql.toString()); 
     237                        query.setInteger("ownerObjectId", spaceId); 
     238                        query.setString("recordStatus", "A"); 
     239                        if( namespace != null && !namespace.equals("") ) { 
     240                                query.setString("namespace", namespace + ":%"); 
     241                        } 
     242                         
     243                        Iterator result = query.list().iterator(); 
     244                        int i = 0; 
     245                        while( result.hasNext() && (i < numberOfPages) ){ 
     246                                PnWikiPage wikiPage = (PnWikiPage) result.next(); 
     247                                resultList.add(wikiPage); 
     248                                i++; 
     249                        } 
     250                } catch (Exception e) { 
     251                        log.error("Error occured while retriving wiki pages by date for specified wiki!\n " + e.getMessage()); 
     252                } 
     253                return resultList; 
     254        } 
    226255} 
  • trunk/core/src/net/project/hibernate/service/IPnWikiPageService.java

    r17744 r17914  
    8989         */ 
    9090        public List<PnWikiPage> getSubPages(PnWikiPage pnWikiPage); 
     91         
     92        /** 
     93         * Method for getting list of <b>Recent Changes</b> for one wiki space. 
     94         * @param spaceId wiki space we are searching in 
     95         * @param rangeNumber number of pages to return 
     96         * @param namespace the namespace of pages to return (eg Image...) 
     97         * @return list of recent changed pages 
     98         */ 
     99        public List<PnWikiPage> getRecentChangesForWiki(Integer spaceId, int rangeNumber, String namespace); 
    91100} 
  • trunk/core/src/net/project/hibernate/service/IWikiProvider.java

    r17784 r17914  
    55 
    66import java.util.List; 
     7import java.util.TreeMap; 
    78 
    89import javax.servlet.http.HttpSession; 
     
    4546         
    4647        public String wikiPagesIndex(); 
     48         
     49        public String recentChanges(int number, String namespace); 
    4750} 
  • trunk/core/src/net/project/hibernate/service/impl/PnWikiPageServiceImpl.java

    r17872 r17914  
    136136                return pnWikiPageDAO.getSubPages(pnWikiPage); 
    137137        } 
     138         
     139        public List<PnWikiPage> getRecentChangesForWiki(Integer spaceId, int rangeNumber, String namespace) { 
     140                //get number of pages from specified wiki space declared by rangeNumber 
     141                return pnWikiPageDAO.getWikiPagesByDate(spaceId, rangeNumber, namespace); 
     142        } 
    138143} 
  • trunk/core/src/net/project/hibernate/service/impl/WikiProviderImpl.java

    r17872 r17914  
    77import java.net.URLEncoder; 
    88import java.util.ArrayList; 
     9import java.util.Calendar; 
    910import java.util.Date; 
    1011import java.util.HashMap; 
     
    468469                                Iterator it3 = pagesForLetter.iterator(); 
    469470                                //loop through all pages with same first letter 
     471                                indexStr.append("<div id=\"pagesWithFirstLetter\" style=\"padding-left:15px; padding-top:5px;\">"); 
    470472                                while( it3.hasNext() ) { 
    471473                                        PnWikiPage currPg = (PnWikiPage) it3.next(); 
     
    483485                                        indexStr.append(". . . . . . <b>Last Editor:</b> " + currPg.getEditedBy().getDisplayName() + ", <b>edited on:</b> " + SessionManager.getUser().getDateFormatter().formatDate(currPg.getEditDate(), "EEE, MMM dd, yyyy. hh:mm:ss") + "<br/>"); 
    484486                                } 
    485                                  
     487                                indexStr.append("</div>"); 
    486488                                indexStr.append("</div><br/>"); 
    487489                        } 
     
    496498        } 
    497499 
     500        /** 
     501         *  Method for creating page <b>Recent Changes</b> list for wiki space we are in. 
     502         */ 
     503        public String recentChanges(int range, String namespace) { 
     504                String resultString = null; 
     505                IPnWikiPageService wikiPageService = ServiceFactory.getInstance().getPnWikiPageService(); 
     506                String[] monthName = {"Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"}; 
     507                 
     508                Map <String, List<PnWikiPage>> tMap = new HashMap<String, List<PnWikiPage>>(); 
     509                //get list of all wiki pages in current object space 
     510                List<PnWikiPage> pages = wikiPageService.getRecentChangesForWiki(Integer.valueOf(SessionManager.getUser().getCurrentSpace().getID()), range, namespace); 
     511                 
     512                //filling in the map with wiki pages - indexed by date 
     513                Iterator it = pages.iterator(); 
     514                while ( it.hasNext() ) { 
     515                        PnWikiPage currPage = (PnWikiPage) it.next(); 
     516                        Calendar c = Calendar.getInstance();  
     517                        c.setTime(currPage.getEditDate());  
     518                        String date = c.get(Calendar.DAY_OF_MONTH) + "/" + monthName[c.get(Calendar.MONTH)] + "/" + c.get(Calendar.YEAR); 
     519 
     520                        //if initial letter of current page is contained in map add 
     521                        if ( tMap.containsKey(date) ) { 
     522                List<PnWikiPage> list = tMap.get(date); 
     523                list.add(currPage); 
     524                tMap.put(date, list); 
     525            } else { 
     526                //there is no key for this letter in the map 
     527                List<PnWikiPage> list = new ArrayList<PnWikiPage>(); 
     528                list.add(currPage); 
     529                tMap.put(date, list); 
     530            } 
     531                } 
     532                 
     533        //read the map for presenting index 
     534                resultString = renderRecentChanges(tMap); 
     535                 
     536                return resultString; 
     537        } 
     538         
     539        @SuppressWarnings("unchecked") 
     540        private String renderRecentChanges(Map pgIndMap) { 
     541                String result = null; 
     542                 
     543                //read the map for presenting index 
     544                if(pgIndMap != null) { 
     545                        StringBuffer indexStr = new StringBuffer("<div id=\"recentChanges\">"); 
     546                        indexStr.append("<h3 id=\"recentChangesTitle\">Recent Changes <span style=\"position:absolute;right:70px;\">[<a href=\"javascript:hideRecentChanges();\" style=\"padding: 2px;\">Exit</a>]</span></h3><br/><br/>"); 
     547                        indexStr.append("<div style=\"background: #EEEEEE none repeat scroll 0%; border: 1px solid #CCCCCC; float: left; margin-right: 15px; padding: 4px; text-align: left; width: 60%; \"> This is a list of recently changed wiki pages in this wiki space. </div><br/><br/>"); 
     548                        indexStr.append("<strong><b>"); 
     549                        indexStr.append("<a href=\"javascript:reset();\">All</a> "); 
     550                        //Use an Iterator to traverse the mappings in the Map.   
     551                Iterator it1 = pgIndMap.entrySet().iterator(); 
     552                while ( it1.hasNext() ) { 
     553                    Map.Entry entry = (Map.Entry) it1.next(); 
     554                    indexStr.append("<a href=\"#" + entry.getKey() + "\">" + entry.getKey() + "</a>&nbsp; "); 
     555                } 
     556                        indexStr.append("</b></strong><br/><br/><br/>"); 
     557                         
     558                        Iterator it2 = pgIndMap.entrySet().iterator(); 
     559                        //loop through entire map 
     560                while( it2.hasNext() ) { 
     561                    Map.Entry entry = (Map.Entry) it2.next(); 
     562                        indexStr.append("<div id=\"" + entry.getKey() + "\">"); 
     563                                indexStr.append("<strong><b>" + entry.getKey() + "</b></strong><br/>"); 
     564                                List<PnWikiPage> pagesForLetter = (List<PnWikiPage>) entry.getValue(); 
     565                                 
     566                                Iterator it3 = pagesForLetter.iterator(); 
     567                                //loop through all pages with same first letter 
     568                                indexStr.append("<div id=\"changesFromDate\" style=\"padding-left:15px; padding-top:5px;\">"); 
     569                                while( it3.hasNext() ) { 
     570                                        PnWikiPage currPg = (PnWikiPage) it3.next(); 
     571                                        User user = SessionManager.getUser(); 
     572                                        String hrefLink = null; 
     573                                        try { 
     574                                                hrefLink = SessionManager.getJSPRootURL() + "/wiki/EditWikiPage/" + currPg.getPageName() 
     575                                                + "/" + currPg.getParentPageName() + "/"+ URLEncoder.encode(user.getCurrentSpace().getID(), SessionManager.getCharacterEncoding())  
     576                                                + "/" + URLEncoder.encode(user.getID(), SessionManager.getCharacterEncoding()) + "?module=" + Module.PROJECT_SPACE; 
     577                                        } catch (UnsupportedEncodingException e) { 
     578                                                e.printStackTrace(); 
     579                                        } 
     580 
     581                                        indexStr.append("<a href=\"" + hrefLink + "\">" + currPg.getPageName() + "</a> "); 
     582                                        indexStr.append(". . . . . . <b>Last Editor:</b> " + currPg.getEditedBy().getDisplayName() + ", <b>edited on:</b> " + SessionManager.getUser().getDateFormatter().formatDate(currPg.getEditDate(), "EEE, MMM dd, yyyy. hh:mm:ss") + "<br/>"); 
     583                                } 
     584                                indexStr.append("</div>"); 
     585                                indexStr.append("</div><br/>"); 
     586                        } 
     587                         
     588                        indexStr.append("</div>"); 
     589                        result = indexStr.toString(); 
     590                } else { 
     591                        result = "<br/><strong>This wiki doesn't contain any pages!</strong><br/>"; 
     592                } 
     593                 
     594                return result; 
     595        } 
     596         
    498597} 
  • trunk/core/src/net/project/view/pages/wiki/EditWikiPage.java

    r17895 r17914  
    116116        private RequestGlobals requestGlobals; 
    117117         
     118        private String describeEditLabel; 
     119         
     120        private String desciption; 
     121         
    118122        /** 
    119123         * default constructor 
     
    125129                        setAction(""); 
    126130                        jspRootURL = SessionManager.getJSPRootURL(); 
    127                         editTitle = PropertyProvider.get("prm.wiki.edit.editing.page"); 
     131                        editTitle = PropertyProvider.get("prm.wiki.edit.editTitle"); 
     132                        describeEditLabel = PropertyProvider.get("prm.wiki.edit.describe.label"); 
    128133                        pnWikiPageService = ServiceFactory.getInstance().getPnWikiPageService(); 
    129134                        personService = ServiceFactory.getInstance().getPnPersonService(); 
     
    262267                                pnWikiPage = new PnWikiPage(); 
    263268                                pnWikiPage.setContent(getContent()); 
     269//added for edit description 
     270 
     271// 
    264272                                pnWikiPage.setEditDate(currentDate); 
    265273                                pnWikiPage.setEditedBy(pnPerson); 
     
    644652                this.moduleId = moduleId; 
    645653        } 
     654         
     655        public String getDescribeEditLabel() { 
     656                return describeEditLabel; 
     657        } 
     658 
     659        public String getDesciption() { 
     660                return desciption; 
     661        } 
     662 
     663        public void setDesciption(String desciption) { 
     664                this.desciption = desciption; 
     665        } 
    646666} 
  • trunk/core/src/net/project/view/pages/wiki/Upload.java

    r17872 r17914  
    134134        } 
    135135         
    136         public Object onSuccess() 
    137     { 
     136        public Object onSuccess() { 
    138137                System.out.println("\n****\n...Uploading file uploadedFile: " + getUploadedFile().getFileName() + "\npageName: " + getPageName() + 
    139138                                "\ndescription: " + getDescription() + "\nuser: " + SessionManager.getUser().getDisplayName() +  
  • trunk/core/src/net/project/view/pages/wiki/Welcome.java

    r17872 r17914  
    1212import net.project.base.Module; 
    1313import net.project.base.property.PropertyProvider; 
    14 import net.project.form.FormManager; 
    1514import net.project.hibernate.model.PnPerson; 
    1615import net.project.hibernate.model.PnProjectSpace; 
     
    3938import org.apache.tapestry.annotations.InjectPage; 
    4039import org.apache.tapestry.annotations.Persist; 
    41 import org.apache.tapestry.beaneditor.Validate; 
    4240import org.apache.tapestry.corelib.components.Form; 
    4341import org.apache.tapestry.services.RequestGlobals; 
     
    178176        @Inject 
    179177        private RequestGlobals requestGlobals; 
     178         
     179        private String wikiRecentChanges; 
    180180         
    181181        //added to process after selecting image to attach from selectObject. 
     
    240240                setModuleId(Module.PROJECT_SPACE); 
    241241                setWikiPgIndex(wikiProvider.wikiPagesIndex()); 
     242                setWikiRecentChanges(wikiProvider.recentChanges(10, null)); 
    242243        } 
    243244         
     
    10971098                return viewTitle; 
    10981099        } 
     1100 
     1101        public String getWikiRecentChanges() { 
     1102                return wikiRecentChanges; 
     1103        } 
     1104 
     1105        public void setWikiRecentChanges(String wikiRecentChanges) { 
     1106                this.wikiRecentChanges = wikiRecentChanges; 
     1107        } 
    10991108} 
  • trunk/core/src/net/project/view/pages/wiki/WikiHistory.java

    r17872 r17914  
    1111 
    1212import javax.servlet.http.HttpServletRequest; 
    13 import javax.servlet.http.HttpServletResponse; 
    1413 
    1514import net.project.base.Module; 
     
    2625import org.apache.commons.lang.StringEscapeUtils; 
    2726import org.apache.log4j.Logger; 
    28 import org.apache.tapestry.StreamResponse; 
    2927import org.apache.tapestry.annotations.ApplicationState; 
    3028import org.apache.tapestry.annotations.Inject; 
     
    3331import org.apache.tapestry.services.RequestGlobals; 
    3432import org.apache.tapestry.util.TextStreamResponse; 
    35 import org.json.JSONArray; 
    36 import org.json.JSONException; 
    37 import org.json.JSONObject; 
    3833 
    3934/** 
  • trunk/core/src/net/project/wiki/ExtWikiModel.java

    r17874 r17914  
    77import java.util.Map; 
    88import java.util.Set; 
    9 import java.util.TreeMap; 
    109 
    1110import net.project.base.Module; 
     
    2221import org.htmlcleaner.Utils; 
    2322 
    24 import info.bliki.wiki.addon.model.AddonConfiguration; 
    2523import info.bliki.wiki.filter.Encoder; 
    2624import info.bliki.wiki.filter.WikipediaParser; 
     
    4240         
    4341        public ExtWikiModel(String imageBaseURL, String linkBaseURL) { 
     42                //super(AddonConfiguration.DEFAULT_CONFIGURATION, imageBaseURL, linkBaseURL); 
    4443                super(imageBaseURL, linkBaseURL); 
    45                 //super(imageBaseURL, linkBaseURL); 
    4644        } 
    4745 
     
    254252                StringBuffer result = new StringBuffer("<br/>\n"); 
    255253                 
    256                 result.append("<div id=\"linkList\" style=\"position:absolute; top:0; right:0; width:100%; background: #EEEEEE; display:none; padding-top: 5px; padding-left: 30px; padding-bottom: 5px; border: 1px solid #CCCCCC;\">\n");  
     254                result.append("<div id=\"linkList\" style=\"position:absolute; top:0; width: 870px; background: #EEEEEE; display:none; padding-top: 5px; padding-left: 30px; padding-bottom: 5px; border: 1px solid #CCCCCC;\">\n"); 
     255                result.append("\n&nbsp;<b>[<a style=\"padding: 2px;\" href=\"javascript:hideLinkList();\">Exit</a>]</b>&nbsp;&nbsp;"); 
    257256                if(!linksIt.hasNext()) { 
    258257                        result.append(" <b> This page has no wiki links! </b>"); 
     
    260259                if ( linksIt.hasNext() ) { 
    261260                        //style=\"margin-left: auto;margin-right: auto; padding: 5px;background: rgb(249, 249, 249);\" 
    262                         result.append("<b> This Page Links To: </b>\n"); 
     261                        result.append("<b>This Page Links To:</b>&nbsp;&nbsp;\n"); 
    263262                        while( linksIt.hasNext() ) { 
    264263                                String currentLink = (String) linksIt.next(); 
     
    279278         
    280279        public ExtWikiModel(String imageBaseURL, String linkBaseURL, boolean isPreview) { 
    281                 super(AddonConfiguration.DEFAULT_CONFIGURATION, imageBaseURL, linkBaseURL); 
     280                //super(AddonConfiguration.DEFAULT_CONFIGURATION, imageBaseURL, linkBaseURL); 
     281                super(imageBaseURL, linkBaseURL); 
    282282                this.isPreview = isPreview; 
    283283        } 
  • trunk/core/web/css/wiki.css

    r17784 r17914  
    1 #wikiContent 
     1#wContent 
    22ul, ol {  
    33        margin: 0.1em 0 0 0; 
    44        padding: 0pt 1.65em; 
    55} 
    6 #wikiContent 
     6#wContent 
    77ul{ 
    88        list-style-image: inherit; 
     
    1010        list-style-type: disc; 
    1111} 
    12 #wikiContent  
     12#wContent  
    1313ol{ 
    1414        list-style-image: inherit; 
     
    133133font-size:1.6em; 
    134134} 
     135 
     136//////////////////////////////////////////////////// new UI 
     137 
     138/* CSS Document */ 
     139 
     140body { 
     141        padding: 0; 
     142        margin: 0; 
     143        background: url(../images/back.jpg) repeat-x top; 
     144} 
     145 
     146* a:hover { 
     147        text-decoration: none; 
     148} 
     149 
     150#left { 
     151        float: left; 
     152        width: 196px; 
     153} 
     154 
     155/* PROJECTS Left Heading */ 
     156#leftheading-projects { 
     157        background: url(../images/menu/leftheading_projects.png); 
     158        width: 160px; 
     159        height: 23px; 
     160        padding-left: 14px; 
     161        margin-top: 23px; 
     162        float: left; 
     163        font-family: Tahoma, Trebuchet; 
     164        font-size: 18px; 
     165} 
     166 
     167.left_column_top { 
     168        background: #eceef6 url(../images/leftcolumn_top.png) no-repeat top; 
     169        width: 174px; 
     170        margin-top: 23px; 
     171        padding-top: 10px; 
     172         
     173} 
     174.left_column_bottom { 
     175        background: url(../images/leftcolumn_bottom.png) no-repeat bottom; 
     176        width: 174px; 
     177        padding-bottom: 10px; 
     178        float: left; 
     179} 
     180div.actionbox-item { 
     181        font-family: Arial, Helvetica, sans-serif; 
     182        font-size: 13px; 
     183        padding-left: 14px; 
     184        background: #eceef6; 
     185        color: #3399ff; 
     186        font-weight: bold; 
     187        line-height: 22px; 
     188} 
     189div.actionbox-item span a, .group_heading span a  { 
     190        text-decoration: none; 
     191        border-bottom: 1px dashed; 
     192        color: #3399ff; 
     193} 
     194div.actionbox-item span a.disabled, .group_heading span a.disabled  { 
     195        text-decoration: none; 
     196        color: Silver; 
     197        border-bottom: 1px solid #E4E4E4; 
     198        cursor: help; 
     199} 
     200div.actionbox-item span a:hover, .group_heading span a:hover { 
     201        color: #3366CC; 
     202} 
     203 
     204.group_heading { 
     205        font-family: Arial, Helvetica, sans-serif; 
     206        font-size: 13px; 
     207        padding-left: 14px; 
     208        margin-top: 10px; 
     209        background: #eceef6; 
     210        font-weight: bold; 
     211} 
     212.group_heading span { 
     213        padding-left: 10px; 
     214        font-size: 11px; 
     215        line-height: 20px; 
     216} 
     217 
     218 
     219#search { 
     220        position: absolute; 
     221   right: 10px; 
     222        top: 32px; 
     223} 
     224#search input { 
     225        height: 20px; 
     226        font-family: Arial, Helvetica, sans-serif; 
     227        font-size: 11px; 
     228        background: url(../images/form_search.png) no-repeat; 
     229        border: 0px; 
     230        padding-left: 27px; 
     231        padding-top: 2px; 
     232        width: 248px; 
     233} 
     234 
     235.black {color: Black;} .gray {color: Gray;} 
     236 
     237#content a:hover { 
     238        text-decoration: underline; 
     239} 
     240.arrow { 
     241        font-size: 8px; 
     242} 
     243 
     244#content-left { 
     245        padding-top: 6px; 
     246        width: 370px; 
     247        float: left; 
     248} 
     249 
     250.table { 
     251        margin-top: 7px; 
     252        line-height: 16px; 
     253} 
     254 
     255#content-right { 
     256        padding-top: 6px; 
     257        padding-left: 375px; 
     258} 
     259 
     260#content-rightborder { 
     261        border-left: 2px solid #dcdcdc; 
     262        padding-left: 10px; 
     263        height: 100%; 
     264} 
     265 
     266/* Wiki page */ 
     267.project-title { 
     268        font-family: Tahoma; 
     269        font-size: 19px; 
     270        padding-left: 14px; 
     271        margin-top: 4px; 
     272        margin-bottom: 2px; 
     273        float: left; 
     274        width: 180px; 
     275        color: Navy; 
     276} 
     277.project-descrition { 
     278        font-family: Arial, Helvetica, sans-serif; 
     279        font-size: 13px; 
     280        padding-left: 14px; 
     281        margin-top: 2px; 
     282        margin-bottom: 4px; 
     283        float: left; 
     284        width: 180px; 
     285} 
     286.project-descrition a { 
     287        color: Navy; 
     288} 
     289 
     290#search-wiki { 
     291        font-family: Arial, Helvetica, sans-serif; 
     292        font-size: 13px; 
     293        padding-left: 14px; 
     294        margin-top: 0px; 
     295        margin-bottom: 4px; 
     296        float: left; 
     297} 
     298#wiki-page { 
     299        width: 100%; 
     300        height: auto; 
     301} 
     302#wiki-page h1 { 
     303        font-family: Arial, Helvetica, sans-serif; 
     304        font-size: 22px; 
     305        height: 30px; 
     306        background: #f3f3fa url(../images/wiki/h1corner-top.png) no-repeat top left; 
     307        padding-top: 20px; 
     308        padding-left: 12px; 
     309        vertical-align: bottom; 
     310        border-bottom: 2px solid Silver; 
     311} 
     312#wiki-page h2 { 
     313        font-family: Arial, Helvetica, sans-serif; 
     314        font-size: 18px; 
     315        margin-right: 15px; 
     316        margin-left: 12px; 
     317        padding-top: 5px; 
     318        border-bottom: 1px solid Silver; 
     319        font-weight: normal; 
     320} 
     321#wiki-page h3 { 
     322        font-family: Arial, Helvetica, sans-serif; 
     323        font-size: 16px; 
     324        font-weight: normal; 
     325        margin-right: 15px; 
     326        margin-left: 12px; 
     327        padding-top: 5px; 
     328        border-bottom: 1px solid Silver; 
     329} 
     330#wiki-page p { 
     331        font-family: Arial, Helvetica, sans-serif; 
     332        font-size: 14px; 
     333        margin-left: 12px; 
     334        margin-right: 15px; 
     335        margin-top: 0px; 
     336        line-height: 22px; 
     337} 
     338#wiki-page p a { 
     339        color: Navy; 
     340        text-decoration: none; 
     341} 
     342#wiki-page p a:hover, #wiki-page #contents-block * a:hover { 
     343        text-decoration: underline; 
     344} 
     345#wiki-page .ending { 
     346        font-family: Arial, Helvetica, sans-serif; 
     347        font-size: 13px; 
     348        height: 10px; 
     349        background: #f3f3fa url(../images/wiki/h1corner-bottom.png) no-repeat bottom left; 
     350        padding-top: 6px; 
     351        padding-bottom: 14px; 
     352        padding-left: 12px; 
     353        margin-bottom: 10px; 
     354        border-top: 2px solid Silver; 
     355} 
     356#wiki-page .ending a, #wiki-page .ending a:visited { 
     357        text-decoration: none; 
     358        border-bottom: 1px dashed; 
     359        color: #3399ff; 
     360} 
     361#wiki-page .ending a:hover { 
     362        color: #3366CC;} 
     363 
     364#wiki-page #contents-block { 
     365        background: #f3f3fa; 
     366        margin-left: 60px; 
     367        padding-right: 12px; 
     368        padding-bottom: 2px; 
     369        padding-top: 5px; 
     370        width: 320px; 
     371        height: auto; 
     372        border: 1px solid Silver; 
     373} 
     374#wiki-page #contents-block h5 { 
     375        font-family: Arial, Helvetica, sans-serif; 
     376        font-size: 14px; 
     377        font-weight: bold; 
     378        text-align: center; 
     379        margin-top: 10px; 
     380} 
     381#wiki-page #contents-block h5 span { 
     382        font-size: 12px; 
     383        font-weight: normal; 
     384        line-height: 0px; 
     385} 
     386#wiki-page #contents-block ul { 
     387        list-style: decimal outside; 
     388        font-family: Arial, Helvetica, sans-serif; 
     389        font-size: 14px; 
     390        line-height: 19px; 
     391        color: Navy; 
     392} 
     393#wiki-page #contents-block * a { 
     394        color: Navy; 
     395        text-decoration: none; 
     396} 
     397 
     398/* Wiki Upload page */ 
     399 
     400 
     401/* Wiki Edit page */ 
     402#wiki-page #edit-panel { 
     403        height: 27px; 
     404        padding-left: 12px; 
     405} 
     406#wiki-page #edit-panel span { 
     407        padding-right: 1px; 
     408} 
     409#wiki-page .form { 
     410        padding-left: 12px; 
     411} 
     412#wiki-page .form textarea { 
     413        font-family: "Courier New", Courier, monospace; 
     414        font-size: 13px; 
     415        margin-bottom: 10px; 
     416        width: 95%; 
     417} 
     418#wiki-page .form input { 
     419        margin-bottom: 10px; 
     420} 
     421 
     422#wiki-page .form span { 
     423        font-family: Arial, Helvetica, sans-serif; 
     424        font-size: 13px; 
     425        padding-top: 5px; 
     426        font-weight: bold; 
     427} 
     428 
     429#viewingWiki { 
     430         overflow: auto;  
     431         width: 1050px;  
     432         height: 50px;  
     433         position: absolute;  
     434         left: 196px;  
     435         margin-top: 37px; 
     436         background: #f3f3fa url(../images/wiki/h1corner-top.png) no-repeat top left; 
     437         border-bottom: 2px solid Silver; 
     438} 
  • trunk/core/web/html/resource/management/components/WikiInfo.html

    r17872 r17914  
    1 <div id="viewingWiki" style="overflow: auto; width: 990px; height: 50px; position: absolute; left: 265px; top: 85px; background: RGB(249, 249, 249)"
     1<div id="viewingWiki"> <!-- style="overflow: auto; width: 990px; height: 50px; position: absolute; left: 265px; top: 85px; background: RGB(249, 249, 249)" --
    22        <table width="100%" bgcolor="RGB(249, 249, 249)"> 
    33                <tr valign="top"> 
  • trunk/core/web/html/resource/management/components/WikiMenu.html

    r17872 r17914  
    5050        </script> 
    5151 
    52         <div id="leftDiv" style="left: 5px; top: 85px; position: absolute; width: 20%; height: 79%; background: RGB(232, 232, 220);"> 
    53                 <br /> 
    54                 <table width="100%" height="100%"> 
    55                         <tr height="100%"> 
    56                                 <td width="99%" valign="top"> 
    57                                         <table width="100%"> 
    58                                                 <!-- Wiki Details --> 
    59                                                 <tr valign="top"><td> 
    60                                                         <div id="wikiDetails" style="height: 80px; width: 240px; overflow-Y: auto; overflow-X: hidden; background: #CCCCCC;  margin: 4px;"> 
    61                                                                 <table width="100%"> 
    62                                                                         <tr valign="top"> 
    63                                                                                 <td align="left" width="60%" style="font-size:16px;font-family:Arial;font-weight:normal; padding-left: 10px; padding-top: 10px;">  
    64                                                                                 <b>Wiki:</